Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[SOLVED] User Email not set in database

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Architecture
Author Message
YoannQ



Joined: 12 Mar 2006
Posts: 7

PostPosted: Wed Aug 08, 2007 7:52 am    Post subject: [SOLVED] User Email not set in database Reply with quote

On user_admin.php file, user's Email (use in thold plugins) is not added in database.

Edit user_admin.php and find this line (line 151):
Code:
$save["full_name"] = form_input_validate($_POST["full_name"], "full_name", "", true, 3);


Add this new line after.

Code:
$save["email"] = form_input_validate($_POST["email"], "email", "", true, 3);


Now in your database, you must insert a new row in user_auth table after full_name row.

Code:
ALTER TABLE `user_auth` ADD `test` VARCHAR( 255 ) NOT NULL AFTER `full_name` ;



Good luck
Back to top
cigamit
Developer


Joined: 07 Apr 2005
Posts: 978
Location: B/CS Texas

PostPosted: Wed Aug 08, 2007 8:29 pm    Post subject: Reply with quote

Email addresses are stored in a separate table for thold, not the user table.
Back to top
YoannQ



Joined: 12 Mar 2006
Posts: 7

PostPosted: Thu Aug 09, 2007 4:23 am    Post subject: Reply with quote

Right

But if you want to show email adresse in user admin interface you must be that.

Also it's better to read thold user table, but it's not easy in 5 minutes. Next version ?
Back to top
cigamit
Developer


Joined: 07 Apr 2005
Posts: 978
Location: B/CS Texas

PostPosted: Thu Oct 25, 2007 12:21 am    Post subject: Reply with quote

Fixed in thold v0.3.6.

Please note that this version of thold requires Cacti 0.8.7 to function.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Architecture All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group