Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • environc Friend
    #188267

    Hi, on the list of employer’s jobs, there’s no indication that a job has expired. Employer gets an email saying the job has expired and employer may get many emails end not read this one. What code do I put on the job list so that a job that has expired shows a message to the employer that his job has expired? Regards.

    HeR0 Friend
    #496010

    Hello,

    The expired jobs will not display on frontend. It appears on backend only so the jobs appearing on frontend for all to see are not expired jobs.

    Regards

    environc Friend
    #496060

    Hi Hero, I don’t mean on the front-end job list. I mean on the employer’s job list (My Posted Jobs, when employer looks at his jobs). Please see screenshot. The 2 last jobs have already expired because they’re more than 30 days old. But the employer can’t see that they are expired. What I mean is in this case, employer could see a little notice next to the job like “Expired”. Regards

    http://environmentalcareers.com.au/Untitled.png

    HeR0 Friend
    #496114

    I am sorry for the misunderstanding. Now you can try as follow:

    – Open file views/jajobs/tmpl/themes/inline(theme activing)/jalist-item.php

    – Find

    <?php if (getCurrentUserType() == JBEMPLOYER_USER && JRequest::getCmd("layout") == "myjobs") {
    $numApplications = JobBoardModelJAJobs::getNumApplications($item->id);
    if ($numApplications > 0) {
    ?>
    <br/>
    <strong style="font-size:120%"><?php echo JText::_("APPLICATIONS");?></strong>: <a target="_blank" href="<?php echo JRoute::_('index.php?option=com_jajobboard&view=jaapplications&layout=jaempllist&job_id='.$item->id);?>"><?php echo $numApplications;?></a>
    <?php } else {
    ?>
    <br/>
    <strong style="font-size:120%"><?php echo JText::_("APPLICATIONS");?></strong>: <?php echo $numApplications;?>
    <?php
    } } ?>

    – Change it to

    <?php if (getCurrentUserType() == JBEMPLOYER_USER && JRequest::getCmd("layout") == "myjobs") {
    $numApplications = JobBoardModelJAJobs::getNumApplications($item->id);
    if ($numApplications > 0) {
    ?>
    <br/>
    <strong style="font-size:120%"><?php echo JText::_("APPLICATIONS");?></strong>: <a target="_blank" href="<?php echo JRoute::_('index.php?option=com_jajobboard&view=jaapplications&layout=jaempllist&job_id='.$item->id);?>"><?php echo $numApplications;?></a>
    <?php } else {
    ?>
    <br/>
    <strong style="font-size:120%"><?php echo JText::_("APPLICATIONS");?></strong>: <?php echo $numApplications;?>
    <?php
    }
    ?>
    <strong class="jajob-status-<?php echo strtolower($item->status) ?>"><?php echo $item->status ?></strong>

    <?php } ?>

    Then you could create some css rules for Job status. For instance:

    jajob-status-approved{font-size:120%; left: 40%; position: relative; color: #05F700}
    jajob-status-expired{font-size:120%; left: 40%; position: relative; color: #FF0000}

    Pls give it a try and let me know if it helps.

    Regards

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

This topic contains 4 replies, has 2 voices, and was last updated by  HeR0 11 years, 5 months ago.

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