Hot answers tagged

7 votes

Profile Pictures for Joomla Users?

I've previously used a plugin called Easy Profile. In addition to supporting Avatars, it has several other improvements over the built-in Joomla user profile system. The free version is somewhat ...
  • 13.3k
6 votes

Updating user profile

This is how Joomla user profile plugins does // Sanitize the date $data['profile']['dob'] = $this->_date; $db = JFactory::getDbo(); $query = $db->getQuery(true) ->delete($db-...
  • 467
6 votes
Accepted

Updating user profile

You can modify this code from Joomla Docs to fit your needs, depending on what you're trying to achieve: $db = JFactory::getDbo(); $query = $db->getQuery(true); // Fields to update. $fields = ...
  • 1,178
4 votes
Accepted

Is there an easy way to build a form in Joomla that stores the currently logged in user's name?

If you don't need to use the username for something else (which might require coding that you're trying to avoid), I know that RSForms has global placeholders for data it automatically saves for the ...
4 votes

Profile Pictures for Joomla Users?

This can be achieved using custom fields now-a-days. My previous answer in case anyone finds that useful. The above is probably more relevant this is just here for reference. Custom Fields (above ...
  • 1,839
3 votes

Website for Famous People Profile Database

From my experiences, extending from an available component can be difficult to maintain in the long run. And extending from the component could be a hassle as the coding style are different and ...
  • 131
3 votes

Remove two factor authentication fields from core Joomla profile editor

You only need to disable the two factor authentication plugin from Plugin Manager > (search for) Two Factor > Disable the Two factor Authentication plugin which is enabled. That should be it! If you ...
3 votes

Profile Pictures for Joomla Users?

I created a custom profile component a while back. What you'd probably need is a database table mapping a user ID to a user picture URL, then create a helper file to retrieve the image wherever you ...
  • 346
3 votes
Accepted

Custom profile plugin fields not showing

There are two mistakes in your code. 1) The following piece of code is broken, I guess two lines got overwritten. $form->setFieldAttribute('dob', 'description', $form->...
  • 2,971
2 votes

Showon works on plugin backend but not frontend

As answered by Joomla Dév Team on Github, showon is not working on XML files related to user profile, because they don't use a regular JForm. As far as I know, it seems that showon is not working at ...
2 votes
Accepted

Custom profile fields, restricted to admin only

I'm not dead sure that this will work as i don't have such a user plugin installed to try, but try adding this function to your plugin. It's intent is to check if the user is in a usergroup of your ...
  • 7,685
2 votes
Accepted

Logged in user details, profile, message notification display using access level category

You should have a read through the docs there are lots of useful tips there, maybe the following is what you need? To get this object for the current user, use the following member function of ...
  • 3,501
2 votes

Edit profile redirect on submission

Ok, I've written a small plugin that does what you want without having to make any core hacks. You can have a look at the source code here: https://github.com/C-Lodder/Profile-Edit-Redirect Or you can ...
  • 26.5k
2 votes

Remove two factor authentication fields from core Joomla profile editor

I've discovered that both the Google and YubiKey authentication plugins have an option to select using 2FA for either frontend, backend or both. By setting both of these to 'backend only' hides the ...
  • 71
2 votes
Accepted

Is it possible to disable the Author profile in K2?

As I thought, the whole profile page is a core K2 functionality, no way to directly disable it. So the only solution is to remove any link to these pages with overrides to either modules or K2 ...
  • 302
2 votes

Render custom Joomla profile Form

Finally got a workaround. require_once JPATH_BASE/components/com_users/modes/registration.php $obj = new UsersModelRegistration(); $form = $obj->getForm()->getXML(); This gives the complete ...
  • 2,651
2 votes
Accepted

How do I override an .xml file in a Joomla component?

You should check Joomla Plugins and Events. There are such events like onContentPrepareForm($form, $data) and (may be you'll want to use onContentPrepareData($context, $data) but you should be fine ...
  • 1,120
1 vote

Create a category from frontend in Joomla 4

This task can be approached few different ways. I would just like to give a short version of how a new Category is created in Joomla 4 - content (not a big difference in Joomla 3 actually). Besides my ...
  • 2,436
1 vote
Accepted

How to set the username hyperlink to open the user's EasySocial Profile in Fabrik?

Open your user element. From left menu open List view settings->tab List settings. There have a field Custom link. Read label tooltip. Place in field your link to Easysocial user. Replace user id ...
1 vote
Accepted

Can't display Extra field (Date of birth) when logged in as Registered user

Whenever you call JUserHelper::getProfile() the code in that function triggers a Joomla event 'onContentPrepareData' to which the Joomla user plugin User - Profile subscribes. This plugin adds in the ...
1 vote

Joomla 3.6.2 -- Modify Registration Page and Plugin User Profile

you shouldn't edit core files, but use the nice feature of template override within joomla. Help e.g from https://docs.joomla.org/Understanding_Output_Overrides and many other documents. In your case: ...
1 vote

Joomla3 Loading two diffrent plugin for two diffrent user group in their profile page

It's very simple: you just need to be sure that you have different Access Level for those groups, if you don't - go and make sure about it. (Manage Users - Access Levels) Then go to your plugins ...
  • 1,120
1 vote

Website for Famous People Profile Database

Easy Profile Easy Profile will do most of the heavy lifting for you (including search) in this scenario. This extension is extremely versatile and fairly easy to customise to your requirements. For ...
1 vote

Render custom Joomla profile Form

Create a custom plugin for your Joomla site and utilize the onAfterUserSave method to return any type of string you want.
  • 1,757
1 vote

Edit profile redirect on submission

Some time passed, but if people are searching for this, you can do something like this. Before redirection (after saving profile) one can set a state to redirect where you want and no extra code or ...
  • 341
1 vote
Accepted

How to create a custom profile plugin

The group refers to a named fieldset element inside a form definition. Find the field you are trying to edit into the form definition and get the name of its parent fieldset element and use that for ...
  • 1,396
1 vote

How to add extra fields to the activation email?

I will try to answer this, more in a general sense, not specific to easy-profile. The code responsible to sending the email is located in the registration model. You can hack that, but it would just ...

Only top scored, non community-wiki answers of a minimum length are eligible