Log in

View Full Version : Show Thread Enhancements - Display ads in the reply box


final kaoss
11-11-2010, 10:00 PM
First go to your Style Manager and open the skin of your choice.

Expand the Editor Templates and open editor_clientscript

Find

<!-- Editor Scripts -->

Below that add your adsense code like so. (do not copy this adsense ad, instead add your own adsense leaderboard that is 728 x 90) And don't forget to add center tags.

<center>
<script type="text/javascript"><!--
google_ad_client = "pub-*****************";
/* 728x90, created on a certain day */
google_ad_slot = "not saying";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>


Here is where your new ads will be found.

Brandon Sheley
11-12-2010, 03:26 PM
interesting placement
do you members not mind the ads?

final kaoss
11-12-2010, 03:30 PM
Haven't had one complaint so far and they've been in the editor for about 8 months now :D

It used to be below the icon legend.... but how often do you find yourself scrolling down that far lol.

M@rc
11-17-2010, 12:21 AM
Haven't had one complaint so far and they've been in the editor for about 8 months now :D
That's great, but your members might not share the same opinion as other forum owner's members, :(

This is an interesting placement, as Loco said. Nice tutorial, :)

BadgerDog
11-18-2010, 11:51 AM
Great idea .. :)

Tried some testing on our v4.04 and unfortunately, it seems to to cause the right border of the ad to "spill" over the border of the screen when attempting "New Thread"...

Size is correct?

Code is:


<center><script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxx";
/* 728x90, created 1/4/10 */
google_ad_slot = "999999999";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>

Regards,
Doug

schlottkej
11-18-2010, 02:19 PM
That's great, but your members might not share the same opinion as other forum owner's members, :(

Heh... he can't really speak for other communities...

final kaoss
11-18-2010, 04:15 PM
Can you give me a screenshot or link? Are you using a style that isn't very wide?

Yes the size that I linked is correct, it's a copy from the screenshots I took.

Great idea .. :)

Tried some testing on our v4.04 and unfortunately, it seems to to cause the right border of the ad to "spill" over the border of the screen when attempting "New Thread"...

Size is correct?

Code is:


<center><script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxx";
/* 728x90, created 1/4/10 */
google_ad_slot = "999999999";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>

Regards,
Doug

BadgerDog
11-22-2010, 11:31 AM
Can you give me a screenshot or link? Are you using a style that isn't very wide?

Yes the size that I linked is correct, it's a copy from the screenshots I took.

I went with a smaller horizontal Adsense ad and that worked ... thanks .. :)

Still testing to see if it adds value to our forums or not ...

Appreciate your efforts ... :up:

Regards,
Doug

final kaoss
11-23-2010, 08:32 PM
no problem enjoy!

final kaoss
12-23-2010, 10:32 PM
*bumped

LeventX
12-24-2010, 05:30 AM
Thanks...

Blackbeard02
12-24-2010, 09:27 AM
Very nice, thanks

final kaoss
12-29-2010, 03:09 PM
your welcome, it improved my adsense clicks by almost triple.

Winter Sonata
01-01-2011, 07:36 AM
That works great !!!!

final kaoss
02-07-2011, 02:30 PM
Mod is still working for all versions of vbulletin 4.x including 4.1.2

scottct1
02-18-2011, 02:35 PM
The ad is showing ABOVE by quick reply box but not IN the quick reply box. What am I doing wrong? I got my code directly below the <!-- Editor Scripts -->

I am on vb 4.1.0 PL2.

final kaoss
02-18-2011, 08:57 PM
It's not coded to show up in the quick reply box but rather above it. On newreply.php pages it will show up within the editor.

baghdad4ever
05-28-2011, 04:15 PM
is it consider violation to google policy or not?

setishock
05-30-2011, 11:17 AM
You know that would be a down and dirty way to put up a small explanation of some of the buttons/features of the editor. I don't do the ad thing at my place but that would be ok for adding messages or help.

caciocode
05-31-2011, 06:40 AM
Tagged. Adsense does not mind?

thang28101993
04-20-2013, 04:56 PM
Thanks for so nice mod!
How we can control it show on some forum - not all forum and thread?
Thanks in advanced!

walas87
04-23-2013, 10:45 AM
Thanks

scottkoz20
02-15-2017, 12:30 AM
thanks for the heads up on this mod final kaoss

Is there anyway that the ad can be moved either above the title OR below the editor itself?

final kaoss
02-15-2017, 12:34 AM
I'm not sure, I really haven't bothered to tinker around with it since but if you find unfavorable results, you know where to change the code :)

I would say dig in with chrome and press ctrl+shift+i to enter inspection mode. Then ctrl+shift+c to enter "select an element in the page to inspect it". That should give you a head start.