![]() |
Google Adsense (or other) in a Block like a Thread on FORUMDISPLAY
1 Attachment(s)
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> 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']"> 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} 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"> 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:
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 !!! |
Any demo to show what it looks like? Thanks.
|
or screen shot will be fine too.
|
My bad, screen shots added.
|
dear Leo Brazil very very thanks for your quick cooperation and help
but please there is minor different between what i want and the code you give although your code is very useful What i want that Google Adsense appear as it is threads like the below pictures in vb 3.8 the Google Adsense appear as threads in thredlist can we do the same thing with vb 4 https://vborg.vbsupport.ru/attachmen...9&d=1186315438 like this mod do in vb 3.8 https://vborg.vbsupport.ru/showthread.php?t=154361 i wait for your help if it's possible |
1 Attachment(s)
also the attached pictures can clear more what i main
https://vborg.vbsupport.ru/attachmen...4&d=1267828523 |
is that against google policy or not??
please can you tell me |
Quote:
if any one can catch required code |
Dear ,Leo Brazil i wait you
|
thanks khaled to confirm that
so can i install the other mod of Leo Brazil (post inside thread ) with this mod????? see this if you want it i will pm you http://www.baghdad4ever.net/vb/forumdisplay.php?f=175 |
Quote:
and good site |
Quote:
Quote:
Great site by the way, good to see my mod installed and work good on RTL language. Quote:
|
Quote:
Very thanks Leo Brazil , i think you forget me , take your time and thanks again for your cooperation |
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
|
Khalled,
Updated this one just for you. Now you'll have the option to have your adsense to be showed just like this: https://vborg.vbsupport.ru/external/2010/03/56.jpg |
Quote:
very very thanks for your help your are very marvelous man |
Quote:
very very thanks for your help your are very marvelous man |
thankssssss work fine !!!!!!!
|
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']"> |
Thanks, worked and installed/modified.
|
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. |
Quote:
it's work good |
Installed, Thanks
|
Is there anyway I can use this modification on my 3.8 VB?
|
it would be awesome to put adsense within cms articles or blog post. Is that possible at all?
thanks |
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. |
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 |
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 ;) |
Really like this for sticky adds, thank you!.
|
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. |
can anyone help me I'm trying to get this to have 6 images in it like this one
http://img.photobucket.com/albums/v3...77/ffsfdfd.jpg here is the code I'm trying to do it with Code:
<ol> |
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. Quote:
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 |
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) |
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 |
Hi:
I have been looking for this simple way for ads and here it is! Thanks. Installed, voted and nominated. Victor:up: |
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 |
Anyone know the answer why am I getting this error when this mod is enabled?
Quote:
|
I tried adding all the different types of code but nothing happens on my forum - legalhelp(dot)org - anyone have any suggestions
|
Excelent!! Thanks!
|
Not showing in VB 4.2
|
All times are GMT. The time now is 03:10 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|