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)

minzhong 10-03-2006 07:54 AM

what if the thread starter does not have an adsense acct?

imranbaig 10-12-2006 05:21 PM

Quote:

Originally Posted by rob30UK
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

Hey Man thanks your plugin helped me not to edit any Files.
Yes Guys it worked Like a Charm in VB 3.62.
Just be carefull and follow instructions.

Nuno Oliveira 10-20-2006 09:46 PM

I had this working since I install it, but I didn't noticed that when I upgraded the forum, the script stopped passing my ID's, so for 1 month I got no $.
Now I installed the plugin version, from rob30UK, and it's working.

sixty6 10-21-2006 11:27 PM

ok I installed this mod, it is decent, but it has a ton of silly errors. The attachment has the corrected adsense_admin.php file for you.

Furthermore, if you place the code given in the readme file, your advertisement will not be shown to registered members. If you would like it to be shown to your members as well, place this code:
Quote:

<if condition="$post[postcount] == 1">
<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>
I have installed this mod and you can see it in effect on my forums:
http://forums.arcadewebmasters.com/

P.S.
I've also uploaded showthread.php which is running on vB 3.6.0

Your welcome :)

sixty6 10-22-2006 12:51 AM

Ok I don't think this mod works, it ALWAYS shows the default publisher ID...

soletrader 11-22-2006 07:37 AM

Desperate Help! I installed it fine with the plugin. However, when I go to admincp and enable the hack by pressing update, I receive a page not found. Somehow the admincp is not working correctly. Can anyone help me out? I am running 3.6.

Thank you

webmastershome 11-22-2006 08:10 AM

Dear Friend,

I have not yet tested with 3.6.

may be update it very soon.

soletrader 11-22-2006 08:28 AM

Ok it seems to be working with the new adsense_admin.php attachement. I want to ask you a question.

The thread starter is the only one who gets credit for this? Do members who post also have the ability for their ads to show? Thanks

soletrader 11-22-2006 08:40 AM

Hello,

I would really love to get this hack working on my site. Everything seems to be fine except the fact that the only adsense that appears seems to be the default code (mine). Can anyone advise me on any tweeks on what I should do so the ads rotate?

Thank you

webmastershome 11-23-2006 06:04 AM

Hi there,

I have not tested this code in 3.6.

You can check this error on 3.6, simply check the user adsense code is getting from database or not

if user (who start the post has not filled the adsense code) then code use the default

regards
jitender


All times are GMT. The time now is 01:14 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.01935 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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