Hello to any fellow PHPBB users. I would like to use vbulletin, but at this point phpbb being free is too good to pass up. Anyways, what I want to do is add my adsense code after the first post of any thread. I have scoured PHPBB forums etc... with no luck. Lots on how to add it to the header or footer, but nothing after the first post. I have seen this in other forums (eg. [nourl]http://www.techimo.com/forum/t126440.html[/nourl] Anyone have any thoughts on where or how I would do this? PS: Techimo uses vbulletin, but you get the idea...
I know how to do it on vBulletin... does that help? It shouldn't be too hard with phpBB I wouldn't think.
I'd be interested in knowing how to do that Shawn. I'm using VB 3.03. Can you PM me? If you don't have the time can you point me to a resource? Sorry NC, I'm not trying to highjack your thread.
In the postbit template, use this logic towards the end of it: <if condition="$post[postcount] % 10 == 1"> Your AdSense code here... </if> Code (markup): That assumes you display 10 posts at a time. You could get fancy and look to see how many posts per page the user is set to see (in case they change the default), but I was lazy. You could also use the FIRSTPOST variable instead, but my way lets you put it after whatever post you want by setting the 1 to whatever you want.
I believe the two are similar, I have seen that code somewhere before. I would assume using <td> etc... to display would work as well? Or would you leave it and let the display be set to follow the threads?
I saw another forum doing this, but no idea how it was done. You could go there and ask where they found it. The site is http://selfstartersweeklytips.com/forum/
Search 'Banner AdSense After First Post' or 'Banner Ad After First Post' (I don't remember exactly) at phpBB. It works fine.
Thanks guys, I had found that thread a while ago, but I have had a buddy look at implementing for me. I am trying to figure the co op ad network...
It was tricky while under development. I don't remember the whole installation process, but there are two zip's find and read'em plus the whole thread. As far as I remember a database mod is required too.
To install Adsense just find your overall header or overall footer files, and then enter the javascript code. These files are usually found in the template folder. It's simple! I've just added it to mine. Darren
Thanks for these posts! I was curious on how to do it but i just haven't gotten around to doing it or spending the time trying to figure it out. I appreciate it!
actually - to ad adsense to VB - just add the adsense code to whatever template you want it to show, where you want it to show. You can add it almost anywhere. For example - to add it above the quick reply box - just look for $quickreply in your showthread template and insert the adsense code above $quickreply. Play with it.
I know this is an old thread but no one really gave you a solution. I finally found one on the net, check this thread I created out.
What i did was a while ago install Extreme styles mod .. If you got that mod installed. Type the following code in your viewtopic_body.tpl template file
There's no mods to install for this fix, you just have to edit the viewtopic.php and viewtopic_body.tpl files.
OK didnt notice that. Well anyways i wanted to have the mod installed . It allows me to code php directly into my files through the forum admins section.