Uploading users in Joomla 1.5
2.5 years have passed since the publication of material Uploading users. Much has changed, got Joomla 1.5 and guidance slightly out of date. So I decided to write a second article on this subject, but directly in relation to Joomla 1.5. This article describes the issue of granting users the right to add and publish materials in Joomla 1.5. Ie that immediately after registering on the site the user automatically receives the opportunity to add materials to the site.
By default in Joomla after registering user is assigned a group of Registered. However, users of this group do not have the right to add materials, so to give the user the ability to add material to translate it into a group of Author. Or some way to provide Registered group the right to add materials.
If the users you want to allow materials to add a little bit, the easiest way to transfer them to the Author. And do not make any modifications. If it is necessary to give the right to add material to all registered users of the site, the easiest way to expand the rights of Registered doing a little modification.
Note: The article is devoted to discussing ways to provide the ability to add materials registered users. Questions the possibility of granting the right to modify or publication of material not considered.
Change in the rights of Registered
This method is based on adding a group of Registered right to add materials. It is important to note that this modification is not limited to new users, but also already existing users of Registered
- Is in the file / libraries / joomla / user / authorization.php code:
$ This->addACL( 'Com_content', 'Publish', 'Users', 'Super administrator', 'Content', 'All' );
- Insert after the following lines:
$ This->addACL( 'Com_content', 'Add', 'Users', 'Registered', 'Content', 'All' ); $ This->addACL( 'Com_content', 'Edit', 'Users', 'Registered', 'Content', 'Own' ); - Save the edited file
- Open the file / components / com_content / controller.php, find and remove it in the code:
if ($ User->get('Gid') < 19) { JError::raiseError( 403, JText::_('ALERTNOTAUTH') ); return; } - Save the edited file
- Open the file / components / com_content / views / article / view.html.php, find and remove it in the code:
if ($ User->get('Gid') < 19) { JError::raiseError( 403, JText::_('ALERTNOTAUTH') ); return; } - Save the edited file
- The administrative panel, open the manager menu, choose User menu and change the access level to add the item to the Special Materials for Registered.
After carrying out these modifications to all authorized users in the user menu item will be available to Submit an Article, and they will be able to add materials to the site (with pre-moderation). If, however, it is necessary so that users can not simply add material, but also immediately publish them, then when you make changes to the file / libraries / joomla / user / authorization.php need to add in addition to these 2 lines, one more:
$ This->addACL( 'Com_content', 'Publish', 'Users', 'Registered', 'Content', 'All' );
