Subscribe and/or follow
Recent Entries
- My new Mac Mini
- Guest Post: How To Display Ad Blocks In Specific Posts In WordPress
- USB Sound Blaster Live! 24-bit on Windows 7
- Google has ajaxed their search engine
- Opera 10 equal to FireFox 3 or even better ?
- Save your code snippets with Snippely
- Re-inserting ads on the blog and using a free theme
- Always-on-top solution for Windows OS
- Bots following me on Twitter ?
- Best way to inspect dead links using your 404 page
Popular Entries
- phpbb3 should have native support for quick edit and quick reply
- Latest posts standalone script for phpbb3 and phpbb2
- Integrate RSS and ATOM into a phpbb3 based forum
- Top 10 phpbb3 styles
- Integrate AdSense into phpbb3
- Remove ads from Yahoo! Messenger 9
- K2 RC6 is now available and compatible with WP 2.5
- Google's PageRank Update outcome
- RSS awareness day
- Care to read some reviews about web hosting ?
Integrate AdSense into phpbb3 – part 2
In my last post i tried to cover the basics of the integration process as far as the prosilver theme and all the other prosilver based themes out there. Basic styling and some basic code insertion. I promised that i would post a tutorial (and many folks asked me to) regarding the integration of AdSense (or other ads) into subsilver2 based themes, so here it goes.
This time i will keep things related to CSS much more simpler (almost non-existent) as i will make use of default classes. Instead of using an ad block that fits in relatively neat i will give an example of using a table. The visual effect will be almost the same. So feel free to play with some CSS and HTML code (why not even with some PHP as you might want to implement a post counter or other useful queries) to obtain a seamless integration of what i will try to cover here. Practically all the spots where ads will be placed will remain the same as for a prosilver based theme so this time i won’t post screenshots. If you want to make an ideea of how things look check out the other post. So with no further delays here comes the actual guide.
Displaying ads one the index page
Displaying ads one the viewforum page
Displaying ads one the viewtopic page
<div class="postbody">{postrow.MESSAGE}</div>and BEFORE it add the following
<div class="postbody">{postrow.MESSAGE}</div>add the following code
Displaying ads one the search results page
<div class="gensmall" style="float: {S_CONTENT_FLOW_BEGIN};">Well, that covers pretty much the basics of an AdSense integration in a subilsver2 based theme for phpbb3. If you have any questions feel free to leave me a comment.