January 23, 2009

In Joomla registered users are not authorised to add content and admin have to give them publisher authority to add content.
To enable registered users to add content to your site just add the following lines.
Just open the file includes/gacl.class.php and inside the funciton gacl add the lines:
$this->_mos_add_acl( ‘action’, ‘add’, ‘users’, ‘registered’, ‘content’, ‘all’ );
$this->_mos_add_acl( ‘action’, ‘edit’, ‘users’, ‘registered’, ‘content’, ‘own’ );
$this->_mos_add_acl( ‘action’, ‘publish’, ‘users’, ‘registered’, ‘content’, ‘own’ );

This will allow registered users to add any type of content, edit their own content and publish their own content. The same logic applies to other user types in case you want to change any of the permissions on the file.

Auto Publishing

Another sometimes useful feature not available in Joomla is the frontpage auto-publish of content (the Publisher is the one that decides to put the content in the frontpage or not when he publishes it). This can be achieved with a single change in the file components/com_content/content.php. Search for the line:

$row->frontpage = 0;

and replace it with:

$row->frontpage = 1;

This will enable frontpage auto-publishing of all your contents. Note: although this may be useful for publishing news in the frontpage, it may not be what you want for when you create articles that are not to display in the frontpage (In this case, you need to uncheck the frontpage publishing box). You should consider wich one is the most common case and decide on the best option for it.
You can test these features on my Poor Jokes site.



If you have any computer related problem, you can ask it at our Question & Answer portal and our experts will answer your queries.

About

Bishwajeet Mahato is the Founder and CEO of Comptalks, an online portal and offline college magazine.He is a fifth year undergraduate student of IIT Kharagpur,India and he loves writing about technology and helps people solve their computer related problems. Nowadays, he is also interested in digital marketing and has worked for several top notch companies. Follow him on Twitter @mahato99

Comments:
  1. nice hack tips for joomla submit, maybe we can change the new registered group to author.

  2. nice hack oomla submit tip for new registered users

  3. nice hack oomla submit tip for new registered users

    Copyright © 2011 Comptalks - All Rights Reserved.