Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[uCash/uShop] Transactions Addon With a 'message' Details »»
[uCash/uShop] Transactions Addon With a 'message'
Version: 1.2, by TyleR TyleR is offline
Developer Last Online: Aug 2007 Show Printable Version Email this Page

Version: 3.0.9 Rating:
Released: 04-04-2005 Last Update: 11-06-2005 Installs: 30
DB Changes Template Edits
Code Changes Additional Files  
No support by the author.

Hi

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

This is a hack I had made for my site, for some weird reason I have no answer to ..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

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 01-08-2006, 07:10 PM
TyleR's Avatar
TyleR TyleR is offline
 
Join Date: Nov 2004
Location: North Carolina
Posts: 349
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ack, sorry, been busy again

I dont really need admin access..just need to see the file you're using

(uploading a copy of transaction.php to transaction.php.txt)
Reply With Quote
  #83  
Old 01-09-2006, 01:02 PM
Alphawolf83's Avatar
Alphawolf83 Alphawolf83 is offline
 
Join Date: Mar 2005
Location: Germany
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's the transaction.php (see attachment).

If this is not helpful to find the problem, what could be another source of error?
I mean the uCash hack works in the main, but only the transactions are not shown in the transactions list. :ermm:
Reply With Quote
  #84  
Old 01-12-2006, 12:46 PM
Alphawolf83's Avatar
Alphawolf83 Alphawolf83 is offline
 
Join Date: Mar 2005
Location: Germany
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for double post, but I found the problem ans solved it.
Thanks TyleR for the support!
Reply With Quote
  #85  
Old 02-02-2006, 10:47 PM
cOuNtErFiET cOuNtErFiET is offline
 
Join Date: Feb 2006
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so was the PM integration ever added to this hack or no?
Reply With Quote
  #86  
Old 02-03-2006, 02:10 AM
jzewatsky jzewatsky is offline
 
Join Date: Nov 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tyler,

Thank you so much for continuing to work on this hack. I personally have been waiting to install it until you had to PM part worked out. Searching through threads, I found this thread in which tomdude9 figured out that if you change the <form action="ushop.php" method="post"> line in the 'uttstore_standard_confirmation' template to the following (slightly edited from his origional post):

Code:
<!--replace XXX with the donate function's ID number-->
<if condition="$_REQUEST[actionid] == 'XXX'">
<form action="private.php" name="private" method="post">
<input type="hidden" class="bginput" name="recipients" value="$_FIELDS[username]" />
<input type="hidden" class="bginput" name="title" value="$_FIELDS[points] POINTS RECIEVED" />
<input type="hidden" name="message" value="$_FIELDS[username], 

I have just donated $_FIELDS[points] points to you. 

Sincerely, $bbuserinfo[username]">
<!--feel free to change this message but preserve the spacing, line breaks won't parse-->
<input type="hidden" name="s" value="" />
		<input type="hidden" name="do" value="insertpm" />
		<input type="hidden" name="pmid" value="" />
		<input type="hidden" name="forward" value="" />
		<input type="hidden" name="receipt" value="0" />	
</form></if>
<form action="ushop.php" method="post" onsubmit="document.private.submit()">
You automatically send a PM to the user when you donate to them. I was wondering if the variable that you use for the "reason" would be useable in the PM message.

I am by no means a coder, tomdude9 should recieve all credit for the auto PM. All I did is change it a bit to make it work for me and share it with you all.

Please keep me posted on if this works out, I'd love to install this hack for my users!!

Thanks again for your support!
Reply With Quote
  #87  
Old 02-03-2006, 06:41 AM
cOuNtErFiET cOuNtErFiET is offline
 
Join Date: Feb 2006
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i was on a board that had this, when you donated it sent a pm with the reason for donation if there was one entered, if there wasn't one entered then it put the "so and so donated this much sucessfully" to your PM so i know it can be done and the owner of this board his name was Tyler so im thinking might be the same one or the tylers seem to know what they are doing...lol
Reply With Quote
  #88  
Old 02-04-2006, 12:13 AM
jzewatsky jzewatsky is offline
 
Join Date: Nov 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I've played with it a little more and have found that if you use the variable '$_FIELDS[reason]' it will include the reason for the donation in a PM when added to the code above. Again I really dont know what I am doing with this, use at your own risk.

I've also used the code above with admin_donate and the gifts hack. I can send the name of the gift and the reason for the gift in the PM. For the admin donate, I can send the amount donated, but the reason is not working. Any help would be great!
Reply With Quote
  #89  
Old 02-06-2006, 03:31 AM
cOuNtErFiET cOuNtErFiET is offline
 
Join Date: Feb 2006
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow that sounds like your on the right path can you tell me where to enter the code to send a pm with the reason....im a little confused with what you have posted, and also don't want to go messing with the code cause idk what im doing with php coding yet...lol and ty for continuing to work on this hack, i felt we were abandoned...lol tyler must be busy
Reply With Quote
  #90  
Old 02-06-2006, 03:33 AM
cOuNtErFiET cOuNtErFiET is offline
 
Join Date: Feb 2006
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

also maybe a reason in the admin donate part of the ushop i noticed this isn't incorporated...
Reply With Quote
  #91  
Old 02-06-2006, 09:35 AM
jzewatsky jzewatsky is offline
 
Join Date: Nov 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No prob Counterfiet,

1st install the "Transactions with a message" hack.

2nd follow the directions here https://vborg.vbsupport.ru/showthrea...ight=pm+donate finding the code
Code:
<form action="ushop.php" method="post">
in the "uttstore_standard_confirmation" template. Replace that with
Code:
<!--replace XXX with the donate function's ID number-->
<if condition="$_REQUEST[actionid] == 'XXX'">
<form action="private.php" name="private" method="post">
<input type="hidden" class="bginput" name="recipients" value="$_FIELDS[username]" />
<input type="hidden" class="bginput" name="title" value="$_FIELDS[points] POINTS RECIEVED" />
<input type="hidden" name="message" value="$_FIELDS[username], 

I have just donated $_FIELDS[points] points to you because $_FIELDS[reason]. 

Sincerely, $bbuserinfo[username]">
<!--feel free to change this message but preserve the spacing, line breaks won't parse-->
<input type="hidden" name="s" value="" />
		<input type="hidden" name="do" value="insertpm" />
		<input type="hidden" name="pmid" value="" />
		<input type="hidden" name="forward" value="" />
		<input type="hidden" name="receipt" value="0" />	
</form></if>
<form action="ushop.php" method="post" onsubmit="document.private.submit()">
Be sure to change the XXX to the action ID number of your donate action.

The PM part will work for other actions, just copy the code above below the code for the first action and change the # in the XXX and only include the line
Code:
<form action="ushop.php" method="post" onsubmit="document.private.submit()">
in the last action in the template.
Unfortunately, I have not figured out how to include the "$_FIELDS[reason]" in the admin donate.

I hope this helps...if anyone can help me explain better or figure out the admin donate issue please help. I know that most of you have moved on to 3.5 but some of us rookies are afraid to start over at square 1.

Thanks and good luck!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:14 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04939 seconds
  • Memory Usage 2,318KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete