Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Display ads in the reply box Details »»
Display ads in the reply box
Version: 1.00, by final kaoss final kaoss is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.x Rating:
Released: 11-11-2010 Last Update: Never Installs: 34
Supported Template Edits
Re-useable Code Code Changes Translations  

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.

Screenshots

File Type: jpg ads-in-thread.jpg (84.2 KB, 0 views)
File Type: jpg ads-above-quick-reply.jpg (84.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
sodasusu, thang28101993

Comments
  #2  
Old 11-12-2010, 03:26 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

interesting placement
do you members not mind the ads?
Reply With Quote
  #3  
Old 11-12-2010, 03:30 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Haven't had one complaint so far and they've been in the editor for about 8 months now

It used to be below the icon legend.... but how often do you find yourself scrolling down that far lol.
Reply With Quote
  #4  
Old 11-17-2010, 12:21 AM
M@rc M@rc is offline
 
Join Date: Oct 2010
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by extreme-gaming View Post
Haven't had one complaint so far and they've been in the editor for about 8 months now
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,
Reply With Quote
  #5  
Old 11-18-2010, 11:51 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 11-18-2010, 02:19 PM
schlottkej schlottkej is offline
 
Join Date: Apr 2007
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by M@rc View Post
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...
Reply With Quote
  #7  
Old 11-18-2010, 04:15 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
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
Reply With Quote
  #8  
Old 11-22-2010, 11:31 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by extreme-gaming View Post
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
Reply With Quote
  #9  
Old 11-23-2010, 08:32 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no problem enjoy!
Reply With Quote
  #10  
Old 12-23-2010, 10:32 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*bumped
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 12:35 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04926 seconds
  • Memory Usage 2,335KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete