vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Transactions? (uCash & uShop) (https://vborg.vbsupport.ru/showthread.php?t=67075)

platnum 07-11-2004 07:56 PM

Transactions? (uCash & uShop)
 
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

Lurk 07-11-2004 10:03 PM

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

1 Attachment(s)
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:
PHP Code:

    uttstore_add_history($action['actionid'], $action['cost'], $reason$action['tax'], $totalcost$_REQUEST['userid'], $_FIELDS['points']); 

Can become this:
PHP Code:

    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.


All times are GMT. The time now is 05:27 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.01107 seconds
  • Memory Usage 1,747KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete