Support Forum
Hello,
I know it has been done to death, but now that 5.0 is out how do I put my adsense code in between forum headers?
At the forum view section I was hoping to be able to put 720x90 ads in between these headers for example.
I'm told theres a way to do it via ad injector, but I'm not sure where to paste the random code into. Or which file I should edit in theme in order to do so.
Can somebody help?
very simple now in 5.0... just edit your sp theme and echo the ad sense code where you want it... as always, make sure you have your own sp theme and not editing one of ours: http://codex.simple-press.com/.....g-a-theme/
you said between forum headers, so that sounds like on the group view (main page)... so you would edit the spGroupView.php template... just write out our code, using php echo, where you want it.. you should be able to see the forum head template tag...
let us know if you have problems trying...
Visit Cruise Talk Central and Mr Papa's World
Hello,
Thank you - the looks very promising.
Only when I paste it into the spgroupview.php in themes, it pasts an advert under the heading of every subsection of each 'forum'.
What I was hoping to do. For example on the main view when you have grouped into different forums. E.g a forum for gaming (ps3,xbox360 etc being the subforums) and then another forum for say...mobile phone or something (brands being the sub forums etc).
In between those points I'd like an advert. If that makes sense?
e.g:
-----------------------
Gaming Forum RSS
ps3 blah blah posted last
xbox 360 same detail
-----------------------------------
Advert here
-------------------------------
Mobile Forum RSS
Nokia blah post
Uh, some other brand etc
-----------------------------------
Advert Here
if I follow you, put it after:
sp_ForumIndexSubForums('', __sp('Sub-Forums'), __sp('Browse topics in %NAME%'));
sp_SectionEnd('', 'forum');
Visit Cruise Talk Central and Mr Papa's World
ah... okay... then after this:
sp_SectionEnd('', 'groupHeader');
dont be afraid to play around you can always put it back... let me know how that works...
Visit Cruise Talk Central and Mr Papa's World
lol. thanks! appreciate the kind words! glad to help.
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)