Home arrow Forum general problem: JSMF does not let CB correct problematic URLs on login (fixed!)
  Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 01:51:05 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 2.0.x (Moderators: -Wolverine, kai920)
| | | |-+  general problem: JSMF does not let CB correct problematic URLs on login (fixed!)
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: general problem: JSMF does not let CB correct problematic URLs on login (fixed!)  (Read 938 times)
gigi
Joomla Newbie
*

Karma: +1/-2
Offline Offline

Posts: 13


View Profile
general problem: JSMF does not let CB correct problematic URLs on login (fixed!)
« on: April 17, 2007, 10:17:17 PM »

using CB and JSMF. once a user logs in (through CB), he is redirected to the page he was on before he logged in.

some of those pages are problematic though: for example the bad password page. if the user entered a bad password by mistake, and then logged in properly, he will get an error screen after he logged in, since he is re-directed back to the bad password page.

the user will also get an error page after he logged in if he was standing on the registration page before he logged in.

CB is aware of these cases and checks if the user was standing on a 'problematic page' before he logged in. if he did, he is directed to joomla's home page instead of back to the problematic page.

JSMF overrides CB's 'problematic page check' for some reason, and the user is redirected back to the problematic pages.

when JSMF is installed the "redirect-URL on first login" that is defined in CB configuration is also being ignored.

can this please be fixed? i'm sure these problems are well connected to each other..

thanks a lot
gigi
« Last Edit: April 18, 2007, 04:51:52 AM by gigi » Logged
gigi
Joomla Newbie
*

Karma: +1/-2
Offline Offline

Posts: 13


View Profile
Re: general problem: JSMF does not let CB correct problematic URLs on login (fixed!)
« Reply #1 on: April 18, 2007, 04:54:38 AM »

i have finally fixed the problem by pasting a bit of code from CB to smf.class.php . took me long hours, not being much of a programmer. but it's done.

anyway if anyone is remotely interested, just reply here and i'll post the modifications in this thread.

gigi
Logged
anthony hall
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Re: general problem: JSMF does not let CB correct problematic URLs on login (fixed!)
« Reply #2 on: April 27, 2007, 09:39:50 PM »

Hi gigi
I'm interested. Well done for spotting this. Ive noticed some logging in irregularities & your description describes it well - although I havent really looked at it much yet.
I think its important that a user's login process is as smooth as possible. I'm amazed at how intimidated some people feel about logging in, & if it errors, they rarely try to resolve - except by hassling me a month later.

So please post your solution here for us when you get time - even if its in a rough format.
Logged
gigi
Joomla Newbie
*

Karma: +1/-2
Offline Offline

Posts: 13


View Profile
Re: general problem: JSMF does not let CB correct problematic URLs on login (fixed!)
« Reply #3 on: April 27, 2007, 09:48:53 PM »

here it is, starting from line 1668 of the smf.class.php file. the modifications are enclosed by the "Gigi start" and "Gigi end" notes. let me know if you have any trouble.

btw this does not fix the CB redirect-URL on first login issue, i didn't bother with that (yet). but it does fix all the other login problems that i mentioned.

Code:
                    $jsmf_link = TRUE;
                }
            }
        }

// Gigi start

if ( $setLocation && !( strpos( $setLocation, 'com_comprofiler') && ( strpos( $setLocation, 'login') || strpos( $setLocation, 'registers' ) || strpos( $setLocation, 'lostPassword' ) ) ) ) {}
else {
$setLocation = sefRelToAbs('index.php');
}

// Gigi end

        unset($_SESSION['_FROM_MOS']);
    } elseif (strcasecmp(mosGetParam($_REQUEST, 'action', ''), "logout") == 0) {
Logged
anthony hall
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Re: general problem: JSMF does not let CB correct problematic URLs on login (fixed!)
« Reply #4 on: April 27, 2007, 10:53:31 PM »

Wow - that was fast - thanks.
For the thread & search - I just did my own test of the problem to double check:
login with wrong user/pass gives usual error message @ /component/option,com_comprofiler/task,login/ , then while on that page login again with correct details & get a 403 error.
Redirect-URL on first login - I didnt test. Good to know it's probably faulty.

I have tested the fix by quick login test & it works on mine.

Many thanks.

Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
i-Vibe.com
Search Contact About Advertise Blogs Topsites Submit News Register Login