The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
ICash, Simple, stand alone point system. Details »» | |||||||||||||||||||||||||||
ICash, Simple, stand alone point system.
Developer Last Online: Jul 2018
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
|
Comments |
#392
|
||||
|
||||
I had posted the same question as Mys has posted here, in the ibProarcade support area, so in fact I have the same question.
But I don't have a clue how to work with hooks or how to implement them. I can understand a little what the db query does you wrote Blaine, but I don't have a clue how to implement it nore where. I would need screenshot examples or a product.xml file or something like that, cause on this territory I'm really a noob. I would already be very glad if I (for starters) only had a way that users had to pay to play with Icash credits and that I could setup in the ACP the amound of credits needed to play a game. Any help is VERY appreciated! |
#393
|
||||
|
||||
ok try this, make a new plugin, hook location ibproarcade_play_game
contents somthing like this PHP Code:
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 ! |
#394
|
|||
|
|||
Quote:
I will try to work with that. |
#395
|
|||
|
|||
really looking forward to hear how Black Tiger makes out with that....
Thanks, again, Blaine! :up: |
#396
|
|||
|
|||
I installed the update a first time. But it was not working correctly (we got points for a new thread but not for a reply). I tried to reinstall it and I got this:
Database error in vBulletin 3.6.4: Invalid SQL: ALTER TABLE user ADD COLUMN money decimal(15,2) DEFAULT '0' NOT NULL; MySQL Error : Duplicate column name 'money' Error Number : 1060 ??? |
#397
|
|||
|
|||
ok I found the way.
nvm |
#398
|
|||
|
|||
So is this working on v3.6 yet?
|
#399
|
||||
|
||||
yes, this has always been working on 3.6..
2mepile was it a problem with my code? |
#400
|
||||
|
||||
Working fine on 3.6.x mcqwert, no problem.
@Blaine0002: Thanks very much! This evening I have to go out, but I will try to do it like you said later tonight (around 02.00 GMT+1). I'll let you all know how it worked out. |
#401
|
|||
|
|||
Quote:
Fatal error: Call to a member function on a non-object in .../public_html/forum/includes/class_dm_pollvote.php(138) : eval()'d code on line 2 |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|