• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Extract current user name using PHP

Extract current user name using PHP 12 years 1 month ago #16814

Could someone fill me in on how to pull parameters from a logged in user account using the php scripts section of the form?
The administrator has disabled public write access.

Re: Extract current user name using PHP 12 years 1 month ago #16817

  • saror88
  • saror88's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 1
Paste this code in the Default Value:
//<code>
$user=JFactory::getUser(); 
$name=$user->get('name');
return $name;
//</code>
Last Edit: 12 years 1 month ago by saror88. Reason: Code Mistake
The administrator has disabled public write access.
The following user(s) said Thank You: rmdouglasyoung
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!