Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • timmieboy Friend
    #197440

    Hello,

    I have a question about job posting. When I post a job, click save I get a view job screen, when I click on that screen on save I am forwarded to the wrong url, the url is a mix from employer an jobseeker urls.

    These are the urls, step by step:
    nl/?option=com_jajobboard&view=jajobs&layout=jaform&cid[]=38&alias=test-account&Itemid=927
    nl/component/jajobboard/jajobs/jaview/38-tester-van-a-tot-z?step=verify&is_newjob=0
    nl/joblist-jobseekers/myjobs

    This last url has to be: nl/myjobs

    Thanh Nguyen Viet Friend
    #533963

    Could you please give me your site URL and employer account, I will have a closer look.

    timmieboy Friend
    #533999

    Use this url: http://www.seizoenwerk.nl/nl/links-werken-opleidingen Use “werkgevers JA” login

    Use test account: test11 / test11

    Keep in mind all is Dutch

    Thanh Nguyen Viet Friend
    #534810

    I’m sorry for late response, somehow I missed this question.
    I have just tested with account that you provided, upgrade it as Employer, and try to post a new job.
    Once I save a job, it redirects to the “My Job Listing” page properly.

    Have you sorted it out?

    timmieboy Friend
    #534835

    Hi,

    Sorry but it is still not working. I saw that you have tried it but I disabled the menu for Ja Jobboard so you could try it out. I will keep the menu module online so you can try again and see that it is not working properly.

    Go to this url: http://www.seizoenwerk.nl/nl/links-werken-opleidingen
    Use the menu module: werkgevers JA
    After you logged in go back to this url: http://www.seizoenwerk.nl/nl/links-werken-opleidingen
    Click on standaard vacature plaatsen to add a job
    Etc.

    You will see that at the end of saving the job, the url goes to: http://www.seizoenwerk.nl/nl/vacature-overzicht/myjobs while it has to go http://www.seizoenwerk.nl/nl/mijn-vacatures because that is the link where the jobs of the employer are.

    Oh as you can see there is 1 job available, I have added this manual in the backend but still you can’t add a job. It seems that when I fill in manual 1:30 in the backend on the frontend it is not working.

    Thanks

    Thanh Nguyen Viet Friend
    #535064

    I tried to post job with account you provided, but it requires me to buy subscription to be able to post job ๐Ÿ˜›

    Anyway, to resolve this issue, please try solution below:

    – Open the file:
    components/com_jajobboard/controllers/jajobs.php

    Find the code snippet (in the function done):

    [PHP]$this->setRedirect(JRoute::_(‘index.php?option=’ . JBCOMNAME . ‘&view=jajobs&layout=myjobs’, false), $msg);[/PHP]

    And replace it with:
    [PHP]$Itemid = get_Itemid(array(“option” => JBCOMNAME, “view” => “jajobs”, “layout” => “myjobs”));
    $this->setRedirect(JRoute::_(‘index.php?option=’ . JBCOMNAME . ‘&view=jajobs&layout=myjobs&Itemid=’.$Itemid, false), $msg);[/PHP]

    timmieboy Friend
    #535853

    OK, this works but the menu item has to be with an alias myjobs otherwise it is not working. This means that all other languages also have to have myjobs as an alias, am I correct.

    Are there maybe more menu items that need to have specific alias names?

    Thanh Nguyen Viet Friend
    #535989

    <blockquote>This means that all other languages also have to have myjobs as an alias, am I correct.</blockquote>
    No, you can not create menu item with the same alias, even they are in different languages.

    You just need create menu item type “JA Job Board ยป My Jobs Layout” for each language (with your own alias), and update small code in the file
    componentscom_jajobboardhelperjafunctions.class.php

    Please search this code snippet:
    [PHP]function get_Itemid($find = array()) {

    if (!class_exists(“JSite”)) {
    include_once(JPATH_ADMINISTRATOR.”/components/com_search/helpers/site.php”);
    }

    $menus = & JSite::getMenu();
    $Itemid = 0;

    $items = $menus->get(‘_items’);

    foreach ($items as $row) {
    if (!isset($find[‘option’])) {
    $find[‘option’] = “”;
    }

    if (!isset($row->query[‘option’])) {
    $row->query[‘option’] = “”;
    }

    if ($row->query[‘option’] == $find[‘option’] && $row->query[‘view’] == $find[‘view’]
    && (!isset($row->query[‘layout’]) || ! isset($find[‘layout’]) ||(isset($row->query[‘layout’])
    && isset($find[‘layout’]) && $row->query[‘layout’] == $find[‘layout’]))) {
    $Itemid = $row->id;
    break;
    }
    }

    return $Itemid;
    }[/PHP]

    And replace it with:
    [PHP]function get_Itemid($find = array()) {
    $app = JFactory::getApplication();
    $menus = $app->getMenu();
    $items = $menus->getMenu();
    $lang = JFactory::getLanguage();

    foreach ($items as $item) {
    if (!is_object($item))
    {
    continue;
    }

    $test = true;
    foreach($find as $attr => $value) {
    if(!isset($item->query[$attr]) || $item->query[$attr] != $value) {
    $test = false;
    break;
    }
    }
    if($test && ($item->language == ‘*’ || $item->language == $lang->getTag())) {
    return $item->id;
    }
    }

    return 0;
    }[/PHP]

    timmieboy Friend
    #536069

    Ok, thank. I think my joomla site has issues so that is the reason something are not working. I made a new one and there is it working ok.

    Maybe good to know for other users, use /nl and /en code in url so the system will not mix up pages. I had the problem that when I use default language without /nl switches to /en and gives errors.

    Thanh Nguyen Viet Friend
    #536161

    <blockquote>Maybe good to know for other users, use /nl and /en code in url so the system will not mix up pages. I had the problem that when I use default language without /nl switches to /en and gives errors.</blockquote>
    Joomla 2.5 does not support item association, so if you switch to another language from any page, it will redirect to default page of new language.

    timmieboy Friend
    #536197

    <em>@Dead Code 428600 wrote:</em><blockquote>Joomla 2.5 does not support item association, so if you switch to another language from any page, it will redirect to default page of new language.</blockquote>

    Sorry what do you mean with item association? 2.5 does support menu item association.

    Thanh Nguyen Viet Friend
    #536377

    Sorry for my mistake, Joomla supports menu item associations from Joomla 1.7.

    To associate menu items from diffrent languages, please follow up user guide here
    http://multilingual-joomla-demo.cloudaccess.net/multi-lingual-steps-by-steps/39-new-in-1-7-associated-menu-items.html

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

This topic contains 12 replies, has 2 voices, and was last updated by  Thanh Nguyen Viet 10 years, 5 months ago.

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