The Joomla! Forum ™



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.



Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Thu Aug 02, 2007 2:57 pm 
Joomla! Apprentice
Joomla! Apprentice

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

Top
 Profile  
 
PostPosted: Thu Aug 02, 2007 3:19 pm 
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Sat Nov 11, 2006 9:34 pm
Posts: 4031
Location: Hungary
Modify the components/com_registration/registration.php around the 150th line. Change this

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


to

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


Top
 Profile  
 
PostPosted: Thu Aug 02, 2007 3:43 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jan 17, 2007 2:28 am
Posts: 25
I have just tried your solution but joomla still shows error: 'You are not authorised to view this resource.' when try post new articles.  ???


Top
 Profile  
 
PostPosted: Thu Aug 02, 2007 3:49 pm 
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Sat Nov 11, 2006 9:34 pm
Posts: 4031
Location: Hungary
In this case I suggest to use Ja Submit:
http://extensions.joomla.org/component/ ... Itemid,35/


Top
 Profile  
 
PostPosted: Thu Aug 02, 2007 3:52 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jan 17, 2007 2:28 am
Posts: 25
Yah! I have used it but its not set default group as author  :-\ it just helps me approve articles only


Top
 Profile  
 
PostPosted: Thu Aug 02, 2007 3:55 pm 
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Sat Nov 11, 2006 9:34 pm
Posts: 4031
Location: Hungary
The above mentioned code should work, many users gave me feedback. Are you logged in when trying to send articles?


Top
 Profile  
 
PostPosted: Thu Aug 02, 2007 4:01 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jan 17, 2007 2:28 am
Posts: 25
yes, user must login to post new article


Top
 Profile  
 
PostPosted: Thu Aug 02, 2007 4:19 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sun Oct 02, 2005 12:50 am
Posts: 18864
Location: Omaha, NE
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

_________________
Regards, Dave
http://www.kiwaniswest.org


Last edited by dhuelsmann on Fri Aug 03, 2007 12:32 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Aug 02, 2007 4:26 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sun Oct 02, 2005 12:50 am
Posts: 18864
Location: Omaha, NE
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

_________________
Regards, Dave
http://www.kiwaniswest.org


Top
 Profile  
 
PostPosted: Fri Aug 03, 2007 3:54 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jan 17, 2007 2:28 am
Posts: 25
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:
$row->usertype    = '';
$row->gid       = $acl->get_group_id( 'Registered', 'ARO' );


to

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



Top
 Profile  
 
PostPosted: Fri Aug 03, 2007 8:50 am 
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Sat Nov 11, 2006 9:34 pm
Posts: 4031
Location: Hungary
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!


Top
 Profile  
 
PostPosted: Sat Apr 04, 2009 9:03 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Apr 03, 2009 11:21 am
Posts: 7
I am using Joomla 1.5.10 and can not find the registration.php file in components/com_registration


Top
 Profile  
 
PostPosted: Sun Apr 05, 2009 4:46 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sun Oct 02, 2005 12:50 am
Posts: 18864
Location: Omaha, NE
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.

_________________
Regards, Dave
http://www.kiwaniswest.org


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 



Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group