users table extension

For Joomla! 3.x Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Post Reply
kmchen
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Sat Oct 21, 2006 12:57 am
Location: marseille (13) france
Contact:

users table extension

Post by kmchen » Fri Nov 19, 2021 11:24 am

Hi

I need to add parameters to joomla users for a custom component. What is the best method to do that without directly touching at joomla core nor ##__users table ?

Thanks for any information

SharkyKZ
Joomla! Hero
Joomla! Hero
Posts: 2016
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: users table extension

Post by SharkyKZ » Sat Nov 20, 2021 9:02 am

The simplest way is to store custom parameters along with core parameters in #__users table params column. But this is no good if you need data to be searchable. In that case, use #__user_profiles or custom table.

kmchen
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Sat Oct 21, 2006 12:57 am
Location: marseille (13) france
Contact:

Re: users table extension

Post by kmchen » Sat Nov 20, 2021 9:52 am

Thanks for your reply.

I found that for joomla 2.5: https://docs.joomla.org/Creating_a_profile_plugin

Will it work with joomla 3 and 4 ?

Will the new fields appear in the search engine of the users administration ?

kmchen
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Sat Oct 21, 2006 12:57 am
Location: marseille (13) france
Contact:

Re: users table extension

Post by kmchen » Mon Nov 22, 2021 3:38 pm

The user object is shared by different extensions. How to avoid to reload it each time needed.

Are users's parameters registered into sessions?

Are sessions loaded in RAM only once until user logout?

What would be the best way to include those users extra parameters in session ?


Post Reply

Return to “Joomla! 3.x Coding”