Dev & Tech Notes
San Diego | Los Angeles | Big Bear | USA
Terms & Conditions ©2005-2025 TJohns.co
Terms & Conditions ©2005-2025 TJohns.co
Articles in this Category
- Add Dropdown Category List to Joomla
- Booking & Reservation Extensions
- Echo Usergroup - Specific Class for Different Usergroups
- Getting the Intro & Full Text Images for Custom Article Template
- How to Get User Name - Joomla 3
- How to Use Shortcodes in Joomla Template Files via PHP
- Insert Code for Specific Component
- Inserting, Updating, & Deleting Data via JDatabase
- Joining Across Multiple Tables Example
- Joomla Custom Fields Don't Work
- Joomla Extension Directory - Fake Reviews
- Joomla Extension Directory = GARBAGE
- Layout Overrides (alternative layout)
- No Input Field for Tags on Front End 'Create Article'
- Reading & Writing to the Joomla Database
- Redirect Joomla Home Page for Different User Groups
- Remove Joomla Tooltips
- test notification
- Unique Body Class in Joomla 3
Top Left Text cha
Web & App Development
How to Get User Name - Joomla 3
- Details
- Written by Timothy Johns
- Category: Joomla
- Hits: 2787
You need to declare the variable you're going to use... $user = JFactory::getUser(); Then, to echo it... echo 'User name: ' . $user->username; Other variables... Name: $user->name ID: $user->id
Comments