Home arrow Forum Latest posts of: Gary Raduns
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 08:03:31 PM
Home New Posts Search Calendar


Login with username, password and session length
  Show Posts
Pages: 1 2 [3]
31  Joomla Hacks / Joomla-SMF 1.1.x / Re: Joomla-SMF 1.1.3 still redirects to forum, even if not selected on: June 22, 2006, 10:23:57 AM
As long as I have to keep fixing bugs, I'll keep posting fixes: After spending forever trying to fix this with settings, I finally decided to sit down and examine some of the code. I was able to fix the problem on logOUT, but the login problem is a bit more persistent. I developed this fix in Mambo 4.5.4, but it should work with any version of Mambo or Joomla.

The problem does NOT lie in the login module from what I have determined. It lies in the Mambo index.php patch. I had had previously patched it manually because the patch was designed for the Joomla index.php. The only downside to my fix, you'll have to edit the code manually. I could post an entire 4.5.4 index.php file upon request, but I am not attaching one at this time.

In the logout section of the code, the original patched version reads:

Code:
else if ($option == "logout") {
//JOOMLAHACKS.COM
//$mainframe->logout();


        mosRedirect( 'index.php?option=com_smf&action=logout;sesc='.$context['session_id'] );

        ...

Removing or commenting the mosRedirect statement fixed the redirect issue, but caused even more errors that I wasn't about to deal with, so I changed it back. I then uncommented the mainframe logout and found the doSMFlogout() function in functions.smf.php in the administrator component. Calling this funciton simply logs the user out of the SMF database. To log the user out of the fronted Mambo/Joomla uncomment the mainframe logout. At this point, the redirect is not needed to log the user out of SMF, so it can be removed. The fixed code:

Code:
else if ($option == "logout") {
//JOOMLAHACKS.COM
doSMFLogout();
$mainframe->logout();

        ...

The fixed code logs the user out of both sources, and by default redirects to index.php, the Mambo/Joomla frontpage.

I am still trying to correct the login issue. If I find a solution there I will post it here as well.

EDIT: I tried using the integrateLogin method from the bridge's functions, but I think there is something wrong with the SMF login portion of this method. The redirect was avoided with this method and the user logged into the site, but when I tried to access the forum, the login didn't transfer. I used this code to test:

Code:
if ($option == "login") {
//JOOMLAHACKS.COM
//$mainframe->login();
integrateLogin(_username, _password, -1);
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];
$_SESSION['_FROM_MOS'] = true;
//doMamboSMF(true);
32  Joomla Hacks / Joomla-SMF 1.1.x / Re: How to find a smf admin on: June 22, 2006, 08:53:46 AM
Yeah, sorry. I gave you too much in that previous addition. Your link should look like http://mysite.com/index.php?option=com_smf&Itemid=40&action=admin. Basically, just take off the second index.php. It'll ask you for your password if you're already logged in, or username and pass if not. I hope that works this time.
33  Joomla Hacks / Joomla-SMF 1.1.x / Re: Joomla-SMF 1.1.3 still redirects to forum, even if not selected on: June 21, 2006, 02:59:35 PM
This thing's giving me more trouble than it's worth. I think this is at least the third bug I've found, and these forums are so full of repeat problems from people not reading previous threads that I can hardly find anything. If I didn't need this for functionality, believe me, I wouldn't use it.

My login does the same thing as above, redirects to SMF. I have set the redirect off on login and selected the redirect to Joomla option on logout. The login module that I use is mod_login_userextended. It has a parameter to allow redirect on log-in/out, but setting it to the frontpage had no effect. I also tried adding the above code to the module, again with no effect.

Version info:
Mambo 4.5.4
SMF 1.1RC2
Joomla-SMF Bridge 1.1.3
Running Apache

Any help would be greatly appreciated.
34  Joomla Hacks / Joomla-SMF 1.1.x / Re: can't access joomla-smf config page on: June 21, 2006, 11:38:23 AM
Problem appears to be fixed:

I had used the component install, and it wasn't working. I went through an FTP upload and found a few of the files hadn't installed on the server as listed in the XML. I'm not sure why this happened, but after uploading all files to the proper locations, I am now able to access the configuration panel.
35  Joomla Hacks / Joomla-SMF 1.1.x / Re: can't access joomla-smf config page on: June 21, 2006, 11:28:42 AM
I am having the same issue, but I've set all permissions on all files to allow maximum permission and still get a blank frame in the backend configuration. I am using:

- Mambo 4.5.4 (readme says it should work)
- J!-SMF 1.1.3
- SMF 1.1RC2

I have reinstalled the J!-SMF component several times and no luck.

One other thing I think might be useful. I have the forum installed in two locations. The one I would prefer to keep is in a subdomain of my site, but I also installed a new version on the same database in a subdirectory to see if that would correct anything, but it didn't.
36  Joomla Hacks / Joomla-SMF 1.1.x / Re: How to find a smf admin on: June 19, 2006, 08:55:11 PM
If there isn't a link in the menu (there should be if you're logged in on an administrator account) just try adding this to the end of the forum URL:

index.php?action=admin

That should ask you for username and password of the administrator(s), and you can go from there.
Pages: 1 2 [3]


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
Search Contact About Advertise Blogs Topsites Submit News Register Login