The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Google Adsense / Adbrite Ads Based on Length of First Post Details »» | ||||||||||||||||||||||||||||
Google Adsense / Adbrite Ads Based on Length of First Post
Developer Last Online: Feb 2016
Google Adsense / Adbrite Based on Length of First Post
This should work on all versions of vbulletin 3.5.x and above. Keywords: google, adsense, adbrite, yahoo publisher, earn, income, showthread, first post, thread, topic Google Policy on showing competitive advertisements at end of this post: Context: Time to make some neat money on google adsense. Well, this is a cute little plugin which enables an admin to show variable adsense or adbrite code on the first post of the thread/topic based on the length of the message. This helps in keeping in shape the demographics of the forum by keeping the things neat and tidy. You can visit my forums on my website and surf through some threads/topics to get a clear picture of what i am saying. Installation Instructions: Code:
Go to Plugin Manager > Add new Plugin Product: vbulletin Hook Location: postbit_display_complete Title: Google Adsense in Postbits Based on the Length of Message Execution Order: 5 Plugin PHP code: $post['text_length'] = strlen($post['message']); Now edit Template posbit or postbit_legacy Find: <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div> </div> Add Below: (Put the following code where ever you feel like adding.) Demo: http://www.sikhphilosophy.net Google Policy on showing competitive advertisements: Code:
Thank you for your email. Google AdSense program policy does not permit Google ads to be published on the same web page as other contextually-targeted ads. More broadly, our policy does not permit Google ads to be displayed on the same website as ads that mimic or attempt to be associated with Google ads. According to these program policies, AdBrite may be displayed on the same page as Google ads on your site. We do allow affiliate or limited-text links. However, other contextually-targeted ads may not be used. For publishers participating in AdSense for search, please note that we do not allow other search services or query-targeted ads to be displayed on the same site as AdSense for search. Our intent with this policy is to be as fair to our advertisers as possible and to maintain the integrity of the AdWords and AdSense programs. We appreciate your cooperation and look forward to your continued participation in AdSense. For additional questions, I'd encourage you to visit the AdSense Help Center (http://www.google.com/adsense_help), our complete resource center for all AdSense topics. Alternatively, feel free to post your question on the forum just for AdSense publishers: the AdSense Help Group (http://groups.google.com/group/adsense-help). Enjoy!! Show Your Support
|
Comments |
#32
|
||||
|
||||
Use the following code:
Code:
<if condition="THIS_SCRIPT == 'postbit_legacy'"> <if condition="$post['text_length'] < 1200"> <br> Google Adsense/Adbrite/Publisher Code # 1 Here <else /> <br> Google Adsense/adbrite/Publisher Code # 2 Here </if> </if> |
#33
|
||||
|
||||
This looks great!
But is there a way to have it place the adSense ad AFTER the first post (rather than inside it like in your forum)? ie. between the first and second posts? Looks very clever indeed. And since I only use adSense and non-context targeting ads I have nothing to fear with the TOS |
#34
|
||||
|
||||
Have you added code for this to show only for first post? I tried your last post and that doesn't work.
AdSense has a rule that only three ads can be shown per page. If we don't make a rule that excludes this to the first post, we may end up violating their rules. Could you post an explanation of what exactly the original code does and how we can modify it to show only for the first post? Also, how do I test this? Will it only work on threads started after installing the plug-in? Or is there a way to make it retro-active (or however you write it)? I have to say I am very positive about this but it really needs some ironing out. Thanks! |
#35
|
||||
|
||||
If we remove the if conditions then this code will work anywhere.
|
#36
|
||||
|
||||
Quote:
Could you please answer the questions from my last post? Especially: How do you code it so it only shows up in the first post of a thread? EDIT: I guess the title does say "length of first post" which could mean you have already coded it for the first post ONLY. If that is the case, then I appologize for not getting it. But could you confirm it? [S]Also, what do I have to do so that all threads before I installed this will also be affected?[/S] (Nevermind, it seems to do it automatically! Yay!) EDIT 2: Yes! I got it to work! *clicks install* Very nice job! I love it! I still wish I could get confirmation that this is ONLY for the first post and some directions on how to tweek it for different settings would be really cool as well. For example what all the IF statements you have posted here do. Cheers! Nice job! |
#37
|
||||
|
||||
Quote:
Code:
<if condition="!$GLOBALS['FIRSTPOSTID']"> Above Code here </if> |
#38
|
||||
|
||||
Quote:
Muchos appreciated. |
#39
|
|||
|
|||
Quote:
|
#40
|
|||
|
|||
It is completely legal to place Adsense and Adbrite on the same page if you actually read the program policies at google.
If you are going to tell someone what they can and cant do you should also include any information to back your statements up. Quote:
Here is the link: https://www.google.com/adsense/suppo...&topic=&type=f Personally I dont run adbrite but I do run CJ.com ads and Adsense, and I had also contacted google prior to doing so, and they replied that I well with in TOS. The only questionable problem with any of these scripts is that google does not allow their adsense program to run from any scripts or software. Take it at what it is worth. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|