Back to vBulletin 3.6 Add-ons

Google Adsense / Adbrite Ads Based on Length of First Post
Mod Version: 1.00, by Neutral Singh

This modification is in the archives.
vB Version: 3.6.2 Rating: (2 votes - 4.50 average) Installs: 32
Released: 13 Oct 2006 Last Update: Never Downloads: 6
Not Supported Uses Plugins Template Edits  

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 http://www.sikhphilosophy.net 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.)
<if condition="THIS_SCRIPT == 'showthread'"> <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>
Here, 1200 is variable to adjust the length of message to change your adsense accordingly.
You are done! You can play with this thing to add your own advertising banners or adbrite code as well.

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 (https://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
(https://groups.google.com/group/adsense-help).
Please do click install if you like it.

Enjoy!!

Download

No files for download.

Similar Mods

Forum Display Enhancements Google AdSense (or other) after post... vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2024