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 |
#12
|
|||
|
|||
Quote:
and good site |
#13
|
||||
|
||||
Quote:
Quote:
Great site by the way, good to see my mod installed and work good on RTL language. Quote:
|
#14
|
|||
|
|||
Quote:
Very thanks Leo Brazil , i think you forget me , take your time and thanks again for your cooperation |
#15
|
||||
|
||||
if u need it to be just like threads , u need to copy ALL contents of threadbit and paste it in forumdisplay in appropriate area as mentioned above by leobrazil , and just replacing title by adsense coe and inset some random values for replies and vies and last post
|
#16
|
||||
|
||||
Khalled,
Updated this one just for you. Now you'll have the option to have your adsense to be showed just like this: |
#17
|
|||
|
|||
Quote:
very very thanks for your help your are very marvelous man |
#18
|
|||
|
|||
Quote:
very very thanks for your help your are very marvelous man |
#19
|
|||
|
|||
thankssssss work fine !!!!!!!
|
#20
|
|||
|
|||
Dear Leo Brazil
i use your code after the following in search_resultlist to add the block at the end of search result - after the following add the adsense code Code:
<vb:if condition="$show['results']"> <ol id="searchbits" start="1" class="searchbits"> {vb:raw searchbits} </ol> |
#21
|
|||
|
|||
Thanks, worked and installed/modified.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|