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