PDA

View Full Version : Major Additions - ICash, Simple, stand alone point system.


Pages : [1] 2 3 4 5

Blaine0002
06-19-2006, 10:00 PM
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
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"

There are also a few statements the need the same changes in the icashadmin.php file

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!

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

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

<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
<?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_sendmt onoexist')));
}

if ($user_shop['userid'] == $vbulletin->userinfo['userid']) {
//user is self
eval(standard_error(fetch_error('error_shop_sendmt onoself')));
}

if ($amount < 0 || $amount == 0) {
//cant send 0
eval(standard_error(fetch_error('error_shop_sendms omthing')));
}

if ($vbulletin->userinfo[$vbulletin->options['itemshop_pointfield']] - $amount < 0) {
//you dont have enough
eval(standard_error(fetch_error('error_shop_dontha ve')));
}

//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 ', true, true));
}
?>


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

Blaine0002
07-05-2006, 01:51 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?
Did you upload the product file?

Blaine0002
07-05-2006, 01:54 PM
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...


As for next upgrade, just a few new features including ibproarcade, nothing too MAJOR though.

GrCh_Jeff
07-05-2006, 09:53 PM
Did you upload the product file?

Everything is uploaded and triple checked it all.

armstrong
07-05-2006, 10:45 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?
Are you using postbit or postbit_legacy? You should edit both templates just to be sure.

Blaine0002
07-06-2006, 01:39 AM
also please click install!

Armstrong did you test out the ibproarcade integration?

toolblast
07-06-2006, 02:16 AM
I love the idea Blaine, especially love the idea of making it simple.

You definately hit the nail on the head when you say that this is a system without all the bells and whistles of those "other" hacks. And you're right, people DO want a point system that just does that... counts points lol.

I would love to see someone use this great system to create some sort of File Download Store. I know many vb.org users have requested this in the other point hack threads. Possibly integrate it with one of the existing file managing hacks and make it so that users can collect points and then buy downloadable files with those points. (ex: ebooks).

If you can do this, I'd definately like to hear from you! PM me!

MillerLight
07-06-2006, 02:23 AM
ay ideas?

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/catfish4/public_html/forums/includes/adminfunctions_template.php(3537) : eval()'d code on line 84

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

MillerLight
07-06-2006, 02:30 AM
My admincp has a string of numbers after it, this is probably it? Think?

toolblast
07-06-2006, 02:57 AM
When installing the hack your admincp needs to be at the location

www.yoursite.com/admincp

Or if your forum is in a subfolder: www.yoursite.com/forum/admincp

Your admincp folder can't be named /admincp123456 while installing because you'll get that error.

MillerLight
07-06-2006, 03:01 AM
Can you change the name of the folder, and not break the forum. Once logged in, change the folder name to admincp, then rebame it bacdk to what it was?

Of course, this would be thru FTP

toolblast
07-06-2006, 04:10 AM
Change it back to /admincp

Install the hack

Then change it to whatever new name you want after you've installed.

armstrong
07-06-2006, 06:16 AM
Armstrong did you test out the ibproarcade integration?
Will upgrade and test today.

What if I also wanted to install vbookie? If I change the money row (in admincp/icash) to vbookie_cash, what will happen to the data already stored under the money row? Would it be better to somehow tell vbookie to use 'money' in place of 'vbookie_cash'?

armstrong
07-06-2006, 10:33 AM
Ok, I tried it, with mixed results. I don't know if its because of my internet connection (somewhat sporadic today), but my funds were not decremented by the specified "Costs per Play", even during the one time the jackpot was incremented as expected (other times I played the jackpot didn't move at all).

I'm using all integer numbers in my icash, while ibproarcade uses fractional values. Could this have something to do with it?

Blaine0002
07-06-2006, 11:12 AM
thanks for the reply tool blast

I think you will probably need your admincp to remain as admincp since i think the admin file calls files in the admincp directory. maybe open and edit the file and change all instances to what you want them to be??

Armstrong i will route this thru mrzeropage and see what he says :)

and miller, i have never seen any errors like that, try what i said above.

Emmy2
07-06-2006, 12:05 PM
Blaine, if I'm not running IbProarcade will it still work if I do the upgrade for this? Are there any other changes besides integrating IbProarcade?

Emmy2
07-06-2006, 12:20 PM
Blaine, me again, with another idea, hope you don't mind. The appeal of your points system is its simplicity...that is, we aren't uploading script for a whole bunch of features we don't use or want. Would it be a good idea then to keep the main script as clean as possible (that is, features that all forums use, like replying to posts, reading threads, voting in polls etc.) and create separate add-on scripts for features like ibProarcarde? That way people installing this can choose from the list of add-ons what they want for their forum and the basic script is kept simple and clean and relevant to everyone.

What think? Because, for example, like I mentioned earlier I would like an add-on for points for "thanking" posts...but not everyone has the Thank You hack on their forum, so it might be best to keep it all separate from the main script.

Don't know if any of that made sense, hope so.

Emmy2
07-06-2006, 12:36 PM
tiptoeing in.....me again! :D

Here's another idea: Is there some way to give points for clicking on different things in the forum that the admin can set up themselves? (so you don't have to create separate scripts?)

In other words, a place in the ICash admin panel where I could simply enter a url and the number of points for clicking on it?

Example, points for clicking on the url to my chatroom (so members would get points for using chat) would look something like this in the admin panel:

Earn Points for Visiting Url: http://mysite.com/forums/chat/flashchat.php
Points Earned Per Click: 10

This could also apply to the Thank You hack, could it not? The full url to that is something like:

http://mysite.com/forums/showthread.php?do=post_thanks&p=453480

but could it be set up so it ignores the post number and rewards for...

http://mysite.com/forums/showthread.php?do=post_thanks

Long story short, if there is some way to include urls in the admin panel that the ADMIN could set up themselves for point-giving. A sort of generic script that could be used in various situations so the admin could customize what they want to give points for.

Just an idea from my overactive imagination. :D

armstrong
07-06-2006, 01:15 PM
Same here - I like icash for its simplicity. In that case, what basic functions do forums universally need? IMHO, the following:
1. points per thread
2. points per post
3. points per referral
4. points transfers (also called a donation feature, used for members to pay each other instead of routing everything to the forum admin)
5. magic transfers (for admin and mods to adjust users' points without affecting his own balance)
6. transfers log (who gave what to whom, when and how much; this is so admins have something to work with in case of disputes)

icash already has 1,2&3 above; I hope blaine can include 4,5,&6. Everything else (including the ipb integration that I can use) is just fluff, and I would rather not have them than see icash get bloated. I rather like Emmy's suggestion of having addons that we can pick and choose from.

GrCh_Jeff
07-06-2006, 01:40 PM
Are you using postbit or postbit_legacy? You should edit both templates just to be sure.
I added to both.Still nothing.I will re-install and let you know what happens.Thanks.

Emmy2
07-06-2006, 04:47 PM
Same here - I like icash for its simplicity. In that case, what basic functions do forums universally need? IMHO, the following:
1. points per thread
2. points per post
3. points per referral
4. points transfers (also called a donation feature, used for members to pay each other instead of routing everything to the forum admin)
5. magic transfers (for admin and mods to adjust users' points without affecting his own balance)
6. transfers log (who gave what to whom, when and how much; this is so admins have something to work with in case of disputes)

icash already has 1,2&3 above; I hope blaine can include 4,5,&6. Everything else (including the ipb integration that I can use) is just fluff, and I would rather not have them than see icash get bloated. I rather like Emmy's suggestion of having addons that we can pick and choose from.

The basic script does more than 1,2,3 in your list. Here is the current list as it appears in Admin CP:

1. Points per character posted...amount of points a user gets for each character posted in their post (would like to see this integrated with the replies and new threads points, not separated in that you choose one or the other. In other words, a base amount for adding a post, then additional points based on the LENGTH of that post).

2. Points per new thread started

3. Points per reply

4. Points on registration

5. Points per referral

6. Donate to members (Admins giving members points)

--------------------

Other things I'd like to see in the BASIC (for everyone) script are:

7. Points for reading threads

8. Points for creating a poll

9. Points for voting in a poll

10. Points for each week someone is a member of your forum (as long as they have logged in that week). This rewards "loyalty" and re-visits.

--------------------

Then I would like a feature where Admins could customize the points by adding urls that when members click they get points for. Examples:

a. Visiting the Chatroom url

b. Clicking the "thank you for this post" link

This way it's unique to each forum and you aren't creating separate scripts for those items if you don't run them on your forum.

---------------------

Finally, I would like to see Add-ons for more complex features not coverable by the simple "points for clicking url" feature above, and that not all forums use (these would require separate installations). Examples:

i. Add-on for IbProarcade

ii. Add-on for Inferno Quiz (points for creating quiz, taking quiz)


That would be my fantasy dream setup. :p

toolblast
07-06-2006, 04:58 PM
Then I would like a feature where Admins could customize the points by adding urls that when members click they get points for. Examples:

a. Visiting the Chatroom url

b. Clicking the "thank you for this post" link

This way it's unique to each forum and you aren't creating separate scripts for those items if you don't run them on your forum.



Hey thats a GREAT idea. I really like the whole "custom point urls" idea where admins can add something onto the beginning of their URLS so that when the user clicks the link, it gives them points, and then redirects them to the proper url... that would be a pretty useful thing I think.

armstrong
07-06-2006, 10:14 PM
Wouldn't it be easy to abuse points for reading threads, visiting the Chatroom url, and clicking on links? The old ucash had this feature, which I turned off right quick, because people kept amassing large number of points simply by placing point-earning URLs on autofurf programs. To keep people from doing this, you would have to track who has already visited which URL, which would quickly become unrealistic except in really low-activity boards.

MillerLight
07-07-2006, 12:25 AM
hmmm. still no luck. Seems to be an issue with the template itself when adding

$vboptions['icashn']: $member[money]

Blaine0002
07-07-2006, 12:43 AM
Wow, active thread today! (zoos are a terrble place to be, all the little kids and how they treat the animals :( ) but anyways, everything seems to be working fine on both my 3.6.0 and 3.5.4 forums, no problems at all. I will probably do like you said, make a complete basic system which will allow users to make their own addons and me myself make addons. It sounds like a good plan to me :) its personally why i dont use vbbux and stuff, just so much stuff i dont need.

So as for updates i will try to get them out as soon as i can while maintaining my jobs of WoW and my website, also being a real person (im learning!) so i can and wont promise a timeframe in which updates will be released, all i can say is. THEY WILL :)

Blaine0002
07-07-2006, 02:02 AM
whoops miller, i really screwed up on that one :) should be working now!

Blaine0002
07-07-2006, 02:21 AM
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?

oh and jeff, redownload it. it should be working now :)

MillerLight
07-07-2006, 10:14 PM
Blaine,

What was causing the problems?

Thanks...

Blaine0002
07-07-2006, 11:25 PM
lol it was the 's in
$vboptions['icashn']

armstrong
07-08-2006, 02:07 AM
I'm thinking of installing vbookie. How would that work, since I already have icash installed?

Blaine0002
07-08-2006, 02:54 AM
as of right now i still need to make a table point converter.

For example, if you have points in your 'money' table (default for icash) and you want to use vbookie, you change where the points go to, but you dont retain your current points. What i need to do is make somthing so that it will add what you have, to what you are converting to.

See what im saying?

armstrong
07-08-2006, 03:25 AM
what if I do this:
1. pause the forum
2. go to cpanel->phpmyadmin and rename the money field to 'vbookie_cash'
3. change icash settings (admincp->icash->'money row') to 'vbookie_cash'
4. install vbookie
5. activate forum

Unless I'm missing something, this should work, right?

chkdgate
07-08-2006, 05:40 AM
Blaine, you've created an awesome monster here. I remember when you first posted this thread and I was quite excited that there was an easier point system out there. Now, I have to admit that I currently use vbux on my forum but like many other users on here have mentioned before, it is way too "feature rich." One of the few features that I do like is its banking system which would be a great little add-on in ICash those who "choose" to intergrate it to their site. What looks extremely promising to me is the possibility for custom shops. That is what's really going to make this hack reach the top of its game. The only problem I have is if I uninstall vbux and install ICash, do I have to revert the templates? That would really suck if I did, because they are heavily modded with other hacks. I'm going to continue to support this hack and I commend you for your efforts.

Blaine0002
07-08-2006, 12:41 PM
Yes armstrong that should work :) thanks for the info!
but when you remove icash make sure to rename it back or you will get an error.

@chkdgate
what do you mean revert them? there is only 1 template edit for icash right now.

Im not sure how many template edits vbbux has but you might want to undo them :)
and yes i will be making a bank system.

chkdgate
07-08-2006, 04:18 PM
and yes i will be making a bank system.
Awesome!

What I mean by "reverting" is yes, undoing them. I have other mods in those templates which took some time to do so I'm just about ready to install ICash but now I also have to reinstall my other mods as well.

chkdgate
07-08-2006, 04:58 PM
Man I love this hack! *clicks install* bigtime!

Mr.D
07-08-2006, 05:10 PM
Thanks a lot for this its simple and great.

MillerLight
07-08-2006, 08:36 PM
Tie this into the contest script, that would be great. Members would be charged X Money to enter a contest. In order to get Money, you have to participate.

armstrong
07-09-2006, 08:40 AM
Yes armstrong that should work :) thanks for the info!
but when you remove icash make sure to rename it back or you will get an error.

What do you mean "remove icash"? I don't intend to remove it (its great!), merely add vbookie, which I'm not even sure of yet.

Blaine, it might be time to start thinking about how to number your updates. We've been on v1.0.0 since day 1, even with all the new features you installed. Just a suggestion; it might be for the best in the long run.

armstrong
07-09-2006, 09:07 AM
I installed the updated version, and the "Donation and point giving via donation page and postbit!" seems to work as expected. However, we need some sort of mechanism to notify the parties (probably via PM) of the transaction. As well an audit trail so that admin and mods have something to rely on in case of dispute.

Thanks Blaine for all your hard work! This hack is indeed shaping up to be one of my favorites.

Blaine0002
07-09-2006, 01:24 PM
thanks! i havent made any actual "updates" yet because it starts to screw with the code, and IMO its just too much work to change a few simple numbers :)

PMing a user would be an easy thing to add, will do.

zane99
07-09-2006, 02:58 PM
hello, i have installed your hack & Vbookie because it says its easy to intergrate them. everything is working fine except i do not understand how they are intergrated beacuse i still have to cash/points system. your hacks & Vbookis.

