vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Changing the subscription_payment_paypal template to include the username (https://vborg.vbsupport.ru/showthread.php?t=258425)

DaveS 02-06-2011 08:50 AM

Changing the subscription_payment_paypal template to include the username
 
Hi,
I've just migrated from 3.8 to 4.1 and I had a template mod which added some useful info to the PayPal emails I get for Paid subscriptions, such as the UserName and the UserId.
I'd like to make the same changes to vB4.
So the template is subscription_payment_paypal.
And the line in Vb3 was:
PHP Code:

<input type="hidden" name="item_name" value="$subinfo[title] Subscription of $userinfo[username] ($userinfo[userid])" /> 

and at the moment it is like this in Vb4:
PHP Code:

<input type="hidden" name="item_name" value="{vb:rawphrase x_subscription, {vb:raw subinfo.title}}" /> 

I have tried to work it out... but I think I have it wrong so have reverted it to ask for advice.
Can anyone help?
Thanks.
Dave

--------------- Added [DATE]1297031085[/DATE] at [TIME]1297031085[/TIME] ---------------

Ok so lets turn this around by saying what I think should go there.
It's very difficult for me to test this as I don't have multiple paypal accounts and I don't want to stop the subscriptions working.

PHP Code:

<input type="hidden" name="item_name" value="{vb:rawphrase x_subscription, {vb:raw subinfo.title} Subscription of {vb:raw userinfo.username} ({vb:raw userinfo.userid}) }" /> 

Does this look right?

DaveS 02-07-2011 06:50 PM

Ok I have sussed this with some helpful people and lots of PayPal refunds!

I guess its worth releasing this for others to use.

PHP 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})" /> 



All times are GMT. The time now is 07:17 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.01003 seconds
  • Memory Usage 1,719KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete