|
jeff - 2006-03-31 15:38:26
Hi Olaf,
Thanks for all the hard work. This class really saved me some time.
One problem I'm having is with the forms for update_user_profile.php.
When I originally open the form the user name shows up fine but none of the other fields that contain existing info. This is only when the ext form is included with the update user. The update_user alone works fine.
Do I have something set up wrong or is this not the way things are supposed to work? When I update either form is does write to the database just fine. I don't want to write a new form just to echo this data back to the user I have to be doing something wrong eh?
Best regards, Jeff
Simon Mawby - 2006-04-03 12:46:10 - In reply to message 1 from jeff
Hi Jeff,
Not sure if you are doing something wrong, but for me the form data is echoed back to the user ok.
What I would like to know, is how I can pull up the same data on the admin page. As it stands, the only data retrieved by the admin page is the user's email address and I need to add whatever it takes to show the entire contents of the user's profile.
Although I'm relatively new to PHP and mySQL, I managed to edit the script and database to include extra form fields, and to increase the size of the textarea for the Notes field. However, I don't know what code I should use to show the user's profile data on the admin page. Any advice would be appreciated.
CyprusSam
Olaf Lederer - 2006-04-05 12:46:16 - In reply to message 2 from Simon Mawby
Hello CyprusSam,
In this case you have to write some new code. I wrote this example only to show how to activate an account if the auto-activation is off.
check the profile extension too and try to build something similar like the admin user extension.
success!
Olaf
Olaf Lederer - 2006-04-05 12:49:43 - In reply to message 1 from jeff
Hi,
you need to include the user_profile extenstion to get it work (check the example file: update_user_profile.php)
and first place this code at the top of you script and tell me the errors:
error_reporting(E_ALL)
Olaf
Marc Eigenheer - 2006-05-05 13:23:16 - In reply to message 4 from Olaf Lederer
Hi Olaf,
many thanks for all your work! I am very new to PHP and yet I can make your class sort-of-work :-) There is an error though when running the update_user.php
The error message(s) when running it on the server are:
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in \classes\access_user\access_user_class.php on line 190
(4 errors for lines : 190/191/192 and 193)
The code line 190 in access_user_class.php is:
$this->id = mysql_result($res_info, 0, "id");
I checked with the manual but I dont see a problem with the code. I hope you can give me a hint.
Thanks!
Marc
Olaf Lederer - 2006-05-05 19:17:12 - In reply to message 5 from Marc Eigenheer
Hello,
are you using the latest version available from my website (ver. 1.89)?
There is also a link to a special support forum for all my scripts and classes.
Olaf
|