Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Topic started by: begby on February 04, 2005, 12:01:53 AM

Title: SMF-MOS activation link problem!
Post by: begby on February 04, 2005, 12:01:53 AM
Hello, I just converted my mambo-phpbb site to smf, and everything is fine...except that when new users register, the link they click tells them their account activated, but when they try to log in, it says the account hasnt been activated yet!  Odd thing is, when they get the activation link resent, it works... can someone pls tell me the fix?

the link is www.thegreenrabbit.ca
Title: Re: SMF-MOS activation link problem!
Post by: xenovanis on February 04, 2005, 12:14:31 AM
I'm not completely sure about it, but check your registration settings:

SMF should be set to immediate registration;
Mambo should be set to activation required.

But maybe the problem is that you have a phpBB forum installed?   ???
Title: Re: SMF-MOS activation link problem!
Post by: Orstio on February 04, 2005, 05:23:23 AM
QuoteSMF should be set to immediate registration;
Mambo should be set to activation required.

That's probably what is wrong, although I thought I had this fixed in v2.2....
Title: Re: SMF-MOS activation link problem!
Post by: begby on February 04, 2005, 06:57:49 AM
But now there is no activation link sent (which I want!) and when the newsy registered person logs in ,  an 'OK' box pops up and says _LOGIN_BLOCKED, but it lets the person in..what gives?
Title: Re: SMF-MOS activation link problem!
Post by: Orstio on February 04, 2005, 07:01:21 AM
Turn activation on in Mambo.   Leave it off in SMF.

Check your Mambo email settings, and make sure that it is sending emails properly.

EDIT:  Oh.  I see what's wrong.  You can't turn on acitivation in Mambo, because you have the PhpBB component installed, which removes the Mambo activation column from the user table.

The Mambo-SMF bridge registration does not work while the PhpBB component is installed.
Title: Re: SMF-MOS activation link problem!
Post by: begby on February 04, 2005, 07:23:17 AM
Perfect! That worked... only two minor quibbles..

1) Is there away to automatically make every registered person an 'Author' as I had set up in php

2) How can I change the cosmetics of the login form?  It's not aligned properly

3) When you login at the forum, it takes you to the front page...any way to keep them at the forum when they log in there?
Title: Re: SMF-MOS activation link problem!
Post by: Kindred on February 04, 2005, 07:27:57 AM
1) Not easily...  oops... simple code change. My mistake
2) Change the form display in mambo/modules/mod_smf_login.php
3) this is being worked on. Staying on the referring page is possible, but requires a code change.
Title: Re: SMF-MOS activation link problem!
Post by: Orstio on February 04, 2005, 08:33:38 AM
1)  If you don't mind changing some code:

in your com_smf_registration folder, you'll find smf_registration.php.  Change line 203:

$mos_write = mysql_query ("INSERT INTO {$mos_prefix}core_acl_groups_aro_map ( `group_id` , `section_value` , `aro_id` ) VALUES ('18', '', '".$aro_id."');");


to:

$mos_write = mysql_query ("INSERT INTO {$mos_prefix}core_acl_groups_aro_map ( `group_id` , `section_value` , `aro_id` ) VALUES ('19', '', '".$aro_id."');");


Quote2) How can I change the cosmetics of the login form?  It's not aligned properly

Actually, in the next release, this can be adjusted in the Mambo backend (gotta love params).

Quote3) When you login at the forum, it takes you to the front page...any way to keep them at the forum when they log in there?

Yup, more params.  Next release.  ;)
Title: Re: SMF-MOS activation link problem!
Post by: begby on February 04, 2005, 09:28:04 AM
Quote from: Orstio on February 04, 2005, 08:33:38 AM
1)  If you don't mind changing some code:

in your com_smf_registration folder, you'll find smf_registration.php.  Change line 203:

$mos_write = mysql_query ("INSERT INTO {$mos_prefix}core_acl_groups_aro_map ( `group_id` , `section_value` , `aro_id` ) VALUES ('18', '', '".$aro_id."');");


to:

$mos_write = mysql_query ("INSERT INTO {$mos_prefix}core_acl_groups_aro_map ( `group_id` , `section_value` , `aro_id` ) VALUES ('19', '', '".$aro_id."');");

Thanks for your reply.  I changed this, but its still registering them as 'registered users' instead of author
Title: Re: SMF-MOS activation link problem!
Post by: Orstio on February 04, 2005, 02:44:57 PM
It's not going to change existing users.  They are already registered.
Title: Re: SMF-MOS activation link problem!
Post by: begby on February 04, 2005, 04:09:46 PM
I realize that, but new users arent being registered as authors
Title: Re: SMF-MOS activation link problem!
Post by: Orstio on February 04, 2005, 04:22:21 PM
OK, I just registered on your site.

Check Mambo, and tell me of which group I am a part?
Title: Re: SMF-MOS activation link problem!
Post by: begby on February 04, 2005, 09:40:02 PM
Quote from: Orstio on February 04, 2005, 04:22:21 PM
OK, I just registered on your site.

Check Mambo, and tell me of which group I am a part?

You are under 'registered' user
Title: Re: SMF-MOS activation link problem!
Post by: begby on February 06, 2005, 11:39:34 AM
any ideas?
Title: Re: SMF-MOS activation link problem!
Post by: Orstio on February 06, 2005, 04:59:15 PM
This is going to seem far more complicated than it really is, but here goes:

Using PhpMyAdmin, go to your mos_core_acl_aro table.  Click "Browse".

Find the "aro_id" value for my username.  Write it down (or just remember it).

Now, go to your mos_core_acl_groups_aro_map table.  Click "Browse".

Find the aro_id that you wrote down.  What is the corresponding "group_id"?

If you made the code change above, it should now be 19 instead of 18.
Title: Re: SMF-MOS activation link problem!
Post by: begby on February 06, 2005, 08:01:40 PM
thx for ur reply... I did what you said, and your group_id is indeed 19, but you're still listed as a 'registered user' rather than an 'author'
Title: Re: SMF-MOS activation link problem!
Post by: Orstio on February 06, 2005, 08:25:17 PM
Ah, sorry, I missed one.

On line 149, you should have:

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


Change that to:

$row->gid = $acl->get_group_id('Author','ARO');
Title: Re: SMF-MOS activation link problem!
Post by: begby on February 06, 2005, 11:08:10 PM
thanks a million Orstio, you're a life saver