Skip to Content Skip to Menu

Cannot Echo $username in default.php - Help!

13 years 6 days ago - 13 years 6 days ago #180296 by stevenjackson75
Cannot Echo $username in default.php - Help! was created by stevenjackson75
Hi guys, I need some help!

I've added some javascript to default.php template file to customize the URL sent to addthis.com by appending the users profile URL. I need to determine $user->username from within default.php, or otherwise learn how to echo the username in this file.

I've followed the Establishing $user tutorial at AllMySocials without any luck so far, and the timeframe I have to work to isn't going to allow me to learn how to construct a CB plugin in order to pull in a single field.

I could really use some assistance getting this working and hope that I'm missing something simple!

Thanks!
Last edit: 13 years 6 days ago by stevenjackson75.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum