vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Display ads in the reply box (https://vborg.vbsupport.ru/showthread.php?t=253555)

final kaoss 11-11-2010 10:00 PM

Display ads in the reply box
 
1 Attachment(s)
First go to your Style Manager and open the skin of your choice.

Expand the Editor Templates and open editor_clientscript

Find

Code:

<!-- 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.

Code:

<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

Quote:

Originally Posted by extreme-gaming (Post 2121005)
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:

Code:

<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

Quote:

Originally Posted by M@rc (Post 2122629)
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.

Quote:

Originally Posted by BadgerDog (Post 2123146)
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:

Code:

<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

Quote:

Originally Posted by extreme-gaming (Post 2123231)
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.


All times are GMT. The time now is 07:14 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
  • Page Generation 0.01113 seconds
  • Memory Usage 1,759KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete