Version: 2.0.3, by Blaine0002
Developer Last Online: Jul 2018
Category: Major Additions -
Version: 3.6.8
Rating:
Released: 06-19-2006
Last Update: 12-28-2007
Installs: 316
DB Changes Uses Plugins Auto-Templates
Re-useable Code Additional Files Translations Is in Beta Stage
No support by the author.
Unsupported and Unmaintained. There are better point systems to use!
ICash V2.0.2
Features
-----------
+Points in postbit.
+Points in profile page.
+Donation logs.
+Admin donation logs.
+Easy admin donate.
+Points on registration.
+Points for referrers.
+Customizable point name.
+Customizable file name.
+Donation comments.
+Dynamic decimal system.
+Points per topic creation.
+Points per post.
+Points per character.
+Ability to change money row for easy integration with your favorite hacks. for example, integrating with vbookie is as easy as going into your admin cp and changing money to 'vbookie_cash'.
+Mass point giving via ACP.
+Set customizable point values per forum.
+Points may be taken away on post deletion.
+Automatic navbar, memberinfo, and postbit template edits.
To install:
------------
Simply upload all files to your forum root directory and import the product file.
To update:
--------------
Simply reupload all files, overwrite product and revert any templates you may have edited.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
ok try this, make a new plugin, hook location ibproarcade_play_game
contents somthing like this
PHP Code:
$amount = '1';
if (($vbulletin->userinfo[$vbulletin->options['icashf']] - $amount) < 0) { eval(standard_error(fetch_error('your_error'))); } $vbulletin->db->query("update " . TABLE_PREFIX . "user set {$vbulletin->options['icashf']}={$vbulletin->options['icashf']}-'{$amount}' where userid='{$vbulletin->userinfo['userid']}'");
you will need to make a phrase called whatever you want saying somthing like 'you dont have enough to play this game'
heres what each individual thing does
$amount is set to whatever you want your games to cost, you need to set this
if (($vbulletin->userinfo[$vbulletin->options['icashf']] - $amount) < 0) {
eval(standard_error(fetch_error('your_error')));
}
this checks the money row, and sees if they have enough to play the game, if not, ERROR!
of course you will need to make a new error phrase and edit the code to whatever you named your phrase.
$vbulletin->db->query("update " . TABLE_PREFIX . "user set {$vbulletin->options['icashf']}={$vbulletin->options['icashf']}-'{$amount}' where userid='{$vbulletin->userinfo['userid']}'");
if the error passes this updates their settings and minuses the $amount from their points
have fun !
So far this is working for me except for the phrase I made. What is the exact way to make the phrase?
We made a phrase that says "You do not have enough stars to play a game." - phrase type - global, varname - no_stars and saved. Then switched your_error in the above code with no_stars and saved.
Now when someone doesn't have enough stars ( our points) this pops up - Could not find phrase 'no_stars'.
Finally got it working with Ibproarcade and it is great. However I noticed that it does not seem to work for the games that are played in a new window. Would this need to be another plugin?
Is this the "Forum Manager" I need to be looking at? If so, I can only adjust "Points for Registering" and "Points Per Referral"
I need to adjust the following as well:
Points per reply
Points per new topic
Points per character of reply (Length of Post)
To set those three items go to vbadmincp > forums and moderators > forum manager, and then click on one of your forums as you would when you edit them. Should be down towards the bottom is where you will find those 3 settings.
Finally got it working with Ibproarcade and it is great.
What exactly do you have working?
I have it working that playing a game costs an x amount of cash, and if a user gets the all-time-highscore of a game, he wins an x amount of cash.
Do you have the same or do you have more options working?
To set those three items go to vbadmincp > forums and moderators > forum manager, and then click on one of your forums as you would when you edit them. Should be down towards the bottom is where you will find those 3 settings.
Thanks for the clarification. I was able to find it now. I have over 70 boards set up on my forum. Is there any way to globally customize point rewards so that I don't have to spend hours editing each indiviual forum? Also, has anyone found a way to cap the amount of points a user can get total per post?
What exactly do you have working?
I have it working that playing a game costs an x amount of cash, and if a user gets the all-time-highscore of a game, he wins an x amount of cash.
Do you have the same or do you have more options working?
Dam, you are one up on me, don't have the high score one yet. Took awhile to figure out how to get it to charge cash when a game was opened in a new window.
@4newbies - nothing yet so have fun doing your forums. I dont know about the cap as I dont use that.