Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications

Reply
 
Thread Tools
Adsense in ibProArcade Skin Details »»
Adsense in ibProArcade Skin
Version: 1.00, by popowich popowich is offline
Developer Last Online: Oct 2019 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 03-17-2008 Last Update: Never Installs: 17
Re-useable Code Code Changes Translations  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-18-2008, 04:45 PM
Zaiaku's Avatar
Zaiaku Zaiaku is offline
 
Join Date: Jul 2007
Location: 3rd Level of Hell
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually this is a pretty good idea. Although arcade pages don't have much of any content.
Reply With Quote
  #3  
Old 03-18-2008, 07:23 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if it shows up on all pages, why not just edit the arcade template in the admincp
Reply With Quote
  #4  
Old 03-18-2008, 08:07 PM
popowich popowich is offline
 
Join Date: Jun 2004
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 03-18-2008, 08:11 PM
popowich popowich is offline
 
Join Date: Jun 2004
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 03-18-2008, 10:25 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by popowich View Post
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
Reply With Quote
  #7  
Old 03-19-2008, 02:54 AM
jim6763nva's Avatar
jim6763nva jim6763nva is offline
 
Join Date: Oct 2005
Location: Virginia
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Jim
Reply With Quote
  #8  
Old 03-19-2008, 11:54 AM
popowich popowich is offline
 
Join Date: Jun 2004
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

-Raymond
Reply With Quote
  #9  
Old 03-19-2008, 02:37 PM
jim6763nva's Avatar
jim6763nva jim6763nva is offline
 
Join Date: Oct 2005
Location: Virginia
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by popowich View Post
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
Reply With Quote
  #10  
Old 03-19-2008, 02:42 PM
popowich popowich is offline
 
Join Date: Jun 2004
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools

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 07:43 PM.


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.04439 seconds
  • Memory Usage 2,299KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete