vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Adsense Revenue Sharing Hack 1.1 (0 queries version) (https://vborg.vbsupport.ru/showthread.php?t=80685)

venomx 05-10-2005 12:33 AM

Wjy would you limit it to be only seen by your mods (default VB level 7)?

biagrin 05-10-2005 01:15 PM

ive not installed this yet but before i do i just want to ask a question - excuse my ignorance if i have missed something.

from what i have read this is like a banner rotation scheme but for adsense. does this mean each person has to have an adsense account and if so how would i know whos adsense account i am clicking on. because if im clicking on my own it would cause trouble.

Polo 05-10-2005 01:20 PM

Quote:

Originally Posted by biagrin
ive not installed this yet but before i do i just want to ask a question - excuse my ignorance if i have missed something.

from what i have read this is like a banner rotation scheme but for adsense. does this mean each person has to have an adsense account and if so how would i know whos adsense account i am clicking on. because if im clicking on my own it would cause trouble.

good questions ;) yes, each person must have adsense (to put their id in their usercp pannel) and second well I really dont think so... I think it may be possible, but this hack I dont think supports that right now :)

biagrin 05-10-2005 01:25 PM

so it would be best for admin to just not click any of the ads like normal?

Polo 05-10-2005 01:26 PM

Quote:

Originally Posted by biagrin
so it would be best for admin to just not click any of the ads like normal?

yeah... because you run into the risk of clicking your own...

biagrin 05-10-2005 02:07 PM

do the members not run the same risk then and would it not be putting my account at risk as well.

Polo 05-10-2005 02:16 PM

Quote:

Originally Posted by biagrin
do the members not run the same risk then and would it not be putting my account at risk as well.

mm... really good point you have there ;) that would definetly be a problem, I never thought of that... however you may ask members no to click on the adsense and only guests to do it :)

as I said, you have a good point... and if you think about it... let's say you have 150 members who have joined the system.. the probabilities of clicking on your own adsense become less and less as more members join...

biagrin 05-10-2005 02:23 PM

thats a shame as this is one of the few mods im interested in.

maybe if there is way to set it so that if the ads are your own they automatically change colour to warn you or if thats against TOS then maybe the persons avatar or name appears near it. hmmm any ideas?

biagrin 05-10-2005 04:55 PM

sorry for the double post

does this just split the share of advertising between the thread starter and the admin, or does it include people posting in the thread as well?

Polo 05-10-2005 05:28 PM

Quote:

does this just split the share of advertising between the thread starter and the admin, or does it include people posting in the thread as well?
I'm really not sure about that...
Quote:

maybe if there is way to set it so that if the ads are your own they automatically change colour to warn you or if thats against TOS then maybe the persons avatar or name appears near it. hmmm any ideas?
that would be cool :)

AlexanderT 05-10-2005 06:55 PM

Quote:

Originally Posted by Polo
good questions ;) yes, each person must have adsense (to put their id in their usercp pannel) and second well I really dont think so... I think it may be possible, but this hack I dont think supports that right now :)

It would be rather easy to implement that. But the question do you really want to click on any google ads appearing on your site? Why taking the risk? If you have a site with a lot of visitors, your own clicks would be marginalized anyways. I am currently using this hack only for my editors, and it is a policy on my board that noone of us clicks on ads appearing on our site.

venomx 05-10-2005 07:38 PM

Couldnt we do something like...

If $post[ad_client_id] = users fieldX>
DIFFERENT AD HERE (NON-Adsense)
else

Show the adsense ads
</if>

I would test but I dont know how to get the fieldX of the user viewing... :(

biagrin 05-10-2005 08:27 PM

well basically to sum up what i would like to see added:

adsense rotation being split between admin and thread starter only. that way the thread starter would know that the ad is either his account or admin account. that would instantly remove any problems.

yb the way when i tried to install it i followed the instructions to the dot but for some reason after it had been installed, when i tried to view a post i just got a warning saying something like "unexpected string /forums/showthread.php on line 31" which is where it says 'adsensesettings'

any idea what i have done wrong?

AlexanderT 05-10-2005 09:05 PM

Quote:

Originally Posted by biagrin
well basically to sum up what i would like to see added:

adsense rotation being split between admin and thread starter only. that way the thread starter would know that the ad is either his account or admin account. that would instantly remove any problems.

And that is how it is currently implemented.

Quote:

something like "unexpected string /forums/showthread.php on line 31" which is where it says 'adsensesettings'
Do you have other hacks installed? Can you show us the line above and below 'hidprofilecache' (around line 30, before you applied my hack)? If you don't have any other hacks installed, make sure to follow the instruction closely:
Code:

Find:
      'hidprofilecache'

REPLACE IT with:
      'hidprofilecache',
      'adsensesettings'

(e.g. don't forget to add the comma after 'hidprofilecache').

venomx 05-10-2005 09:05 PM

Quote:

Originally Posted by biagrin
well basically to sum up what i would like to see added:

adsense rotation being split between admin and thread starter only. that way the thread starter would know that the ad is either his account or admin account. that would instantly remove any problems.

I think thats the way it is. Plus it never shows the Thread starter his own if you used the right if conditional I believe...

biagrin 05-10-2005 10:30 PM

ok i get this error now

"parse error: unexpected T_ELSE"

meaning the else in this code
Code:

{
                                $post['ad_client_id'] = $post['field11'];
                                if (!empty($post['field12'])) {
                                        $post['ad_channel'] = $post['field12'];
                                }
                        }
                        else {
                                $post['ad_client_id'] = $adsensesettings['clientid'];
                                if (!empty($adsensesettings['channel'])) {
                                        $post['ad_channel'] = $adsensesettings['channelid'];


AlexanderT 05-10-2005 10:35 PM

biagrin that excerpt isn't really helpful. Did you include the entire snippet as was described in step 6? Also make sure you add it just below $FIRSTPOSTID = $post['postid']; (as was also described in 6).

biagrin 05-10-2005 10:48 PM

well for some reason its working now even though i done the same thing as last time.

thanks for the help mate i really appreciate it. :) im new to all this.

one last thing (i hope :) )

how do i set it so that EVERY user group sees the ads but will NEVER see their own ads.

for example: bob makes a thread. his account is picked randomly. he doesnt see the ad but i do.

next time bob view the thread, my account is shown and he sees it but i dont.

beano33 05-12-2005 02:00 PM

Anyone get this to work in the showthread template so the ad shows after the last post instead of the first as I asked in this post:
https://vborg.vbsupport.ru/showpost....9&postcount=32

CallieJo 05-13-2005 12:29 PM

Quote:

Originally Posted by beano33
You can use conditionals in the modifyoptions template so the new profile fields added are only visable for the usergroups you want.

See #2 in this thread

I am trying this but the instructions are not sinking in very good. Like here:

Quote:

This profile field needs to be the only custom profile field under the selected options category. Any other custom profile fields in the same category will be hidden as well.
I have more than one under edit profile.

Quote:

Go to your:

Admin CP -> Styles & Templates -> Style Manager -> ? ? -> Modify User Option Templates -> modifyoptions

In this template you will find several $customfields variables, one for each category in your options (the same categories as the ones for your profile fields). You need to enclose the appropriate $customfields variable with this conditional:
I go here and I do not understand what category? Is it edit profile? And where or what is it called in here?

Thanks!

AlexanderT 05-14-2005 12:33 AM

Quote:

Originally Posted by CallieJo2
I am trying this but the instructions are not sinking in very good. Like here:
Quote:

This profile field needs to be the only custom profile field under the selected options category. Any other custom profile fields in the same category will be hidden as well.
I have more than one under edit profile.
Quote:

Go to your:

Admin CP -> Styles & Templates -> Style Manager -> ? ? -> Modify User Option Templates -> modifyoptions

In this template you will find several $customfields variables, one for each category in your options (the same categories as the ones for your profile fields). You need to enclose the appropriate $customfields variable with this conditional:
I go here and I do not understand what category? Is it edit profile? And where or what is it called in here?

Thanks!

I don't know what you were doing but nowhere do I find any such instruction posted for this hack.

LEAD_WEIGHT 05-16-2005 11:32 AM

Quote:

Originally Posted by AlexanderT
I don't know what you were doing but nowhere do I find any such instruction posted for this hack.

May be he has the real PAID HACK or got lost & was at this link
Code:

https://vborg.vbsupport.ru/showthread.php?t=80464&highlight=Adsense

designBox 05-17-2005 09:19 PM

Maybe a dumb question but:

How difficult will it be to modify this Hack to allow sharing between Admin, Thread Starter and Last Poster?

(And by the way, are we allowed to modify this code or will this be any kind of copyright infrigment?)

By the way, many thanks for this awesome hack, i haven't installed it yet, but, i am sure, as soon as i will have my answers, i'll give it a try.

Thumb up.

venomx 05-17-2005 09:25 PM

If you get it changed to split that way let me know please? :)
Though I want it so it splits between admin, thread starter, and a random person thats posted in the thread. :)

designBox 05-18-2005 08:41 AM

Sure i will man :-)

I have another question concerning the actual hack.

Does the thread starter see their own ads?

EDITED: BTW, clicked on INSTALL :D

Polo 05-18-2005 12:25 PM

designbox as of now, I dont think nobody knows what ads are being displayed (if yours, or another specific member) you go to be careful with that because if you click on your own ads you could get banned from Google's adsense program...

venomx 05-18-2005 02:11 PM

Are you sure it shows the first posters ad to himself?

AlexanderT 05-18-2005 05:07 PM

Yes, the first poster or the board owner's ads are shown, depending on the percentage you entered in the control panel. It is rather easy to disable the display of ones own ads with an additional check in showthread.php (at least that's what I think now). If it is highly demanded, I could work on adding this feature.

CallieJo 05-19-2005 01:58 AM

Quote:

Originally Posted by AlexanderT
I don't know what you were doing but nowhere do I find any such instruction posted for this hack.

http://www.vbulletin.com/forum/showthread.php?t=101597

Was posted to me in this thread if you read through the posts here....I followed that but chose "options" instead of "edit Profile" in the instructions for the cat.

Basically, I took the advice from a couple peopes who replied to my post in this thread and pieced them together and figured it out. Then I posted to choose "options" instead of "edit profile" according to the tut posted to help direct me with my q.

AlexanderT 05-19-2005 07:01 AM

Quote:

Originally Posted by CallieJo2
[url]Basically, I took the advice from a couple peopes who replied to my post in this thread and pieced them together and figured it out. Then I posted to choose "options" instead of "edit profile" according to the tut posted to help direct me with my q.

I see so the question was more related to the modification posted over at vb.com. Were you able to figure out the problem?

designBox 05-19-2005 07:25 AM

Quote:

Originally Posted by AlexanderT
Yes, the first poster or the board owner's ads are shown, depending on the percentage you entered in the control panel. It is rather easy to disable the display of ones own ads with an additional check in showthread.php (at least that's what I think now). If it is highly demanded, I could work on adding this feature.

I don't know if it will be highly demanded but i guess this would be really better to avoid temptations of peoples clicking on their own ads.

I was also wondering, What will be the easiest to code:
- Revenue shared between Admin, Thread Starter and Last Poster ?
OR
- Revenue shared between Admin and All posters of a Thread?

Would really like to see these modifications or someone who can bring me a little light of how to do this....

Thanks again for this usefull hack :)

vze2yqtm 05-19-2005 02:32 PM

Quote:

Originally Posted by beano33
Before I installed this hack I had my ad code in the showthread template where they were displayed after the last post. I modified that code for google_ad_client = "$post[ad_client_id]";
google_ad_channel ="$post[ad_channel]";
but it wasn't inserting any client id so no one way getting paid.

So I removed the ad code from showthread and put it in the postbit template as suggested in the hack instructions. It works fine as far as functionality is concerned, but now the ads appear after the first post and we'd prefer them to show after the last post.

Can anyone tell me how to do one of the following:

1) make the hack work with the ad code in the showthread template, OR
2) get the ad code in the postbit legacy template to display after the last post instead of the first post.
Anyone know how to do this?

MichaelJM13k 05-25-2005 03:51 AM

Nice hack! :)

For me the google ads show up under the first post on every page (like this: http://www.xbox360boards.com/showthread.php?p=26) how can i get it just to show up under the first post on the FIRST page?

LEAD_WEIGHT 05-25-2005 03:10 PM

Quote:

Originally Posted by CallieJo2
If you would take the time to read through the posts in this thread, you would see it all pertains to THIS thread!

No I'm not lost! Atleast I got it working without a response here...

Next time, don't be so rude!

BTW - it's a she...


BTW - "it's" a she... Describing yourself as female is your problem but I was only trying to help. "L"

topvar 06-02-2005 02:21 AM

Alexander,
AMAZING job, I greatly enjoyed installing this and think it will prove to be a great addition to my forum.
Thanks for distributing it freely (I too was approached by the $175 guy, and saw a few commercial versions as well).
Spot on, and "Thanks" :)
Am I correct in assuming that I should include a note that tells all that participate "NEVER click an ad in a thread that you started" ?
Party on Garth ;)

topvar 06-02-2005 05:02 AM

Hmmm... One debug question. I'm not having any channels show up for user-added channels, only the default forum channel.
Any common problem/solution I should be aware of?
I'll let you know if I find the problem as well, in case anyone else has it. But because it seems to work for the forum default, I imagine it's something small I'm missing somewhere.
I noticed there is nothing required for the "Regular Expression" of the channel. Should there be?
Thanks again

---Edit---
I found the problem. The install was so easy I missed something obvious. There are 4 field #'s you need to edit, I only edited 3. Works perfectly now it seems!
---/Edit---

LEAD_WEIGHT 06-03-2005 07:42 PM

I found a good way to cheat & make bots click on advertise but u should only do this for 5min or less @ a time cause the hits I got were way to much for 5min so I give u a hint by the next time I post and tell u if I got in trouble for it. I did this with other ad links and left the link over night & got over 1000 hits by spiderbots but @ least I am going to get paid for those hits as those spiders have diff. ip's. :nervous:

venomx 06-03-2005 08:27 PM

ummmmmm WTH?

yinyang 06-03-2005 11:09 PM

Quote:

Originally Posted by LEAD_WEIGHT
I found a good way to cheat & make bots click on advertise but u should only do this for 5min or less @ a time cause the hits I got were way to much for 5min so I give u a hint by the next time I post and tell u if I got in trouble for it. I did this with other ad links and left the link over night & got over 1000 hits by spiderbots but @ least I am going to get paid for those hits as those spiders have diff. ip's. :nervous:

why not just set it so you only can do a max number.

LEAD_WEIGHT 06-04-2005 04:57 AM

Quote:

Originally Posted by yinyang
why not just set it so you only can do a max number.

I get paid for hits. For $15.85 I need 1000 hits in 7days & $7.95 in 3months and so far my hits are @ 1671 in least than 24hrs. all from those beautiful spiders. So why would I set it to do max if only I was playing with google ads which I stop cause I got to many hits in 5mins. I like to have my google ads. :lick:


All times are GMT. The time now is 08:21 AM.

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.01410 seconds
  • Memory Usage 1,851KB
  • 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
  • (3)bbcode_code_printable
  • (23)bbcode_quote_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
  • (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