Coinbase

Author Topic: Big problem... Help  (Read 4892 times)

0 Members and 1 Guest are viewing this topic.

Offline moon22

  • Newbie
  • *
  • Posts: 3
    • Email
Big problem... Help
« on: April 20, 2007, 12: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...  :'(

Offline smithy

  • Newbie
  • *
  • Posts: 8
Re: Big problem... Help
« Reply #1 on: April 25, 2007, 04: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

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Big problem... Help
« Reply #2 on: April 26, 2007, 07:58:03 am »
Has this helped you moon22 ???

Offline moon22

  • Newbie
  • *
  • Posts: 3
    • Email
Re: Big problem... Help
« Reply #3 on: April 27, 2007, 12:36:48 am »
I have checked it already... but nothing happens...  :'(

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Big problem... Help
« Reply #4 on: April 27, 2007, 06:22:00 am »
Have you tried to uninstall and reinstall. ???

Offline koolday

  • Newbie
  • *
  • Posts: 3
Re: Big problem... Help
« Reply #5 on: April 30, 2007, 04:16:16 am »
i am also having the same problem.... Please help me....
www.koolday.com/forums

Offline moon22

  • Newbie
  • *
  • Posts: 3
    • Email
Re: Big problem... Help
« Reply #6 on: May 01, 2007, 09:25:19 pm »
Yahh... I have tried to uninstall it and reinstall it again...

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Big problem... Help
« Reply #7 on: May 02, 2007, 07:34:20 am »
Are you using the default theme. ???

Offline smithy

  • Newbie
  • *
  • Posts: 8
Re: Big problem... Help
« Reply #8 on: May 02, 2007, 04: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.

Code: [Select]
<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


Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Big problem... Help
« Reply #9 on: May 02, 2007, 05: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.

Offline smithy

  • Newbie
  • *
  • Posts: 8
Re: Big problem... Help
« Reply #10 on: May 03, 2007, 05: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

SMF Ads Support Forum

Re: Big problem... Help
« Reply #10 on: May 03, 2007, 05:35:15 am »
.

 

.