vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=261040

Replace "Display Options" In Forum Display With "Google Adsense"
by ShawneyJ
28 Mar 2011 05:40

1 Attachment(s)
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 :rolleyes:

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.

FreshFroot 31 Mar 2011 06:45

Thanks for the tips. This will come in handy!

al2thero 25 Nov 2012 18:59

thank you


All times are GMT. The time now is 16:57.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.