• 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

#1
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!
 

Aayush

Well-known member
#2
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.