vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   uCash & uShop (https://vborg.vbsupport.ru/forumdisplay.php?f=100)
-   -   PM upon donate (https://vborg.vbsupport.ru/showthread.php?t=83447)

paul41598 06-20-2005 10:18 PM

PM upon donate
 
Is there an option somewhere to auto PM someone when you donate points to a user. So if I donated points to user B, he would receive a PM, saying congratulations, user A donated X points to you.

?

Link14716 06-23-2005 12:09 AM

Quote:

Originally Posted by paul41598
Is there an option somewhere to auto PM someone when you donate points to a user. So if I donated points to user B, he would receive a PM, saying congratulations, user A donated X points to you.

?

Not in the current release, but uShop 1.0.0 will have it.

clasione 07-12-2005 05:41 AM

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

tomdude9 07-25-2005 04:15 AM

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()"

...repeat as needed for admin donate, steal, change other's title, etc...

:)

clasione 07-25-2005 11:05 AM

Yahhhh ---- Thanks for posting!

tomdude9 07-25-2005 04:42 PM

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

clasione 07-25-2005 05:31 PM

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

vdinh 08-06-2005 11:08 PM

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>

hbalagh1 10-04-2005 05:12 AM

Quote:

Originally Posted by tomdude9
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()">

...repeat as needed for admin donate, steal, change other's title, etc...

:)

I am using this for the donate, but would also like to repeat it and use it for a gift received, i changed the function id # on it and changed some of the text but it doesn't send a pm for the gift only for donate of cash, anyone know how to go about this.

RichNTrace 01-22-2006 04:48 PM

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


All times are GMT. The time now is 08:26 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.02547 seconds
  • Memory Usage 1,762KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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