Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

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
  #22  
Old 06-22-2006, 01:27 PM
Jay... Jay... is offline
 
Join Date: Jan 2006
Location: Sunderland, UK
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can this system be prevented from going into minus?
Reply With Quote
  #23  
Old 06-23-2006, 07:35 AM
armstrong armstrong is offline
 
Join Date: Aug 2005
Location: Philippines
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Blaine, I am not familiar with VB's plugin/hooks/internal workings/etc, but can code basic php/mysql. Could you post a short sample php code to do something elementary, like say transfer money from userA to userB? From this point, I should be able to work it out. I would really appreciate it if you can do this!
Reply With Quote
  #24  
Old 06-23-2006, 01:58 PM
Blaine0002's Avatar
Blaine0002 Blaine0002 is offline
 
Join Date: Jul 2003
Location: Wisconsin.
Posts: 1,350
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

really not much has anything to do with it, its mostly just backend queries and other stuff. for example a donation template would look somthing like
PHP Code:
<form action="donate.php?$session[sessionurl]do=DoDonateMoney" method='post'>
<
table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<
tr>
<
td class='tcat' align='center' colspan='6' width='1%'><a style="float:right" href="#top" onclick="return toggle_collapse('donate_money')"><img id="collapseimg_donate_money" src="$stylevar[imgdir_button]/collapse_tcat.gif" alt="" border="0" /></a>Donate Money!</td></tr>
<
tbody id="collapseobj_donate_money" style="{$vbcollapse['collapseobj_donate_money']}">
<
tr>
<
td class='thead' align='center' width='50%'><b>Amount</b></td>
<
td class='thead' align='center' width='50%'><b>To [Enter Username]</b></td>
</
tr>
<
tr>
<
td class='alt1' align='center' width='50%'><input type='text' class='bginput' name='amount'></td>
<
td class='alt1' align='center' width='50%'><input type='text' class='bginput' name='to' value='{$to}'></td>
</
tr>
<
tr>
<
td class='tfoot' colspan='2' align='center'><input type='submit' value='Donate Money!' class='bginput'></td>
</
tr>
</
table>
</
form
and then the backend php file would look somthing like this
PHP Code:
<?php
<?php
  error_reporting
(E_ALL & ~E_NOTICE);
  
define('NO_REGISTER_GLOBALS'1);
  
define('THIS_SCRIPT''donate');
  
//call the template
  
$actiontemplates = array('Donate' => array('itemshop_donate_money', ), );
  
// main DONATE
  
if ($_GET['do'] == "Donate") {
      
$navbits = array("itemshop.php?$session[sessionurl]&do=" $Action => "Donate");
      
$navbits[""] = "Send Money To Members";
      
$to $_GET['to'];
      eval(
'$template .= "' fetch_template('itemshop_donate_money') . '";');
  }

  
// DONATE function [Money]
    
if ($_GET['do'] == "DoDonateMoney") {
      
$navbits = array("itemshop.php?$session[sessionurl]&do=" $Action => "Donate");
      
$navbits[""] = "Sending Money";
      
      
$amount $_POST['amount'];
      
$amount str_replace(","""$amount);
      
$doname $_POST['to'];
      
$doname addslashes(htmlspecialchars_uni($doname));
      
      if (!
$user $db->query_first("select * from " TABLE_PREFIX "user where username='{$doname}'")) {
      
// user dosent exist
      
eval(standard_error(fetch_error('error_shop_sendmtonoexist')));
      }
      
      if (
$user_shop['userid'] == $vbulletin->userinfo['userid']) {
      
//user is self
      
eval(standard_error(fetch_error('error_shop_sendmtonoself')));
      }
      
      if (
$amount || $amount == 0) {
      
//cant send 0
      
eval(standard_error(fetch_error('error_shop_sendmsomthing')));
      }
      
      if (
$vbulletin->userinfo[$vbulletin->options['itemshop_pointfield']] - $amount 0) {
      
//you dont have enough
      
eval(standard_error(fetch_error('error_shop_donthave')));
      }
      
      
//take money
      
$db->query("update " TABLE_PREFIX "user set {$vbulletin->options['itemshop_pointfield']}={$vbulletin->options['itemshop_pointfield']}+'{$amount}' where userid='{$user_shop['userid']}'");
      
//give money
      
$db->query("update " TABLE_PREFIX "user set {$vbulletin->options['itemshop_pointfield']}={$vbulletin->options['itemshop_pointfield']}-'{$amount}' where userid='{$vbulletin->userinfo['userid']}'");
      
      
$vbulletin->url "donate.php?$session[sessionurl]do=Donate" $vbulletin->session->vars['sessionurl'] ."";
      
//donated successfully!
      
eval(print_standard_redirect('shop_r_donatesuccess'truetrue));
  }
?>
if you even have the slightest knowledge of php i think you can figure it out from there. If you need help there are some great resources in the modifaction tutorials forum!
Reply With Quote
  #25  
Old 06-25-2006, 11:07 AM
armstrong armstrong is offline
 
Join Date: Aug 2005
Location: Philippines
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, Blaine. This is great stuff. :tu: I like how I can use this with my own code, which means I can keep my forum's cash system lean and focused only on the stuff I really need.
Reply With Quote
  #26  
Old 06-26-2006, 10:36 PM
Blaine0002's Avatar
Blaine0002 Blaine0002 is offline
 
Join Date: Jul 2003
Location: Wisconsin.
Posts: 1,350
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you enjoy it. I am currently planning on integrating this with v3arcade and IBproarcade, so reccommend any other plugins you guys want.
Reply With Quote
  #27  
Old 06-27-2006, 09:01 PM
stonner stonner is offline
 
Join Date: Jun 2006
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Michael_Tree
Can you please add something where you get points per first place score in ibp pro arcade?

Thanks!
would be very interested too...
Reply With Quote
  #28  
Old 06-28-2006, 12:58 PM
Blaine0002's Avatar
Blaine0002 Blaine0002 is offline
 
Join Date: Jul 2003
Location: Wisconsin.
Posts: 1,350
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am working on integrating this with both arcade systems.
Reply With Quote
  #29  
Old 06-28-2006, 01:02 PM
stonner stonner is offline
 
Join Date: Jun 2006
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this would be great...

functions:
cost per game
wins per game if in highscore list.

would this be possible?
Reply With Quote
  #30  
Old 06-28-2006, 04:05 PM
Blaine0002's Avatar
Blaine0002 Blaine0002 is offline
 
Join Date: Jul 2003
Location: Wisconsin.
Posts: 1,350
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm how about somthing like you specify a number, and they get #1 on the highscores, they get that number X 10, number 9 would be X 5. ect. or what were you thinking?
Reply With Quote
  #31  
Old 06-28-2006, 09:12 PM
stonner stonner is offline
 
Join Date: Jun 2006
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes something like this.

and a fix price per game.

would this be possible?
Reply With Quote
Reply

Thread Tools

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 11:34 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.09427 seconds
  • Memory Usage 2,353KB
  • 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
  • (2)bbcode_php
  • (1)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