vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [uCash/uShop] Transactions Addon With a 'message' (https://vborg.vbsupport.ru/showthread.php?t=79434)

TyleR 04-04-2005 10:00 PM

[uCash/uShop] Transactions Addon With a 'message'
 
Hi

This is my first 'hack' per-say (released ;)), so do bear with me :p

This is a hack I had made for my site, for some weird reason I have no answer to :rolleyes: ..anyways, it will add an option for your users to add a message when he/she donates to another person on your board, and displays transactions based on a userid input (e.g. transaction.php?userid=1), the default showing the transactions done by the person currently logged in, and a global transaction, showing all donations made on your board :)

BIG Thanks goes to Deaths for the help he provided me on in putting this hack together.

ChangeLog
  • Version 1.2 (11/7/05)
    • Added "View {username}'s Transations" link into postbit(_legacy)
    • Fixed Page Generation issues
    • Phrase added to show error message if no transactions exist
    • Made the install file a bit easier to understand :)

That about sums it all up..please click INSTALL if you use this hack :)

Deaths 04-05-2005 07:48 PM

My pleasure mate :).

TyleR 04-05-2005 07:49 PM

also: if anyone knows how to cut down an image (screenshot), i'll post them :)..it said my ss was too big =\

Polo 04-05-2005 11:37 PM

Quote:

Originally Posted by TanK DaWg
also: if anyone knows how to cut down an image (screenshot), i'll post them :)..it said my ss was too big =\

save the images in gif format...

Polo 04-05-2005 11:50 PM

Quote:

Originally Posted by TanK DaWg
also: if anyone knows how to cut down an image (screenshot), i'll post them :)..it said my ss was too big =\

save the images in gif format...

TyleR 04-06-2005 12:18 AM

Quote:

Originally Posted by Polo
save the images in gif format...

Tried to..same message (File Too Big...) :(

Marco van Herwaarden 04-06-2005 06:06 AM

Thanks for sharing. 2 remarks:
- You can set this to be an addon in the hack details page.
- You are creating a possible SQL insertion. First you do a globalize to an integer for the userid, this is good and would force it to be an integer and removing the SQL insertion possibility. In the query however you are using the $_REQUEST['userid'], making it possible to use a non integer value. Best would be to change this to simple $userid.

Deaths 04-06-2005 07:21 AM

Hmm, I told him to do so, he must've forgotten :D

TyleR 04-06-2005 07:55 AM

umm..it's in there?

PHP Code:

globalize($_REQUEST,  array('userid' => INT)); 


Marco van Herwaarden 04-06-2005 08:07 AM

Quote:

Originally Posted by TanK DaWg
umm..it's in there?

PHP Code:

globalize($_REQUEST, array('userid' => INT)); 


Yes like i said it is in there, but so is:
PHP Code:

 $getuser $DB_site->query('SELECT * from ' TABLE_PREFIX 'utt_store_history WHERE userid="' $_REQUEST['userid'] . '" AND action="Donate" ORDER BY historyid DESC'); 

change "' . $_REQUEST['userid'] . '" to a simple $userid


All times are GMT. The time now is 05:37 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.01357 seconds
  • Memory Usage 1,736KB
  • 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
  • (3)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)post_thanks_navbar_search
  • (1)printthread
  • (10)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