-
AuthorPosts
-
November 7, 2013 at 12:11 am #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 ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
November 7, 2013 at 3:18 am #511412Hello 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.
1 user says Thank You to Luna Garden for this useful post
November 7, 2013 at 2:07 pm #511483Thank 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.pngLuna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
November 8, 2013 at 2:52 am #511565Hi,
<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
November 8, 2013 at 3:00 pm #511648Thank 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.pngAndrea
Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
November 11, 2013 at 3:24 am #511771Hello 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 forfunction 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.
1 user says Thank You to Luna Garden for this useful post
-
AuthorPosts
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