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)
-   -   Miscellaneous Hacks - Adsense in ibProArcade Skin (https://vborg.vbsupport.ru/showthread.php?t=173386)

popowich 03-17-2008 10:00 PM

Adsense in ibProArcade Skin
 
Hello,

This is how I did a Google Adsense placement in the middle center of my ibProArcade main page.

The ad will display within the "Information about Tournaments in the Arcade" table.

This placement was specifically requested by an advertiser for my site.

To install, edit this file:

/arcade/skins/skin_Arcade.php

As of ibProArcade v2.6.6+ go to line 420 and add this code, but substitute in your own adsense code:

PHP Code:

<tr><td class="alt1">
<
center>
<
script type="text/javascript"><!--
google_ad_client "pub-4465038208149639";
/* Arcade Leaderboard */
google_ad_slot "9688927513";
google_ad_width 728;
google_ad_height 90;
//-->
</script>
<
script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</
script>
</
center>
</
td></tr


This works with vBulletin 3.6.x too.

You can view this placement on my site: Live Demo

Any questions, please let me know. Thanks!

-Raymond

Zaiaku 03-18-2008 04:45 PM

Actually this is a pretty good idea. Although arcade pages don't have much of any content.

SEOvB 03-18-2008 07:23 PM

if it shows up on all pages, why not just edit the arcade template in the admincp

popowich 03-18-2008 08:07 PM

The arcade template will only let you put it under the navbar, which looks ugly if you already have an existing leaderboard in the navbar, or around the footer, which in my case is already a duplicate. Adding the adsense to the skin allows you to have a targetable ad for advertisers that only exists on the arcade page. It makes sense for my site, maybe others, maybe not everyone. If you take a look at my site you will see how it works for me. If it helps you too, then great! :)

-Raymond

popowich 03-18-2008 08:11 PM

The code at line 420 gets inserted after this block of code:

PHP Code:

        <div class="tborder">
        <
table width='100%' border="0" cellspacing="1" cellpadding="4">
                        <
tr>
                        <
td align="center" width="100%" nowrap="nowrap" class="tcat">{$ibforums->lang['infobox_tourneytitle']}</td>
                        </
tr

Hope that helps!

-Raymond

SEOvB 03-18-2008 10:25 PM

Quote:

Originally Posted by popowich (Post 1468177)
The arcade template will only let you put it under the navbar, which looks ugly if you already have an existing leaderboard in the navbar, or around the footer, which in my case is already a duplicate. Adding the adsense to the skin allows you to have a targetable ad for advertisers that only exists on the arcade page. It makes sense for my site, maybe others, maybe not everyone. If you take a look at my site you will see how it works for me. If it helps you too, then great! :)

-Raymond

Thanks for clarifying :D

jim6763nva 03-19-2008 02:54 AM

Hmmmm I tried adding the code but nothing displays for me. :(

Jim

popowich 03-19-2008 11:54 AM

It can take up to 10 minutes for adsense code that has just been created to start displaying ads on your web site.

-Raymond

jim6763nva 03-19-2008 02:37 PM

Quote:

Originally Posted by popowich (Post 1468626)
It can take up to 10 minutes for adsense code that has just been created to start displaying ads on your web site.

-Raymond

It's been 12 hours, if not more. It didn't show the placeholder where it normally shows "this page can not be displayed".

Jim

popowich 03-19-2008 02:42 PM

Are you using the the ibProArcade skin?

The modification has no effect on the v3arcade skin.

If you see no change it sounds like the file may not have been updated and saved properly.

-Raymond


All times are GMT. The time now is 11:21 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.04367 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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