vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - uCash 3.x (https://vborg.vbsupport.ru/showthread.php?t=219475)

GeekyDesigns 07-25-2009 10:00 PM

uCash 3.x
 
1 Attachment(s)
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.

Dan 07-26-2009 04:58 AM

Nice one Matt :D

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

Quote:

Originally Posted by animemike (Post 1855532)
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

Quote:

Originally Posted by Link14716 (Post 1855534)
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

1 Attachment(s)
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

Quote:

Originally Posted by Link14716 (Post 1855546)
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:

Quote:

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
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

Quote:

Originally Posted by ATP_JD (Post 1855979)
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:
Code:

                                <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:

Code:

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

Quote:

Originally Posted by hornstar1337 (Post 1858931)
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

Quote:

Originally Posted by hornstar1337 (Post 1858932)
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.

Quote:

Originally Posted by hornstar1337 (Post 1858932)
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.


Quote:

Originally Posted by hornstar1337 (Post 1858932)
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

Quote:

Originally Posted by Link14716 (Post 1858935)
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

Quote:

Originally Posted by mark1984 (Post 1862052)
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

Quote:

Originally Posted by christon26 (Post 1866917)
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 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

Quote:

Originally Posted by matthewhotdude (Post 1873932)
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

Quote:

Originally Posted by hornstar1337 (Post 1858939)
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

Quote:

Originally Posted by hornstar1337 (Post 1879883)
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 !!!


All times are GMT. The time now is 06:02 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.01384 seconds
  • Memory Usage 1,842KB
  • 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
  • (2)bbcode_code_printable
  • (15)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