Dienstag, 29. Juli 2008

Advertisements in phpBB3

One frequently asked question is how to add ads in phpBB3 Olympus. The short answer is very simple: start your favourite text editor and open the correct .html template file. But which template file? Here's the longer answer....
First, open your favourite text editor and then....
Ads in the header
If you want ads in your header, open styles/prosilver/template/overall_header.html and add your code at the very end of the file.
Ads in the footer

If you want ads in your footer, open styles/prosilver/template/overall_footer.html
Find:
Code: Select all

{L_ACP}

Add your code after that line. You may need to include one or two
to get line breaks (newlines) if you so desire.

Important note: Check with your ad provider before you put your ads in the header or footer. Some providers (like Google AdSense) only allow ads on pages that have actual content like the view topic or view forum pages.

Ads in view forum page

If you want ads in the view forum page that lists all the topics in that forum, open styles/prosilver/template/viewforum_body.html and add your code after this line:

Code: Select all


Ads before or after the first post in a topic

If you want ads either before or after the first post in a topic, open styles/prosilver/template/viewtopic_body.html

For ads before the first post, find the line below and add the sample code after this line.
Code: Select all

For ads after the first post, find the line below and add the sample code before this line.
Code: Select all

Here is the sample ad code:
Code: Select all





{postrow.POST_SUBJECT}


Sponsor




Insert your ad code here





Sponsor


 









Of course, replace Insert your ad code here with the ad code your provider gives you.
Ads that blend in with the proSilver style
If you want your ads to blend in with proSilver and have a nice blue background with rounded corner images (note: this is not needed if you followed the instructions above for adding the advertisement before or after the first post in a topic), then use this code in any template file where you want your ads to appear:

Code: Select all




Insert your ad code here








Of course, replace Insert your ad code here with the ad code your provider gives you.

If you have any suggestions or find in bugs with this article, please send me a Private Message.

http://www.phpbb.com/kb/article/advertisements-in-phpbb3/
http://forums.digitalpoint.com/showthread.php?t=358338
http://www.phpbb.com/community/viewtopic.php?t=306680
http://www.webmasterworld.com/forum89/2593.htm

Keine Kommentare: