News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SMF-MOS activation link problem!

Started by begby, February 04, 2005, 12:01:53 AM

Previous topic - Next topic

begby

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

xenovanis

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?   ???
"Insanity: doing the same thing over and over again and expecting different results."

Orstio

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....

begby

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?

Orstio

#4
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.

begby

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?

Kindred

#6
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.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Orstio

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

begby

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

Orstio

It's not going to change existing users.  They are already registered.

begby

I realize that, but new users arent being registered as authors

Orstio

OK, I just registered on your site.

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

begby

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

begby


Orstio

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.

begby

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'

Orstio

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

begby

thanks a million Orstio, you're a life saver

Advertisement: