vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Integration with vBulletin - Adsense Leaderboard on Non-Index Pages (https://vborg.vbsupport.ru/showthread.php?t=190052)

Kaelon 09-04-2008 10:00 PM

Adsense Leaderboard on Non-Index Pages
 
What is the Adsense Leaderboard?

This is a port of my previous template modification for vBulletin 3.6.x to vBulletin 3.7.x; this modification places a Google Adsense 728 x 90 Leaderboard Ad Unit under the navigation bar on all vBulletin-powered pages that call the navbar, except for Forumhome (index). The integration of the Google Adsense is placed in a simple, elegant, style-compliant box. Unlike my previoous modification, this one makes use of the new vBulletin 3.7 Ad Templates.

If you use this template modification and enjoyed it, please:


How to Install

In Admin CP > Styles & Templates > Style Manager > Edit Templates, edit the ad_navbar_below template, and insert the following:

Code:

<if condition="THIS_SCRIPT != 'index'">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="border-bottom-width: 0px">
<tr><td class="alt1" align="center">
<script type="text/javascript"><!--
google_ad_client = "your-pub-id-here";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_color_border = "222222";
google_color_bg = "222222";
google_color_link = "FFB019";
google_color_text = "D7CEA4";
google_color_url = "D7CEA4";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td></tr>
</table>
<br />
</if>

Simply replace the "your pub id here" reference above with your Google Adsense Publisher ID, and customize the google_color scheme to match the link, text, and background colors of your site (preferrably matching up with link, alt1 text, and alt1 background). Then, you're all set! Please remember, that if you enjoy this modification and would like to encourage me to release other stylish Adsense integrations, please mark this modification as installed. Thank you!



Demonstrations

DieselMinded 09-04-2008 10:56 PM

I cannot find the Forums on your Site

/me Hates vbadvanced

Kaelon 09-04-2008 11:07 PM

Quote:

Originally Posted by DiesellMinded (Post 1614715)
I cannot find the Forums on your Site

[high]* Kaelon Hates vbadvanced

[/high]
Sorry, link updated. Click "Play". :)

DieselMinded 09-04-2008 11:11 PM

Thanks for the Tip , My Google ads already show on non indexed pages so this mod confuses me.

Much More intrigued by your Gift Subscription Mod - ill Buy a Copy Can you point me in the right direction?

Markets Where 09-05-2008 09:04 AM

your site is very slow to open.

Kaelon 09-05-2008 12:24 PM

Quote:

Originally Posted by Markets Where (Post 1614966)
your site is very slow to open.

I'm showing page generation on 0.04 seconds. Maybe you accessed it during one of our scheduled cron/backups. Your sites, on the other hand, all time-out.

Thanks for the support, everyone. Please remember to mark this add-on as installed and I will be glad to release other Adsense template contributions.

:Judge: 09-07-2008 05:18 AM

So is it bad to have Adsense on the forum index page?

Kaelon 09-07-2008 02:40 PM

Quote:

Originally Posted by :Judge: (Post 1616366)
So is it bad to have Adsense on the forum index page?

Yes, for two reasons:

1. Google won't generate relevant advertising on your front page because its too varied and there's often insufficient information to push relevant advertising.

2. It clutters up space for one of the lowest return-on-real-estate points for your website.

DieselMinded 09-07-2008 06:30 PM

I have a google ad on my forum index and it shows relevant ads

jambo_1969 09-08-2008 10:53 AM

Quote:

Originally Posted by DiesellMinded (Post 1616820)
I have a google ad on my forum index and it shows relevant ads

Mine too.....


All times are GMT. The time now is 01:30 AM.

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.01045 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete