Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > uCash & uShop

Reply
 
Thread Tools
PM upon donate Details »»
PM upon donate
Version: , by paul41598 paul41598 is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-20-2005 Last Update: Never Installs: 0
 
No support by the author.

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.

?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-23-2005, 12:09 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 07-12-2005, 05:41 AM
clasione clasione is offline
 
Join Date: Aug 2004
Location: NY
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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....
Reply With Quote
  #4  
Old 07-25-2005, 04:15 AM
tomdude9 tomdude9 is offline
 
Join Date: Jul 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Reply With Quote
  #5  
Old 07-25-2005, 11:05 AM
clasione clasione is offline
 
Join Date: Aug 2004
Location: NY
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yahhhh ---- Thanks for posting!
Reply With Quote
  #6  
Old 07-25-2005, 04:42 PM
tomdude9 tomdude9 is offline
 
Join Date: Jul 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 07-25-2005, 05:31 PM
clasione clasione is offline
 
Join Date: Aug 2004
Location: NY
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 08-06-2005, 11:08 PM
vdinh vdinh is offline
 
Join Date: Feb 2002
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #9  
Old 10-04-2005, 05:12 AM
hbalagh1's Avatar
hbalagh1 hbalagh1 is offline
 
Join Date: Jun 2005
Location: San Diego
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 01-22-2006, 04:48 PM
RichNTrace RichNTrace is offline
 
Join Date: Nov 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:07 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.05077 seconds
  • Memory Usage 2,305KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete