Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • fismpn Friend
    #192036

    Hello,
    Today problem is about menu: Employers can see Job Seekers menu, but of course when trying to access they can’t.
    I created 2 modules of menu with access “Registred” users only.
    I was thinking the problem is on user groups, but I can’t really understand.
    I want Joomla automatically “read” who is Employer and who is Job Seeker…
    Here is screen:
    http://i.imgur.com/P0bOfn6.png (logged in as Employer)

    I hope someone can help me to fix that problem.

    Andrea

    Luna Garden Moderator
    #511412

    Hello Andrea,

    Job-Seeker and Employer is two kind user only in JobBoard Component, and they don’t relate to Joomla!User’s permission. So Joomla can not recognize who’s Employer or Job-Seeker.

    If you want to create your own menu for Employer or Job-Seeker, create new Menu with the alias employer-menus ( for Employer menu) and job-seeker-menus ( for Job-Seeker menu). JobBoard will take these two alias to make Module Menu for each kind of user.

    Then go to Module >> JA JobBoard Menu >> Recheck setting for Login and Logout of Employer or Job-Seeker.

    fismpn Friend
    #511483

    Thank you Luna, the problem as you wrote was about menu alias.
    The problem is now the translation, where I find the files for change it?
    Screens:
    http://i.imgur.com/EH9NIKs.png > I have to translate all
    http://i.imgur.com/QzZYADC.png

    Luna Garden Moderator
    #511565

    Hi,

    <blockquote>The problem is now the translation, where I find the files for change it?
    Screens:
    http://i.imgur.com/EH9NIKs.png > I have to translate all
    http://i.imgur.com/QzZYADC.png</blockquote>

    These text are supported for multi-language. The translation for them is located in

    languageen-GBen-GB.mod_jajobboard_menu.ini
    Copy above file to your language folder, then change text.
    For title:

    JOB_SEEKER_MENU="Job Seeker Menu"
    EMPLOYER_MENU="Employer Menu"

    For content, find these lines:

    NAMEUSERNAME="Name/Username"

    PASSWORD="Password"

    REGISTER_AS_AN_EMPLOYER="Register as an Employer"

    REGISTER_AS_A_JOB_SEEKER="Register as a Job Seeker"

    Change text as you want

    fismpn Friend
    #511648

    Thank you Luna.
    Another thing is about Redirection after login/logout: I don’t want it, how can I disable?
    In module options I can’t leave it “blank”…
    Screen: http://i.imgur.com/dBITTO4.png

    Andrea

    Luna Garden Moderator
    #511771

    Hello Andrea,

    <blockquote>Another thing is about Redirection after login/logout: I don’t want it, how can I disable?</blockquote>

    Setting for Redirection after login/logout is needed, so you can’t disable it.
    But I guess what you mean is after Login/Logout, you still want to stay on the same page. If yes, then do as follow:
    Go to file:

    modulesmod_jajobboard_menuhelper.php
    Find for
    function getRedirectionURL($itemID){
    Replace this function(from line 81 to 86) to :

    function getRedirectionURL($itemID){
    $menu =& JSite::getMenu();
    $item = $menu->getItem($itemID);
    $url = JRoute::_($item->link.'&Itemid='.$itemID, false);
    $app = JFactory::getApplication();
    $router = $app->getRouter();
    $uri = clone JFactory::getURI();
    $vars = $router->parse($uri);
    unset($vars['lang']);
    if ($router->getMode() == JROUTER_MODE_SEF)
    {
    if (isset($vars['Itemid']))
    {
    $itemid = $vars['Itemid'];
    $menu = $app->getMenu();
    $item = $menu->getItem($itemid);
    unset($vars['Itemid']);
    if (isset($item) && $vars == $item->query) {
    $url = 'index.php?Itemid='.$itemid;
    }
    else {
    $url = 'index.php?'.JURI::buildQuery($vars).'&Itemid='.$itemid;
    }
    }
    else
    {
    $url = 'index.php?'.JURI::buildQuery($vars);
    }
    }
    else
    {
    $url = 'index.php?'.JURI::buildQuery($vars);
    }

    return $url;
    }

    Remember to backup your file before processing.

    fismpn Friend
    #511997

    Thank you Luna! 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 2 voices, and was last updated by  fismpn 11 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum