Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: sinderella on August 14, 2008, 12:24:47 AM

Title: Ad mod
Post by: sinderella on August 14, 2008, 12:24:47 AM
I need a little info.

I went to uninstall my ad mod, but I deleted it accidently and now I can not uninstall it, I backed my forum up so I could make a new forum but it won't work because it can't find the ad files, so just wondering how do I delete the ad files if I can't uninstall it?
Title: Re: Ad mod
Post by: ccbtimewiz on August 14, 2008, 12:45:37 AM
Download the mod again and upload it to your /Packages directory. Then it might appear on your packages list again.
Title: Re: Ad mod
Post by: ccbtimewiz on August 14, 2008, 01:01:13 AM
Meaning that the file already exists? Are you uploading that through FTP or the package manager?

If you're unable to use the package manager to uninstall it, you'd need to go through your templates and manually remove the ad code. It's a fairly simple task and I'm willing to go through it step by step if you need it.
Title: Re: Ad mod
Post by: sinderella on August 14, 2008, 01:03:04 AM
Yeah I can't use the package manager at all. It would be much appreciated if you would do that.
Title: Re: Ad mod
Post by: ccbtimewiz on August 14, 2008, 01:14:21 AM
Are you using a custom theme or the default theme?
Title: Re: Ad mod
Post by: ccbtimewiz on August 14, 2008, 01:27:33 AM
Attach your index.template.php from that theme.
Title: Re: Ad mod
Post by: sinderella on August 14, 2008, 01:34:31 AM
here you go.
Title: Re: Ad mod
Post by: ccbtimewiz on August 14, 2008, 01:35:52 AM
Find and remove:
//Display ads on the top of the page

if (function_exists("show_topofpageAds"))

{

$ads = show_topofpageAds();

if(!empty($ads))

if($ads['type']==0)

echo $ads['content'];

else

eval($ads['content']);

unset($ads);

}


Find and remove:
//Welcome Ads

if (function_exists("show_welcomeAds"))

{

$ads = show_welcomeAds();

if(!empty($ads))

{

echo '<td class="windowbg2">';

if($ads['type']==0)

echo $ads['content'];

else

eval($ads['content']);

echo '</td>';

}

unset($ads);

}
Title: Re: Ad mod
Post by: sinderella on August 14, 2008, 01:41:35 AM
I've done that
Title: Re: Ad mod
Post by: ccbtimewiz on August 14, 2008, 01:42:35 AM
Alright. Attach BoardIndex.template.php, Display.template.php, and MessageIndex.template.php
Title: Re: Ad mod
Post by: sinderella on August 14, 2008, 01:58:19 AM
here you go
Title: Re: Ad mod
Post by: ccbtimewiz on August 14, 2008, 02:18:30 AM
All fixed up. I removed all ad-mod code.
Title: Re: Ad mod
Post by: ccbtimewiz on August 14, 2008, 11:48:08 AM
Remove that table. If you don't know how to do that safely, PM me a link with the backup.
Title: Re: Ad mod
Post by: sinderella on August 14, 2008, 08:28:56 PM
I removed them but now I am having lots of trouble with other things, basically I want to be able to have my backups work, but everytime I try to import them there's another problem...