Home arrow Forum [Solved]: My usermenu is gone!
  Welcome, Guest. Please login or register.
Did you miss your activation email?
January 09, 2009, 04:56:54 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 1.1.x (Moderators: -Wolverine, kai920)
| | | |-+  [Solved]: My usermenu is gone!
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: [Solved]: My usermenu is gone!  (Read 2538 times)
Kevin8020
QA / Testers
Joomla Master
*****

Karma: +33/-18
Offline Offline

Posts: 105



View Profile WWW
[Solved]: My usermenu is gone!
« on: February 17, 2006, 07:46:27 PM »

Hi there!

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.

Any ideas?
-Kevin8020

http://www.dni-olympics.info
« Last Edit: February 21, 2006, 06:46:47 PM by Kevin8020 » Logged
Kevin8020
QA / Testers
Joomla Master
*****

Karma: +33/-18
Offline Offline

Posts: 105



View Profile WWW
Re: My usermenu is gone!
« Reply #1 on: February 20, 2006, 05:39:49 PM »

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"
Logged
p9939068
Joomla Expert
****

Karma: +18/-5
Offline Offline

Posts: 173


View Profile WWW
Re: My usermenu is gone!
« Reply #2 on: February 21, 2006, 02:30:50 AM »

in your backend Joomla-SMF configuration, try unpatching and patching again.
Logged

-----
Owner of http://mike.simbunch.com
Creator of ParaInvite, AJAX Sandbox, AJAX SMF Polls, Profile URL etc..
Kevin8020
QA / Testers
Joomla Master
*****

Karma: +33/-18
Offline Offline

Posts: 105



View Profile WWW
Re: My usermenu is gone!
« Reply #3 on: February 21, 2006, 01:32:21 PM »

Nope, that didn't work
Logged
p9939068
Joomla Expert
****

Karma: +18/-5
Offline Offline

Posts: 173


View Profile WWW
Re: My usermenu is gone!
« Reply #4 on: February 21, 2006, 02:03:14 PM »

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..
Kevin8020
QA / Testers
Joomla Master
*****

Karma: +33/-18
Offline Offline

Posts: 105



View Profile WWW
Re: My usermenu is gone!
« Reply #5 on: February 21, 2006, 03:10:05 PM »

Ok, that did help a lot. Thanks for that.

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.

Ideas?
-Kevin8020
Logged
Kevin8020
QA / Testers
Joomla Master
*****

Karma: +33/-18
Offline Offline

Posts: 105



View Profile WWW
Re: My usermenu is gone!
« Reply #6 on: February 21, 2006, 06:43:26 PM »

Ok, I've found the solution to the problem!!

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;

        $session =& $mainframe->_session;
        $session->guest         = 0;
        $session->username         = $username;
        $session->userid         = intval( $row->id );
        $session->usertype         = $row->usertype;
        $session->gid             = intval( $row->gid );
  • New codeblock
Code:
        // 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;

        $session =& $mainframe->_session;
        $session->guest         = 0;
        $session->username         = $username;
        $session->userid         = intval( $row->id );
        $session->usertype         = $row->usertype;
        $session->gid             = intval( $row->gid );
        $session->jaclplus        = $grp->jaclplus;

    I'll contact the author of JACLPlus to have him prepare to fix this.

    -Kevin8020
    Logged
    -Wolverine
    Moderator
    Joomla Guru
    *****

    Karma: +376/-34
    Offline Offline

    Posts: 3393


    Lead Developer


    View Profile WWW
    Re: [Solved]: My usermenu is gone!
    « Reply #7 on: March 01, 2006, 12:08:37 AM »

    Kevin Kevin Kevin.  That is huge, I have been addressing this issue in regards to the plugin and was tracking this down.  Thanks man!  Karma to you!   Wink
    Logged

    Need help?  Check Here First!
    Get the JSMF User Guide
    SEARCH this forum.
    -Wolverine
    Moderator
    Joomla Guru
    *****

    Karma: +376/-34
    Offline Offline

    Posts: 3393


    Lead Developer


    View Profile WWW
    Re: My usermenu is gone!
    « Reply #8 on: March 01, 2006, 12:11:40 AM »



    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!
    Logged

    Need help?  Check Here First!
    Get the JSMF User Guide
    SEARCH this forum.
    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
    Search Contact About Advertise Blogs Topsites Submit News Register Login