Hello Guest
No Avatar
Sign In to Remove
Posts: 
9
Reputation: 
1
Posted: November 30, 2011, 7:13 PM
  • Group: Member
Hey,

due to the fact that my server costs me some money I planed to integrate Google AdSense on my forum to pay at least some of the costs by advertising. I now looked through the index.template.php of the cadence theme, but I am not sure where to place the code, so that AdSense is shown correctly.



I took your preview picture of the cadence theme and marked the places where the ads shall be shown with red lines. Also I already figured out the place where the bottom ad shall be added to the code, may you take a look on it, if this is the correct position please.


Bottom Ad:
Code: [Select]
                echo '
                                <li class="copyright">', theme_copyright(), '</li>
                                <li class="copyright">Theme by MLM on <a target=_blank href="http://visualpulse.net/">VisualPulse.net</a></li>
                              --- ADD HERE ---
                                <li class="copyright"><a href="http://aizen.de/aboutaizen.php">About Aizen</a> </li>
                        </ul>';

                // Show the load time?
                if ($context['show_load_time'])

Thanks in advance.
Posts: 
400
Reputation: 
20
Posted: December 1, 2011, 3:16 AM  -- Last Edit: December 18, 2011, 12:05 AM by MLM
  • Group: Administrator
  • AIM: mlm@visualpulse.net
  • deviantART: MadLittleMods
  • Photobucket: MadLittleMods
I would just add a fixed div to either side but you have to rule in that people with small screens will have their content covered up.

If you want to use my suggestion just make a div with the following css right below the body.
Code: [Select]
position: fixed;
top: 100px;
left: 10px;

Then just put your adsense code in there. For the right ad, just change the position left or right values.

Also please come back with your results or other comments.
<3 Nerve, Sk8, Labradoodle, Austin
Posts: 
9
Reputation: 
1
Posted: December 17, 2011, 11:40 PM
  • Group: Member
Okay thanks, I will try it as soon as I find the time to do so.
Thanks a lot so far anyway  ;)
Posts: 
9
Reputation: 
1
Posted: January 31, 2012, 3:41 AM
  • Group: Member
Hey,

i finally find the time to do the work on my forum and Google AdSense completed my registration so I wanted to give feedback. I crawled through the smf-mod site once again and found an easy mod that makes all those things with searching codes for placing ads redundant. It is called SMFADS and can be found here: http://www.smfads.com/

btw, nice new forum design, like it
Posts: 
400
Reputation: 
20
Posted: January 31, 2012, 3:49 AM
  • Group: Administrator
  • AIM: mlm@visualpulse.net
  • deviantART: MadLittleMods
  • Photobucket: MadLittleMods
Hey,

i finally find the time to do the work on my forum and Google AdSense completed my registration so I wanted to give feedback. I crawled through the smf-mod site once again and found an easy mod that makes all those things with searching codes for placing ads redundant. It is called SMFADS and can be found here: http://www.smfads.com/

btw, nice new forum design, like it

Thanks for the update and compliment  ;)
<3 Nerve, Sk8, Labradoodle, Austin
anything