Back to vBulletin 4.x Template Modifications

Google Adsense (or other) in a Block like a Thread on FORUMDISPLAY
Mod Version: 1.01, by Leo Brazil

vB Version: 4.0.x Rating: (4 votes - 5.00 average) Installs: 65
Released: 04 Mar 2010 Last Update: 12 Mar 2010 Downloads: 280
Not Supported Template Edits Re-usable Code Translations  

This is a simple code to be added into your FORUMDISPLAY Template that will deliver your adsense or images just like Thread Table and it'll fit the same design you have on your forums.

Khalled had this idea from a vb3 Code and asked me some help because of my other mod: Google Adsense (or other) in a Block like an Individual Post
And this was from where his original idea came from index.php?t=237136

Code:
<ol>
<div id="forumbits" class="forumbits">
<div class="forumhead">
<h2><span class="forumtitle">Sponsored Links</span>
</h2>
</div>
<div class="forumbit_post L2 table">
<div class="forumrow">
<center>-----ADD YOUR ADSENSE CODE GOES HERE----</center>
</div>
</div>
</ol>
Note: Just don't forget to add your adsense code where is indicated.


If you want it below your thread list considering a respective Forumdisplay that plays like a forum and not a category you have to:

On FORUMDISPLAY Template

Find:

Code:
   <vb:if condition="$show['threads']">
    <ol id="threads" class="threads">
     {vb:raw threadbits}
    </ol>
<ol>
Just place the code below it.

If you want it above your subforum list as well as Threadlist you have to:

Find:

Code:
{vb:raw template_hook.forumdisplay_above_subforums}
Just place the code below it.


If you want it below your subforum list as well as Threadlist you have to:


Find:

Code:
{vb:raw template_hook.forumdisplay_below_subforums}

If you want it below your sticky threads you have to:

Find:

Code:
     {vb:raw threadbits_sticky}
    </ol>
Just place the code below it.

Update!!

If you'd like to have your adsense looking just like a thread (see 4th screen shot) use the code below:

Code:
<li class="threadbit dot hot">
<div class="rating0 sticky">
 <div class="threadinfo">
<a class="threadstatus" rel="vB::AJAX" title="Sponsored Links"></a>
 <div class="inner">
 <span class="prefix understate">-----YOUR ADSENSE GOES HERE------</span>
 </div>    
 </div>
 <ul class="threadstats td">
 <li>-</li>
 </ul>
  <dl class="threadlastpost td">
<dd><div class="popupmenu memberaction">-</div>
</dd>
</dl>
</div>
</li>
Just don't forget to replace on the code above with your own adesense.
Note: The code above will look good only if placed as suggested below and will appear like a sticky thread after the sticky ones you already have.

Find:

Code:
 
{vb:raw threadbits_sticky}
</ol>
Just place the code below it.

If you have other ideas how to use and don't mind to share with us, make your self comfortable for it.

Edit: Screen Shots Added:
1- Above Sub Forums
2- Below Sub Forums
3- After Sticky Threads

If you like it, don't forget to mark as INSTALLED !!!

Download

File Type: %1$s Google Adsense (or other) in a Block like a Thread on FORUMDISPLAY.txt (2.6 KB, 273 downloads)

Screenshots

Click image for larger version
Name:	above-sub.jpg
Views:	2365
Size:	37.4 KB
ID:	113606   Click image for larger version
Name:	below-sub.jpg
Views:	2132
Size:	53.9 KB
ID:	113607   Click image for larger version
Name:	after-sticky.jpg
Views:	2551
Size:	73.4 KB
ID:	113609   Click image for larger version
Name:	Sticky.jpg
Views:	5170
Size:	93.0 KB
ID:	113984  

Similar Mods

Mini Mods Google Adsense (or other) in a Block like an Individual Post vBulletin 4.x Template Modifications
Forum Display Enhancements Kpt-Ad Forumdisplay + Google Adsense vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024