SMF Ads Support Forum

Support => Ad Support => Topic started by: moon22 on April 20, 2007, 01:33:14 PM

Title: Big problem... Help
Post by: moon22 on April 20, 2007, 01:33:14 PM
Hello... After installing the mod and manually install it I still can't find the option for the ad...
Any help please...  :'(
Title: Re: Big problem... Help
Post by: smithy on April 25, 2007, 05:44:50 AM
You may not have installed it correctly. Make sure all codes are in the correct place eg: Before, After and replace. Then make sure Ads.php + LoadAds.php are in the sources directory. The Ads.template.php in your Themes directory and Ads.english.php in your themes language dirctory.

smithy
Title: Re: Big problem... Help
Post by: bigguy on April 26, 2007, 08:58:03 AM
Has this helped you moon22 ???
Title: Re: Big problem... Help
Post by: moon22 on April 27, 2007, 01:36:48 AM
I have checked it already... but nothing happens...  :'(
Title: Re: Big problem... Help
Post by: bigguy on April 27, 2007, 07:22:00 AM
Have you tried to uninstall and reinstall. ???
Title: Re: Big problem... Help
Post by: koolday on April 30, 2007, 05:16:16 AM
i am also having the same problem.... Please help me....
www.koolday.com/forums (http://www.koolday.com/forums)
Title: Re: Big problem... Help
Post by: moon22 on May 01, 2007, 10:25:19 PM
Yahh... I have tried to uninstall it and reinstall it again...
Title: Re: Big problem... Help
Post by: bigguy on May 02, 2007, 08:34:20 AM
Are you using the default theme. ???
Title: Re: Big problem... Help
Post by: smithy on May 02, 2007, 05:42:34 PM
Guys as bigguy says Are using default or a custom theme? I myself installed it manualy but you need to make sure that you edit your custom themes files and not the default. To give you an idea of what i mean. Check this out.

<file name="$themedir/index.template.php">

<operation>
<search position="before"><body>';</search>

<add>

//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);
}
</add>


Where it says themedir/index.template.php This should be the index.template.php of the theme your using.

Also another small problem i encounted is when i searched this <body>'; on my theme.index.php. It didnt find out because the theme am using only had <body> without the ; so i just added it.

smithy

Title: Re: Big problem... Help
Post by: bigguy on May 02, 2007, 06:47:19 PM
This is why an editor with a search function and that can use php to dbug is important. Also knowing where to put the cide is a big plus, lol. ;) I use php designer for an editor and love it.
Title: Re: Big problem... Help
Post by: smithy on May 03, 2007, 06:35:15 AM
Hello,
I dont realy know php or sql that well. I learn much from the smf forum eg:

http://www.simplemachines.org/community/index.php?topic=167201.0

And just play around with things till i get right. The good thing about installing mods manualy is that you can correct and fix mistakes instantly. For instace. Every time i ad, before and replace i allways refresh the page so if i get a parse error then i know where the problem is then i just undo what i edited and start again. I have heard somany uses make a mess of there forum when installing certain mods from the package manager its unreal. I would advise anybody to learn how to install mods manualy because i personaly fell its the safest way to do so.

smithy