-
AuthorPosts
-
environc Friend
environc
- Join date:
- December 2012
- Posts:
- 173
- Downloads:
- 0
- Uploads:
- 33
- Thanks:
- 30
- Thanked:
- 2 times in 1 posts
June 16, 2013 at 12:36 pm #188267Hi, 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 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
June 17, 2013 at 3:23 am #496010Hello,
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 Friendenvironc
- Join date:
- December 2012
- Posts:
- 173
- Downloads:
- 0
- Uploads:
- 33
- Thanks:
- 30
- Thanked:
- 2 times in 1 posts
June 17, 2013 at 12:57 pm #496060Hi 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
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
June 18, 2013 at 2:43 am #496114I 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
1 user says Thank You to HeR0 for this useful post
-
AuthorPosts
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