View Full Version : Transactions? (uCash & uShop)
platnum
07-11-2004, 07:56 PM
I use to use the point system for phpbb...
Someone had made a little hack called "transaction mod" for the points sytem.
What it does....
When you goto donate points to another user... Below the amount you want to donate... It has a box... Asking for the reason of the donation (Can't donate unless you put a reason in).
Then once they've filled that out, they can donate... Then there's a seprate page you can goto.. And it shows all donations... That way you can keep track of who donated to who and why :)
Thanks :D
This Would Be Awesome!!!!!!!!!!
Limpkinw
07-12-2004, 12:00 AM
not much of a hacker, but im working on it :)
platnum
07-12-2004, 12:09 AM
Ahaha, whats up bro :D
I helped you today on vbarcade :D
If you need any ideas on it or w/e, lemme know :D
Limpkinw
07-12-2004, 03:23 AM
Hey man whats going on...yea im gettin stuck only because i wanted to take this to the next step where it would PM the user (was also going to add that to other multi user ushop actions) I tried to adapt the arcade sendarcadepm function but i get an error. The reason and transaction log are pretty much complete the PM is my major hookup...so any suggestions?
BTW thanks for the help worked like a charm!
platnum
07-12-2004, 10:15 AM
Dang... Wish I could help you with the PM part... Only been using VB for about a month, lol.
But maybe someone out there reading this would be able to help you on that part :D:D:D hehe.
Limpkinw
07-12-2004, 02:35 PM
Well I focused so much on the PMs i thought the rest would be simple but I'm hitting a few issues maybe today a fresh look will help.
Limpkinw
07-12-2004, 06:30 PM
Well I think i have taken this about as far as I can, I have added a PM feature when a donation is receieved and have a reason field, however, i get a division by 0 error, and I havnt quite yet figured out how to log the transaction properly...
http://www.limpkinw.com/forums/ushop.php?do=actionhistory&aid=1
user tester pass test
Limpkinw
07-12-2004, 08:12 PM
I have all of the multi user files set up to PM and logging donations the best I cant. At this point it needs to get into the hands of a better coder. Can I post it here or should i release in beta forum...what to do I duno?
platnum
07-12-2004, 09:22 PM
Looking very good bro :D
I don't have a clue what to do now bro :P, lol.
Anyone? :D
Limpkinw
07-12-2004, 09:35 PM
The modified files can be found here they all seem to work error free exchange the standard donate gives me an error Warning: Division by zero in D:\site\limpkinw\forums\uttstore\action.donate.php on line 135 It still seems to function properly. The function_ushop.php is the EXACT same as function_arade.php taken from v3arcade (ty and if this is not acceptable I will remove it). The logging is in great need of help...help from someone who knows more about this would be greatly appreciated.
Link14716
07-13-2004, 02:14 PM
uCS already logs everything. All you need to do in 0.95 is add a field to the $fields array and then add it to to the log function.
PMing it isn't that difficult either.
Link14716
07-13-2004, 02:21 PM
Why are you using the discount field for the reason? There is something made for things like this. ;)
This:
uttstore_add_history($action['actionid'], $action['cost'], $reason, $action['tax'], $totalcost, $_REQUEST['userid'], $_FIELDS['points']);
Can become this:
uttstore_add_history($action['actionid'], $action['cost'], $userdiscount, $action['tax'], $totalcost, $_REQUEST['userid'], $_FIELDS['points'], $reason);
Limpkinw
07-13-2004, 02:22 PM
Works like a charm, now all i gotta do is clean up my coding a lil then i will give it to ya plat.
platnum
07-13-2004, 06:54 PM
Sweet sweet :D
mariannet
08-06-2004, 07:15 AM
This was just what I needed - thanks!
Works great.
Just one thing. You talk about logging, but where do I go to see these logs, espacially the logs for donations?
Limpkinw
08-06-2004, 12:32 PM
Look at the action history, I have made a couple fixes since this "release" and I will be posting that as an official add-on.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.