PayPal Hackery and How to Grab a Username


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!


Well-known member
If you are creating a template you could do something like
to access the variable, provided you are loading the template with template modification.