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 01-08-2006 07:10 PM

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

Alphawolf83 01-09-2006 01:02 PM

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:

Alphawolf83 01-12-2006 12:46 PM

Sorry for double post, but I found the problem ans solved it. :)
Thanks TyleR for the support!

cOuNtErFiET 02-02-2006 10:47 PM

so was the PM integration ever added to this hack or no?

jzewatsky 02-03-2006 02:10 AM

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!

cOuNtErFiET 02-03-2006 06:41 AM

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

jzewatsky 02-04-2006 12:13 AM

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!

cOuNtErFiET 02-06-2006 03:31 AM

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

cOuNtErFiET 02-06-2006 03:33 AM

also maybe a reason in the admin donate part of the ushop i noticed this isn't incorporated...

jzewatsky 02-06-2006 09:35 AM

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!


All times are GMT. The time now is 12:04 PM.

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.01152 seconds
  • Memory Usage 1,750KB
  • 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
  • (4)bbcode_code_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