I have changed the money to vbookie_cash as said but i dont see anything changed.

ANy help? thanks

Blaine0002
07-09-2006, 03:43 PM
How do I know you have installed my hack? You havent clicked the install button :)

Besides that, you wont see any diffrence, besides vbookies points and the Icash points being the same thing :-)

zane99
07-09-2006, 04:17 PM
How do I know you have installed my hack? You havent clicked the install button :)

Besides that, you wont see any diffrence, besides vbookies points and the Icash points being the same thing :-)

have clicked install now.

i rli dont understand that, how are they intergrated then?

i must b being dumb here

SiriusBlack22
07-09-2006, 05:45 PM
Nice hack, but um... how do I edit a user's points in admincp?

Blaine0002
07-10-2006, 12:25 AM
to give them points you simply give them points, to take them away give them negative points..

The vbookie will be using the icash system to give the user points and stuff. i dont know how to really explain it :P

chikkoo
07-10-2006, 08:23 AM
Does it gives Points to already created Topics or Posts??
If it does so, I will install it.
Most of them give the points to the threads/posts after the hack.

Blaine0002
07-10-2006, 03:16 PM
it does not give points to threads and posts made before the hack was installed, sorry :(

Mr.D
07-11-2006, 05:38 AM
Can i make a suggestion can you make a addon that will calculate all the money that members have earned in who's on line- Statistics.

armstrong
07-11-2006, 05:57 AM
What are the range of values that each person can have ?

If we use "Points per character", can it handle fractional values (e.g., 0.001 per character)?

Are quoted text and urls given credit?

Can we use "Points per character" and "Points per thread" simultaneously?

Blaine0002
07-11-2006, 12:31 PM
Mr.D I will probably make that an addon in the future.

Armstrong, Im pretty sure it will take 0.001 , but the person would need to type 1000 characters to get one point since it dosent take decimals in storage.

toolblast
07-11-2006, 05:07 PM
Looking great. I like to see everyone's ideas for this hack.

It definately needs to stay simple and clean, but it would be nice to also include in the installation zip some 'addons' that can be run and installed as addons to the basic icash script and give it even further functionality above the base functions.

jacks0_0
07-13-2006, 12:26 PM
How can i add reason and set maxium Add Point in this Mod ?

Blaine0002
07-13-2006, 01:44 PM
I do not understand what you are asking :(

jacks0_0
07-13-2006, 03:35 PM
Can you add comment in your Mod like this image ?

Blaine0002
07-13-2006, 06:08 PM
Yep, once i get to it i will add it.

dartho
07-14-2006, 07:25 AM
38 downloads, and only 18 installs? I'm suprised at the low number of downloads, but surely there have been more installs than that?

A request which I think the above may be asking for: Giving reputation earns you iCash.
Receiving positive reputation gives you iCash, but receiving negative reputation subtracts iCash?

Good work

Snake
07-14-2006, 11:08 AM
Thanks, just installed it! :)

dartho
07-14-2006, 10:27 PM
another suggestion - perhaps posts/threads in some forums give you more points than in others?

chkdgate
07-15-2006, 06:11 AM
Blaine, I definitley think that the next basic mod to this should be the ability for the author of a thread to get points per reply. Therefore an author could just sit back and collect royalties on a really hot thread. I know it has been mentioned before but since you already have points per thread/reply, I figure, why not? It should be a default feature to ICash and it still keeps it clean and simple.

armstrong
07-15-2006, 08:15 AM
I have email confirmation enabled in my forum. At what point does icash credit the referral points? Upon registration, or upon email confirmation? It would be nice if this is credited only after a minimum number of posts, to help keep referral credits legit.

chkdgate
07-16-2006, 07:42 AM
Blaine, can you make it to where it displays a message right after you post, telling you how much you just earned?

gbechtel
07-18-2006, 11:31 AM
How can I had the points to the members list page?

MoMan
07-21-2006, 03:47 PM
VERY nice plugin!

I installed vBux and vBPlaza yesterday, and today, I was already sick of all of the pointless features and store items, and the many messed up templates.

So, I tried out iCash, and IMO it's a lot better- it doesn't keep my users from posting, but it lets them enjoy a simple, subtle points system!

Great work- I'm looking forward to more ways of acquiring points in the future.

Danny Diamond
07-21-2006, 11:05 PM
This sounds pretty sweet man. VBPlaza is all bells and whistles to me. (no offense Plaza). I was just looking for the meat and potatoes.

Thanks..... INSTALLED

armstrong
07-23-2006, 02:04 AM
Hi blaine. I modified your xml to log all points earned. For points earned for posting a response, I added this part:

$nplogentry = date('Ymd') . ' ' . strftime('%T') . ' response ' . $vbulletin->options['ppr'] . ' ' . $vbulletin->options['icashf'] . ' ' . $vbulletin->userinfo['username'];
$npearnlog = fopen('../../noypisoearnlog.txt','a') or die("can't open cashlog: $php_errormsg");
fwrite($npearnlog, $nplogentry . "\r\n");
fflush($npearnlog);
fclose($npearnlog) or die ($php_errormsg);

Now, I would also like to log the actual post number. What would the variable look like for this?

Blaine0002
07-23-2006, 11:51 PM
Away on vacation, have absolutely NO resources to work with, should be back within 5 days or so. And I am also adding a banking system (as a seperate addon of course) :). Cyaz.

chkdgate
07-24-2006, 04:06 AM
Enjoy your vacation man. Just know that once you get back and have the banking system ready, this thread is going to blow up! Awesome add-on!

co7t
07-25-2006, 02:47 PM
Gang - can someone give me a pointer on how to get the icash info (as displayed in postbit) to appear in the user's profile? I tried putting that same information underneath the referral information but the points themselves don't show up in there. Thanks!

chkdgate
07-25-2006, 02:51 PM
I think that Blaine is working on that. Give him some time because he's bound to release some much anticipated add-ons.

imnojunecleaver
07-31-2006, 06:24 PM
I am super new to this and have downloaded and partially (I assume) installed the Icash.

The points show up on the post bit and are awarded properly, but when I click donate I get The page cannot be found, so I know I haven't totally installed it yet. Can someone please tell me where to install the other files?

Thanks in advance :D

Blaine0002
08-01-2006, 03:38 PM
Make sure you have uploaded the donate.php to your forums home directory!

Ah and chkdgate i have released my bank.

chkdgate
08-01-2006, 09:40 PM
Where is it? In the updated ICash or as an add-on?

Edit: Nevermind, I found it. Please don't tell me it's only for 3.6.:nervous:

Blaine0002
08-02-2006, 01:14 PM
works both versions.

ZeroX Prodigy
08-02-2006, 02:11 PM
Dude, great work on the modification! I'm installing it on my forum, and love it!

imnojunecleaver
08-02-2006, 09:51 PM
okay will try that, thanks!

imnojunecleaver
08-02-2006, 10:01 PM
It worked :P

LUK3
08-04-2006, 07:47 PM
I can't get the points to show up in postbit. I edited the template just like the instructions explained.

Any help?

Blaine0002
08-05-2006, 12:12 AM
Make sure you edit both postbit and postbit_legacy :)

armstrong
08-05-2006, 08:05 AM
Hello Blaine! Do you know if icash works with vb3.6 gold?

