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)

webmastershome 04-26-2006 10:00 PM

Adsense Revenue Sharing 3.5.4
 
Hack Description:
This hack will allow you to offer Google Adsense revenue sharing to your vBulletin board users. Basic idea generated by AlexanderT, who developed the hack for previous version.
  • Revenue is split between board administrator and thread starters.
  • User needs to enter their Adsense Publisher ID and Channel ID (optional) in the edit profile.
  • The percentage of probability is customizable by the administrator
  • Number of min. post in order to show the ads is customizable by administrator.

Instruction:
1. upload a php file in admincp/ adsense_admin.php
2. Add 2 new user profile fields, and mark down the field name
3. update the forum template
4. Edit and Upload showthread.php
5. Upload the XML file in include/XML

Read full details in readme.txt file

webmastershome 04-27-2006 10:11 AM

may be update for new

Snake 04-27-2006 12:02 PM

Whoa some nice feature to have on my forums. Thanks! :)

trancetopia 04-27-2006 03:33 PM

This sounds a very good way to encourage members to create new threads. Is there any chance this can be done without the file edits?

sensimilla 04-27-2006 05:44 PM

was this based on the same hack by cinq www.vbarticles.com ?

tia

username12 04-28-2006 03:01 AM

I'd like to see a way for people who reply (perhaps a certain number of times or the last reply) get a percentage chance as well.

It's doable without file edits. Exactly how is another question.

webmastershome 04-28-2006 05:19 AM

hi sensimilla,

no it's not based on vbarticles.com, it's based on last version of 3.0.7

webmastershome 04-28-2006 05:21 AM

ofcourse, i will try to add some new feature, but i am not too much expert with working VB, i will try to add more here..

Hemanth 04-28-2006 10:29 AM

Hi dude,

Great work & congrats as it's finally released. :)

Anyway i've done it in my forums last week sucessfully with your help. Thank you..

IS it now work for header template?

webmastershome 04-28-2006 12:48 PM

Still it's working after first post.

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!

webmastershome 05-15-2006 10:55 AM

yes... we can share the revenue with admin/thread own/ last post with given share value, you can add your idea here to do this.

rob30UK 05-16-2006 07:48 AM

erm.... I cant code this. I dont know PHP.

MajorFm.com 06-04-2006 04:16 PM

Someone told me there is a licenced version and a non-licenced version... apparently the non-licenced version breaks googles terms... this true? and is this hack ok with google?

MajorFm.com 06-04-2006 05:54 PM

...well i installed and i get the follow error when updating the Share Settings in ACP

Fatal error: Call to a member function on a non-object in /usr/local/apache/www/crazyapes/majorfmforum.com/htdocs/forum/admincp/admin_adsense.php on line 49

i also noticed this in the postbit code:
$bbuserinfo[usergroupid] == 2

Does that mean that if a user has a diffrent primary group, this wont work for them? if so how do i add more then one group...

Also how do i make the adverts show for all users and not just guests.

DinarMet 06-05-2006 04:30 AM

Can you also split revenue for Last Post with this modification?

DM

DinarMet 06-05-2006 04:59 AM

Also, can you set the program criteria to specific user groups instead of minumum posts.

DM

webmastershome 06-07-2006 10:25 AM

Dear Sir,

you can change the user group insted of minimum post simply change the code as below

Find
$post['posts'] >= $adsensesettings['minposts']

Change with

$bbuserinfo[usergroupid] == 2

2 is user group id, change as you want .

Regards
Webmastershome

Nuno Oliveira 06-14-2006 12:01 AM

Hi!

To show the ads to all groups, I just removed
Quote:

AND (!$show[member] OR $bbuserinfo[usergroupid] == 2)

DinarMet 06-14-2006 12:21 AM

Does this hack allow you to share revenue with the person who Last Replied to a thread?

DM

webmastershome 06-14-2006 03:43 AM

No right now this hack not allow this. may be in next version.

Nuno Oliveira 06-14-2006 10:06 AM

Until now my experience with the script is good :) Thanks!
What part of code do I have to alter to check this?

"check to make sure adsense adverts are never served to members with their own publisher-id"

Thanks again!

SRO 06-14-2006 05:57 PM

I'm having trouble getting it to work. I can't seem to figure out how to properly integrate everything between the plugin, old readme file, and the adsense_admin naming problem.

Sounds like a few people have figured it out, but I'm stumped. Any way to update the files and instructions to make it easier for dummies like me?:confused:

Nuno Oliveira 06-15-2006 11:03 AM

Hello!

I just had to rename the file, and I installed the old plugin, because with Rob's version, I didn't knew what modifications to make, so that everything works correctly.
But I want that useful modification that Rob made, to avoid serving ads to members, with their own publisher-id.

Mr.D 06-15-2006 05:41 PM

When will the new version be available

murph5 06-30-2006 10:16 PM

Can anyone tell me why my ad block would not be showing? Followed instructions, but used the plugin. Set up the adsense sharing, and added the template code to the postbit of my template. But it never shows?

webmastershome 07-01-2006 04:51 AM

Dear Sir,

May be VB template using the postbit legacy, please update it also.

Regards
webmastershome

murph5 07-03-2006 09:14 AM

Ok, have it working for guests only - is that normal? I can see ads that should be showing under another user's id...

Also, how would i put an extra banner at the very beginning of the thread?

JeffreyC 07-12-2006 12:17 AM

I maybe dumb, but where are these ads being displayed? I am getting no errors or anything, just no ads. :?

thenetbox 07-13-2006 02:25 PM

Hello :)

Great idea. Does this work with 3.6 rc 1?

Mr.D 07-14-2006 11:47 AM

Would developer of this hack please answer this question would there be a new version and will it worke with 3.6


All times are GMT. The time now is 04:54 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.01297 seconds
  • Memory Usage 1,809KB
  • 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)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
  • (40)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