vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Adsense Revenue Sharing 3.5.4 (https://vborg.vbsupport.ru/showthread.php?t=114196)

forumrating 05-06-2006 02:43 PM

im gona try this

vbreal 05-06-2006 04:21 PM

you have to change the name of the file that the update button refers to. it refers to admin_adsense.php but it the file is named adsese_admin.php

i just renamed the file and the reference to it in the xml file

How does this thing work. how do i know its working for my members. and what exactly are channels?

webmastershome 05-08-2006 08:17 AM

Thanks for notice the error,

Please read the readme.txt file and do the needfull.

channels are used by the google adsense, if you want to trace the imp. and click, you can track it with channels.

Regards
Jitender

ryans 05-08-2006 02:42 PM

The readme file refers to a few files that are not in the archive.

7. upload clicksor_share.php to /admincp
8. upload cpnav to /includes/xml

also the form in the ACP refers to admin_adsense.php the actual file is adsense_admin.php just rename the file.

ryans 05-08-2006 03:25 PM

in the readme you add this code:
Code:

<if condition="$post[postcount] == 1">
<if condition="THIS_SCRIPT == 'showthread'AND ($post[postid] == $GLOBALS['qrfirstpostid']) AND (!$show[member] OR $bbuserinfo[usergroupid] == 2)">
<if condition="$show['spacer']">
        $spacer_open
        <div style="padding:0px 0px $stylevar[cellpadding]px 0px">
</if>

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead" $scrolltothis style="font-weight:normal">
Revenue Sharing Ads (
<a href="./showthread.php?p=POSTID">?</a>):</td>
</tr>
<tr>
        <td class="alt1" style="padding:0px">
        <div class="smallfont" align="center">

                <script type="text/javascript"><!--
                google_ad_client = "$post[ad_client_id]";
                google_ad_width = 728;
                google_ad_height = 90;
                google_ad_format = "728x90_as";
                google_ad_channel ="$post[ad_channel]";
                google_color_border = "F6F6F6";
                google_color_bg = "F6F6F6";
                google_color_link = "000000";
                google_color_url = "666666";
                google_color_text = "333333";
                //--></script>
                <script type="text/javascript"
                  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script>
        </div>
        </td>
</tr>
</table>

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

</if></if>

Would this replace one of my existing 728x90 ads? I already had 3 google ads on my pages and 3 is the max per page. Would adding this one be the 4th?

rob30UK 05-08-2006 09:02 PM

This hack really should be a plugin to negate the need for file edits.

Attached is a plug-in for anyone who does not wish to edit their files.
In the plug-in code I have also added a check to make sure adsense adverts are never served to members with their own publisher-id (to prevent them clicking their own ads and violating google's t&c)

You must also carry out the instructions as indicated in the hack download, but just import this plugin (NOT product) in place of the bit invloving hacking apart showthread.php
Make sure you EDIT the plug-in to change the profile field numbers to the ones you are using.

webmastershome: Please feel free to incorporate this into your hack/zip

Kurisu 05-12-2006 05:21 PM

Is this the same hack as http://www.keyconcept.org/vbulletin-...aring-hack-mod ?

rob30UK 05-12-2006 05:37 PM

Not the same, but it's almost identical. oh...... and it's free

webmastershome 05-15-2006 06:35 AM

Thanks rob30UK,

i will add this in new version..

rob30UK 05-15-2006 06:55 AM

Secondly, you may wish to add the code to showpost....

Search engines can and do index showpost pages (if you allow them to).... this way there is also the incentive to reply to posts as well as start threads.

In addition, it would be great to have them added to the archive 'thread view' pages because a heck of a lot of traffic comes in via the archives.

You may also wish to let the client ID be taken from second post, third post, etc, etc until a clientID is found (not everyone fills it in) and then use that ID along with the boards own ID in a 50/50 formula.

Just a suggestion because right now this mod is very basic, but it could be GREAT!


All times are GMT. The time now is 02:08 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.01150 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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