ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Saving User ID with form data (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Saving User ID with form data
#8123
kokuryu (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Saving User ID with form data 1 Month, 3 Weeks ago Karma: 0  
How do I save the User ID along with the form's data? I thought the "uid" field was that, but apparently that is some kind of unique hash created with each entry. Is there something special I need to include in the form or some setting I need to toggle to say that the form's data must be saved with the user id? Or do I need to put in a block of PHP code into the form and then echo out a hidden field to store it in?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8156
GreyHead (Admin)
Admin
Posts: 2801
graph
User Offline Click here to see the profile of this user
Re:Saving User ID with form data 1 Month, 3 Weeks ago Karma: 59  
Hi kokuryu,

In Joomla 1.0.x you can use the $my object to get user data. You'd need to put code something like this:

<?php
global $my;
<input type="hidden" value="<?php echo $my->id; ?&gt: /&gt
?>

Joomla 1.5 code is slightly different and I can't remember it right now.

Bob
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#8181
kokuryu (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:Saving User ID with form data 1 Month, 3 Weeks ago Karma: 0  
Thanks a bunch! That worked great!

I tried to post the code I used, but it came out all gabaged and half missing...
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/09 18:26 By kokuryu.
  The administrator has disabled public write access.
#8192
GreyHead (Admin)
Admin
Posts: 2801
graph
User Offline Click here to see the profile of this user
Re:Saving User ID with form data 1 Month, 3 Weeks ago Karma: 59  
Hi kokuryu,

Yes, sorry the forum code display is broken for the moment . . . still searching for a fix.

Bob
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials