The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#2
|
||||
|
||||
Quote:
|
#3
|
|||
|
|||
Any update on this? I'm looking for a donation notification aswell....
I've been seeing some other forums with it which use ucash ushop.... |
#4
|
|||
|
|||
go to the 'uttstore_standard_confirmation' template, and find <form action="ushop.php" method="post">...replace 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.
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()"
|
#5
|
|||
|
|||
Yahhhh ---- Thanks for posting!
|
#6
|
|||
|
|||
no problem man, I searched forever looking for a way to pull this off until I realized you could send two forms at once with javascript (I'm no brilliant coder by any means)...so I'm happy to save other people the trouble, lol
|
#7
|
|||
|
|||
This is what I've got and it's not sending a PM upon donate....
You have any idea why it may not be working? Take a peek: <!--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()"> <input type="hidden" name="do" value="action"> <input type="hidden" name="actionid" value="$_REQUEST[actionid]"> <input type="hidden" name="step" value="$nextstep"> $fields_hidden <div style="padding:25px 0px 25px 0px"> <table cellpadding="0" cellspacing="0" border="0" class="tborder" width="100%" align="center"><tr><td> <table cellpadding="6" cellspacing="1" border="0" width="100%"> <tr> <td class="tcat"><div style="float: right;">$action[name]</div> <b>Action:</b> </td> </tr> <tr> <td class="alt1"> <fieldset><legend>Cost:</legend><div style="text-align: right;">$action[cost]</div></fieldset> $field_templates_display <if condition="$action[tax] != '0'"> <fieldset><legend>Taxes:</legend><div style="text-align: right;">$action[tax]%</fieldset></if> <tr> <td class="tfoot"><div style="float: right;"><input type="submit" name="submit" accesskey="s" value="Confirm"></div><span style="color: black; Font-size: 110%;">Total Cost: <b>$totalcost</b> Are you sure you want to perform this action?</span></td> </tr> </td> </tr> </table> </td></tr></table> </form> DUH ---- THERE IT IS.... XXX |
#8
|
|||
|
|||
I did fix the actionid but dit not send PM upon donate or for other actions. Here the code:
<!--replace XXX with the donate function's ID number--> <if condition="$_REQUEST[actionid] == '1'"> <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()" <input type="hidden" name="do" value="action"> <input type="hidden" name="actionid" value="$_REQUEST[actionid]"> <input type="hidden" name="step" value="$nextstep"> $fields_hidden <div style="padding:25px 0px 25px 0px"> <table cellpadding="0" cellspacing="0" border="0" class="tborder" width="100%" align="center"><tr><td> <table cellpadding="6" cellspacing="1" border="0" width="100%"> <tr> <td class="tcat"><div style="float: right;">$action[name]</div> <b>Action:</b> </td> </tr> <tr> <td class="alt1"> <fieldset><legend>Cost:</legend><div style="text-align: right;">$action[cost]</div></fieldset> $field_templates_display <if condition="$action[tax] != '0'"> <fieldset><legend>Taxes:</legend><div style="text-align: right;">$action[tax]%</fieldset></if> <tr> <td class="tfoot"><div style="float: right;"><input type="submit" name="submit" accesskey="s" value="Confirm"></div><span style="color: yellow; Font-size: 110%;">Total Cost: <b>$totalcost</b> Are you sure you want to perform this action?</span></td> </tr> </td> </tr> </table> </td></tr></table> </form> |
#9
|
||||
|
||||
Quote:
|
#10
|
|||
|
|||
Hi im using v3.0.9 with uCash & uShop 0.95b i've attempted what you posted above the pm send works but then the points do not deduct from the user, is there any fix for that ?
any help would be much appreciated. Thank you... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|