Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Google Adsense / Adbrite Ads Based on Length of First Post Details »»
Google Adsense / Adbrite Ads Based on Length of First Post
Version: 1.00, by Neutral Singh Neutral Singh is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.2 Rating:
Released: 10-12-2006 Last Update: Never Installs: 32
Uses Plugins Template Edits
 
No support by the author.

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.)
Quote:
<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 (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).
Please do click install if you like it.

Enjoy!!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-13-2006, 02:00 PM
Neutral Singh's Avatar
Neutral Singh Neutral Singh is offline
 
Join Date: Sep 2004
Location: Sikh Philosophy Network
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I won't take all this speculation until anybody could quote directly from TOS. :rolling eyes:
Reply With Quote
  #13  
Old 10-13-2006, 02:57 PM
Throtex's Avatar
Throtex Throtex is offline
 
Join Date: Apr 2005
Location: Washington, D.C.
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Neutral Singh
I won't take all this speculation until anybody could quote directly from TOS. :rolling eyes:
Competitive Ads and Services
We do not permit Google ads or search boxes accessing Google search services to be published on web pages that also contain what could be considered competing ads or services. If you have elected to receive contextually-targeted Google ads, this would include all other contextually-targeted ads or links on the same page as Google ads. This would also include ads throughout the site that mimic Google ads or otherwise appear to be associated with Google on your site. Although you may sell ads directly on your site, it is your responsibility to ensure these ads do not mimic Google ads. If you have elected to receive Google search services, this would include other search services on the same site and non-Google query-targeted ads. We do allow affiliate or limited-text links.


Not that this has anything to do with the hack itself ... hack itself looks good.
Reply With Quote
  #14  
Old 10-13-2006, 05:25 PM
KuRnAz KuRnAz is offline
 
Join Date: Feb 2006
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think there is a wrong thing with that code
I have added code in posbit_legacy and created a new plugin but I can't see ads in messege Thet are under pst number on posbit
How can I fix that ?
Thanks...
Reply With Quote
  #15  
Old 10-13-2006, 08:52 PM
Calash's Avatar
Calash Calash is offline
 
Join Date: Jun 2006
Location: East Coast, USA
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

https://www.google.com/adsense/suppo...id=qkexqJeJiAY

If you want the link....not that hard to find thought....just google for it
Reply With Quote
  #16  
Old 10-14-2006, 06:43 AM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

You should have rearched the TOS before releasing this. if someone has installed this and done as this mod specifies and adds both ad servers to their site, on the same page, they could be screwed and removed from google for reasons they will never know. I would suggest contacting everyone that has installed this to let them know that it does indeed violate the TOS.

Quote:
How are they against the TOS? Adsense can be displayed with AdBrite no problem according to BOTH of their TOS agreements.
007,

You need to go and re-read the TOS again. You are highly mistaken.
Reply With Quote
  #17  
Old 10-14-2006, 07:33 AM
Ryan McBain's Avatar
Ryan McBain Ryan McBain is offline
 
Join Date: Feb 2002
Location: Earth
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well just put either adsense or something else in the code, not both and the problem is solved...right?
Reply With Quote
  #18  
Old 10-14-2006, 11:52 AM
Throtex's Avatar
Throtex Throtex is offline
 
Join Date: Apr 2005
Location: Washington, D.C.
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ryan McBain
Well just put either adsense or something else in the code, not both and the problem is solved...right?
Yeah ... there's nothing wrong with the hack, and can be used with any one of those ad services.

Just remember that for Google:
"Up to three ad units may be displayed on each Web site page."

So don't get carried away.
Reply With Quote
  #19  
Old 10-14-2006, 12:27 PM
www.1n1n.com www.1n1n.com is offline
 
Join Date: Feb 2005
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry. The administrator has banned your IP address. To contact the administrator click here !!
Reply With Quote
  #20  
Old 10-14-2006, 02:39 PM
Neutral Singh's Avatar
Neutral Singh Neutral Singh is offline
 
Join Date: Sep 2004
Location: Sikh Philosophy Network
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright!! I have changed the topic slightly to end the controversy... now please enjoy the little plugin!!
Reply With Quote
  #21  
Old 10-15-2006, 10:53 AM
tansu's Avatar
tansu tansu is offline
 
Join Date: Apr 2006
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well, now is it against or not? (TOS)
And how can I use it to show only visitors, not members?
thanks in advance
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:59 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.11853 seconds
  • Memory Usage 2,311KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete