vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBAds: Sharing System (https://vborg.vbsupport.ru/showthread.php?t=115227)

Developer 05-09-2006 10:00 PM

vBAds: Sharing System
 
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 https://vborg.vbsupport.ru/external/2010/09/1.gif
aT lAsT::.
IF YOu lIkE iT cLIcK INSTALL
vbulletin.orghttps://vborg.vbsupport.ru/

Support Given For Who Clicked Install {ONLY}

Developer 05-10-2006 01:02 PM

Screenshots.

soulface 05-10-2006 01:19 PM

nice this is what i was looking for :D

[high]* soulface installed![/high]

spetactical 05-10-2006 01:24 PM

Great idea!

sensimilla 05-10-2006 02:15 PM

looks familiar, I was using cinq one from vbarticles.com, thanks for posting it

yinyang 05-10-2006 02:39 PM

most excellent.

soulface 05-10-2006 03:23 PM

OK, working fine. but can this be done that i can put adv any where not only in postbit ?

Brandon Sheley 05-10-2006 03:51 PM

nice, I may use this soon..

HaYLaZ 05-10-2006 04:00 PM

great!!!

thanks friend:D

Developer 05-10-2006 04:08 PM

Quote:

Originally Posted by soulface
OK, working fine. but can this be done that i can put adv any where not only in postbit ?

Due to the Damn Exams :D, i'll add more features one by one ;)

nelto 05-10-2006 04:36 PM

OH MY GOD

Thank you so much for this, gonna test it... I'll let ya know and lcick install later on.

Your a GOD :)

GTAce 05-10-2006 04:39 PM

I've had lots of people looking for this kind of thing - thanks for releasing it, it's going to help a TON of people!

nelto 05-10-2006 04:50 PM

So as far as I understand this can be only used in postbit right?
Is there any chance to use this all over the vba or forum itself?
If isnt asking to much is it possible to even iuse this with this hack:banana:

rmxs 05-10-2006 04:51 PM

Good byt i have one Question y if someone doesnt setup a ad,system apeard google ads??How can i change it to my own.

Edit: I cannot fint the way it works im try to pyt the admin code and i get You did not enter the correct format for the AdSense Client ID field. Please read the field description for the expected format.

Also from were user can set add.
from were Admin can manage...this ads

netdebut 05-10-2006 05:07 PM

I keep getting "Invalid File Specified." What do I do?

nelto 05-10-2006 05:22 PM

When you guys built the custome profil field did you put "pub-" there?

From the release thread:
Default Value: pub-

Couse here its working just fine.
Click INSTALL

netdebut 05-10-2006 05:36 PM

Okay, n/m, I got it to work. I was stupid trying to import it as a template not as a "product." Sorry, it's my first time.

Is there any way to change how many days are required and how many posts? Thanks.

nelto 05-10-2006 05:39 PM

Quote:

Originally Posted by netdebut
Okay, n/m, I got it to work. I was stupid trying to import it as a template not as a "product." Sorry, it's my first time.

Is there any way to change how many days are required and how many posts? Thanks.

Menu -> Vbulletin Options scroll down till you see VbAdSharing system
Edit there.

netdebut 05-10-2006 05:52 PM

I'm getting closer and closer to getting this right.

I added the product, I added the user profile field EXACTLY as instructed.

Then I tried testing it by going to the forum control panel option. I entered my AdSense account id and got this message:

Quote:

You did not enter the correct format for the AdSense Member ID field. Please read the field description for the expected format.
Any thoughts of what I'm doing wrong?

netdebut 05-10-2006 05:57 PM

Thanks Nelto for replying, but... I don't see "VBAdShareing system" in the vBulletin Options nor anything that my resemble it.

So sorry for the trouble guys.

Snake 05-10-2006 06:54 PM

That is cool!

nelto 05-11-2006 12:09 AM

Quote:

Originally Posted by netdebut
Thanks Nelto for replying, but... I don't see "VBAdShareing system" in the vBulletin Options nor anything that my resemble it.

So sorry for the trouble guys.

In the left side menu theres a category called VB Options, open it, inside you have a link saying vb options, click it
It should open a page on your right side right?
In there theres a scroll go down till you see vBads sharing system.... DOUBLE click it to open its own options


As for the error that everyone is getting you NEED to put in pub- in the profile field

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.

Hope I made myself clear since English aint my prime language and some times its hard to explain what is so simply to me (in my language).

Got that?

SaN-DeeP 05-11-2006 12:19 AM

yet another great hack for vbulletin.. I am sure this might get selected for HOT hack of month :)

Barakat 05-11-2006 12:25 AM

love it .... what a nice hack ... thaks again Developer

netdebut 05-11-2006 03:36 AM

Okay, I made a video recording what I'm doing. Can you guys tell me what I'm doing wrong?

Click Here For Video

I didn't show it, but I did step three and pasted the code for the legacy_postpit

rmxs 05-11-2006 06:26 AM

Wronk wronk wronk....

You must klik on the first step IMPORT

MANAGE PRODUCTS----BROWSE-----IMPORT

you browse the file byt you dont import it (you create an empty product)

nelto 05-11-2006 01:58 PM

LOL you MUST never forget to import.
I was wondering if it was a mess up in your vb

nelto 05-11-2006 02:00 PM

Quote:

Originally Posted by netdebut
Okay, I made a video recording what I'm doing. Can you guys tell me what I'm doing wrong?

Click Here For Video

I didn't show it, but I did step three and pasted the code for the legacy_postpit

What prg you used to creat that video' Im looking for something like that.

Can we edit the video to get a ballon with text for exemple?
PM if needs to.

netdebut 05-12-2006 04:40 AM

D'OH! :confused: LOL. Thanks, rmxs, for pointing that out. It's working now.

nelto, to get a balloon with text? sorry, I'm confused. You can find the program at www.camtasia.com ($299)

An alternative (very cheap) and I heard it's pretty good is... lemme go look for the URL, lol. Okay: http://sourceforge.net/projects/camstudio

Enjoy.

girish.r 05-13-2006 10:59 AM

it would be really nice if this mod can handle the google ads channel too.

nelto 05-15-2006 11:47 AM

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.?

WritersBeat 05-26-2006 12:21 PM

was breaking mine to

netdebut 05-29-2006 10:58 AM

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.

netdebut 05-30-2006 06:57 AM

Found out it wasn't working when I pasted the script in postbit_legacy, but it works in just postbit.

brady_44 05-30-2006 10:23 AM

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.

netdebut 05-30-2006 11:33 AM

Yep, I'm experiencing the same thing Brady.

netdebut 05-30-2006 11:46 AM

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!

netdebut 05-30-2006 11:58 AM

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.

contactsonia 05-31-2006 05:26 PM

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.

kobescoresagain 06-01-2006 02:26 PM

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


All times are GMT. The time now is 03:24 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.03661 seconds
  • Memory Usage 1,830KB
  • 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
  • (1)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete