1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PayPal Hackery and How to Grab a Username

Discussion in 'XenForo Development Discussions' started by denzil, Jul 3, 2014.

  1. denzil

    denzil Member

    Hello,

    Since copy-pasting PayPal button code doesn't really work in threads due to already being within an HTML form. So in the interest of using this method, I need to be able to grab the logged-in user's forum handle and pass it as a parameter through the PayPal button. I tried going through the account upgrade path but it looks like it just passes the username as plaintext.

    Is it possible to grab the user name? Is it something like $user or $username?

    Thanks in advance!
     
  2. Aayush

    Aayush Well-Known Member

    If you are creating a template you could do something like
    Code:
    {$user.username}
    to access the variable, provided you are loading the template with template modification.
     
  3. denzil

    denzil Member

    Thanks for the response, I'll try it out. :)
     

Share This Page