SMFHacks.com

Ad Seller Pro => Support => Topic started by: access control forum on January 22, 2015, 04:10:04 pm

Title: Ad Seller Pro how do I update
Post by: access control forum on January 22, 2015, 04:10:04 pm
Do I download the new package and install it over the old. or do I delete the old and then install? If so can I backup my ads?
Title: Re: Ad Seller Pro how do I update
Post by: SMFHacks on January 22, 2015, 04:14:06 pm
You can install it over. Just you would need to make one edit it to your Sources/Display.php which we can do for you or you can do the edit yourself by uploading package to http://www.smfhacks.com/smf-package-parser.html and finding the code to edit.
Title: Re: Ad Seller Pro how do I update
Post by: access control forum on January 22, 2015, 04:53:38 pm
I looked at the link and wasn't clear on what to do. If it just a matter of copying and pasting into that file I can do that. I'll just comment out the old code in case I screw up. if you could get me the sets:


If not do I upload the file in a link to this post or in a PM?


Title: Re: Ad Seller Pro how do I update
Post by: SMFHacks on January 22, 2015, 08:34:18 pm
After you install the new version
Open Sources/Display.php
Find
Code: [Select]
$message['body'] = parse_bbc($message['body'], $message['smileys_enabled'], $message['id_msg']);

Replace with
Code: [Select]
$message['body'] = parse_bbc($message['body'], $message['smileys_enabled'], $message['id_msg']);
// Adseller Pro
global $sourcedir;
if ($modSettings['seller_linkwordscount'] != 0)
{
include_once $sourcedir . "/adseller2.php";
$message['body'] = AdSellerDoLinkWordText($message['body']);
}
// end AdSeller Pro
Title: Re: Ad Seller Pro how do I update
Post by: access control forum on February 07, 2015, 08:10:22 pm
I commented out this line and pasted the new code


$message['body'] = parse_bbc($message['body'], $message['smileys_enabled'], $message['id_msg'], NULL, (int) $message['id_member'], $posts);


does that look right?
Title: Re: Ad Seller Pro how do I update
Post by: SMFHacks on February 08, 2015, 03:15:08 pm
No don't comment it out. Just replace with that whole code I have above.