Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
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
Mod Version: 1.01, by Leo Brazil (Member) Leo Brazil is offline
Developer Last Online: Aug 2017 I like it Show Printable Version Email this Page

vB Version: 4.0.x Rating: (4 votes - 5.00 average) Installs: 65
Released: 04 Mar 2010 Last Update: 12 Mar 2010 Downloads: 273
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 http://www.vbulletin.org/forum/showthread.php?t=237136


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Just place the code below it.

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

Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Just place the code below it.


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


Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


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

Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	above-sub.jpg
Views:	2350
Size:	37.4 KB
ID:	113606   Click image for larger version

Name:	below-sub.jpg
Views:	2117
Size:	53.9 KB
ID:	113607   Click image for larger version

Name:	after-sticky.jpg
Views:	2534
Size:	73.4 KB
ID:	113609   Click image for larger version

Name:	Sticky.jpg
Views:	5156
Size:	93.0 KB
ID:	113984  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Mini Mods Google Adsense (or other) in a Block like an Individual Post Leo Brazil vBulletin 4.x Template Modifications 15 25 Sep 2013 17:17
Forum Display Enhancements Kpt-Ad Forumdisplay + Google Adsense kaptanblack vBulletin 3.6 Add-ons 60 01 Jun 2010 04:14

  #31  
Old 19 Nov 2010, 15:05
Markos Markos is offline
 
Join Date: Aug 2006
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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

it doesn't turn out right instead of going along the way it goes up and down the way
Reply With Quote
  #32  
Old 05 Jan 2011, 11:14
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
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.

Originally Posted by medicalforums View Post
Is there anyway I can use this modification on my 3.8 VB?
Not this one, as this code is for vB4 and vB3.X code is quite different.

Originally Posted by asus78 View Post
it would be awesome to put adsense within cms articles or blog post. Is that possible at all?
It's possible for sure, but would need some time to work on it. I don't have full package of CMS and Blogs but If I decided to move my forums to vB4 I'll probably work on something., but not for now.

Originally Posted by onehost View Post
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
Tried to see what happened but couldn't.
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.

Originally Posted by lubbie View Post
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
I can tell you this is not related to this mod at all.
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.

Originally Posted by Dr Longhorn View Post
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.
Have you checked this one ?
http://www.vbulletin.org/forum/showthread.php?t=236313
Reply With Quote
  #33  
Old 14 Mar 2011, 12:46
wraggster wraggster is offline
 
Join Date: Mar 2005
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)
Reply With Quote
  #34  
Old 12 Aug 2011, 14:07
khalled khalled is offline
 
Join Date: Apr 2007
Originally Posted by Leo Brazi
If you have other ideas how to use and don't mind to share with us, make your self comfortable for it.
Dear Leo Brazil
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
Reply With Quote
  #35  
Old 12 Aug 2011, 15:31
victorvu victorvu is offline
 
Join Date: Mar 2011
Thumbs up

Hi:

I have been looking for this simple way for ads and here it is! Thanks.

Installed, voted and nominated.

Victor
Reply With Quote
  #36  
Old 02 Sep 2011, 16:31
BrightStar's Avatar
BrightStar BrightStar is offline
 
Join Date: Nov 2008
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
Reply With Quote
  #37  
Old 09 Sep 2011, 22:05
BrightStar's Avatar
BrightStar BrightStar is offline
 
Join Date: Nov 2008
Anyone know the answer why am I getting this error when this mod is enabled?

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: gaip_code1 in [path]/includes/functions.php on line 4161
Reply With Quote
  #38  
Old 24 Sep 2011, 05:48
byalik byalik is offline
 
Join Date: Oct 2006
I tried adding all the different types of code but nothing happens on my forum - legalhelp(dot)org - anyone have any suggestions
Reply With Quote
  #39  
Old 01 Apr 2012, 23:18
ptceuro ptceuro is offline
 
Join Date: Jan 2012
Location: U.S.A
Excelent!! Thanks!
__________________
Make 5000$ Per Month with PTCeuro.com
The PTCeuro’s prizes program allowed you to have so many awards every month, Some of those prize could be some cash (Up to 5000$ per month) and with only a 100$ minimum payout.
Reply With Quote
  #40  
Old 12 Sep 2013, 19:53
dany_danay dany_danay is offline
 
Join Date: Jul 2009
Not showing in VB 4.2
Reply With Quote
  #41  
Old 15 Sep 2013, 23:40
datoneer datoneer is offline
 
Join Date: Jul 2011
Thanks it works in 4.2.1. But how to remove this?
Reply With Quote
  #42  
Old 25 Sep 2013, 15:40
Edgespeeder06 Edgespeeder06 is offline
 
Join Date: Nov 2009
Hi, awesome plugin but I need support with Firefox, it's creating a height for the box that is double the size the height of the ad.

http://www.njstangers.org/forum/must...-sponsors-223/

Please help
Reply With Quote
  #43  
Old 25 Sep 2013, 17:16
Edgespeeder06 Edgespeeder06 is offline
 
Join Date: Nov 2009
anyway to added it before a thread starts at the top of the thread to just thread pages?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:01.

Layout Options | Width: Wide Color: