I don't think my SMF is bridged and wrapped properly, How do I fix?

Started by Toma Grubb, July 27, 2007, 07:28:35 PM

Previous topic - Next topic

Toma Grubb

I just noticed the url the registration is trying to send me to after log in.

http://diabetic-diet-secrets.com/members/forum/action,login2/

is that something that needs to be changed somewhere in either the bridge, joomla or CB? 

In the CB log in I had first time member loggins directed to http://diabetic-diet-secrets.com/members/articles/diabetic-diet-related-articles/membership-benifits.html
and others directed to http://diabetic-diet-secrets.com/members/

everything else on the site seems to work except the bad url redirect when logging in.

Orstio

That is where it should be redirecting, but if it stays there, then it is encountering an error.

Is there anything in your forum error log?

Toma Grubb

No errors reported in the error log.

My first thought was how am I going to check the error log if I can not sign in. Then just for the heck of it I tried to sign in through the form. It worked and also showed me as logged into the joomla portion of the site. I tried a few joomla functions and they worked.


I can log in through SMF and everything works properly but not through the bridge login in the joomla main menu


Orstio

In your modules folder is a file named mod_smf_login.php.

Can you find this line in that file:

<form action="', sefReltoAbs($scripturl . 'action=login2'), '" method="post" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>


And change it to this:

<form action="', substr(sefReltoAbs($scripturl . 'action=login2'),-1), '" method="post" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>

Toma Grubb

That produced:

Method Not Allowed
The requested method POST is not allowed for the URL /index.html.

Apache/1.3.37 Server at diabetic-diet-secrets.com Port 80

Toma Grubb

QuoteI think we are on the right track but still unable to log in. The code you gave me returns an error message saying:
QuoteMethod Not Allowed
The requested method POST is not allowed for the URL /index.html.

Apache/1.3.37 Server at diabetic-diet-secrets.com Port 80
in addition it breaks the joomla template and causes the page only partially load.

This code which is in the original download of SMF bridge as part of mod_smf_login.php returns a non-existent url when trying to log in.

<form action="', substr(sefReltoAbs($scripturl . 'action=login2'),-1), '" method="post" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
Quote<form action="', sefReltoAbs($scripturl . 'action=login2'), '" method="post" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>

Still trying to get this part fixed.

Toma Grubb

The login problem is still not solved and I am still looking for the solution. I believe it lies with the code in the in the original download of SMF bridge as part of mod_smf_login.php returns a non-existent url when trying to log in.

<form action="', substr(sefReltoAbs($scripturl . 'action=login2'),-1), '" method="post" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>

Advertisement: