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 |
#22
|
||||
|
||||
Quote:
If you want it to appear on top of the search list, add the code right after: Code:
<vb:if condition="$show['results']"> Try it and let people know here if it works. |
#23
|
|||
|
|||
Quote:
it's work good |
#24
|
|||
|
|||
Installed, Thanks
|
#25
|
|||
|
|||
Is there anyway I can use this modification on my 3.8 VB?
|
#26
|
|||
|
|||
it would be awesome to put adsense within cms articles or blog post. Is that possible at all?
thanks |
#27
|
|||
|
|||
I guess so.
You could edit the template to add this as it doesn't currently have an ad location. Try looking through the 'vbcms_content_article_page' template. Only don't know where to insert the code. |
#28
|
|||
|
|||
I tried this on my forum as an inpost ad...
It looked horrible...It looked some spammy ad, did not match nothing. let me know when you come up with something like this: DEMO: Look at this if you want to see how an AD really matches.... http://www.patientenfragen.net/en/vo...ome-t1810.html |
#29
|
|||
|
|||
onehost
Warnung: filemtime() [function.filemtime]: stat failed for [path]/vbet_guestcache/en/_showthread_php_t_181012.zip in [path]/includes/vbenterprisetranslator_functions_guestcache.php (Zeile 53) Oo Von daher.Ich finds auch ehrlich gesagt nicht ok sowas zu schreiben und dann noch auf seinen eigenen Mod zu verweisen. Man k?nnte meinen... Du musst es ja n?tig haben. Wenn Du schon Kritik ?ben willst dann doch konstruktiv! edit. Abgesehen davon ist Deine Variante durchaus ansprechend. Sry everybody, but i could not find any Words for what i wanted to "say", in english |
#30
|
||||
|
||||
Really like this for sticky adds, thank you!.
|
#31
|
|||
|
|||
Hi Leo Brazil,
This works fine with the forumdisplay template, and it looks great. Can you help with editing the postbit or showthread template in order to place an adsense ad in a block, right above the first post of each thread. I got this to work with just an adsense ad, but can't seem to get it to work with a block like in your example images. Can you help with the correct code and position for this? Am I editing the correct templates? Also I would like to have the ad block on the category pages as well as forums, i.e. forums that are set-up as categories. Can you please help with this too? Longhorn. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|