vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - ICash, Simple, stand alone point system. (https://vborg.vbsupport.ru/showthread.php?t=119086)

Blaine0002 06-19-2006 10:00 PM

ICash, Simple, stand alone point system.
 
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.

Ntfu2 06-19-2006 11:17 PM

sweet, so with own shop do you mean we will be able to make our own stores.. like sell car parts for say, and then our users buy them with their cash?

If so sweeeet

Blaine0002 06-19-2006 11:50 PM

well no no. this is a system where you specify an ammount of points a user gets each time they post. then a coder can create a shop where users can spend those points on diffrent things on their website.

Ntfu2 06-20-2006 12:21 AM

ahhh,


Im not coding efficent enough to create a shop :) It seems useful though ;)

chkdgate 06-20-2006 02:07 AM

Where do I look when I want to edit a template? I'm having the same problem with vbbux. When I saw this, I was exited to upload it, which I did but can't seem to figure out how to perform edits.

Atakan KOC 06-20-2006 05:12 AM

Simple And Nice. Thanks.

Rickie3 06-20-2006 06:03 AM

can this be used with VBookie???

kafi 06-20-2006 08:24 AM

Sweet .-)

Can this have a feature that points are given only after certain number of "unique" views?

OndaReal 06-20-2006 12:10 PM

Quote:

Originally Posted by Rickie3
can this be used with VBookie???

Im curious to know this too

dartho 06-20-2006 12:31 PM

It would be very easy to modify the code to update vbookie money rather than its own.

Edit the XML and replace "money" in the SQL queries to be "vbookie_cash"

[EDIT]There are also a few statements the need the same changes in the icashadmin.php file[/EDIT]

Probably remove the install/uninstall sections although it won't hurt and no need to do the postbit template edits (assuming vBookie is already installed)



Nice simple neat hack here Blaine!

[Edit]I've implemented this with the above changes to the install XML and PHP file - works a treat ;)[/edit]

armstrong 06-20-2006 02:09 PM

Looks promising! I've been looking for a simple cash mod just like this.

three questions:
1. Can I change the currency name to one of my choosing?
2. Has this been hacker-tested? other (more complicated) forum cash systems had exploitable bugs that allowed users to game the system.
3. Will this be ported to vb3.6?

Thanks! :)

Blaine0002 06-20-2006 02:27 PM

ok,
there are no templates to edit for this, i dont know what you would want to change?
you can change the name of the points by simply editing the 'money' phrase
i have no idea what ibookie is, but try darthos idea
This should be hacker proof, any breaches i think would be vbulletins fault since this is all backend.
and it should workd with 3.6 but i havent looked into all the changes.

Michael_Tree 06-20-2006 03:15 PM

Can you please add something where you get points per first place score in ibp pro arcade?

Thanks!

Qwest 06-20-2006 04:32 PM

demo please

Blaine0002 06-20-2006 05:03 PM

Quote:

Originally Posted by Qwest
demo please

all it adds is a simple "points:" to the postbit with the ammount of points that user has.

bing11 06-20-2006 05:47 PM

thank you so much

armstrong 06-20-2006 11:46 PM

>point giving via admincp.

Can admin give negative points? This effectively takes points away instead of adding.

Blaine0002 06-21-2006 01:03 AM

Yep, where you enter in the ammount of points to give to a user simply type a negative number.

armstrong 06-22-2006 02:51 AM

>point giving via admincp.

urm ... where do I go to do this? I just installed icash, but can't seem to find this particular feature.

I have access to cpanel/phpmyadmin. Can i make the changes directly, or would that possibly break something?

EDIT: nevermind. i had to refresh admincp to see the new icash options. thanks for the hack! *clicks install*

Blaine0002 06-22-2006 01:14 PM

Thanks, and remember guys, if you like the hack please click install so I know that people like my hacks!

Jay... 06-22-2006 01:27 PM

can this system be prevented from going into minus?

armstrong 06-23-2006 07:35 AM

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!

Blaine0002 06-23-2006 01:58 PM

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

armstrong 06-25-2006 11:07 AM

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.

Blaine0002 06-26-2006 10:36 PM

Glad you enjoy it. I am currently planning on integrating this with v3arcade and IBproarcade, so reccommend any other plugins you guys want.

stonner 06-27-2006 09:01 PM

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

Blaine0002 06-28-2006 12:58 PM

I am working on integrating this with both arcade systems.

stonner 06-28-2006 01:02 PM

this would be great...

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

would this be possible?

Blaine0002 06-28-2006 04:05 PM

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?

stonner 06-28-2006 09:12 PM

yes something like this.

and a fix price per game.

would this be possible?

armstrong 06-28-2006 11:01 PM

The arcades' tournament feature would be nice. Members pay an amount to join, and the tournament champion gets the pot, less a predefined house "tax".

Emmy2 07-02-2006 11:39 PM

Blaine, I really like this simple cash system. I've been researching the various ones out there and found that ucash is no longer supported, and vbux is way too feature-rich for what I want. So this is a nice simple system to start.

I think you asked for suggestions, did you not? Well, here goes...:p...I want to use the cash system to encourage my members to participate on the forum and you have started off with some good things, like rewarding for posts, or starting threads. But how about giving points for things like....

- creating a quiz (Inferno Quiz, which I have not yet installed)
- taking a quiz
- using the chatroom (basically, just simply clicking on the chat link would do it)
- reading a thread (yes even lurkers need some reward! LOL!)
- thanking a post (I have the Thank You hack installed, so if someone clicked the thank you link it would be nice if they got points for it)

Some other things to mention...

I notice that I have to make a choice in the points system. One, I can give points for the number of characters a member enters in a post OR I can give points for new threads and replies. Is there some way to use BOTH? That is, I want to give members points for making a reply, but I'd like to give additional points for the LENGTH of that reply (as it stands now, a poster that posts 2 words gets the same amount of points as someone who posts several paragraphs). Also, the points are out of skew for the number of characters...1 point for each character in a post? That's too much. Could that be altered to something like 1 point for every 20 words?

Finally, in the admin CP when I manually give out points...would be nice if there was a text field "why" I was giving points and then if a PM could automatically be sent to the member that I had given points to (ie. "Hello LongtimeMember, I have given you 25 points for your helpful reply to Newbie on how to add an avatar").

Another thing...will you be creating an iShop to use with your iCash? Not essential as I think I will just create a thread that lists all the items people can buy with their points and then sell them manually, but it would be cool if it was automated and customizable (ie. only the things I want for sale in there).

Thanks again for your hack, and I hope my suggestions are of some use. :)

Emmy2 07-02-2006 11:46 PM

ps. me again! one more thing....would it be possible to dispense points from the postbit, instead of having to go to the Admin CP?

Emmy2 07-02-2006 11:51 PM

more...

- points for creating a poll
- points for voting in a poll

kurzo 07-03-2006 03:49 AM

Are there plans for an upgrade soon? If so when and what would be involved?

I do not want to install this if there is nothing else coming down the road...

Blaine0002 07-03-2006 05:56 PM

Of course there are upgrades coming, i could probably upload a base ibproarcade integration. And yes I am planning on integrating a shop with this. My current shop isnt compatable with it because i havent updated it in awhile. Emmy, thanks for the lengthy post, i'll look into those :)

armstrong 07-04-2006 01:01 AM

Its great that upgrades are forthcoming. However, the thing with icash is its simplicity. If you keep adding new features, it might soon become as large as vbbux, and increasingly harder to update (for you the developer) with each new vb upgrade. My first vb cash/shop mod was ucash, and like many others I kept postponing my vb upgrades because of incompatibilities with ucash. That experience is what made me shy away from vbbux and opt for icash this time around. Anyway, this is just something to consider. :)

I haven't gotten around to creating my own donation feature based on icash, as I'm still boning up on how to program for vb. In keeping with the idea of simplicity, I envision a single-page "icash transactions" area, where members can donate funds, purchase virtual items, and order items for physical delivery.

Jay... 07-04-2006 07:18 PM

just wondeting, i asked a few weeks ago but got no answer, can the points be prevented from going into minus?

GrCh_Jeff 07-04-2006 09:05 PM

It isn't showing up for me at all.I have vB3.5.4 and I installed all files and edited template correctly.Am I missing something?

armstrong 07-05-2006 01:33 AM

Quote:

Originally Posted by Jay...
just wondeting, i asked a few weeks ago but got no answer, can the points be prevented from going into minus?

only admin can deduct points, so you have the power to stop this from happening.

for my board, i allowed several people to borrow points and thus go into minus, which serves as an ongoing reminder that they "owe" the board, and have to make up for it by posting.


All times are GMT. The time now is 06:33 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.02594 seconds
  • Memory Usage 1,872KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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