vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - earnmoneyworld.com google adsense Revenue Share | 100% revenue share with members (https://vborg.vbsupport.ru/showthread.php?t=250752)

DxSEO 09-17-2010 10:00 PM

earnmoneyworld.com google adsense Revenue Share | 100% revenue share with members
 
1 Attachment(s)
I am using 100% revenue share with members. I am using only one adsense add placement in my forum(only in thread) and i am sharing that with my members.

Author Site : earn money

Here we go

First you need to create a extra field in user profile via admin pannel. (only no)

Code:

admincp > User Profile Fields > Add New User Profile Field

Select Single-Line Text Box

Title - Google Adsense
Description - Put Your Adsense Code here Only Numbers.
Max length of allowed user input - 16
Field Length - 25
Field Required - No
Field Editable by User - yes
Private Field - no
Field Searchable on Members List        - no       
Show on Members List - no
Regular Expression -  ^[0-9]{16}$

Display Page - edit Profile


In the template postbit templates > postbit find:

Code:

<vb:if condition="$show['attachments']">
Just Above Post this code

Code:

<vb:if condition="$post[postcount] == 1">
<vb:if condition="$post['fieldName']">
<script type="text/javascript"><!--
google_ad_client = "pub-{vb:raw post.fieldName}";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel = "forum";
google_color_border = "E1E1E1";
google_color_bg = "E1E1E1";
google_color_link = "FFFFFF";
google_color_text = "FFFFFF";
google_color_url = "FFFFFF";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<vb:else />

<script type="text/javascript"><!--
google_ad_client = "pub-";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel = "forum";
google_color_border = "E1E1E1";
google_color_bg = "E1E1E1";
google_color_link = "FFFFFF";
google_color_text = "FFFFFF";
google_color_url = "FFFFFF";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
</vb:if></vb:if>

change fieldName with your User Profile Field name (adsense)

Ta Da............. Now your forum is adsense revenue share forum.

Note : Don;t use default header and footer adsense code with this hack. Google adsense terms not allowed to use different adsense code in same page. So plz careful.

you can use same code for your header and footer add or any other add. If you wana installation i can do that for you (not free).

Let's discuss more possibilities of this modification.

Bouncer222 09-19-2010 03:45 PM

I don't get it, what is this for?? Can you elaborate more please.

VonDoom 09-19-2010 11:18 PM

This allows thread starters on your forum to collect adsense revenue from their own posts.. In theory prompting your members to post more often.

Tagged!!

Jabong82 09-20-2010 02:59 AM

This looks like a cool mod, thanks for sharing. One question though, could a mod like this work for other affiliate type codes besides adsense? Thanks in advance.

DxSEO 09-20-2010 07:15 AM

Quote:

Originally Posted by Jabong82 (Post 2100780)
This looks like a cool mod, thanks for sharing. One question though, could a mod like this work for other affiliate type codes besides adsense? Thanks in advance.

yes you can use this for any affiliate.

you can use this code for clickbank

Code:

<vb:if condition="$post['fieldName']">
http://{vb:raw post.fieldName}.XXXXXX.hop.clickbank.net<br />
<vb:else />
http://yourclickbankuserid.XXXXXX.hop.clickbank.net
<br />
</vb:if>

for Amazon

Code:

<vb:if condition="$post['fieldName']">
<iframe src="http://rcm.amazon.com/e/cm?t={vb:raw post.fieldName}&o=1&p=8&l=as1&asins=B001NLKT60&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
<br />
<vb:else />
<iframe src="http://rcm.amazon.com/e/cm?t=youramazonid&o=1&p=8&l=as1&asins=B001NLKT60&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
<br />
</vb:if>



Sky is open.

VonDoom 09-20-2010 02:46 PM

i have installed this on a stock test forum and for whatever reason i am having a couple problems.. One all its showing is Public Service Ads. and also this is showing up on the first post of every thread no matter who the thread starter is.. I could be wrong but i dont think this is the intended behavior?

Jabong82 09-20-2010 06:49 PM

Hello thank you very much for your response. I have a question though. Would there be anyway to say limit the posting of ads to say maybe only the moderator of the forum could post ads?

I say this because in the case of Google Adsense, there is a limit of how many (3 I think) banner ads that one can show per page. So what if for example 5 different users have 5 different Adsense accounts and post all on 1 topic? Thus that would violate the terms of service?

Is there any way to restrict this so that maybe only the moderator or select usergroups can place ads? Thank you.

VonDoom 09-20-2010 07:20 PM

This will only show one time as the first post meaning only the thread starter will get payed as it will be there adsense pub # showing..

Jabong82 09-20-2010 07:54 PM

Oh ok gotcha. Sounds great then.

DxSEO 09-21-2010 02:40 AM

Quote:

Originally Posted by VonDoom (Post 2100984)
i have installed this on a stock test forum and for whatever reason i am having a couple problems.. One all its showing is Public Service Ads. and also this is showing up on the first post of every thread no matter who the thread starter is.. I could be wrong but i dont think this is the intended behavior?

what theme are you using ???

this is working fine on vbulletin default theme as well as my cielo theme.

double check the code

VonDoom 09-21-2010 02:12 PM

Im using a stock vB default theme on my test site.. However no worries.. I was just testing it and have no real use for this.. If it does really work as described it sounds like mod of the month material for sure.. Good Luck!!

skol 09-22-2010 07:52 AM

Fantastic idea,my concern is would Google deem this as click fraud?

DxSEO 09-22-2010 08:40 AM

Quote:

Originally Posted by skol (Post 2101729)
Fantastic idea,my concern is would Google deem this as click fraud?

no this is not. We are not forcing user to click on ads.

abdobasha2004 10-13-2010 03:50 PM

any way to makre sharing with percent

in this way u mention it is 100% to thread starter
i want it like 80% or 50%

massizero 10-22-2010 10:50 AM

is it possible to make only a certain group able to display the banner?

DxSEO 12-01-2010 08:37 AM

Quote:

Originally Posted by abdobasha2004 (Post 2109784)
any way to makre sharing with percent

in this way u mention it is 100% to thread starter
i want it like 80% or 50%

can be done but we are providing only 100% share

Quote:

Originally Posted by massizero (Post 2112690)
is it possible to make only a certain group able to display the banner?

yes can be done with vbulletin condition like this

Code:

<vb:if condition="$show['guest']">Show this to guest only</vb:if>

Juggernaut 12-10-2010 05:00 AM

How does this work? how do you share revenue? I don't have adsense, but this looks promising

sunnylikbeckham 12-18-2010 07:08 PM

hey,great post
but i want something like
for those users who have not added there pub id
mine ads will be shown to there threads

DxSEO 01-04-2011 09:29 AM

Quote:

Originally Posted by Juggernaut (Post 2131754)
How does this work? how do you share revenue? I don't have adsense, but this looks promising

this will share revenue with thread starter.

Quote:

Originally Posted by sunnylikbeckham (Post 2136034)
hey,great post
but i want something like
for those users who have not added there pub id
mine ads will be shown to there threads

yes this is same. If user not added pub id ur adsense will show on threads.

scottct1 02-26-2011 10:14 PM

Is there a way I can make it so that only certain user groups can post their publisher ID information in the User Profile field?

I would only like my supporters and staff to be able to use this and make money but not everyone on my site. (Ie My supporters can make money but my regular registered members can not.)

Also what happens if there is a post made and there is no google information (publisher id) for it, does a google ad display or can it use my own Google ID number if there is none there?

Thanks!

noahqw 02-26-2011 10:49 PM

Is the name the name of the field such as field1 field2 field3 etc? Because ti's not displaying...

BlueCheri 02-27-2011 03:51 AM

This may be very useful, tagged.

amaarvell 03-18-2011 07:06 AM

wont install for me .. when i add the code to post bit I get
invalid_tag_nesting
invalid_tag_nesting

Decisionmusic 03-20-2011 09:23 AM

is there a way to make it so if the user DOESNT have an adsense, it STILL posts an ad but it goes to MY adsense?

rjmjr69 06-17-2011 10:23 PM

Can you make this into an installable product and editable from settings?

rjmjr69 07-16-2011 06:46 AM

Any support for this mods?

BirdOPrey5 07-16-2011 10:01 AM

Quote:

Originally Posted by rjmjr69 (Post 2221104)
Any support for this mods?

It says right at the top "Not Supported" - I wouldn't expect a response.

EgyKit 09-08-2011 12:42 PM

You can't share adsense revenue like this! you must have options to ban members, determine whether member group are allowed to share adsense with you or not, add option to view ads on different page places, like navbar etc... also check if the users have pub adsense ID or not to view admin default pub ID.....All these could be done as vBulletin settings so that admin can set them via admincp..

dany_danay 09-29-2011 08:36 AM

It coould be wonderif if we can share 50% of our revenue with the members. It could be calculate with the visits on the topic... anyone can do it?

Toorak Times 01-29-2012 03:12 PM

I really like this mod, does it work with vBexperience? I must ask Phalynx. I am working with writers, musicians and other small businesses and it is exactly what I am looking for. It will encourage them to work their forum for the initial posting/editing, promotional port of call to upload to their Blog (which I call 'Contributors'), then I'll choose where in the Home (me call 'Cover') it will appear.

I had a few 'penny drop' moments last night and put in some rooly cool stuff, between 1am and 6pm, then I did something stoopid, I mean really stupid and luckily(?) my host hero, Megalai, had done a save at ...1am...doh, I have local indie Aussie host who is unreal, won't mention name probs not allowed,.

Bottom line I think 100% to contributors is a brilliant way to encourage active 'blogger', writers, videographers, musicians, local councils I mean our first threads also allow rss and podcasts...

Brilliant, I think, but I am a 'puter nuffy, old school local newspaperman, I have had my WHOLE site upside down, per se, for months, most embarrassment...but...vB allowed me to publish to Facebook and through Add This, every other SN.

Sorry for the rave guys, but new here and absolute coding novice ( although, not surprisingly, cut and paste is something that comes uber naturally, as I did with a sharp scalpel, steel rule, a waxer or rubber glue and a roller for 35 years, hands on.)

Don't mind doing the hard yards, been at this site for over 12 months, and learned everything from scratch, with help from Chandigarh for a bit, but wow what a ride, everyone thinks I'm nuts, should build my site in Joomla, Worpress, Wix...so easy man...too easy, no bones, I feel like I'm a publisher again, engaged, instead of walking away from a static development site like most.

You guys, all the Mod developers inspire me.

Mark_Zuckerberg 02-17-2012 06:47 PM

its not working for me :( and how to put the adsense slot id u didnt mentioned it in ur code

Bisha 02-17-2012 07:37 PM

Nice, thank you for this tip!

mescalin 03-08-2012 07:00 PM

If those users keep clicking these ads to make more money, your domain can be banned from adsense.

DxSEO 05-28-2012 03:14 PM

mescalin : That will not happen with digital point or hubpage

dany_danay 08-08-2012 01:24 AM

Please add adhitz or other ads!!


All times are GMT. The time now is 05:33 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.01328 seconds
  • Memory Usage 1,817KB
  • 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
  • (6)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (35)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete