Hello everybody,

I'm using the smfforum module. I can embed the SMF Forum into my Drupal system, but login process is still separated.

I've tried to install smfforum and phpbbforum modules, and only the first worked. I've followed the instructions, and now it works, but as I've said, the login process is still separated. I can log in to Drupal, but without log in to smf forum. And vice versa.

I want to "unify" the process. And even more, allow the login only in Drupal. So, if a user logs in the Drupal site, is automatically logged in the forum. But he couldn't logs in smf forum directly.

AFAIK, the smfforum doesn't provide this feature (or I can't configure it properly...). Should I "hack" the user module to unify both processes? Doesn't seem a good idea...

Thanks in advance!

Best regards,
Jorge

Comments

Schlup’s picture

Well I'm running SMF forums with Drupal. I am using the SMF forum integration module. Allows me a single sign on throught the master (Drupal) which automatically logs me into SMF as well. Some times I have to login to Drupal twice in a row to get it to take but I think that's just a quirk. Anyways, you can't shut off SMF login as it is part of SMF, I did disable registration in SMF though, because once they register in Drupal is automatically registers them in SMF with the same username and password. Hope this all makes since. You can try it out on my website if you want.

www.bulletproofnerds.com

jorgearevalo’s picture

Interesting...

Did you have to modify some code, or simply use the correct settings? I've chosen the "Drupal master" as "Master registration system", is enough?

Just thinking... I've problems with mail sending after registration (not drupal problem), but Drupal tells me about the error. Could it be happening?

1 - Register user in drupal
2 - Send mail to user
3 - Register user in SMF

If the process crash on step 2, the step 3 never happens...

Anyway, I'm studying the login process just now.

Oh, and many thanks!

Schlup’s picture

I just used the correct settings. I remember needing to read from 2-3 different installation instructions before I got it working right. My email wasn't working on Drupal either. I used the SMTP module and set it up to use an outside email account, works great!

jorgearevalo’s picture

Hi,

You're right. In the SMF Forum settings page, I've changed one setting about cookies (the first one, I can't remember the name) from "none" to "test" (the other option was "passed"), and now the site is down. I enter and I get a blank page. If I try enter the admin module manually (or any other one) I get an error because I'm not authenticated. Could I have a problem with cookies?

I'm lost :-( And tired.

jorgearevalo’s picture

Ok, I've found a lot of code errors. Looks like if I were using a version of smfforum module that doesn't match with the version of SMF forum. For example, the "smf_members" table in database has fields like "member_name", "real_name", "email_address", etc. And in the code of smf_api_2.php, smfforum.module and smf_api_subs php, you can find queries trying to access fields with names like "memberName", "realName", "emailAddress", etc.

So, clearly, there are code errors or I'm using a wrong version. But I can see the forum embedded in the page, and I can access the SMF forum settings page and so on... (OK, I've fixed some of these errors, but there are more of them, I'm sure). The versions I'm using are:

Drupal: 6.14
SMF: smf_2-0-rc1-2_install.zip
smfforum module: smfforum-6.x-1.21.tar.gz
SMF API archive: the latest smf_api_2.zip downloaded from http://vgb.org.ru (version 6.x.1.21)

Tested with smfforum module 6.x.1.23 with the same result.

On the other hand, in the SMF Forum settings page, I can see the message "You are not authenticated in SMF now. Please login to SMF and test again. You may refresh settings!". And I'm sure I'm authenticated in the forum (I can access the forum directly using other browser tab, and I'm authenticated). BTW, in the manual says that one of the things I have to do is "Ensure that SMF profile fields map with corresponding drupal profile.module fields.", but I don't understand this. The textfields in the settings page are automatically filled with values like "profile_name" or "profile_gender". With which fields should I compare these ones to?

Having a look at the code, in smfforum.module, "_smfforum_admin_settings" function:

variable_get('smfforum_qookie_test', 0)

always return 0, and

smf_api_authenticate_user()

always returns no value.

Oh, I don't have any cookie related with SMF forum in my machine. What could be the reason? I think that the issue with erroneus database field names is the root cause of everything, but I'm not sure...

Best regards,
Jorge

osu_bucks’s picture

I'm about to install SMFmodule with SMF. Have you gotten it to work?
Quick question, does SMF module work with SMF 2.x rcx? Or does it only work with SMF 1.x.x?

Thanks,
Wai

yonghan’s picture

Hi there,i've tried using SMF 2.x..It doesn't works,as there are issues with it.I try using smf 1.1.11..There are no errorrs..Hope it helps.. ^_^

ibrahimessa’s picture

Dear Schlup:

I use drupal with smfforum module and when add new user to drupal it is add to smf at same time and i can login to drupal and smf with same user
BUT when i try to go forum from drupal i have to login again
SO how i can use one login for both and login forum automatically when login drupal

If you have ant additional information with quid step by step with settings please send to me

Best regards

pjkwis’s picture

I installed the SMF module, and everything was working great. Then I changed the admin password in SMF and then Drupal. Since then, I can't log into Drupal at all! It doesn't do anything or throw any error messages. Not sure what to do since I can't even log in as admin to disable the SMF module. Help!

pjkwis’s picture

I fixed this by manually going into the modules and deleting the SMF module. It allowed me to log back into the website, then I uploaded the module again. However, I still can't get the SMF login seamless with Drupal.

edsel’s picture

Any progress yet?