The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[uCash/uShop] Transactions Addon With a 'message' Details »» | |||||||||||||||||||||||||||
[uCash/uShop] Transactions Addon With a 'message'
Developer Last Online: Aug 2007
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
That about sums it all up..please click INSTALL if you use this hack Supporters / CoAuthors Show Your Support
|
Comments |
#82
|
||||
|
||||
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) |
#83
|
||||
|
||||
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: |
#84
|
||||
|
||||
Sorry for double post, but I found the problem ans solved it.
Thanks TyleR for the support! |
#85
|
|||
|
|||
so was the PM integration ever added to this hack or no?
|
#86
|
|||
|
|||
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()"> 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! |
#87
|
|||
|
|||
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
|
#88
|
|||
|
|||
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! |
#89
|
|||
|
|||
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
|
#90
|
|||
|
|||
also maybe a reason in the admin donate part of the ushop i noticed this isn't incorporated...
|
#91
|
|||
|
|||
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"> 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()"> 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()"> 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! |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|