Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add extra info to the PayPal Subscription Email Details »»
Add extra info to the PayPal Subscription Email
Version: 1.00, by DaveS DaveS is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.1.0 Rating:
Released: 02-06-2011 Last Update: Never Installs: 20
Template Edits
Re-useable Code Translations  
No support by the author.

There was a previous mod that I used on my forum that added the UserName and UserId to the PayPal email that was sent. I found this information useful if I needed to check anything with a subscription.
https://vborg.vbsupport.ru/showthread.php?t=99421
All credit to Luroca the original contributor.
I recently upgraded from 3.8 to 4.1 and wanted the same functionality and this simple mod hadn't yet been release anywhere so I set about working out the changes that I needed to make in the new vB4 template system.

Before:

Site Sponsor Subscription
Item Number 0c8cbc5d1bc869922341c3fbb37767a9 14.00 EUR


After:

Site Sponsor Subscription of TestUser (1125)
Item Number 0c8cbc5d1bc869922341c3fbb37767a9 14.00 EUR

So after the type of subscription the UserName and the UserId are appended.

In the Subscriptions (Paid) Templates group find the subscription_payment_paypal template.
Find the line:
Code:
<input type="hidden" name="item_name" value="{vb:rawphrase x_subscription, {vb:raw subinfo.title}}" />
and replace with:

Code:
<input type="hidden" name="item_name" value="{vb:rawphrase x_subscription, {vb:raw subinfo.title}} of {vb:raw userinfo.username} ({vb:raw userinfo.userid})" />
Hope this is useful to some of you.

Show Your Support

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

Comments
  #2  
Old 02-07-2011, 09:09 PM
stained stained is offline
 
Join Date: Jun 2009
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
  #3  
Old 06-24-2011, 04:55 AM
Davey-UK's Avatar
Davey-UK Davey-UK is offline
 
Join Date: Feb 2003
Location: Sheffield-UK
Posts: 244
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Brilliant. Ive been looking for this. Now just wait till a buyer pops up to test it. :up:
Reply With Quote
  #4  
Old 06-24-2011, 10:41 AM
stained stained is offline
 
Join Date: Jun 2009
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just as a preliminary confidence check for you Davey, I can confirm that this is working correctly in 4.1.4. Here's one from yesterday :

22. Jun 2011 07:40:42 PDT
Transaction ID: xxxxxxxxxxxxxxxxxx

Hello xxxxxxxxxxx,

You received a payment of €xxxx EUR from xxxx xxxxxxxx (xxxxx.xxxxxxxxxx@yahoo.com)
You can now ship any items. To see all the transaction details, log in to your PayPal account.

It may take a few moments for this transaction to appear in your account.

Seller Protection - Not Eligible


--------------------------------------------------------------------------------

Buyer
xxxxxx xxxxxxxxx
xxxxx.xxxxxxxxxx@yahoo.com
Instructions to merchant
The buyer hasn't entered any instructions.

Full Member Subscription of xxxxxxx (1331)
Item# xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxx EUR 1 xxxx EUR

Subtotal xxxx EUR
Total €xxxx EUR
Payment €xxxx EUR
Payment sent to yyyy.yyyyyyy@yyyyyy.com
Reply With Quote
  #5  
Old 07-11-2011, 10:29 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone had a problem with this breaking the PayPal acknowledgement of payments vBulletin routine?

Thanks for any feedback ...

Regards,
Doug
Reply With Quote
  #6  
Old 07-12-2011, 04:10 AM
DaveS DaveS is offline
 
Join Date: Apr 2006
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BadgerDog View Post
Has anyone had a problem with this breaking the PayPal acknowledgement of payments vBulletin routine?

Thanks for any feedback ...

Regards,
Doug
No. I get several subscriptions a day and I'm on 4.1.4 with no problems.
Reply With Quote
  #7  
Old 07-12-2011, 05:18 PM
as7apcool as7apcool is offline
 
Join Date: Feb 2009
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
  #8  
Old 03-16-2012, 05:52 PM
chrisngrod's Avatar
chrisngrod chrisngrod is offline
 
Join Date: Oct 2010
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I actually stumbled upon this. Thanks a lot. It's very helpful when dealing with Paypal complaints.
Reply With Quote
Reply


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 11:49 AM.


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.04369 seconds
  • Memory Usage 2,282KB
  • Queries Executed 22 (?)
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
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete