Back to vBulletin 4.x Template Modifications

Add extra info to the PayPal Subscription Email
Mod Version: 1.00, by DaveS

vB Version: 4.1.0 Rating: (2 votes - 5.00 average) Installs: 20
Released: 07 Feb 2011 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code Translations  

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.
Useful information in paypal mail
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.

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024