I just upgraded to the Joomla-SMF bridge 1.1RC1, and have a weird issue. I haven't done any hacking at all to the bridge, and I'm using the original version packaged, but when I am logged in, the Joomla user menu doesn't appear.
Can anyone help me with this! Here is my diagnosis: Login via the SMF-Joomla login module DOES NOT bring up this menu.
After login, edit buttons and all other features for registered users appear, just not that menu.
Occasionally, after closing the browser and returning later, the menu will be there, although the login form will say I am logged out.
Occasionally, after closing the browser and returning later, the menu will be there, and the login form will say I am logged in, but the forums will complain of "Session validation failure"
Occasionally, after closing the browser and returning later, the menu will be there, and the login form will say I am logged in, but the forums will complain of "Session validation failure"
You need to change several settings in your smf admin settings. If you're using RC2, go to Server Settings > Feature Configuration. If you're using anything before RC2, these options are in the Basic Option page. Set Default login cookies length (in minutes) to 999999 Uncheck Enable local storage of cookies Uncheck Use subdomain independent cookies Uncheck Use database driven sessions
If you're very sure that in the SMF-Joomla Bridge backend configuration, that you are able to patch both joomla and smf WITH NO ERRORS, then it shouldnt happen again. As for your other problem (the one about the menu) have you checked through the standard things like if it's published for registered users etc? Are you using the SMF-Joomla login module from here? Did you unpublish Joomla's default login module? You'll also need to unpublish Joomla's default User Menu module, because the SMF-Login module has its own different user menu.
Hope it helps.
Logged
----- Owner of http://mike.simbunch.com Creator of ParaInvite, AJAX Sandbox, AJAX SMF Polls, Profile URL etc..
Now, my login situation is good. I don't get that message anymore. My big issue is the joomla user menu.
I am using the SMF-Joomla login module, but I need to be able to use Joomla's User Menu. I have different links on there for different people, using a Access Control Level (ACL) component to specify who gets what link.
Before upgrading to this version of the bridge, I had no issues. When I logged in, the menu appeared. Now, it doesn't.
If anyone is using the JACLPlus component with this bridge, there is a change that you will be required to make to use Joomla's user menu.
In technical terms, the bridge previously used the Joomla login cookie maker (if you will) to set the cookie. In the new version, it uses its own cookie creator. JACLPlus adds a few lines to that cookie that are not included in the SMF version.
Here is the fix:
functions.smf.php
Previous Codeblock - Line 1100 to 1116
Code:
// fudge the group stuff $grp = $acl->getAroGroup( $row->id ); $row->gid = 1;
if ($acl->is_group_child_of( $grp->name, 'Registered', 'ARO' ) || $acl->is_group_child_of( $grp->name, 'Public Backend', 'ARO' )) { // fudge Authors, Editors, Publishers and Super Administrators into the Special Group $row->gid = 2; } $row->usertype = $grp->name;
// fudge the group stuff $grp = $acl->getAroGroup( $row->id ); //$row->gid = 1; $row->gid = $grp->group_id;
/* if ($acl->is_group_child_of( $grp->name, 'Registered', 'ARO' ) || $acl->is_group_child_of( $grp->name, 'Public Backend', 'ARO' )) { // fudge Authors, Editors, Publishers and Super Administrators into the Special Group $row->gid = 2; } */ $row->usertype = $grp->name;
I'll contact the author of JACLPlus to have him prepare to fix this.
-Kevin8020
Don't, lemme hack it here by checking if JACL is installed because I am not sure this bit of code will remain in the bridge. The purpose was to workaround the problem of the Joomla default code not logging in for various reasons. By setting the cookie manually we circumvent some of the code and achieve the bridge. However it is preferred to use the default Joomla if we can find a workaround in the future. So let me hack a fix for J-SMF 1.1RC1. And thanks again!
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