The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Google Adsense (or other) in a Block like a Thread on FORUMDISPLAY Details »» | |||||||||||||||||||||||||||||||||||||
Google Adsense (or other) in a Block like a Thread on FORUMDISPLAY
Developer Last Online: Aug 2017
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 https://vborg.vbsupport.ru/showthread.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> 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> If you want it above your subforum list as well as Threadlist you have to: Find: Code:
{vb:raw template_hook.forumdisplay_above_subforums} 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> 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> 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> If you have other ideas how to use and don't mind to share with us, make your self comfortable for it. :up: 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 Now
Screenshots
Show Your Support
|
Благодарность от: | ||
ramesh_umk3 |
Comments |
#32
|
|||
|
|||
can anyone help me I'm trying to get this to have 6 images in it like this one
here is the code I'm trying to do it with 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><!-- Ad Block ONE --> <td width="17%" bgcolor="#76EE00" align="center" valign="top"><a rel="nofollow" href='http://www.scottishexoticreptilesforum.co.uk/payments.php' target='_blank'><img src='http://www.scottishexoticreptilesforum.co.uk/images/ads/ad1.gif' border='0' alt='' style="border-color:#000000" /></a><br> <font face="verdana, arial, helvetica, sans-serif" size="1"> <a rel="nofollow" href="http://www.scottishexoticreptilesforum.co.uk/payments.php" target="_blank">SERF AD BLOCKS</a></font></td> <!-- Ad Block TWO --> <td width="17%" bgcolor="#76EE00" align="center" valign="top"><a rel="nofollow" href='http://www.scottishexoticreptilesforum.co.uk/payments.php' target='_blank'><img src='http://www.scottishexoticreptilesforum.co.uk/images/ads/ad1.gif' border='0' alt='' style="border-color:#000000" /></a><br> <font face="verdana, arial, helvetica, sans-serif" size="1"> <a rel="nofollow" href="http://www.scottishexoticreptilesforum.co.uk/payments.php" target="_blank">SERF AD BLOCKS</a></font></td> <!-- Ad Block THREE --> <td width="17%" bgcolor="#76EE00" align="center" valign="top"><a rel="nofollow" href='http://www.scottishexoticreptilesforum.co.uk/payments.php' target='_blank'><img src='http://www.scottishexoticreptilesforum.co.uk/images/ads/ad1.gif' border='0' alt='' style="border-color:#000000" /></a><br> <font face="verdana, arial, helvetica, sans-serif" size="1"> <a rel="nofollow" href="http://www.scottishexoticreptilesforum.co.uk/payments.php" target="_blank">SERF AD BLOCKS</a></font></td> <!-- Ad Block FOUR --> <td width="17%" bgcolor="#76EE00" align="center" valign="top"><a rel="nofollow" href='http://www.scottishexoticreptilesforum.co.uk/payments.php' target='_blank'><img src='http://www.scottishexoticreptilesforum.co.uk/images/ads/ad1.gif' border='0' alt='' style="border-color:#000000" /></a><br> <font face="verdana, arial, helvetica, sans-serif" size="1"> <a rel="nofollow" href="http://www.scottishexoticreptilesforum.co.uk/payments.php" target="_blank">SERF AD BLOCKS</a></font> </td> <!-- Ad Block FIVE --> <td width="17%" bgcolor="#76EE00" align="center" valign="top"><a rel="nofollow" href='http://www.scottishexoticreptilesforum.co.uk/payments.php' target='_blank'><img src='http://www.scottishexoticreptilesforum.co.uk/images/ads/ad1.gif' border='0' alt='' style="border-color:#000000" /></a><br> <font face="verdana, arial, helvetica, sans-serif" size="1"> <a rel="nofollow" href="http://www.scottishexoticreptilesforum.co.uk/payments.php" target="_blank">SERF AD BLOCKS</a></font></td> <!-- Ad Block SIX --> <td width="17%" bgcolor="#76EE00" align="center" valign="top"><a rel="nofollow" href='http://www.scottishexoticreptilesforum.co.uk/payments.php' target='_blank'><img src='http://www.scottishexoticreptilesforum.co.uk/images/ads/ad1.gif' border='0' alt='' style="border-color:#000000" /></a><br> <font face="verdana, arial, helvetica, sans-serif" size="1"> <a rel="nofollow" href="http://www.scottishexoticreptilesforum.co.uk/payments.php" target="_blank">SERF AD BLOCKS</a></font></td> </center> </div> </div> </ol> |
#33
|
||||
|
||||
Sorry, I've been pretty busy for awhile. Just trying to get back.
When I decided to do this mod, I had in mind to migrate my forum from vB3 to vB4 in a couple of months tops. Point is I was so disapointed with 4.0.X versions that simply couldn't waste my time. You know, bugs everywhere.... Now with 4.1 seems to be better (not perfect for sure) makes me think about getting back into it. Not this one, as this code is for vB4 and vB3.X code is quite different. Quote:
Quote:
The point is, the idea for this code is to use exactly the same design as original vB template. If have a custom design or something, it'll probably look really off. If you have a custom design but still want to use this concep, you'll need to search the code of your won templates. Quote:
By the way, any mistakes you made all you have to do is revert edited templates. Just a tip for you guys that are not familiar in editing templates. Created a new Style and called "Test Style" but don't give access to it for users, just for you. Make any changes you want only on this style, test it, if goes OK all you have to do is copying the whole template and paste on wroking style. This is safer and kind bullet proof. Quote:
https://vborg.vbsupport.ru/showthread.php?t=236313 |
#34
|
|||
|
|||
hi this seems a great mod, is there a way to have this showing to guests only with the option
just like a thread (see 4th screen shot) |
#35
|
|||
|
|||
Quote:
very thanks for your help to us and for your fantastic and High ability to convert ideas to reality Your above sentence Encouraged me to ask you if it possible to make this ad show in different or random position between others threads in the formdispaly instead to be showed in fixed position. thanks for your effort |
#36
|
|||
|
|||
Hi:
I have been looking for this simple way for ads and here it is! Thanks. Installed, voted and nominated. Victor:up: |
#37
|
||||
|
||||
Hiya
Thanks for the mod. It seems to word with my forum. Just a quick question.....what should be the ad type and size? Letter board or text links only? Also I am trying to put a letter board of size 728x90 and it's not centred but aligned to left. How can I fix that? Thanks |
#38
|
||||
|
||||
Anyone know the answer why am I getting this error when this mod is enabled?
Quote:
|
#39
|
|||
|
|||
I tried adding all the different types of code but nothing happens on my forum - legalhelp(dot)org - anyone have any suggestions
|
#40
|
|||
|
|||
Excelent!! Thanks!
|
#41
|
|||
|
|||
Not showing in VB 4.2
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|