Preventing Joomla Front-end User Editing

Code Prevent User Edit

If you search Google how to disable the functionality of editing users from the Joomla front-end, the biggest part of the results will describe CSS hiding techniques and Joomla core hacks. This plug-in won’t hide hyperlinks or buttons and it doesn’t perform core hacks. What it does, is disabling the ability of front-end editing on a lower level.

Core hacks can prevent front-end user editing (e-mail address, password, etc.) as well, but also create a situation where Joomla instances will be harder to update. Using a plug-in will circumvent this.

How to use this plug-in:

  1. Check this single requirement: Joomla 2.5 or higher (Joomla 3 branch included).
  2. Download the Prevent User Edit plug-in (Version 2).
  3. Install.
  4. Enable the newly added system plug-in.
  5. Clear cache.

After that, front-end access will be prevented to pages like:

  • index.php?option=com_users&view=registration
  • index.php?option=com_users&view=profile&layout=edit
  • index.php?option=com_users&view=reset

However, pages used to log in and out of the system will still be available.

The extension is tested, but not thoroughly. Participation in that regard is very welcome. I’ve tested the plug-in in Joomla 2.5.9 and 3.1.5, both with SEF enabled. Every test report is welcome, just e-mail it to blog@wardt.info.

The plug-in is quite short and simple. It basically consist of one long if statement.