vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Adsense Revenue Sharing for 3.5.x and 3.6.x (https://vborg.vbsupport.ru/showthread.php?t=135079)

iwarrior 09-24-2008 10:19 AM

Hey guys, I just managed to install this in 3.7.3

dthbah2006 10-26-2008 11:58 PM

Quote:

Originally Posted by iwarrior (Post 1629154)
Hey guys, I just managed to install this in 3.7.3

Does this work on Version 3.7.3?

How would you be able to test to see if it is working?

:confused:

tsptom 11-20-2008 05:20 PM

This has been a great mod for me. Any chance of getting a version for the blogs? I would definitely vote it as MOTM if it happens!

Thanks!

clasione 11-20-2008 05:40 PM

I never did get this to work properly, but I would like to give it another whirl.... Any chance there is a version for 3.7 yet?

vwdforum 11-25-2008 06:32 PM

Will this work 100% with 3.7 ??

vwdforum 11-25-2008 07:38 PM

I can't get this to work on my site. Its not populating the
$post[ad_channel] and $post[ad_client_id] and just leaving them as that text

dthbah2006 12-13-2008 02:46 AM

Quote:

Originally Posted by kenji4861 (Post 1147373)
Yes, this is only for the postbit/postbit legacy, but you can slightly modify the copy/paste code anywhere on your style and it'll work.

Did anyone learn how to use this on other parts of the forum like the header and other spots on the forum?

This mod works great for me. I just want to use it on other locations other than the second spot on threads.

Thanks,

:)

tsptom 12-13-2008 03:39 PM

Quote:

Originally Posted by dthbah2006 (Post 1684272)
Did anyone learn how to use this on other parts of the forum like the header and other spots on the forum?

This mod works great for me. I just want to use it on other locations other than the second spot on threads.
:)

Not in the header, but you can add it every X number of posts.

This one puts one after the 1st post and 9th post. It also checks to make sure the member has at least 50 posts.

Code:

<!-- post $post[postid] popup menu -->

<!-- / Google AdSense in Posts begin -->

<if condition="$post[postcount] == 1 OR $post[postcount] % 9 == 0">
<if condition="THIS_SCRIPT == 'showthread' AND  $post[postid] == $GLOBALS['qrfirstpostid']">  </if>

<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 condition="!$post['islastshown']">
  <!-- this is not the last post shown on the page -->
    </if>   
</if>

<table class="tborder" id="post$post[postid]" align="center" border="0" cellpadding="6" cellspacing="1" width="100%">
<tbody><tr>
  <td class="thead" id="td_post_$post[postid]"> 
  <div class="normal">
        &nbsp;
    </div>
    </td>
</tr>
<tr>
    <td class="alt1" align="center">
        <div>
    <!-- Adsense standard banner start -->
      <center>
<script type="text/javascript"><!--
if('$post[field6]' == '' || $post[posts] <= 50)
        {
            google_ad_client = "pub-xxxxxxxxxxxxxx";
            google_ad_channel = "";
        }
        else
        {
            google_ad_client = "$post[field6]";
            google_ad_channel = "$post[field7]";
        }
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = ["f5f5ff"];
google_color_bg = ["f5f5ff"];
google_color_link = "0000FF";
google_color_url = ["000000","008000","008000","008000"];
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>    <!-- Adsense standard banner End -->


tcmcem 12-21-2008 05:32 PM

nice hack.

i want to put the adsense on the top of my forum near to logo but i cant edit the code for top of the code adsense place. does anyone has the code to put it on near of the logo

thanks

MisterLaO 12-28-2008 09:02 AM

how do you confirm if this is working after the installation???


i just placed the entire script in the locations i want my google ads to be and changed the part where the pub is found

example:
Quote:

<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxxx";
/* 468x60, created 12/24/08 */
google_ad_slot = "7982207914";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
just changed "pub-xxxxxxxxxxxxxxxx" to "$post[ad_client_id]" and added the:
Quote:

google_ad_channel ="$post[ad_channel]";
somewhere within the script..


is this ok??????


All times are GMT. The time now is 11:33 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.01638 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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