• 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: Store userid?

Store userid? 16 years 10 months ago #3565

Have registered version of RSForm (not pro). Can pump Joomla userid (if registered user) out to email using placeholder. But I can't see an easy way to store the userid as a hidden field in the database (in addition to the IP and timestamp already there). Suggestions please?
The administrator has disabled public write access.

Re:Store userid? 16 years 10 months ago #3570

  • dragonjc
  • dragonjc's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 151
Component RS SHow Form in build
The administrator has disabled public write access.

Re:Store userid? (solved) 16 years 10 months ago #3572

Thx, got it to work!

In my case I wanted to distinguish between guest use of a form to somebody who phones in and gets an logged-in operator to fill it in.
$who = & JFactory::getUser();
foreach($fields as $i=>$field){
  if($field->name=='entryby'){
    $fields[$i]->default_value = $who->get('id') ? $who->get('name') : '' ; 
    break ;
  }
}

This is for Joomla 1.5 and RSForm lite.<br><br>Post edited by: rlubensky, at: 2008/07/03 15:55
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!