Blaine0002
08-05-2006, 01:30 PM
yes it does :)

adonfun
08-05-2006, 03:33 PM
Hi Blaine :) me again... I just installed it.. up till now so far so good.

But where can a member find the Point/Bux etc etc balance? And where is the link to donation located? Will a member be able to see that he/she got credited for posting etc?

what i actually mean is, what is the link to the postbit file? I already added the lines.. but don't see them appear in the menu or CP

:)

Kana

ETA: Never mind .. Found it

armstrong
08-05-2006, 09:43 PM
yes it does :)
Thanks, blaine. You are gold!

adonfun
08-07-2006, 07:58 AM
Any way to reset the stats of all current Point System except for emptying the Money Row tables in phpmyadmin?

iatbm
08-09-2006, 05:02 PM
Great mod .... working very well ! and now I need help

Is there any way to count points for earlier threads and posts and what about if post is deleted ?

Thanks

chkdgate
08-10-2006, 04:11 PM
Blaine, is this integratable with v3arcade yet?

T2DMan
08-13-2006, 11:02 AM
Any way apart from phpmyadmin of seeing the points per member?
And I second the request for resetting points to zero.
Would also like to see the points on the member profile, both in admincp and public user profile.

Thanks

actolearn
08-13-2006, 11:05 AM
ditto to what t2dman said.

a great and much needed mod -- thanks for sharing. :)

chkdgate
08-13-2006, 04:39 PM
Agreed.

novelidea
08-13-2006, 07:18 PM
Great! *clicks install*

Is there a way I could use this with the ecDownloads addon (I'm running 3.5.4)? Like, the user has to have a certain number of points to download a file?

Oh! And what about something like a user earns points each day (or each week, or each month) and each day (week, or month) they expire. For example they have to use them within the set amount of time because the points reset themselves. Oh man, that would be useful for downloads and it would increase forum participation because in order to get points for downloads, users have to participate in forum conversations.

But i guess that's wishful thinking. :)

T2DMan
08-15-2006, 12:45 PM
I have added some code to the donate.php to do some admin - ie reset the cash to nil.

However, how do you create a new redirect:
eval(print_standard_redirect('icash_r_donatereset' , true, true));

I have created a phrase named icash_r_donatereset, but when it does the reset and redirect, it comes up as an error saying that it cant find the phrase. What am I doing wrong??? Thanks.

armstrong
08-20-2006, 02:57 AM
vb automatically detects duplicate posts, and refuses to post such. However, icash seems to not know this, and in fact credits the erring member with twice the amount he's entitled to had the post been accepted. What can be done to remove this bug?

zane99
08-27-2006, 07:35 PM
any way to see whos donated wat to who etc?

my users have been requesting it. Like somway so they know whos donated them wat etc?

Wolf_Hook
08-28-2006, 08:17 PM
Just installed this after some very bad experiences with that vbPlaza mess.

It seems to be running nicely, it reminds me a cash mod I had installed on an old phpBB forum and that leads me to my question.

Is it possible to have the money name as an image rather than what the admin has decided to name the cash?

On my old phpBB forum I used to have a gif image of a pile of coins and then the total next to it. Small touch but effective.

janjalani
08-29-2006, 08:30 AM
I only want to credit posts that have more than 30 chars to prevent spam. How can I do this?

thanks!

Nokia Tech
08-29-2006, 06:45 PM
Fully Working Here, Thankyou

Wolf_Hook
08-29-2006, 09:38 PM
Noticed a small error.

I have a member on my board called Muad'Dib and when I try to donate it states that he is not a member. I think this cash mod doesn't take into consideration special characters in a users name.

Coach_Guru
08-30-2006, 06:35 AM
How can set different points for different forums?
I.e. forum X: 10 points thread opened and 5 for posts.
Forum Y: 2 points thread opened and 1 for posts.

I hope i'm been able to explain the question.

Sorry for my ugly english :p

Thanks to all and especially to Blaine.

Coach_Guru
08-30-2006, 09:59 AM
Bug report:

With quick reply the system adds 5 point to any reply to existing Thread, but with advanced mode the points become 10, like is a new thread and not a reply.

armstrong
08-31-2006, 05:55 AM
Hmm. Blaine's been gone for a while. Anyone know what's up? Is he ok?

Last Activity: 15. Aug 2006 11:44

MotMann
08-31-2006, 10:10 AM
Where is the Demo ore Screenshots?

dartho
08-31-2006, 12:57 PM
There's not really much to have in a screen shot - template edit adds a "iCash: xxx" line to the postbit where xxx is the current iCash balance. Admincp module is attached...

It's a very simple (and elegant) hack - for a demo, just install it...

agiacosa
09-02-2006, 04:35 PM
Anyone figure out had to make the points show in the profile page?

soletrader
09-06-2006, 10:21 AM
I love this hack but I have a question. How would I be able to reward users for prizes with icash?

Do I need another hack? Thank you

Evolution06
09-07-2006, 03:26 AM
I see on most ipb sites that have a cash system installed they are able to lock the members gold, cash etc where it would say on the postbit as follows

Forum gold:Locked

Which will lock them from using there points, gold etc. Is there a hack that you have made to work with icash or anyone might know of one?

Black Tiger
09-08-2006, 12:34 AM
Oops... encountered a problem. Installed this one, went fine.
Then I tried the "donate to members" option and give myselve 50 points but a database error occured:
Database error in vBulletin 3.6.0:

Invalid SQL:
update user set fun-euri=fun-euri+'50' where userid='3';

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-euri=fun-euri+'50' where userid='3'' at line 1
Error Number : 1064
Date : Friday, September 8th 2006 @ 03:26:04 AM
Script : http://www.mysite.org/forum/admincp/icashadmin.php?do=do_donate_all
Referrer : http://www.mysite.org/forum/admincp/icashadmin.php?act=donate_to_all
IP Address : xx.xxx.xxx.xxx
Username : Black Tiger
Classname : vb_database

Did I do something wrong or does this version don't work on 3.6.0 gold?

agiacosa
09-09-2006, 03:27 PM
When donating to a usergroup from the ACP, it will only donate to a usergroup if it is the main usergroup for the member. If it is a secondary usergroup, it won't donate.

Can anyone else confirm this, please? Blaine, any quick correction to this?

Black Tiger
09-10-2006, 04:00 PM
Got it working now by putting fun-euri back to money.

But now I edited the postbit template, but the amount of money is not showing up. I did this:
Opened the postbit template and found this:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
After that I added:
$vboptions[icashn]: $member[money]
<br>
<a href="donate.php?$session[sessionurl]to=$member[username]">Donate</a>
Still the amount of money is not showing up, what am I doing wrong?

Black Tiger
09-10-2006, 10:33 PM
Problem solved. The installation notes missed 1 line.
You have also to put the above text in the postbit_legacy template, that's not in the instructions but for 3.6 gold it works now.

toolblast
09-14-2006, 04:38 AM
Any update to 3.6 on this mod?

Black Tiger
09-14-2006, 12:02 PM
None needed, is working fine on 3.6.

chikkoo
09-27-2006, 06:56 PM
How can set different points for different forums?
I.e. forum X: 10 points thread opened and 5 for posts.
Forum Y: 2 points thread opened and 1 for posts.


Coach_Guru, I agree with you.

1) This feature will be very useful to me too. Currently I installed it, and I want to exclude some forums from giving points and I don't know how to do it?

