Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Replace "Display Options" In Forum Display With "Google Adsense" Details »
Replace "Display Options" In Forum Display With "Google Adsense"
Mod Version: 1.00, by ShawneyJ (Coder/Designer) ShawneyJ is offline
Developer Last Online: Sep 2019 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (2 votes - 5.00 average) Installs: 4
Released: 28 Mar 2011 Last Update: Never Downloads: 0
Not Supported  

I searched all over Vb org for a mod to replace "display options" with a google ad in Forum Display. Sorry if there is some sort of mod out there, but i couldnt find one.
Im not sure if this mod will be at any use to anyone, but i wanted it, i seen it on a forum while searching the net. What i came up with was not spot on the same as the forum i seen it at, but i came damn close to it, if not spot on. Im also not sure if my code is %100 perfect but i have tested on IE and FF and it works like a charm.

First you need to install kira's modification, Big thanks to him/her for that mod.

After you have finished installing kira's mod, NEXT, Find In Forum Display Templates >> FORUMDISPLAY


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



AND REPLACE THE ABOVE CODE WITH THIS:


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


Replace Your Adsense Code With The Part In The Red.

I am using a (336 x 280) google ad, so if you want to put in say a (468x60) ad, find in the code above:

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

and change it to eg:

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

as you can see we are just changing the number in size <td class="alt1" width="470"> change that to suit your needs.

sorry if the code is a bit messy, i had to add the <div> tags around the google ad to make it display with IE

Anyway, just thought i'd share this, a good coder would have worked this out quick, but took me ages lol. cheers.
DEMO: Teen Forums
Screen Shot Below.

P.S I Am Currently Running Vbulletin 3.8.7.

Download Now

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

Screenshots

Click image for larger version

Name:	adsenseads.jpg
Views:	369
Size:	50.4 KB
ID:	127736  

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.
Comments
  #2  
Old 31 Mar 2011, 06:45
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Aug 2005
Thanks for the tips. This will come in handy!
Reply With Quote
  #3  
Old 25 Nov 2012, 18:59
al2thero al2thero is offline
 
Join Date: Aug 2008
thank you
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 20:58.

Layout Options | Width: Wide Color: