Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
ICash, Simple, stand alone point system. Details »»
ICash, Simple, stand alone point system.
Version: 2.0.3, by Blaine0002 Blaine0002 is offline
Developer Last Online: Jul 2018 Show Printable Version Email this Page

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.

Comments
  #392  
Old 03-08-2007, 12:54 AM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #393  
Old 03-08-2007, 01:01 AM
Blaine0002's Avatar
Blaine0002 Blaine0002 is offline
 
Join Date: Jul 2003
Location: Wisconsin.
Posts: 1,350
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 !
Reply With Quote
  #394  
Old 03-08-2007, 04:32 AM
Mys Mys is offline
 
Join Date: Jun 2006
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Blaine0002 View Post
would be simple enough, like just put the following code in whatever hook you want to take action for

PHP Code:
$amount '1';
$vbulletin->db->query("update " TABLE_PREFIX "user set {$vbulletin->options['icashf']}={$vbulletin->options['icashf']}+'{$amount}' where userid='{$vbulletin->userinfo['userid']}'"); 
for example giving points on arcade champ would be the hook ibproarcade_new_champ
Thank you, sir!

I will try to work with that.
Reply With Quote
  #395  
Old 03-08-2007, 04:35 AM
Mys Mys is offline
 
Join Date: Jun 2006
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

really looking forward to hear how Black Tiger makes out with that....

Thanks, again, Blaine!


:up:
Reply With Quote
  #396  
Old 03-08-2007, 01:08 PM
2meplie 2meplie is offline
 
Join Date: Nov 2006
Location: Quebec city, Qc, Canada
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

???
Reply With Quote
  #397  
Old 03-08-2007, 02:05 PM
2meplie 2meplie is offline
 
Join Date: Nov 2006
Location: Quebec city, Qc, Canada
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok I found the way.

nvm
Reply With Quote
  #398  
Old 03-08-2007, 02:13 PM
mcqwert mcqwert is offline
 
Join Date: Mar 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So is this working on v3.6 yet?
Reply With Quote
  #399  
Old 03-08-2007, 02:20 PM
Blaine0002's Avatar
Blaine0002 Blaine0002 is offline
 
Join Date: Jul 2003
Location: Wisconsin.
Posts: 1,350
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes, this has always been working on 3.6..

2mepile was it a problem with my code?
Reply With Quote
  #400  
Old 03-08-2007, 02:22 PM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #401  
Old 03-08-2007, 02:29 PM
2meplie 2meplie is offline
 
Join Date: Nov 2006
Location: Quebec city, Qc, Canada
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Blaine0002 View Post
it is actually very easy to add points for different actions people do ont he forums, i am going to cover voting on a poll.
Create a new plugin and call it : ICash Poll
The hooklocation should probably be : pollvotedata_postsave
and the code should look somthing like this
PHP Code:
$amount '1';
$vbulletin->db->query("update " TABLE_PREFIX "user set {$vbulletin->options['icashf']}={$vbulletin->options['icashf']}+'{$amount}' where userid='{$vbulletin->userinfo['userid']}'"); 
now just set the $amount variable to the amount you want to give to the voter.

simple as that, you simply have to know what hook is located where.

if you wanted to subtract points all you would need to do is change + to - in the php code.

Have fun and feel free to post your plugins
I did this and it does not work. It say:

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:04 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05128 seconds
  • Memory Usage 2,334KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete