Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions



Please Register to get full access to the forums.
Reply
 
LinkBack Thread Tools Display Modes



#1   11-26-2006, 10:23 PM
[Template] Add an Ad After the First Post


What this modification will do is add a Add, your choice, below the first post of a thread. There are many ways that you can display the ads, I am going to show a couple here. The possibilities are as endless as your imagination

336x280 or similar ad after the first post
In either Postbit or Postbit_legacy place at the end of the template:
HTML Code:
<if condition="$show['guest']"> <if condition="!$GLOBALS['FIRSTPOSTID']"> <div style="padding-top: 5px;"></div> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%"> <tr> <td class="thead" colspan="2">Advertisement
</td> </tr> <tr> <td class="alt2" valign="top" width="175"> <span class="bigusername">Google</span><br /> <span class="smallfont">Ads by Google</span><br /> <img src="http://www.conflictingviews.com/images/misc/1.jpg" alt="" /> </td> <td class="alt1">
Ad Code Here
</td> </tr> </table> </if> </if>
This will produce an ad that looks like this and be for an 336x280 advertisement:
Ad After First Post With Google

You can replace the Google image with anything you want if you use another type of ad.

728x90 ad or similiar after the first post
In either Postbit or Postbit_legacy place at the end of the template:
HTML Code:
<if condition="$show['guest']"> <if condition="!$GLOBALS['FIRSTPOSTID']"> <div class="firstpostad">
Ad Code Here
</div> </if> </if>
then go to Style Manager > All Style Options and at the bottom under Additional CSS Definitions add the following at the bottom:
HTML Code:
.firstpostad { background-color: #F5F5F5; border: 1px solid #0B198C; padding: 5px; margin-top: 5px; text-align: center; }
and adjust it to how you see fit with the styling. It will produce an ad similiar to:
728x90 Ad After First Post
Attached Images
File Type: jpg firstpostad1.jpg (11.0 KB, 51 views)
File Type: jpg firstpostad2.jpg (5.4 KB, 32 views)
Quote   |  



#2   11-27-2006, 10:12 PM


hi brent, i would like to do this? can i have more than 1 google add on my page at a time? if so, do i just use the same code or do i get another code to add?
Quote   |  



#3   12-09-2006, 04:50 AM


Hi mate;
you say 'The template'

What template are we talking about here? :S lol

BTW; love te site ;)
Quote   |  



#4   12-09-2006, 01:37 PM


Quote:
Originally Posted by Daveo View Post
Hi mate;
you say 'The template'

What template are we talking about here? :S lol

BTW; love te site ;)
Quote:
In either Postbit or Postbit_legacy place at the end of the template:
Postbit or Postbit_Legacy, whichever you use.

Welcome to the site
Quote   |  



#5   12-16-2006, 03:11 AM


For more .....

How To Show A Banner After The First Post In A Thread - vBulletin Community Forum
Quote   |  
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using server time in a template? Soliloquy vBulletin Questions 2 01-29-2008 12:07 AM
Template Question :) kitaaa08 vBulletin Questions 1 11-05-2007 02:04 PM
Need help wiv my template kieran12 vBulletin Questions 3 08-20-2007 04:09 AM
IM Section Template? Yvgeniy vBulletin Questions 4 03-17-2007 01:40 AM
Navbar template changes Brandon vBulletin SEO Tips and SEO Questions 5 11-07-2006 09:46 PM


All times are GMT -6. The time now is 08:13 PM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions
vBulletin Skins, Styles, Templates, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory