J
|
Jane 6/17/2008 |
Hi, global $conn; $rs = db_query("select user_id from users_table where user_name='".$_SESSION["UserID"]."'",$conn); $data = db_fetch_array($rs); $_SSSION["uid"] = $data["user_id"];
|
T
|
thebwit author 6/18/2008 |
Hi, I see what you're saying. Set up this field as readonly on the "Edit as" settings dialog, use $_SESSION["uid"] as default value and check off Apply on the Edit page as well option. To fill $_SESSION["uid"] variable use AfterSuccessfulLogin event on the Events tab: where user_id, user_name are your actual field names, users_table is your actual table name.
|
W
|
wypman 6/20/2008 |
I have been looking at this too. It only shows the User instead of there name when you show the record though. Is there a way of displaying the name? |
J
|
Jane 6/23/2008 |
It's difficult to tell you what's happening without seeing actual files. |