menu
[ Updated threads · New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Coredownloadz Forum » Web developments » Php BB Hacks and tricks » place Ads before or after the first post in a topic
place Ads before or after the first post in a topic
guitarmantraDate: Thursday, 2009-06-04, 8:27 AM | Message # 1
Colonel
Group: Administrators
Messages: 220
Awards: 3
Reputation: 2
Status: Offline
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

<!-- IF U_ACP --><br /><strong><a href="{U_ACP}">{L_ACP}</a></strong><!-- ENDIF -->

Add your code after that line. You may need to include one or two <br /> 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

<!-- INCLUDE overall_header.html -->

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

<!-- BEGIN postrow -->

Code

<!-- END postrow -->


www.coredownloadz.ucoz.com
 
guitarmantraDate: Thursday, 2009-06-04, 8:28 AM | Message # 2
Colonel
Group: Administrators
Messages: 220
Awards: 3
Reputation: 2
Status: Offline
Here is the sample ad code:
Code


    <!-- IF postrow.S_FIRST_ROW -->
    <div class="post bg2">
       <div class="inner"><span class="corners-top"><span></span></span>

       <div class="postbody">
          <h3>{postrow.POST_SUBJECT}</h3>
          <p class="author"><strong>Sponsor</strong></p>

          <div class="content" style="text-align: center;">
             Insert your ad code here
          </div>
       </div>
      

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


www.coredownloadz.ucoz.com
 
Coredownloadz Forum » Web developments » Php BB Hacks and tricks » place Ads before or after the first post in a topic
  • Page 1 of 1
  • 1
Search: