mod_smf_login is disable the in place edit

Started by chanh, December 02, 2005, 02:41:59 PM

Previous topic - Next topic

chanh

I have Mambo 4.5.3, MOS_SMF_BRIDGEv3.19a_SMF1.1b3.zip, SMF 1.1RC1

Everything works great with the exception of the "smf_login" module.  It disable the in place editing feature in Mambo.  Before I turn on "smf_login" I was able to click on a little "edit icon" to edit an article without go through the back end but now with this "smf_login" the edit  icon is gone.

Is there a way to turn it on?

Thanks

Orstio

Does your SMF admin username and password exactly match your Mambo superadmin username and password?

chanh

When I use SMF-MAMBO bridge component it syncs the account for me but now I am using SMF-bridge so I am not sure how the account sync is handle but on my test site I only have two account one admin and one test and it appear in both Mambo and SMF.

That brought up a question, how do I sync account between SMF-bridege and Mambo account?

Thanks

Orstio

Do you know your SMF admin username and password?

Do you know your Mambo superadmin username and password?

Do they match exactly?

chanh

They should be because when I login or logout using SMF-login I got logout of both Mambo and SMF

chadness

Quote from: chanh on December 02, 2005, 02:50:00 PM
That brought up a question, how do I sync account between SMF-bridege and Mambo account?

The users should be created in both if they register using the bridge, so no syncing is needed.

Orstio

QuoteIt disable the in place editing feature in Mambo.  Before I turn on "smf_login" I was able to click on a little "edit icon" to edit an article without go through the back end but now with this "smf_login" the edit  icon is gone.

That would indicate that you are not logged in as a superadmin in Mambo.  You may be logged into Mambo, but not as superadmin.

chanh

That is nice but what about I already have 10000 users in Mambo with Simpleboard and want to convert over to SMF how do I sync the user account from Mambo to SMF-bridge?

The SMF-Mambo took care of that but how do I do that in SMF-bridge?

Thanks

chanh

Quote from: chanh on December 02, 2005, 03:01:17 PM
That is nice but what about I already have 10000 users in Mambo with Simpleboard and want to convert over to SMF how do I sync the user account from Mambo to SMF-bridge?

The SMF-Mambo took care of that but how do I do that in SMF-bridge?

Thanks

There is only two account on my test site one admin and one test and I am using admin for all of this test.  So I am not understanding why you said that I am not login as superadmin since I am using admin for the whole process.

Thanks

Orstio

QuoteThere is only two account on my test site one admin and one test and I am using admin for all of this test.  So I am not understanding why you said that I am not login as superadmin since I am using admin for the whole process.

If your SMF admin username and password do not match your Mambo superadmin username and password, a new user will be created in Mambo with your SMF username and password, but it will be a regular user instead of a superadmin user.  This would still only show two users in SMF, but it would create another one in Mambo.

That is why I keep asking you if your SMF admin username and password match exactly your Mambo superadmin username and password.

chanh

Here is what I got in Mambo:
admin      Super Administrator      
test      Registered

Here is in SMF:
62      admin       Administrator      
63    test    test    

So what do you think?

Thanks

Orstio

That should be fine then.

Publish the mod_smf_login module.  Logout with it, and then log back in.

chanh

I did that many many time and the edit icon still don't show up.  Any other idea?

Thanks

chanh

Here is what I did:
. enable Mambo login and make sure I login then the editor icon is there
. If I not login via Mambo login and use SMG-login to login then the editor icon is not there.
. If I login via Mambo login and disable the mambo login and enable SMF login then the edit icon stay. 

So I then something to do with SMF-login not able to detect my admin permission in Mambo.

Is that help to give you more info to solve this problem?

Thanks

Kindred

That pretty much rpvoes the point that everyone else has been trying to make.

Something between your mambo admin account and your smf admin account is not tghe same... because when you log in via the bridge login module, it is NOT recognizing you as the admin superadmin user....
Сл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

Is it Mambo that you have installed, or is it Joomla?

chanh

It is Mambo 4.5.3.

It look the same in both Mambo user account and SMF account.  I am not sure how to sync them since there is no way in SMF-brdige to sync them.

How can I check for any sign of different?


chanh

I did this in MOS_SMF.php then login and logout but it made no different.  I also check something via phpmyadmin and found out that for some reason the password in Mambo and SMF is different.  How could that be possible?  Any idea?  Thanks

Code:

   setcookie('sessioncookie', '', -3600, '/');


Replace with:

Code:

   //Let's make sure this works in both Mambo and Joomla
   $sessionCookieName = md5('site' . $mosConfig_live_site);
   setcookie($sessionCookieName, '', time() - 3600, '/');

   mysql_select_db($mosConfig_db);

   // Let's try to minimize the effects of those nasty extra sessions.
   $sql = mysql_query("
      DELETE FROM {$mosConfig_dbprefix}session
      WHERE username = '$username'");

Orstio

QuoteI also check something via phpmyadmin and found out that for some reason the password in Mambo and SMF is different.  How could that be possible?  Any idea?  Thanks

SMF hashes the password differently than Mambo does, so the hash you are seeing in PhpMyAdmin should be different.

QuoteI did this in MOS_SMF.php then login and logout but it made no different.

Check that post again.  I made a mistake last night, and corrected it soon after, but you seem to have the code from that mistake.

Advertisement: