View Full Version : Miscellaneous Hacks - uCash 3.x
GeekyDesigns
07-25-2009, 10:00 PM
11/20/09 - uCash 3.9.1 released, adding the option to edit a user's points when editing a user in the Admin CP. For some reason I thought that was already implemented. Whatever, it's there now. Enjoy.
07/27 3:54 AM: Beta 2 is released! New features here are point deduction on infractions, the use of template hooks, and a primitive admin script. Upgrade by re-uploading the files and re-importing product-ucash.xml, allowing overwrite. Then, undo the template edits that you did to memberinfo_block_ministats and postbit/postbit_legacy as they aren't needed anymore.
Welcome to uCash 3.9.0 Beta 2!
uCash is a points system for vBulletin. 3.9.0 is a rewrite of uCash from scratch designed for vBulletin 3.7 and up. Simply upload the files located in the 'upload' folder and import product-ucash.xml in the Product Manager of vBulletin (allowing overwrite if you are upgrading). If you are installing this as a first time user of uCash then congrats, everything should be working and you can configure the options to your liking from there. If you have previously installed and old version uCash or uCash & uShop, continue reading.
This version of uCash will attempt to "upgrade" from the uCS 0.9x database fields. If you have installed this previously and still have its data in your database, it will import over the old forum settings and points.
If you have been using uCash 1.1 or uCS 2.0, the same applies, however, some of the other options may also be carried over. In either case, make sure you remember what you have your settings set to, as some might not be carried over. ONE SETTING SHOULD BE REVERTED TO ITS DEFAULT IF YOU ARE UPGRADING - Set "Points Data Location", the very top option, to "TP.user.ucash". If you don't change this, uCash may not work properly. Make sure all of your options under "uCash Options" as well as the forum-specific options when editing a forum are set to their desired values and have fun.
If you have any issues to report with this addon, please post in the modification thread located at: https://vborg.vbsupport.ru/showthread.php?t=219475. Include all relevant details, such as vBulletin version and any previous install of uCash or uCash & uShop and its version number. I will attempt to give support, but as this is still a beta, I am more interested in bugs or inconsistancies. Please do not PM or IM me for support unless you have a showstopping bug or exploit to report.
Wall of text aside, please enjoy the latest release of uCash, and feel free to post any ideas for new features to add in the vB.org thread linked above. Thanks!
For a more full list of current features in this beta, look at the screenshots displaying the main settings and per-forum settings. Note that screenshots may be out of date. For full-sized screenshots, go here: http://cuphat.com/mods/ucash/
Link14716
07-26-2009, 04:34 AM
Obligatory reserved post.
Link14716
07-26-2009, 04:41 AM
As far as the current beta goes, I based the feature set off of uCash from the old uCS 0.95, with some changes here and there. I don't plan on stopping there, but I don't want to re-implement all of the uCash 1.1 features that I added. Some might get re-added, some might not. Regardless, a few more features are going to come down the line (point deduction for infractions comes to mind). Feel free to make suggestions.
Why the version number, you might ask? I plan on releasing uCash (and uShop) for vB4 with a version number of 4.0, and I am getting a head start with those rewrites by starting now with 3.8.x. I want to separate the version numbers from the old, as these are complete rewrites from scratch. Don't expect a new uShop release for vB3, as any progress made on that project will be without any real working templates.
Link14716
07-26-2009, 05:34 AM
Known bug: Forum options are not being used in the edit post plugin. I knew I was forgetting something.
Edit: Squashed, redownload the .zip if you have already downloaded it (but not many people have).
Xencored
07-26-2009, 05:40 AM
Hmm what do we use the points/cash for? :erm:
Looks good just not sure what to use it for :confused:
Link14716
07-26-2009, 05:44 AM
Hmm what do we use the points/cash for? :erm:
Looks good just not sure what to use it for :confused:
Right now it is just a simple points system. I have not released an addon to take advantage of it yet, though I am sure there is still some functioning addons that can integrate with uCash around. Mainly I am getting ready for vB4 and getting back "into the game" so to speak with coding, so this is the base that I needed to start with.
Xencored
07-26-2009, 05:46 AM
Right now it is just a simple points system. I have not released an addon to take advantage of it yet, though I am sure there is still some functioning addons that can integrate with uCash around. Mainly I am getting ready for vB4 and getting back "into the game" so to speak with coding, so this is the base that I needed to start with.
ah right ok dude thanks for the info ill tag this and waiting on some great upcoming things :D
(or i might install it and build up the points :D)
Cheers
s-p0k
07-26-2009, 06:01 AM
when i installed this it would not load my site...pic
:confused:
Link14716
07-26-2009, 06:15 AM
Did you upload the files to your forums directory? The only thing I can think of is your server doesn't display PHP errors and the required functions_ucash.php file isn't being found in your includes directory.
s-p0k
07-26-2009, 06:18 AM
Did you upload the files to your forums directory? The only thing I can think of is your server doesn't display PHP errors and the required functions_ucash.php file isn't being found in your includes directory.
ty for the info will look in to it.............
ATP_JD
07-26-2009, 05:16 PM
First, thanks for a really slick product. This is almost the exact system I've been beating my head against a brick wall to create for the last week.
Question: The template modification instructions state:
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
In your memberinfo_block_ministats template, find:
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
$template_hook[profile_ministats_list]
-+-+-+-+-+
Add Above:
-+-+-+-+-+
<dd>$userinfo[ucashdisplay]</dd></if>
Is that trailing "</if>" really supposed to be there? Is the line missing the opening of the conditional in front of it?
Thanks in advance.
- Justin
ragtek
07-26-2009, 05:19 PM
Also i wouldtn't edit the template, there's above a template hook, so why not use it?:D
Link14716
07-26-2009, 06:07 PM
First, thanks for a really slick product. This is almost the exact system I've been beating my head against a brick wall to create for the last week.
Question: The template modification instructions state:
Is that trailing "</if>" really supposed to be there? Is the line missing the opening of the conditional in front of it?
Thanks in advance.
- Justin
Thanks for pointing that out. The correct line to add to memberinfo_block_ministats would be:
<if condition="$show['ucash']"><dt class="shade">Points</dt>
<dd>$userinfo[ucashdisplay]</dd></if>
I'll update the zip file in a minute here.
Link14716
07-27-2009, 02:34 AM
I messed it up again. Screw it, I'll just use the template hooks because I suck at making modification text files apparently. Updated.
DS MrSinister
07-27-2009, 02:47 AM
Thank you for getting back in the game.. i did miss using ucash...
Link14716
07-27-2009, 03:43 AM
I have template hooks used in beta 2, going to get infractions and a basic admin script done before pushing it out.
Link14716
07-27-2009, 06:56 AM
Beta 2 is released! New features here are point deduction on infractions, the use of template hooks, and a primitive admin script. Upgrade by re-uploading the files and re-importing product-ucash.xml, allowing overwrite. Then, undo the template edits that you did to memberinfo_block_ministats and postbit/postbit_legacy as they aren't needed anymore.
Hornstar
07-31-2009, 06:37 AM
If I want to clear everyones points back to 0. How do I do this?
Link14716
07-31-2009, 07:49 AM
Run a database query:
UPDATE user SET ucash = 0;
Hornstar
07-31-2009, 08:18 AM
Thanks!
Another question. I want to remove points: x from the postbit. (Since I added it manually in the postbit myself and modified it to Tokens: x [event] with it being linked to my event modification. So now I have both showing.
Thanks.
Hornstar
07-31-2009, 08:30 AM
Another question. Points are being added in non post counted forums. How do I disable this?
If someone double posts and there post gets merged together (another modification does this) then they are getting points, when I feel they should not.
If someone posts a thread/post and it gets deleted they are not loosing points. I feel they should.
Link14716
07-31-2009, 08:39 AM
Thanks!
Another question. I want to remove points: x from the postbit. (Since I added it manually in the postbit myself and modified it to Tokens: x [event] with it being linked to my event modification. So now I have both showing.
Thanks.
Two options here: You can either disabled the "Template Hooks - Parse" plugin in the Plugin Manager (this would disabled the profile template hook as well) or you can edit the ucash_postbit template and use your modified code there.
Link14716
07-31-2009, 08:48 AM
Another question. Points are being added in non post counted forums. How do I disable this?There's not a hard option for this yet, but you can edit each forum that you don't want points awarded and set "Points For: Creating a Thread Multiplier", etc to 0. Not a bad idea for a future setting, however.
If someone double posts and there post gets merged together (another modification does this) then they are getting points, when I feel they should not.
As you said, another modification does that. I haven't looked at its code all that much, so I haven't found a quick fix for this.
If someone posts a thread/post and it gets deleted they are not loosing points. I feel they should.
It's debatable. I get where you are coming from and agree with it, but what happens when a thread is deleted? Should everyone lose all the points they made in the thread? It'd seem the most consistent, but not particularly "fair". Though this has made me realize another missing feature - directly editing a user's points in the Admin CP.
All that said, thanks for the feedback and questions, I was getting bored over here. ;)
Hornstar
07-31-2009, 08:56 AM
There's not a hard option for this yet, but you can edit each forum that you don't want points awarded and set "Points For: Creating a Thread Multiplier", etc to 0. Not a bad idea for a future setting, however.
As you said, another modification does that. I haven't looked at its code all that much, so I haven't found a quick fix for this.
It's debatable. I get where you are coming from and agree with it, but what happens when a thread is deleted? Should everyone lose all the points they made in the thread? It'd seem the most consistent, but not particularly "fair". Though this has made me realize another missing feature - directly editing a user's points in the Admin CP.
All that said, thanks for the feedback and questions, I was getting bored over here. ;)
Many thanks.
I basically have this set up exactly how I want now except the fact that people don't lost points when the thread/post is deleted or moved to a non post counted forum.
since you find this to be debatable, how about an option to enable/disable such a feature. But I am sure many people will find this good as default, since if you are going to delete a thread or post then it must have not been worth them getting points in the first place.
Thanks again.
mark1984
08-05-2009, 06:02 PM
Hi, thanks for this great mod. Can you tell me how i could change it from saying 'Points' to 'Cash' or 'Credit'?
Many thanks
Mark
Link14716
08-06-2009, 02:27 PM
Hi, thanks for this great mod. Can you tell me how i could change it from saying 'Points' to 'Cash' or 'Credit'?
Many thanks
Mark
Edit the "ucash_points" phrase in the phrase manager.
christon26
08-14-2009, 03:06 AM
Hi! I've downloaded this and am about to install it...it seems just what I need...simple LOL I would like to know though...can points be added when users upload to the gallery? I have vbGallery installed and would love to have points added when images are uploaded and the images commented on...is this possible to add in?
Thanx
Lissa
christon26
08-14-2009, 03:44 AM
Also...is there a way for me to be notified when a user reaches a certain amount of points? ....also a list somewhere of all users and their points? lol I know I'm a PITA :P
Zachery
08-15-2009, 02:43 AM
Hi! I've downloaded this and am about to install it...it seems just what I need...simple LOL I would like to know though...can points be added when users upload to the gallery? I have vbGallery installed and would love to have points added when images are uploaded and the images commented on...is this possible to add in?
Thanx
Lissa
If there are plugins available in the gallery then likely. I'll see if I can't snag a copy of a recent version of the gallery script. Assuming photopost doesn't want an arm and a leg on my copies.
christon26
08-17-2009, 12:17 AM
Zachary, I can give you access to my gallery if you need it, send me a PM if you do :)
patrick6411
08-21-2009, 02:32 AM
I am willing to pay you to customize this hack for me. There are several options that I would love to see in it. For example I want to allow the members to either buy a vip membership with points or by the traditional paypal. If they buy with points then I want it to deduct from their total. I would also like it to be a recurring charge. Maybe make it to where members can give points to other members.
Are any of these options coming up or are you willing to customize it for me?
Thanks
Patrick
SEW810
08-21-2009, 04:40 AM
Recomended if you have RPG Integration Hack (https://vborg.vbsupport.ru/showthread.php?p=1871443) installed in your vb 3.8.X board
mokujin
08-25-2009, 07:17 AM
i hope one day this hack is as good as for vb 3.x.
matthewhotdude
08-25-2009, 08:45 AM
uninstalled as whenever I tried to make a post or read one I get the following error
Warning: require_once([path]/includes/functions_ucash.php) [function.require-once]: failed to open stream: No such file or directory in [path]/includes/functions_newpost.php(609) : eval()'d code on line 2
Fatal error: require_once() [function.require]: Failed opening required '/home/chattabo/public_html/includes/functions_ucash.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/chattabo/public_html/includes/functions_newpost.php(609) : eval()'d code on line 2
Zachery
08-25-2009, 04:03 PM
uninstalled as whenever I tried to make a post or read one I get the following error
Warning: require_once([path]/includes/functions_ucash.php) [function.require-once]: failed to open stream: No such file or directory in [path]/includes/functions_newpost.php(609) : eval()'d code on line 2
Fatal error: require_once() [function.require]: Failed opening required '/home/chattabo/public_html/includes/functions_ucash.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/chattabo/public_html/includes/functions_newpost.php(609) : eval()'d code on line 2 Did you remember to upload the files?
Hornstar
09-04-2009, 11:54 PM
Many thanks.
I basically have this set up exactly how I want now except the fact that people don't lost points when the thread/post is deleted or moved to a non post counted forum.
since you find this to be debatable, how about an option to enable/disable such a feature. But I am sure many people will find this good as default, since if you are going to delete a thread or post then it must have not been worth them getting points in the first place.
Thanks again.
Are you keen to keep developing this points system further?
Link14716
09-10-2009, 06:37 AM
Are you keen to keep developing this points system further?
Next release will be for vB4. Developing it on the 3.8 branch was just temporary to get started on the base of it for vB4. Work will continue on it, feel free to keep making suggestions, I appreciate them and will take them into consideration.
Your previous suggestion is a good one and is something that I will likely implement.
Jerlene
10-13-2009, 12:35 AM
How do you reset points?
epp_forum
10-15-2009, 01:01 PM
Bit of a stupid question, I installed everything as per the instructions, this was a fresh install btw, how do I get the ucash amounts to display underneath the users avatar or in the mini stats area? I checked the plugins and they are all active - very new to this version sorry!
#EDIT: D'oh, told you it was stupid, helps if you give points first !!!
_Ryfe_
10-27-2009, 05:44 PM
Is there anyway I can take deduct points from certain users? Such as, I added this hack now a couple dude have like 500 points and I don't want them to.
Zachery
10-27-2009, 08:23 PM
Is there anyway I can take deduct points from certain users? Such as, I added this hack now a couple dude have like 500 points and I don't want them to.
Edit their profile via the admincp
_Ryfe_
10-30-2009, 01:26 AM
Ok I looked up a user via the AdminCP and I'm not seeing anything in there as far as the points go.
ThePimp
11-12-2009, 07:07 PM
Is there a toplist for this?
swissknife
11-20-2009, 07:21 PM
Ok I looked up a user via the AdminCP and I'm not seeing anything in there as far as the points go.
Me too... PLZ tell me, where to edit the points...
Link14716
11-21-2009, 12:13 AM
Me too... PLZ tell me, where to edit the points...
You can't. I'm pretty sure I simply forgot to add that. I'll try to get it in this version as well as the vB4 version before night's end.
Link14716
11-21-2009, 12:55 AM
You can't. I'm pretty sure I simply forgot to add that. I'll try to get it in this version as well as the vB4 version before night's end.
3.9.1 released, ability to edit points when editing a user in the Admin CP is now there.
swissknife
11-21-2009, 09:08 AM
Thank you !!!!
SubeteNoZero
11-22-2009, 03:26 PM
Is there any way for users to donate points to others?
~SnZ
Zachery
11-22-2009, 04:50 PM
Right now this is just the ability to store points. uShop will take care of most of the other features.
theezy
12-02-2009, 10:09 AM
How do members donate cash to each other?
-edit- just read above post..
wheres ushop?
Zachery
12-02-2009, 08:05 PM
uShop is not yet released.
theezy
12-03-2009, 06:06 AM
is there another cash mod on here where people can donate cash to each other?
swissknife
01-07-2010, 10:07 AM
Is there a way to define, that only NEW Threads ( and not the existing ) are counted ?
My Case: For every Hit on their threads the users get 0.001 Point. But the Addon counts every Thread since the start of the forum. I would like to have it starts counting only for new threads and not for now existing ones.
Would that be possible?
swissknife
01-13-2010, 05:59 PM
Is there a way to define, that only NEW Threads ( and not the existing ) are counted ?
My Case: For every Hit on their threads the users get 0.001 Point. But the Addon counts every Thread since the start of the forum. I would like to have it starts counting only for new threads and not for now existing ones.
Would that be possible?
No chance?
- I really need something like this for an user award...
Speysider
04-04-2010, 11:23 AM
Does this uCash mod include the original uShop mod as well?
James T Brock
04-04-2010, 02:05 PM
Yeah, unfortunately without ushop there's not much we can do with this. That's mostly what I was looking for. Any ushop equivalents available for vb 3.8 that we can use with this mod?
Speysider
04-04-2010, 02:44 PM
You can still download the old ucash/ushop mod for vB3.5, but be aware that you will have to mess about in phpMyAdmin to get it to install correctly.
I managed to install it, but now none of it's phrases appear in the acp.
wesooby
04-19-2010, 03:57 PM
Can uCash be integrated with Helpful Answers or the Thanks Hack?
https://vborg.vbsupport.ru/showthread.php?t=233296
https://vborg.vbsupport.ru/showthread.php?t=231666
Thanks!
Wifey
05-19-2010, 09:31 PM
Okay, I LOVED this hack back in the day. Will there be the option of donating points via postbit or postbit_legacy eventually? Is the only way to donate points via the admincp? I'm confused. Also, is this fully integrated with the phrase system? I'm trying to change the name from points to something else and bold it for the postbit...
Gamelobby
05-25-2010, 10:31 PM
Does this uCash mod include the original uShop mod as well?
I would love an Add-On for rank.. possibly called uRank.? :)
All it needs to do with these points is change an image (rank/insignia) based on their total points.!!
A ranking page (uRank.php) would also need to be made to show what rank equals what amount of points, etc.
And Rank/Insignia is seen on their profile & postbit. (& uRank.php)
:up:
TitanJeff
08-14-2010, 06:20 PM
uCash doesn't appear to be adding funds to anyone's account for me. Should there be a scheduled task to do this?
Thanks.
seandan
10-19-2010, 05:33 PM
Where do you go to change the name of Points to something else like cash?
Is there a way for Users to trade points with each other?
Hornstar
11-29-2010, 06:30 PM
I'm having trouble uninstalling this. I get the following error:
Database error in vBulletin 3.8.5:
Invalid SQL:
ALTER TABLE vb3_user DROP ucash;
MySQL Error : Can't DROP 'ucash'; check that column/key exists
Error Number : 1091
Any work arounds?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.