2) An Admin Log on clicking each points would be nice to see how & from whom the member got the points.

3) After giving points, it needs to return to the post rather than getting the donation page again.

shanemcse
09-28-2006, 04:48 PM
Is there something like this for 3.6.1? I installed this version and it has DB errors.

Black Tiger
09-28-2006, 08:57 PM
Which DB errors did you have? I've installed this on 3.6.1. and no problem installing.

shanemcse
09-30-2006, 12:26 AM
Which DB errors did you have? I've installed this on 3.6.1. and no problem installing.

This is what I get. When I enable this plugin and try to create a thread, reply to a thread, etc. After I get the error I the thread will be created but I get the error everytime.

Here is the error...

Database error
The Elmo TMX Forum database has encountered a problem.

--------------------------------------------------------------------------------

Please try the following:
Load the page again by clicking the Refresh button in your web browser.
Open the elmotmxforum.com home page, then try to open another page.
Click the Back button to try another link.

The elmotmxforum.com forum technical staff have been notified of the error, though you may contact them if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin 3.6.1:

Invalid SQL:
UPDATE user SET Points=Points+10 WHERE userid='1';

MySQL Error : Unknown column 'Points' in 'field list'
Error Number : 1054
Date : Friday, September 29th 2006 @ 06:21:56 PM
Script : http://elmotmxforum.com/newthread.php?do=postthread&f=8
Referrer : http://elmotmxforum.com/newthread.php?do=newthread&f=8
IP Address : 216.52.105.38
Username : admin
Classname : vB_Database

Black Tiger
09-30-2006, 01:08 AM
UPDATE user SET Points=Points+10 WHERE userid='1';
I think you have changed the name of "money row" (in admincp icash settings) to "points".

Change it back to "money" and use the "name of points" and put in there "points" if you want to use that name.
If you change the name of the "money row" you will get this database error, I had the same.

shanemcse
09-30-2006, 03:52 AM
I think you have changed the name of "money row" (in admincp icash settings) to "points".

Change it back to "money" and use the "name of points" and put in there "points" if you want to use that name.
If you change the name of the "money row" you will get this database error, I had the same.

SWEEEET. You nailed that one. Thanks for your help. Works like a charm now.

mac27
10-05-2006, 03:13 AM
Anyone figured out how to get the points for each user to show up in the users info under their profile?

This is a great hack to. Glad someone did this.

Black Tiger
10-05-2006, 07:05 AM
users info under their profile
You mean in the profile section or under their avatar in the postbit?

mac27
10-05-2006, 07:09 AM
In their member information. Not in postbit, that is easy to do.

Black Tiger
10-05-2006, 02:54 PM
I'm not that good.:)
But I think it might be possible to use the postbit line in the memberlist_resultsbit template or the memberlist_resultsbit_field template.

mac27
10-05-2006, 05:46 PM
Yeah thanks. I have tried that already. I will go back and mess with it some more tonight. I got close but it didn't work.

It would be cool to have a page that showed the top 10 users with points. :)

Black Tiger
10-05-2006, 10:11 PM
Yep, well, like I said, I'm not good enough for that, but hopefully someone else can give you the solving tip.

gamesmastervide
10-07-2006, 09:15 AM
multiple currencys would be a great feature and ability to swap one for another would be even better...

Vric
10-20-2006, 03:45 PM
Problem solved. The installation notes missed 1 line.
You have also to put the above text in the postbit_legacy template, that's not in the instructions but for 3.6 gold it works now.
Thanks. I had the same problem.

Working fine now. Simple and effective.

Vric
10-21-2006, 03:04 PM
Question:

Is it possible to show the points only by the member itself and Moderators ? (Not everyone)

rebonuk
10-21-2006, 07:07 PM
Does ishop work with VBux? What other cash/points mods does this work with?

chkdgate
10-25-2006, 01:33 AM
Any news on an ibproarcade integration?

freecodevn
10-26-2006, 08:25 AM
Hi blaine and Armstrong.
This hack very cool. But have some problem.This hack is not log any donation. I want log all of donation bethween members and give for them (at them donation place) histories of all donate. How can i do that?

Hi blaine. I modified your xml to log all points earned. For points earned for posting a response, I added this part:

$nplogentry = date('Ymd') . ' ' . strftime('%T') . ' response ' . $vbulletin->options['ppr'] . ' ' . $vbulletin->options['icashf'] . ' ' . $vbulletin->userinfo['username'];
$npearnlog = fopen('../../noypisoearnlog.txt','a') or die("can't open cashlog: $php_errormsg");
fwrite($npearnlog, $nplogentry . "\r\n");
fflush($npearnlog);
fclose($npearnlog) or die ($php_errormsg);

Now, I would also like to log the actual post number. What would the variable look like for this?

engedi05
11-05-2006, 01:04 AM
Where is Blaine?

chkdgate
11-05-2006, 03:49 AM
Where is Blaine?
Question of the thread. Life happens. Plus, he's not getting paid for this.

chikkoo
11-05-2006, 05:25 AM
I wanted to show the icash information in MEMBERINFO template.

I try to cut & paste the same information from Postbit, it's not showing the icash amount.

Anyone knows how to do it?

davidw
11-12-2006, 01:28 PM
If you want to show decimal places as in real currency, you need to make one alteration. Remember to do a backup of your table before doing this. I will not be held responsible for any problems. This works on my forums just fine.

Go in to phpmyadmin or however you alter your database and run this query
alter table " . TABLE_PREFIX . "user modify money decimal(15,2);

If you are running iBank, you will need to run this query as well
alter table " . TABLE_PREFIX . "user modify bankmoney decimal(15,2);

If you haven't installed this mod yet, this change to the installer should work

Find

<installcode><![CDATA[
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "user ADD COLUMN money int(15) DEFAULT '0' NOT NULL");
]]></installcode>

Replace with

<installcode><![CDATA[
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "user ADD COLUMN money decimal(15,2) DEFAULT '0' NOT NULL");
]]></installcode>

:D

Blaine0002
11-15-2006, 10:09 PM
Thx christian for helping, Marching band and finals are over hopefully I will be able to work on coding once again soon, though rebuilding my site is a priority (that means auction hack soon!)

davidw
11-15-2006, 10:38 PM
No problem - there's a lot of stuff I'd like to see added, but as I add them (if I have time - and if you haven't already) I'll post them here. Right now, however, my concern is more focused on merging two sites together :P

Blaine0002
11-15-2006, 11:25 PM
go right ahead, my mods are open to editing by anyone.

dartho
11-16-2006, 12:33 PM
(that means auction hack soon!)Auction Hack? I've been toying with attempting to make a single bid auction hack, the format is: as a seller, you put in a start price and a reserve price, every hour (or x hours), the start price drops by y dollars. First bid wins the item. If no bids when it hits the reserve, the auction ends with no sale. No snipes, no tricks, no fake bids to up the price.

thetradingforum
11-17-2006, 07:57 PM
Is there an addon to this hack which gives users points for posts made by their referrals.

I also need a page which displays the users with most points.

Can anyone help?....needed desperately!

Blaine0002
11-21-2006, 06:50 PM
Auction Hack? I've been toying with attempting to make a single bid auction hack, the format is: as a seller, you put in a start price and a reserve price, every hour (or x hours), the start price drops by y dollars. First bid wins the item. If no bids when it hits the reserve, the auction ends with no sale. No snipes, no tricks, no fake bids to up the price.

I see what you mean with this, but i believe if there are not many users on the website, the seller can get screwed over on this. If we can get in contact maybe we could join forces on this.

thetradingforum
11-26-2006, 11:00 AM
Is there an addon to this hack which gives users points for posts made by their referrals.

I also need a page which displays the users with most points.

Can anyone help?....needed desperately!


I guess not then :(

dartho
11-26-2006, 11:48 AM
The second option shouldn't be too hard to do with Logicians Web Templates (https://vborg.vbsupport.ru/showthread.php?t=103076)

I've attached a template for use with Logicians Web Templates (https://vborg.vbsupport.ru/showthread.php?t=103076) which should work with iCash default installation, just import it in to webtemplates

This should show the 10 richest and 10 poorest members of you site and should be very easy to change to suit you own requirements

thetradingforum
11-26-2006, 07:29 PM
thank you so much dartho! I'll give it a try tomorrow.

Kat-Sybermoms
12-07-2006, 06:00 PM
I'm getting ready to install this, and was wondering if there was an add-on or something that allowed members to steal points/money from other members?

I'm also looking for a banking system for the points, that would be IBank, correct? I'll search for it as well, but if someone has a handy-dandy link I would be eternally grateful!!! :)

davidw
12-07-2006, 06:02 PM
You mean, this ibank? https://vborg.vbsupport.ru/showthread.php?t=122729

Kat-Sybermoms
12-07-2006, 06:20 PM
You mean, this ibank? https://vborg.vbsupport.ru/showthread.php?t=122729

That's it!

Thanks - Love ya!!!!

Kat-Sybermoms
12-07-2006, 07:54 PM
ICash all installed... IBank all installed.

Both working great! My members are very happy right now to have their points again.

Off to look at the store hack I saw listed when I downloaded the IBank!

Kat-Sybermoms
12-07-2006, 08:40 PM
My members like to be able to steal points from each other.

I figured if they can put in a negative number, they can effectively steal points. But the hack doesn't allow a negative number to be "donated."

Is this an easy fix in the code to allow a negative donation by members and not just admin?

dartho
12-07-2006, 11:08 PM
I think it should be very easy to remove the less than 0 checking and thus allow negative donations. Try editing the donate.php file and search for this:
if ($amount < 0 || $amount == 0) {
eval(standard_error(fetch_error('error_icash_sendm somthing')));
}


and place a double slash ( // )at the start of each of those lines or make a backup of the file first, and then delete those lines.

Just tested it - works fine.

Kat-Sybermoms
12-08-2006, 02:38 PM
dartho - That totally worked by just deleting that line.

THANK YOU!!!!!

Kat-Sybermoms
12-08-2006, 02:41 PM
Last question... promise :lol

When people donate points, are those points going from their account to the other person's account?

******** NEVERMIND!! Figured that one out.*********

Kat-Sybermoms
12-08-2006, 03:45 PM
OK, with people being able to steal from each other, I want to prevent the balance from going into the negative. How do I do that? I read the thread, and noticed it was asked, but I want to allow my members to negatively donate, but don't want their balance to go below zero. So if one member has 400 points, I don't want someone to be able to "steal" 500 from them and put that person at -100 points.

Blaine0002
12-08-2006, 06:47 PM
OK, with people being able to steal from each other, I want to prevent the balance from going into the negative. How do I do that? I read the thread, and noticed it was asked, but I want to allow my members to negatively donate, but don't want their balance to go below zero. So if one member has 400 points, I don't want someone to be able to "steal" 500 from them and put that person at -100 points.
where this was

if ($amount < 0 || $amount == 0) {
eval(standard_error(fetch_error('error_icash_sendm somthing')));
}


Make a query that calls the member who you are stealing/donating from
lets call it $theiramount
replace it with somthing like

if ($theirammount - $amount = 0 || $theiramount - $amount < 0) {
eval(standard_error(fetch_error('error_icash_error here')));
}


Sorry, typed this up quickly, will type up somthing more useful when i get home. maybe somone will beat me to it :P

mcyates
12-08-2006, 07:01 PM
Its not working with vBookie, i have changed the "money row" to vbookie_cash.

I have 20 points but its not letting me bet?

Kat-Sybermoms
12-08-2006, 07:50 PM
Thank you Blaine!!!

Blaine0002
12-08-2006, 09:33 PM
hmm, as long as vbookie is working correctly, it should work, the only thing it shares is the same dbfield.

armstrong
12-11-2006, 01:45 AM
Hello Blaine, nice to have you back. :)

I got logging to work with donations, but couldn't figure out how to do this for posts and referrals. I wanted to have one-line log entries that stored the following:
- for posts: timestamp, username, post number (I couldn't figure out how to reference this variable in my mod of your code), points given
- for referrals: timestamp, username, referral username, points given

I need this to be able to detect points fraud, since point on my forum can be redeemed for cash and stuff. Also, did you get to look into the double-credit bug? https://vborg.vbsupport.ru/showpost.php?p=1056173&postcount=131

Thanks for your help.

dartho
12-11-2006, 10:09 AM
Hi Armstrong - I have attached an edited version of Blains XML using the code from your original logging post - see attached (search for $logentry = date('Ymd') in the XML to see the logging lines - you can edit the text to suit your own logs.

Just import this new XML and overwrite teh existing - make sure you have a backup etc and know what your current settings etc are!

This should add to the log file for all iCash earnings

chkdgate
12-12-2006, 04:03 AM
I'm trying to install Cloudrunner's paypal donation hack 3.5.0 (https://vborg.vbsupport.ru/showthread.php?t=91567) but it'll require for me to overwrite ICash's donate.php file on my forum's root folder. I cannot let go of ICash so is there any way around this?

armstrong
12-12-2006, 10:28 AM
Hi Armstrong - I have attached an edited version of Blains XML using the code from your original logging post - see attached (search for $logentry = date('Ymd') in the XML to see the logging lines - you can edit the text to suit your own logs.

Just import this new XML and overwrite teh existing - make sure you have a backup etc and know what your current settings etc are!

This should add to the log file for all iCash earnings

Thanks dartho, this will indeed help. But looking over your code, it still doesn't log "post number" or "referral username". I'm not familiar enough with vb to know how to get this data, so I'm kinda stuck at this point.

dartho
12-12-2006, 10:33 AM
@armstrong - The referal one is easy, search for
$logentry = date('Ymd') . ' ' . strftime('%T') . ' ' . $vbulletin->options['ppreferp'] . ' Referal Points Given To User ' . $vbulletin->GPC['referrername']; and change to

$logentry = date('Ymd') . ' ' . strftime('%T') . ' ' . $vbulletin->options['ppreferp'] . ' Referal Points Given To User ' . $vbulletin->GPC['referrername'] . ' for refering ' . $vbulletin->userinfo['userid'];


not sure about post number/ thread id...

@chkdgate - simply rename the donate.php to something like - cashdonate.php and reapply the postbit edit as per instructions using the new name rather than donate.php

chkdgate
12-13-2006, 04:57 AM
I'm trying to install Cloudrunner's paypal donation hack 3.5.0 (https://vborg.vbsupport.ru/showthread.php?t=91567) but it'll require for me to overwrite ICash's donate.php file on my forum's root folder. I cannot let go of ICash so is there any way around this?
Anyone have any news on this?

@chkdgate - simply rename the donate.php to something like - cashdonate.php and reapply the postbit edit as per instructions using the new name rather than donate.php
Sorry I didn't see your post at me. Which donate.php file are you referring to, ICash's?

dartho
12-13-2006, 06:50 AM
Yes - the Icash one!

chkdgate
12-13-2006, 07:13 AM
So what you're saying is simply rename ICash's donate.php to cashdonate.php and then perform these template edits?:

In postbit template
Find:
----------
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>



Add after:
----------
$vboptions[icashn]: $member[money]
<br>
<a href="cashdonate.php?$session[sessionurl]to=$member[username]">Donate</a>

Note: I just renamed donate.php to cashdonate.php just for my mod only!

chkdgate
12-13-2006, 07:26 AM
I can deposit and withdraw points with no problem but when I tried to donate to a member I got the message in the screen capture below.

Edit: I just thought of something. Should I edit the entire donate.php file and rename all donate.php to cashdonate.php?
Edit 2: Nevermind, that didn't work either. I know we can figure this out.

dartho
12-13-2006, 09:16 AM
searhc and replaceon donate.php was necessary - sorry and I think you may also need to edit this line:
define('THIS_SCRIPT', 'donate');
and change to
define('THIS_SCRIPT', 'cashdonate');

but I might be wrong ......

armstrong
12-13-2006, 11:29 PM
Hello dartho. I'll try your logging solution now. Even without postnumber, this will seriously help fight points fraud.

fredilan
12-14-2006, 01:36 AM
hi, where will the stats be displayed? or is there a way that points will be displayed on the main page when a user logs in to the forum. Thanks!

chkdgate
12-14-2006, 04:33 AM
searhc and replaceon donate.php was necessary - sorry and I think you may also need to edit this line:
define('THIS_SCRIPT', 'donate');
and change to
define('THIS_SCRIPT', 'cashdonate');

but I might be wrong ......
Holy $hizz!! That worked!:banana: I knew we could figure it out. Now I can go ahead and install my paypal hack. Thank you dartho.

Devil Woman
12-14-2006, 09:18 PM
I am having problem's adding this to be used for vbookie, I have read the threads in here that explain how but I am still struggling any help is appreciated

Thanks

dartho
12-15-2006, 12:17 AM
vBookie's default money colum is "vbookie_cash"

In the ICash Settinsg in AdminCP, change the

Money row
What the money row is in your user table, this can be used for easy integration amongst your favorite hacks! (default is money).

to vbookie_cash see attached

Devil Woman
12-15-2006, 01:17 AM
Thanks for that, that helped alot, found out where I was going wrong

Thanks again

HPIA
12-24-2006, 07:03 PM
Where is the 3.6.4 version? or is ther eone?

davidw
12-24-2006, 10:41 PM
This works on 3.6.4

chkdgate
12-25-2006, 05:16 AM
This works on 3.6.4
Correct.

gingery
01-01-2007, 04:42 PM
hi, where will the stats be displayed? or is there a way that points will be displayed on the main page when a user logs in to the forum. Thanks!
I'm also wondering if there is a way to display how many points users have on one page.

Also, if I uninstall this at the end of the month and then reinstall, will all the points start over at zero? (I'm wanting to use this to run a contest :) ).

Devil Woman
01-01-2007, 06:06 PM
Hi there, I am having a problem, I was using this for vbookie and I have all the settings set so it can be used for vbookie but since I have revamped my forum with a new template and readded in the code it isn't working properly, what I mean by not working properly is that when someone posts a new thread/reply it isn't adding onto there cash and they also lost all there cash after I had changed the templates but I hadn't reinstalled the hack, I have since reinstalled the hack incase there is a problem but it's still not working.

Any help is appreciated, I am using vb 3.6.4

Thanks

dartho
01-02-2007, 11:13 AM
template changes should make no difference to this hack - unless you removed the line which displays icash balances in the postbit templates - just re-adding the template edits from the instructions should fix this.

Have you installed any other mods/hacks which may be clashing with this one?

Blaine0002
01-02-2007, 01:16 PM
Reinstalling vBookie would also do this :-/ this isnt a problem with my mod, its a problem with vbookie.

Zowners
01-02-2007, 02:54 PM
Thanks for the hack blaine, its really simple to use
I do have a question as your 1st post says, you are doing a shop add on later right?
Is this shop add on going to be like based on real stuff you can sell like Vbay or something else?

thanks!

Devil Woman
01-03-2007, 12:35 AM
I have added in all the template edits back in, I haven't added in any other templates since I updated and this problem occured no, but I did take some out that are no longer used on the forum, but from what I know it wasn't anything that would have conflicted with vbookie or icash.

Thanks

template changes should make no difference to this hack - unless you removed the line which displays icash balances in the postbit templates - just re-adding the template edits from the instructions should fix this.

Have you installed any other mods/hacks which may be clashing with this one?

Devil Woman
01-03-2007, 12:44 AM
I have just taken the product file out and added it back in again to restart all the settings and tested it and all was working fine as soon as I change it to vbookie_cash that is when the problem seems to occur with the amount not adding on when you create a thread or post, so does seem to be a problem with vbookie and not this hack.

Would I need to change anything in the template edit at all for it to work or should it just work from you changing it to vbookie_cash and keeping the template edit the same.

I did get this working previous but not sure if I had to change anything in the template edit to do it

Thanks in advance.

Devil Woman
01-04-2007, 01:33 AM
Got my problem sorted, turned out that I didnt have the vcash coding from the vbookie coding in my postbit legacy and I only had the vbookie_cash in the icash settings and not vcash instead of money in the first setting, all sorted now and working as before.

Thanks again for the replies.

Blaine0002
01-04-2007, 06:23 PM
Devil, im glad you got your problem sorted, i was on vacation :laugh:

Thanks for the hack blaine, its really simple to use
I do have a question as your 1st post says, you are doing a shop add on later right?
Is this shop add on going to be like based on real stuff you can sell like Vbay or something else?

thanks!

Yes, if you go into my profile and scroll down you will see my IShop modification.

Carl Anderson
01-05-2007, 02:55 PM
I installed icash and it seems to be working as I had it donate 100000 to my users for use in stock trader.... a new vb hack for trading stocks.. I get this error.....

Fatal error: Field money is not defined in $validfields in class vb_datamanager_user in /includes/class_dm.php on line 485

I posted in the stock trader support thread about this error and he said it must be a problem with the way I have icash configured...

Here is a link to the stock trader post I made and his reply..

https://vborg.vbsupport.ru/showpost.php?p=1151322&postcount=70

I sure want to use this hack but I have no idea how to fix it...

Thx

DeeNice
01-05-2007, 04:15 PM
Hey,
Is it already possible to display the points in the members profile?
If so what do i have to do?

Regards
DeeNice

Blaine0002
01-05-2007, 05:53 PM
I installed icash and it seems to be working as I had it donate 100000 to my users for use in stock trader.... a new vb hack for trading stocks.. I get this error.....

Fatal error: Field money is not defined in $validfields in class vb_datamanager_user in /includes/class_dm.php on line 485

I posted in the stock trader support thread about this error and he said it must be a problem with the way I have icash configured...

Here is a link to the stock trader post I made and his reply..

https://vborg.vbsupport.ru/showpost.php?p=1151322&postcount=70

I sure want to use this hack but I have no idea how to fix it...

Thx

You need to find out the column your stock mod uses in the user table and edit the settings in the admincp :)

As for having it display in postbit, there are directions in the zip file


Please click install!

Carl Anderson
01-05-2007, 08:40 PM
You need to find out the column your stock mod uses in the user table and edit the settings in the admincp :)

As for having it display in postbit, there are directions in the zip file


Please click install!

Ok here is the error I get again...

Fatal error: Field money is not defined in $validfields in class vb_datamanager_user in /includes/class_dm.php on line 485

I went in icash and donated 100,000 and the stock trader hack sees the 100,000 that has been donated. It is when it tries to deduct it from the 100,000 that it has that error...

Stock trader hack wants to know the "Money Row" of what I am using for my cash - it sees it but cannot subtract from it is my guess.. I hope this is making sense to you.... Maybe this can't be used in this way?

Here is the post the author of stock trader
https://vborg.vbsupport.ru/showpost.php?p=1151537&postcount=75

Blaine0002
01-06-2007, 07:41 PM
I am not quite sure how to go about fixing this, all i can reccommend is privately contact the author of that mod and see if he can figure out what is wrong, my guess is somthing to do with his query. Sorry :(

Carl Anderson
01-07-2007, 05:54 AM
I am not quite sure how to go about fixing this, all i can reccommend is privately contact the author of that mod and see if he can figure out what is wrong, my guess is somthing to do with his query. Sorry :(

I just installed vbbux and it works so it is something to do with icash and the stock trader hack..

Here is the hack if you want to look at it... who knows it could be a problem with other hacks also? Or it could be a conflict because the way I am set up and the hacks I already have..
https://vborg.vbsupport.ru/showthread.php?t=135084

My choice would be to use your icash but I can't?

Blaine0002
01-07-2007, 03:39 PM
try this

https://vborg.vbsupport.ru/showpost.php?p=1152695&postcount=91

Zagis
01-09-2007, 12:03 PM
Same question:Hey,
Is it possible to display the points in the members profile?and member's list too?

Thanks

Blaine0002
01-09-2007, 01:24 PM
Extra modifying would be required, i havent typed up instructions to do it yet.

Devil Woman
01-14-2007, 01:18 PM
Hi, i'm back again lol, I have recently installed p3tz and I am wanting to use this points system like I have with vbookie, I have tried every thing I can think of to get it working and it will not go only I got it working with this points system before I had to reinstall p3tz due to some errors.

Any help is appreciated, thanks

Devil Woman
01-14-2007, 01:22 PM
no worried i've done it again lmao, had the options the wrong way round, just swapped them around and all is working fine lol

I will get it right one of these days lol

Thanks

Blaine0002
01-14-2007, 02:38 PM
Glad you figured it out.

Zagis
01-16-2007, 12:05 PM
Hello,

"Points per thread" is set to 10 but every time a user starts a new thread, gets 20 points. Any idea why is this happening?

papason5
01-17-2007, 07:11 AM
s it possible to hack the icash so that when users access one part of the forum for ads,they loose a fix amount of points?
if possible can you help me do it?

papason5
01-17-2007, 07:12 AM
i mean i wanna allow my members to purchase some ads with their points and it will be deducted directly form their points number.

buidoi
01-20-2007, 02:34 PM
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.

i want to know this too

sportsoutlaw
01-21-2007, 03:40 AM
I remove vbplaza tonight and installed this hack for my money system, and I have vbookie installed.

I changed the money row to vbookie_cash.

My Problem - I am unable to donate money to members with the money row set to vbookie_cash. I tried several times, and would get the response that the donation had been completed, but the amount didn't change for the members. I changed vbookie_cash back to "money" and the donation works.

Edit - Nevermind, I realized that every donation I was making was going to vbookie's vCash. Took the Icash template edit out, and put the vBookie template edit back in, all seems to be working well.

Great hack!

Black Widow
01-23-2007, 07:25 PM
Huge hack.

Thanks a lot...:)

sinisterpain
01-26-2007, 04:09 AM
I just edited the vBookie files to add the option for Icash in the admincp also intergrated the Ibank feature by adding the totals of money on hand and money in the bank so it displays the richest users correctly in vbookie. Now all thats required is to select Icash in the admin cp instead of having to change the option in Icash to vbookie_cash. I have not fully tested everything yet, but it looks fine so far. When Im done testing if anyone is interested I can post up the files.

Black Widow
01-27-2007, 09:11 AM
I installed it but i have one question.
Is there any chance adding to this hack a log system so users can see the donations they made and whom from the UserCP?
I have a lot of crazy users and i need to be able to see a user`s donations from the AdminCP when i have to decide if user donated to another or is just lying.

Thanks alot...:)

sinisterpain
01-27-2007, 03:13 PM
I had a tiny issue with the intrest part. When you withraw money then redeposit it right after the bank keeps giving intrest.

Also is their going to be intergration for ibproarcade

Blaine0002
01-27-2007, 05:11 PM
problem with vbookie.

sinisterpain
01-27-2007, 06:53 PM
problem with vbookie.

Sorry I posted this in the wrong thread it should have been under the ibank hack which you also created I will post it over there.

Vbookie that I have installed uses Icash not the vbookie_cash

Black Widow
01-28-2007, 07:19 PM
I installed it but i have one question.
Is there any chance adding to this hack a log system so users can see the donations they made and whom from the UserCP?
I have a lot of crazy users and i need to be able to see a user`s donations from the AdminCP when i have to decide if user donated to another or is just lying.

Thanks alot...:)

Blaine, can you please answer my question?

Thanks...:)

hitboy
01-30-2007, 08:21 AM
I was just wondering is there a way I could charge to open threads in specific forums? I know ucash was able to this I tried it on vbbux didnt work so now I am trying ICASH please let me know if this is possible in anyway thanks!

Blaine0002
01-30-2007, 01:22 PM
it is easily do-able with a simple hook i could whip up for you once i get home.

As for logging things, i dont really have any reason to add any more to this modification, but if you do figure it out, feel free to post it here.

Black Widow
01-30-2007, 08:23 PM
it is easily do-able with a simple hook i could whip up for you once i get home.

As for logging things, i dont really have any reason to add any more to this modification, but if you do figure it out, feel free to post it here.

Yes but i can not use the hack without logging because i and my users do not have any idea about the donations they did.
There is no other hack (except Vbux) which is much complex for mu needs.
So basicaly i am stuck without any points hack.

Can you please try to add the logging feature?
It will be very much appriciated.

Thanks...

armstrong
01-31-2007, 06:52 AM
I just edited the vBookie files to add the option for Icash in the admincp also intergrated the Ibank feature by adding the totals of money on hand and money in the bank so it displays the richest users correctly in vbookie. Now all thats required is to select Icash in the admin cp instead of having to change the option in Icash to vbookie_cash. I have not fully tested everything yet, but it looks fine so far. When Im done testing if anyone is interested I can post up the files.
Hello sinisterpain. I'd like to see what you did, if possible. I might install vbookie on my icash-enabled forum, and had the idea that it wouldn't require editing of vbookie code.