Avatar of admin

by

How to Place Ads After the First Post in a phpBB Topic?

May 21, 2008 in Questions and Answers

Have you ever been reading a phpBB forum when all of a sudden you were confronted with an advertisement after reading a post? An ad so cleverly situated you just had to take the time to notice it and give it a click just out of respect for how it was delivered so sneakily to you after you finished reading something useful rather than before… If you had not finished reading the post because it wasn’t any good you would have never seen the ad. By placing ads after the first post in a topic in phpBB you are displaying your sponsors only after having earned the right to do so rather than bombarding visitors right away. You are also increasing the chance that your ad gets noticed.

That being said, how the heck do you actually do it?

First, open up “viewforum_body.html”. If you are using the prosilver theme you can find this file here:

styles/prosilver/template/viewforum_body.html

Now search that file for the following text:

<!-- END postrow -->

Right before the line above, paste the following code into the file:

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

<div class=”postbody”>
<h3>Sponsor</h3>

<div class=”content” style=”text-align: center;”>
THE CODE FOR YOUR AD GOES HERE
</div>
</div>

<dl class=”postprofile” id=”profile0000″>
<dt>
<strong><u>Featured Sites</u></strong>
</dt>

<dd><a href=”http://www.looble.org”>Looble… Looble!</a></dd>
<dd><a href=”http://battlecity.org/”>Battle City</a></dd>
<dd><a href=”http://www.software-engineer-training.com/”>Software Engineer Training</a></dd>
</dl>

<div class=”back2top”><a href=”#wrap” class=”top” title=”{L_BACK_TO_TOP}”>{L_BACK_TO_TOP}</a></div>
<span class=”corners-bottom”><span></span></span></div>
</div>
<hr class=”divider” />
<!– ENDIF –>

Make sure you place your ad code where I have bolded text above. Upload your new file and you are set! Out of love, we highly recommend you at least keep the Software Engineer Training link as one of your featured sites.

8 responses to How to Place Ads After the First Post in a phpBB Topic?

  1. It is great to be a member, i hope to learn from all your input

  2. Hi there,

    Just a quick hello post here, nothin special. Looks like a decent forum so I’m happy to be involved. lol, that’s really all I got. :)

  3. Hi Im completely new here at http://www.software-engineer-training.com so unclear if i should write-up this here in this

    You all seem very helpful here at http://www.software-engineer-training.com

    .

    I love to play card games online but my institution has blocked me from my favourite web-site, can someone suggest a website which includes a good selection of flash games ??

  4. Hack again?!

  5. Hello everyone. I’m creating my first website and I want to include some videos. I searched Google and I found some sites with informaion but none of them is friendly enough for a beginner like me… I can’t understand anything since I don’t have any experience with html/php coding… so if any of you knows a good place with recourses for newbies please share! Thanks.

  6. Thanks, nice post. Keep up the good work

  7. Theme rullez :)

  8. Man .. Beautiful .. Superb .. I’ll bookmark your web site and take the feeds alsoI am glad to seek out numerous useful info right here in the submit, we’d like work out extra techniques on this regard, thank you for sharing. . . . . .

Leave a reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>