Joomla!
http://forum.joomla.org/

Hack: Setting New Registration Groups w/ Joomla-SMF Bridge
http://forum.joomla.org/viewtopic.php?f=149&t=5604
Page 1 of 1

Author:  cronlin [ Tue Sep 13, 2005 5:35 am ]
Post subject:  Hack: Setting New Registration Groups w/ Joomla-SMF Bridge

If you want all of your users to be registered into a specific group automatically, go to your components/com_smf_registration/smf_registration.php file.

beneath the function saveRegistration( $option )
you will see this code:

Quote:
mosMakeHtmlSafe($row);

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

if ($mosConfig_useractivation=="1") {
$row->activation = md5( mosMakePassword() );
$row->block = "1";


change the Registered to whatever group you wish your users to be registered as. A good example would be if you want to allow all of your registered users to submit content, such as Authors. Simply change Registered to Author and it is so! :D

Hope it helps!

Author:  mambostoked [ Thu Nov 10, 2005 10:34 pm ]
Post subject:  Re: Hack: Setting New Registration Groups w/ Joomla-SMF Bridge

Hi Cronlin,
Great tip!! Dont spose you have an idea of how this could be applied to the JoomlaHacks SMF bridge? I initially thought it was the same, but then remembered that it was the other bridge that i had used before that had the SMF Registration component.

I really need to have the user level changed to author on registration, but not sure how to achieve this :'(

Any thoughts / ideas / suggestions, would be much appreciated!!

Regards,
Chris

Author:  cronlin [ Sun Nov 13, 2005 12:52 am ]
Post subject:  Re: Hack: Setting New Registration Groups w/ Joomla-SMF Bridge

mambostoked wrote:
Hi Cronlin,
Great tip!! Dont spose you have an idea of how this could be applied to the JoomlaHacks SMF bridge? I initially thought it was the same, but then remembered that it was the other bridge that i had used before that had the SMF Registration component.

I really need to have the user level changed to author on registration, but not sure how to achieve this :'(

Any thoughts / ideas / suggestions, would be much appreciated!!

Regards,
Chris


well, i believe it would be the same basic concept. Just find the registration component and then find where it will say users - registered and change the registered to whatever you prefer...

Author:  chadness [ Fri Jul 14, 2006 2:24 pm ]
Post subject:  Re: Hack: Setting New Registration Groups w/ Joomla-SMF Bridge

In Orstio's bridge, I think there is an easier way to do this now (as of 1.1.14 and above).  Go in to the "Groups" tab of the SMF bridge configuration, and change all of the groups that say "Registered" to "Author".  Looking at the code, I think it sets your Mambo users level based on those settings (specifically, the Newbie one).

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/