Ad Management mod

Started by SMFHacks.com Team, January 30, 2006, 08:41:19 PM

Previous topic - Next topic

sfreak

Quote from: Bigguy on March 14, 2008, 12:37:28 AM
Is LoadAds.php in your Sources Directory. ???

yes dude.

it is in source directory..

Bigguy

Re-upload it and make sure permissions are right. Other than what we have already gone through I'm not sure what more to tell you.

sfreak

Quote from: Bigguy on March 14, 2008, 01:15:05 AM
Re-upload it and make sure permissions are right. Other than what we have already gone through I'm not sure what more to tell you.

tried friend but no luck.

anyway thanks for u r help.

sfreak

hi folks can any one solve my problem..

when i am adding add

i am getting error

Unknown column 'CATEGORY' in 'field list'
File: /mounted-storage/home34a/sub001/sc27813-WZXZ/studentsspot.com/Sources/Ads.php
Line: 289

whats the solution friends help me..

Kenny01

Quote from: mobiplanet on March 13, 2008, 10:25:17 PM
Can anyone solve my problem ? I desperately wanna add admob php adsense code on the top of my forum..Pls help..Thanks
You can do that from you forum admin panel, click ad management, then activate the option for ad to display on top.

mobiplanet

I have tried that..But with ad management mod only (html/java script) ads like google web,adbrite working...But php adsense code not working with that mod..It showing errors...anyone have any idea ? Tnx in advance

robbieruckus

#2326
Quote from: Bigguy on March 13, 2008, 09:59:41 PM
All the edits are written out here. Or you can run it through a package parser. I don't have a link handy to one right now. All that has to be done is the template files. All other edits are already done when you install it. if you can't find a certain template file in your custom theme you don't need to worry about doing it either as it was done during install as well. Only do the template files that are listed in your custom theme.

alright thank you..

robbieruckus

ok i cant seem to find                'manage_themes' => '<a href="' . $scripturl . '?action=theme;sa=admin;sesc=' . $sc . '">' . $txt['theme_admin'] . '[/url]',

in my Subs.php

robbieruckus

#2328
Quote from: robbieruckus on March 14, 2008, 07:44:40 AM
ok i cant seem to find                'manage_themes' => '<a href="' . $scripturl . '?action=theme;sa=admin;sesc=' . $sc . '">' . $txt['theme_admin'] . '[/url]',

in my Subs.php

ok forget that i found it

i have added all the codes where they were said to be added.  but im getting errors:

Template Parse Error!
There was a problem loading the /Themes/nintendope/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in .../Themes/nintendope/index.template.php on line 221



212: <tr>
213: <td class="menum" width="20%"></td><td class="menum" align="center" height="10">
214:
215: ', template_menu(), '
216:    //Below the menu ads
217:     if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
218:     {
219:         $ads = show_indexAds();   
220:         if(!empty($ads))

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

222:                 echo $ads['content'];
223:             else
224:                 eval($ads['content']);
225:         unset($ads);


ive tried editing a few others that showed up before it and it seemed to work..  cant seem to make this one work.

symon

Quote from: Bigguy on March 13, 2008, 10:53:34 PM
@ symon: Can you post the file. I will try to take a look at it.

Thanks fella,

Once I get it to just display I can then edit the css and put two divs on each side for the towers but for now I just need to get rind of the errors.

Any help is always, as ever, appreciated.

:)

Bigguy

See if this works for ya:

symon

You're a star! :D

It was the ( wasn't it? lol!

Bigguy


symon

Can I ask one more favor?  :o

I've split the tower code up and put one in a left div (top of code before #contain)and one in a right div (bottom of code after #contain).

But again...it's messing up.  :-[

I can see it's an issue with the tables closings but I'm not too sure which is which and if just having one instance of the tables closing will effect the choice of not having both towers switched on.

I'd appreciate it but I realise it's Friday so I wouldn't want to take up your time.

Bigguy

Yeah it's friday but i haven't started partyin yet so you caught me at a good time, lol. Here try this.

symon

Error gone!

But you got me this time. I can see there was one extra character but no idea what?  ;)

Anyway..no error but it messed up the layout...but I'll investigate that one as it's my fault...I'm just glad it's not messing up in the code...thanks to you :D

You're a star and I hope you enjoy your evening.

symon

ps. You were mega quick on that!

Thanks  :D

Bigguy

Thanks. There was an extra } that I took out. Now maybe it needed to be }'; or something but thats what was messing it up.....or was it a { One of the two anyway.

zapiy

anyway of making this show_bottomAds be centered at the bottom of my page.... cheers

//Close table for towerright ads
   if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
   {
      $ads = show_towerrightAds();   
      if(!empty($ads))
         echo '</td><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';

      unset($ads);
      //Close table for towerleft ads
      $ads = show_towerleftAds();   
      if(!empty($ads))
         echo '</td></tr></table>';
      unset($ads);

      //Show ads on the bottom of the page
      $ads = show_bottomAds();
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);
   }

www.maturevideogamer.co.uk
www.consoleplanet.co.uk
www.retrovideogamer.co.uk

Bigguy

You can center the ads through the admin panel; no need to do anything with the code.

<center>ad_code</center>

OR

<div align=center>ad_code</div>

Advertisement: