Page 1 of 1

author as default group, how???

Posted: Thu Aug 02, 2007 2:57 pm
by kien
Hello,

Could someone please tell me how do I set default registration group is authour? I want user can post news but this news must be approved by admin. I have used ja submit but its not set default group as authour. For that reason I still change it manually, can I change it automatictly? how? which mod/com???  ???

Thanks

Re: author as default group, how???

Posted: Thu Aug 02, 2007 3:19 pm
by Gergo Erdosi
Modify the components/com_registration/registration.php around the 150th line. Change this

Code: Select all

$row->usertype    = '';
$row->gid       = $acl->get_group_id( 'Registered', 'ARO' );
to

Code: Select all

$row->usertype    = 'Author';
$row->gid       = $acl->get_group_id( 'Author', 'ARO' );

Re: author as default group, how???

Posted: Thu Aug 02, 2007 3:43 pm
by kien
I have just tried your solution but joomla still shows error: 'You are not authorised to view this resource.' when try post new articles.  ???

Re: author as default group, how???

Posted: Thu Aug 02, 2007 3:49 pm
by Gergo Erdosi
In this case I suggest to use Ja Submit:
http://extensions.joomla.org/component/ ... Itemid,35/

Re: author as default group, how???

Posted: Thu Aug 02, 2007 3:52 pm
by kien
Yah! I have used it but its not set default group as author  :-\ it just helps me approve articles only

Re: author as default group, how???

Posted: Thu Aug 02, 2007 3:55 pm
by Gergo Erdosi
The above mentioned code should work, many users gave me feedback. Are you logged in when trying to send articles?

Re: author as default group, how???

Posted: Thu Aug 02, 2007 4:01 pm
by kien
yes, user must login to post new article

Re: author as default group, how???

Posted: Thu Aug 02, 2007 4:19 pm
by dhuelsmann
kien wrote: Yah! I have used it but its not set default group as author  :-\ it just helps me approve articles only
JA Submit allows you to set the level of user that can submit articles so you could make your registered users able to submit articles. It also allows you to define what will be automatically published. It does not allow you to automatically promte to the front page however. Thjs thread will show you how to accomplish that

Re: author as default group, how???

Posted: Thu Aug 02, 2007 4:26 pm
by dhuelsmann
kien wrote: I have just tried your solution but joomla still shows error: 'You are not authorised to view this resource.' when try post new articles.  ???
The code provided will set your new users to author not your current users. See http://forum.joomla.org/index.php/topic,2610.0.html

Re: author as default group, how???

Posted: Fri Aug 03, 2007 3:54 am
by kien
Ah, its working now!  :D My issues are mod/com, I have installed some registration mod/com and it didnt work until I removed them :D

Thank you! Thank you for all
erdsiger wrote: Modify the components/com_registration/registration.php around the 150th line. Change this

Code: Select all

$row->usertype    = '';
$row->gid       = $acl->get_group_id( 'Registered', 'ARO' );
to

Code: Select all

$row->usertype    = 'Author';
$row->gid       = $acl->get_group_id( 'Author', 'ARO' );

Re: author as default group, how???

Posted: Fri Aug 03, 2007 8:50 am
by Gergo Erdosi
You're welcome. :)

If your question is solved, could you please mark your first message in this thread as "Solved" ?
(Modify the first message and choose the Message Icon [Solved] Image).
This way the list of messages shows that the question has been solved, and other users can benefit from it.

Thanks!

Re: author as default group, how???

Posted: Sat Apr 04, 2009 9:03 pm
by gametopius
I am using Joomla 1.5.10 and can not find the registration.php file in components/com_registration

Re: author as default group, how???

Posted: Sun Apr 05, 2009 4:46 pm
by dhuelsmann
gametopius wrote:I am using Joomla 1.5.10 and can not find the registration.php file in components/com_registration
This is a 1.0.x series solution and will not work in the 1.5.x as written.