author as default group, how???

General questions relating to Joomla! There are other boards for more specific help on Joomla! features and extensions.

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.
kien
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Wed Jan 17, 2007 2:28 am

author as default group, how???

Postby kien » Thu Aug 02, 2007 2:57 pm

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
Last edited by kien on Fri Aug 03, 2007 9:05 am, edited 1 time in total.

Gergo Erdosi
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4031
Joined: Sat Nov 11, 2006 9:34 pm
Location: Hungary

Re: author as default group, how???

Postby Gergo Erdosi » Thu Aug 02, 2007 3:19 pm

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' );

kien
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Wed Jan 17, 2007 2:28 am

Re: author as default group, how???

Postby kien » Thu Aug 02, 2007 3:43 pm

I have just tried your solution but joomla still shows error: 'You are not authorised to view this resource.' when try post new articles.  ???

Gergo Erdosi
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4031
Joined: Sat Nov 11, 2006 9:34 pm
Location: Hungary

Re: author as default group, how???

Postby Gergo Erdosi » Thu Aug 02, 2007 3:49 pm

In this case I suggest to use Ja Submit:
http://extensions.joomla.org/component/ ... Itemid,35/

kien
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Wed Jan 17, 2007 2:28 am

Re: author as default group, how???

Postby kien » Thu Aug 02, 2007 3:52 pm

Yah! I have used it but its not set default group as author  :-\ it just helps me approve articles only

Gergo Erdosi
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4031
Joined: Sat Nov 11, 2006 9:34 pm
Location: Hungary

Re: author as default group, how???

Postby Gergo Erdosi » Thu Aug 02, 2007 3:55 pm

The above mentioned code should work, many users gave me feedback. Are you logged in when trying to send articles?

kien
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Wed Jan 17, 2007 2:28 am

Re: author as default group, how???

Postby kien » Thu Aug 02, 2007 4:01 pm

yes, user must login to post new article

User avatar
dhuelsmann
Joomla! Master
Joomla! Master
Posts: 19042
Joined: Sun Oct 02, 2005 12:50 am
Location: Omaha, NE
Contact:

Re: author as default group, how???

Postby dhuelsmann » Thu Aug 02, 2007 4:19 pm

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
Last edited by dhuelsmann on Fri Aug 03, 2007 12:32 pm, edited 1 time in total.

User avatar
dhuelsmann
Joomla! Master
Joomla! Master
Posts: 19042
Joined: Sun Oct 02, 2005 12:50 am
Location: Omaha, NE
Contact:

Re: author as default group, how???

Postby dhuelsmann » Thu Aug 02, 2007 4:26 pm

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

kien
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Wed Jan 17, 2007 2:28 am

Re: author as default group, how???

Postby kien » Fri Aug 03, 2007 3:54 am

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' );


Gergo Erdosi
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4031
Joined: Sat Nov 11, 2006 9:34 pm
Location: Hungary

Re: author as default group, how???

Postby Gergo Erdosi » Fri Aug 03, 2007 8:50 am

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!

gametopius
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Apr 03, 2009 11:21 am

Re: author as default group, how???

Postby gametopius » Sat Apr 04, 2009 9:03 pm

I am using Joomla 1.5.10 and can not find the registration.php file in components/com_registration

User avatar
dhuelsmann
Joomla! Master
Joomla! Master
Posts: 19042
Joined: Sun Oct 02, 2005 12:50 am
Location: Omaha, NE
Contact:

Re: author as default group, how???

Postby dhuelsmann » Sun Apr 05, 2009 4:46 pm

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.


Return to “General Questions - 1.0.x”

Who is online

Users browsing this forum: No registered users and 5 guests