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!