View Full Version : Automated money bar to encourage paid subscriptions
calorie
10-04-2004, 10:00 PM
This hack creates an automated money bar to encourage users to support your site with paid subscriptions. There is a similarly themed hack dated July 2004 at https://vborg.vbsupport.ru/showthread.php?t=67425 using different code where you need to manually update the sum of money received. This hack on the other hand automates the process and is for use with paid subscriptions that are setup via the vB AdminCP. You set your monthly money goal, and this hack stores paid subscription amounts in a table for use in creating the money bar. This hack also lets you add or edit the user subscription amounts via the vB AdminCP, and it automatically resets the money bar on a per month cycle. This hack assumes that the payment gateway postback subscription amount will be in x.xx format. Support is offered on an if/as time is available basis but is not guaranteed. If you use this hack, a click of the install button is appreciated.
Queries to run :: 1
Phrases to add :: 4
Template changes :: 2
New files added :: 1
Files to edit :: 3 to 6 *
Number of edits :: 14 to 17 *
* depending on what payment gateways are used
Logikos
10-05-2004, 08:51 PM
Nice work calorie! ^^
Is anyone going to write a hack that does this?
1. Set a target a mount in AdminCP
2. Users Contribute / Donate
3. It updates a "Money Bar"
4. Lists the users who contribute
5. Adds contributor Image in the postbit
gwhooooey
10-06-2004, 12:10 AM
Is anyone going to write a hack that does this?
1. Set a target a mount in AdminCP
2. Users Contribute / Donate
3. It updates a "Money Bar"
4. Lists the users who contribute
5. Adds contributor Image in the postbit
This is EXACTLY what i'm looking for
calorie
10-06-2004, 12:54 AM
Nice work calorie! ^^ Thanks. :D
Is anyone going to write a hack that does this?
1. Set a target a mount in AdminCP
2. Users Contribute / Donate
3. It updates a "Money Bar"
4. Lists the users who contribute
5. Adds contributor Image in the postbit Uh, you're welcome? :ermm:
This is EXACTLY what i'm looking for IMHO, the hard part is already done...
1. See the July 2004 hack for how to do this if that is how you want to manage one value.
2. Use the vB paid subscriptions.
3. This hack already does that if you use the vB paid subscriptions.
4. See below code or go to ACP > Subscriptions > Subscription Manager > select View Users from menu.
5. Set a different subscription usergroup, with a contributor user title and/or a username HTML markup.
select vb3_user.username,vb3_subscription.title,vb3_subsc riptionlog.amount,
vb3_subscriptionlog.status from vb3_user,vb3_subscription,vb3_subscriptionlog
where vb3_user.userid = vb3_subscriptionlog.userid and
vb3_subscription.subscriptionid = vb3_subscriptionlog.subscriptionid;
My sicerest apologies calorie.
I did not mean to diminish the value of your hack...... It IS a very good hack. I'm sorry if I sounded ungrateful or obnoxious.
I want to thank you for the eply though because now I you've got my mind going here. Let me see if I can get some stuff together and make this hack myself.
Thanks.
Floris
10-06-2004, 01:47 AM
This hack creates an automated money bar to encourage users to support your site with paid subscriptions. There is a similarly themed hack dated July 2004 at https://vborg.vbsupport.ru/showthread.php?t=67425 using different code where you need to manually update the sum of money received. This hack on the other hand automates the process and is for use with paid subscriptions that are setup via the vB AdminCP. You set your monthly money goal, and this hack stores paid subscription amounts in a table for use in creating the money bar. This hack also lets you add or edit the user subscription amounts via the vB AdminCP, and it automatically resets the money bar on a per month cycle. This hack assumes that the payment gateway postback subscription amount will be in x.xx format. Support is offered on an if/as time is available basis but is not guaranteed. If you use this hack, a click of the install button is appreciated.
Queries to run :: 1
Phrases to add :: 4
Template changes :: 2
New files added :: 1
Files to edit :: 3 to 6 *
Number of edits :: 14 to 17 *
* depending on what payment gateways are used
This is really nice, especially since it is automated, and because you can use this for give-away games, etc. (if we reach the goal before end of month, 1 free gift for one of our members!, support us now)
calorie
10-06-2004, 01:58 AM
My sicerest apologies calorie.
I did not mean to diminish the value of your hack...... It IS a very good hack. I'm sorry if I sounded ungrateful or obnoxious.
I want to thank you for the eply though because now I you've got my mind going here. Let me see if I can get some stuff together and make this hack myself.
Thanks. Okay, no problem, thanks for the clarification. :D If you need some hints along the way, just ask and I'll answer if I have the time.
This is really nice, especially since it is automated, and because you can use this for give-away games, etc. (if we reach the goal before end of month, 1 free gift for one of our members!, support us now) Thanks. :D
twoseven
10-06-2004, 03:20 AM
thanks for this calorie now i use manual subscriptions because the payment processor i use isnt added yet (stormpay) this would work with the manual addition as well correct?
calorie
10-06-2004, 03:50 AM
thanks for this calorie now i use manual subscriptions because the payment processor i use isnt added yet (stormpay) this would work with the manual addition as well correct? When you manually add a user via the vB subscription manager, just stick in the amount paid and the money bar will automatically do its thing.
Nice, perfect timing, I was about to look for something like this..
thanks for sharing with the community calorie
rex_b
10-06-2004, 02:49 PM
Yah thanks for this will be installing later!
Aristo
10-06-2004, 02:59 PM
Hi calorie,
I'm looking for something very close to this and slightly different, can you please contact me at affid@rogers.com as I would like to pay $$$ for custom work done on my board.
Thanks
rex_b
10-06-2004, 07:58 PM
I get this error
Warning: Unknown(/full/path/to/forum/moneybar.php): failed to open stream: No such file or directory in /home/rexb2/public_html/forum/global.php(435) : eval()'d code on line 70
Fatal error: (null)(): Failed opening required '/full/path/to/forum/moneybar.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rexb2/public_html/forum/global.php(435) : eval()'d code on line 70
calorie
10-06-2004, 08:03 PM
// add your full path to moneybar.php in the require statement
rex_b
10-06-2004, 08:07 PM
// add your full path to moneybar.php in the require statement
Oh lemee try. That needs to be seperate in the directions.. It's kinda lumped in.
rex_b
10-06-2004, 08:21 PM
where are the images?
images/z_polls/bar4-l.gif
/images/z_polls/bar4-r.gif
nevermind you have to edit that in the .php file
calorie
10-06-2004, 08:26 PM
where are the images?
images/z_polls/bar4-l.gif
/images/z_polls/bar4-r.gif
nevermind you have to edit that in the .php file Oops, in moneybar.php change the three instances of z_polls to just polls and it'll work.
rex_b
10-06-2004, 08:27 PM
And where in the admincp am I able to set goals and such like in your screenshots..
rex_b
10-06-2004, 08:34 PM
nevermind I was confused. Does it take into fact of old subscriptions or only new ones from here on out?
calorie
10-06-2004, 08:48 PM
nevermind I was confused. Does it take into fact of old subscriptions or only new ones from here on out? New ones, but you can edit users for old ones.
rex_b
10-06-2004, 09:15 PM
Ok I have it working.. YAY
I'm using it to raise money for charities!
rex_b
10-07-2004, 02:23 PM
Ok. Next question.
I have had some give money and the bar never moves. What could be the problem?
Rex
calorie
10-07-2004, 04:13 PM
Ok. Next question.
I have had some give money and the bar never moves. What could be the problem?
Rex Whatever payment gateway you use needs to post back the subscription information for the money bar to auto update. For instance, if you are using PayPal, you need to set up the PayPal IPN and make sure that the vBulletin Options > Paid Subscriptions information is correct.
rex_b
10-07-2004, 05:09 PM
I sent you a PM Calorie
House_of_Crazed
03-20-2005, 12:29 AM
Just to verify...
This works in 3.0.7 ??
Reeve of shinra
03-20-2005, 03:46 AM
/tag for myself for later
T_Richardson
02-17-2007, 09:55 PM
Will this work for 3.6.4?
Thanks.
manofphat
03-15-2007, 08:55 PM
I am interested in this for 3.6.5
BryceW
06-08-2007, 01:03 PM
I am interested in this for 3.6.5
I second that.
T_Richardson
07-10-2007, 09:42 PM
Still wondering if this will work on 3.6.7. I don't want to try it and disrupt any subscriptions.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.