vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Integration with vBulletin - Big Adsense On Header For Guests Of Every Page (https://vborg.vbsupport.ru/showthread.php?t=190793)

sunnylikbeckham 09-12-2008 10:00 PM

Big Adsense On Header For Guests Of Every Page
 
Hey Friends
This Is My First Mod
Infact Just A Template Modification
and i made it by taking help of some other mods:p
but its realy helpfull
it increased my adsense earnings lot

Demo : http://www.pcmasterz.com

Screenshot : http://hostbear.net/images/620_ads_tn.jpg

Installation : Stylemanager > template > Edit Template >Header> Paste At The End Of It
PHP Code:

<!-- PCM Ads in Header for Guests -->
<if 
condition="(!$show[member])">

<if 
condition="$show['spacer']">
    </
div>
    
$spacer_close
</if>

<if 
condition="$show['spacer']">
    
$spacer_open
    
<div id="edit$post[postid]style="padding:0px 0px $stylevar[cellpadding]px 0px">
</if>

<
table id="post$post[postid]class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="100%" align="center">
<
tbody>
 <
tr>
  <
td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0px" $post[scrolltothis]>        
                
    </
td>

    <
td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px" align="$stylevar[right]">
    </
td>
 </
tr>
 <
tr valign="top">
    <
td class="alt2">


          
                
<
script type="text/javascript"><!--
google_ad_client "pub id";
/* 300x250, created 10/09/08 */
google_ad_slot "7382310866";
google_ad_width 300;
google_ad_height 250;
//-->
</script>
<
script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</
script>
     <
span class="smallfont"></span>
                <
br><br>
       
            </
div>
    </
td>
    <
td class="alt1" id="td_post_$post[postid]style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
  <!-- 
icon and title -->
            <
div class="smallfont">
                
           
        <!-- 
message -->
      <
right>  <div>
       <
script type="text/javascript"><!--
google_ad_client "pub id";
/* 300x250, created 10/09/08 */
google_ad_slot "7382310866";
google_ad_width 300;
google_ad_height 250;
//-->
</script>
<
script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</
script>
        </
div></right>
      
    </
td>
</
tr>
<
tr>


    <
td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
      &
nbsp;
    </
td>
    <
td class="alt1" align="$stylevar[right]style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">

<!-- / 
message -->

        <!-- 
sig -->
            <
div>__________________<br>
                <
b>This advertising will not be shown  to registered members.<br />
                   <
a href="register.php">Register</aNow for free  today  on $vboptions[bbtitle] and surf without irritating ads</b>
            </
div>
        <!-- / 
sig -->
    </
div>
        <!-- / 
message -->
   &
nbsp;
    </
td>
</
tr>
</
tbody></table>
  

</if>
<!-- / 
PCM Ads in Header for Guests--> 

You Can Replace Adsense Code With Any Other Ads or You Can Also Modify The Size of It

If You All Like It Gonna Make Few Template Modifications More, Specialy Ads Related As I always working on improving ads earnings:D
PCM ROCKS

DesiSugar 09-13-2008 06:07 PM

first reply...
installed.......

iogames 09-14-2008 01:26 AM

here we go... 'screenshots?!?!'

sunnylikbeckham 09-14-2008 07:55 PM

its there man
screenshot aswell as demo


All times are GMT. The time now is 05:10 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.01173 seconds
  • Memory Usage 1,757KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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