author as default group, how???
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
-
- Joomla! Apprentice
- Posts: 25
- Joined: Wed Jan 17, 2007 2:28 am
author as default group, how???
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
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
Last edited by kien on Fri Aug 03, 2007 9:05 am, edited 1 time in total.
-
- Joomla! Virtuoso
- Posts: 4031
- Joined: Sat Nov 11, 2006 9:34 pm
- Location: Hungary
Re: author as default group, how???
Modify the components/com_registration/registration.php around the 150th line. Change this
to
Code: Select all
$row->usertype = '';
$row->gid = $acl->get_group_id( 'Registered', 'ARO' );
Code: Select all
$row->usertype = 'Author';
$row->gid = $acl->get_group_id( 'Author', 'ARO' );
-
- Joomla! Apprentice
- Posts: 25
- Joined: Wed Jan 17, 2007 2:28 am
Re: author as default group, how???
I have just tried your solution but joomla still shows error: 'You are not authorised to view this resource.' when try post new articles.
-
- Joomla! Virtuoso
- Posts: 4031
- Joined: Sat Nov 11, 2006 9:34 pm
- Location: Hungary
Re: author as default group, how???
In this case I suggest to use Ja Submit:
http://extensions.joomla.org/component/ ... Itemid,35/
http://extensions.joomla.org/component/ ... Itemid,35/
-
- Joomla! Apprentice
- Posts: 25
- Joined: Wed Jan 17, 2007 2:28 am
Re: author as default group, how???
Yah! I have used it but its not set default group as author it just helps me approve articles only
-
- Joomla! Virtuoso
- Posts: 4031
- Joined: Sat Nov 11, 2006 9:34 pm
- Location: Hungary
Re: author as default group, how???
The above mentioned code should work, many users gave me feedback. Are you logged in when trying to send articles?
-
- Joomla! Apprentice
- Posts: 25
- Joined: Wed Jan 17, 2007 2:28 am
Re: author as default group, how???
yes, user must login to post new article
- dhuelsmann
- Joomla! Master
- Posts: 19659
- Joined: Sun Oct 02, 2005 12:50 am
- Location: Omaha, NE
- Contact:
Re: author as default group, how???
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 thatkien wrote: Yah! I have used it but its not set default group as author it just helps me approve articles only
Last edited by dhuelsmann on Fri Aug 03, 2007 12:32 pm, edited 1 time in total.
Regards, Dave
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
- dhuelsmann
- Joomla! Master
- Posts: 19659
- Joined: Sun Oct 02, 2005 12:50 am
- Location: Omaha, NE
- Contact:
Re: author as default group, how???
The code provided will set your new users to author not your current users. See http://forum.joomla.org/index.php/topic,2610.0.htmlkien 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.
Regards, Dave
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
-
- Joomla! Apprentice
- Posts: 25
- Joined: Wed Jan 17, 2007 2:28 am
Re: author as default group, how???
Ah, its working now! My issues are mod/com, I have installed some registration mod/com and it didnt work until I removed them
Thank you! Thank you for all
Thank you! Thank you for all
erdsiger wrote: Modify the components/com_registration/registration.php around the 150th line. Change this
toCode: Select all
$row->usertype = ''; $row->gid = $acl->get_group_id( 'Registered', 'ARO' );
Code: Select all
$row->usertype = 'Author'; $row->gid = $acl->get_group_id( 'Author', 'ARO' );
-
- Joomla! Virtuoso
- Posts: 4031
- Joined: Sat Nov 11, 2006 9:34 pm
- Location: Hungary
Re: author as default group, how???
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] ).
This way the list of messages shows that the question has been solved, and other users can benefit from it.
Thanks!
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] ).
This way the list of messages shows that the question has been solved, and other users can benefit from it.
Thanks!
-
- Joomla! Apprentice
- Posts: 7
- Joined: Fri Apr 03, 2009 11:21 am
Re: author as default group, how???
I am using Joomla 1.5.10 and can not find the registration.php file in components/com_registration
- dhuelsmann
- Joomla! Master
- Posts: 19659
- Joined: Sun Oct 02, 2005 12:50 am
- Location: Omaha, NE
- Contact:
Re: author as default group, how???
This is a 1.0.x series solution and will not work in the 1.5.x as written.gametopius wrote:I am using Joomla 1.5.10 and can not find the registration.php file in components/com_registration
Regards, Dave
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org