• 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: Logged in User and Email Fields

Logged in User and Email Fields 12 years 10 months ago #17655

  • K2Joom
  • K2Joom's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
I have a form setup that can only be accessed by logged in users.

On this form I have a "User Name" field and a "User Email" field that the user fills in, then the User Email placeholder is then used to mail admin and the user upon form submission etc.

As the form is only displayed to logged in users, I would like to auto populate the user name and user email fields based on that information held by com_user. See daft to make them fill in those fields.

I just can't fathom out how, in my form, to pull that information in.

Just wondered if someone could poke me in the right direction as I have been through the FAQs and would have thought this might have been a common request, maybe it is so simple I have missed it.

Any help would be much appreciated.
The administrator has disabled public write access.

Re: Logged in User and Email Fields 12 years 10 months ago #17808

Hello,

Here is a link with information.
www.rsjoomla.com/support/documentation/v...n-form-is-shown.html
Regards
Wilco Alsemgeest

Please note: my help is not official customer support. To receive your support, submit a ticket by clicking www.rsjoomla.com/my-support-tickets.html
The administrator has disabled public write access.

Re: Logged in User and Email Fields 12 years 9 months ago #18040

  • K2Joom
  • K2Joom's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Hi Wilco,

Thanks for the link, much appreciated and I have the uiser name and email fields now populated..

As we use K2 and its extended user profile, so we can add a company name, address fields and telephone number, I presume that by modifying the code:
$rsuser=JFactory::getUser(); 
$user=$rsuser->get('email'); 
return $user; 

so that we check the k2 user table and be able to pull in this field data ?

I will go and have a play and report back if I can find how to do it.

Thanks again.
The administrator has disabled public write access.
  • 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!