News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Ad mod

Started by sinderella, August 14, 2008, 12:24:47 AM

Previous topic - Next topic

sinderella

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?

ccbtimewiz

Download the mod again and upload it to your /Packages directory. Then it might appear on your packages list again.

ccbtimewiz

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.

sinderella

Yeah I can't use the package manager at all. It would be much appreciated if you would do that.

ccbtimewiz

Are you using a custom theme or the default theme?

ccbtimewiz

Attach your index.template.php from that theme.

sinderella


ccbtimewiz

#7
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);

}

sinderella


ccbtimewiz

Alright. Attach BoardIndex.template.php, Display.template.php, and MessageIndex.template.php

sinderella


ccbtimewiz

All fixed up. I removed all ad-mod code.

ccbtimewiz

Remove that table. If you don't know how to do that safely, PM me a link with the backup.

sinderella

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...

Advertisement: