Custom Variables in Admin Panel

Posted by korsakov 
Custom Variables in Admin Panel
March 27, 2011 06:08PM
Is there any hook available I could use to assign values to custom variables when I create a new user within the Admin panel?
Also, it'd be great if the values of custom variables cannot only be displayed but also changed within a user profile.
Re: Custom Variables in Admin Panel
March 27, 2011 06:28PM
Have you looked at the hooks as provided by the user API at all? I guess "user_register" should work fine for what you want to do.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Custom Variables in Admin Panel
March 27, 2011 07:02PM
Oh, what a pleasant surprise to see these new hooks! Thanks for your reminder! Anyway, it would be very handy if it was possible in the future to change custom variables conveniently on the user page within the Admin panel. Wishful thinking?
Re: Custom Variables in Admin Panel
March 27, 2011 07:11PM
Yes, wishful thinking.

And we are not talking about new hooks at all.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Custom Variables in Admin Panel
March 28, 2011 12:21AM
The hook admin_users_form gives you the possibility to add some form elements which allow editing the custom variables.
As there aren't only text custom variables but also stuff like serialized data we don't provide that way by default.


Thomas Seifert
Your IP address, domain or ISP has been blocked. Please contact the forum administrators.
Sorry, only registered users may post in this forum.

Click here to login