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

Reply
 
Thread Tools
vBAds: Sharing System Details »»
vBAds: Sharing System
Version: 1.0.0, by Developer Developer is offline
Developer Last Online: Nov 2010 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 05-09-2006 Last Update: 05-09-2006 Installs: 48
Uses Plugins Template Edits
 
No support by the author.

vBAds Sharing System
v.1.0.0
Description::.
This will make a revenue sharing between you and ur members for an example you will put your ads and a user puts his ads, your ads will appears for an example: 50% of the apearance of your ads & the member ads
this hack inspired by this thread & of course the entire code from my coding.
[Hack Features::.
1-easy yo install
2-Controlable by admin/users
3-display percent for the admin's ads
4-minimum posts before users can use this hack
more features in screen shots

[Planned Features::.
1-add adbrite codes
2-add yahoo publisher codes
3-more restrictation
[See Screen Shots]
Installation::.
1-Import The Product.
2-add new profile field with these settings
Title:AdSense Client ID
Description:Use this to share your OWN adsense ads in your thread note: this won't appear to you it will appear to other members and you can't use this before 2 posts and you you have to be a member for a 20 days. {change the posts, days values as u like}
Default Value: pub-
Max length of allowed user input:30
Display Size:40
Profile Field Type:Single-Line Text Box
Field Required:no
Field Editable by User:yes
Private Field:yes
Field Searchable on Members List:no
Show on Members List:no
Regular Expression:^pub-[0-9]{16}$
Which page displays this option?: options/other
3-Edit Template postbit(_legacy)
Add this at the end
Code:
<if condition="THIS_SCRIPT == 'showthread'">
<if condition="!$GLOBALS['FIRSTPOSTID']">

$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
    <td class="thead" align="left"> <if condition="$show['adsense']">$vboptions[bbtitle]$vbphrase[sponsored_links]<else />$post[musername]$vbphrase[sponsored_links]</if></td>
</tr>
<tr>
    <td class="alt1" align="center">
           <script type="text/javascript"><!--
google_ad_client = "$clientid";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</if>
    </td>
</tr>
</table>

</div>
$spacer_close

</if>
</if>
History::.
1.0.0 On 10. May 2006 Initial Version.

Hack Languages::.
English Only For Now
Details::.
1 plugins, 14 phrases, 6 option, 0 query
Donation::.
Feel Free To
aT lAsT::.
IF YOu lIkE iT cLIcK INSTALL
vbulletin.org

Support Given For Who Clicked Install {ONLY}

Show Your Support

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

Comments
  #32  
Old 05-15-2006, 11:47 AM
nelto nelto is offline
 
Join Date: Sep 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just looked to this code (since it was breaking my table threads)
Quote:
<if condition="THIS_SCRIPT == 'showthread'">
<if condition="!$GLOBALS['FIRSTPOSTID']">

$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="left"> <if condition="$show['adsense']">$vboptions[bbtitle]$vbphrase[sponsored_links]<else />$post[musername]$vbphrase[sponsored_links]</if></td>
</tr>
<tr>
<td class="alt1" align="center">
<script type="text/javascript"><!--
google_ad_client = "$clientid";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</if>
</td>
</tr>
</table>

</div>
$spacer_close

</if>
</if>
And Im wonderign hy the tow closing if tags at the bottom since the first 2 if tags are already closed.?
Reply With Quote
  #33  
Old 05-26-2006, 12:21 PM
WritersBeat WritersBeat is offline
 
Join Date: Apr 2006
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

was breaking mine to
Reply With Quote
  #34  
Old 05-29-2006, 10:58 AM
netdebut netdebut is offline
 
Join Date: May 2006
Location: Japan
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't really see this working. I was giving it some time and perhaps it would show up... nothing on my end. I may have to look for another hack.
Reply With Quote
  #35  
Old 05-30-2006, 06:57 AM
netdebut netdebut is offline
 
Join Date: May 2006
Location: Japan
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Found out it wasn't working when I pasted the script in postbit_legacy, but it works in just postbit.
Reply With Quote
  #36  
Old 05-30-2006, 10:23 AM
brady_44 brady_44 is offline
 
Join Date: Dec 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nelto
This command:
Default Value: pub-
in the instructions isnt passing the defautl value to the filed.

So unless the hack releaser gets this little bug worked out YOUR members NEED to put pub-123456789

If the hack was working 100% your members didnt had to put pub- becouse it was already there.... but since it isnt working 100% they HAVE to.
Any fix for this? I had it installed briefly, and in several threads there were adsense ads being shown that had absolutely no publisher id... not the thread starters or my own. I would love this if the ads shown were mine by default unless the user specified their adsense code.
Reply With Quote
  #37  
Old 05-30-2006, 11:33 AM
netdebut netdebut is offline
 
Join Date: May 2006
Location: Japan
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, I'm experiencing the same thing Brady.
Reply With Quote
  #38  
Old 05-30-2006, 11:46 AM
netdebut netdebut is offline
 
Join Date: May 2006
Location: Japan
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guess what, I figured out why it's popping out (however, I still can't figure out the client id problem yet):

Quote:
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</if>
</td>
That's an extra </if>! Remove it and it'll be fine!
Reply With Quote
  #39  
Old 05-30-2006, 11:58 AM
netdebut netdebut is offline
 
Join Date: May 2006
Location: Japan
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Obviously "$clientid" is not the correct string to display it... please, someone help figure it out. I've been trying to debug it but to no avail. I've only figured out that extra </if> tag.
Reply With Quote
  #40  
Old 05-31-2006, 05:26 PM
contactsonia contactsonia is offline
 
Join Date: Feb 2005
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any ideas how can we desplay the ADs somewhere else than after first post?

I dispaly an AdSense Ad above quick reply textarea so if there is only one post in the thread than the Ad is show twice in a row which doesn't look good.
Reply With Quote
  #41  
Old 06-01-2006, 02:26 PM
kobescoresagain kobescoresagain is offline
 
Join Date: Feb 2005
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I haven't downloaded this yet, considering doing it tonight. My question, is it possible to change the amount of ad shows they get? Either in general or by user, usergroup, or some other way? Thanks
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 03:18 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04433 seconds
  • Memory Usage 2,312KB
  • 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
  • (1)bbcode_code
  • (3)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
  • (4)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