×

Notice

The forum is in read only mode.

Display logo on "view_job"

13 years 4 months ago #1637 by jp
Replied by jp on topic Display logo on "view_job"
Hi,

I've done it but it does not work

Logo is still missing
13 years 4 months ago #1646 by Ahmad
Replied by Ahmad on topic Display logo on "view_job"
You may send me code, some thing will be missing.

Please write your valuable review JS Jobs and JS Support Ticket at JED.
13 years 4 months ago #1650 by jp
Replied by jp on topic Display logo on "view_job"
i added the ", company.logoisfile, company.logofilename" in models/jsjobs.php in the line #3123 ..... around this!
function &getJobbyId($job_id)
{
	$db = &$this->getDBO();
	if (is_numeric($job_id) == false) return false;
	$query = "SELECT job.*, cat.cat_title, company.name as companyname, jobtype.title AS jobtypetitle
		, jobstatus.title AS jobstatustitle, shift.title as shifttitle
		, department.name AS departmentname
		, salaryfrom.rangestart AS salaryfrom, salaryto.rangestart AS salaryto, salarytype.title AS salarytype
		, education.title AS educationtitle ,mineducation.title AS mineducationtitle, maxeducation.title AS maxeducationtitle
		, experience.title AS experiencetitle ,minexperience.title AS minexperiencetitle, maxexperience.title AS maxexperiencetitle
		, country.name AS countryname, state.name AS statename, county.name AS countyname, city.name AS cityname
		, company.logoisfile, company.logofilename

Then, i added the code you gave me in employer / tmpl / view_job.php
<div>
<?php if ($this->job->logoisfile !=-1) { ?>
	<img width="200"  src="<?php echo $this->config['data_directory'];?>/data/employer/comp_<?php echo $this->company->id;?>/logo/<?php echo $this->job->logofilename;?>" />
	<?php }else { ?>
	<img width="200" height="54" src="components/com_jsjobs/images/blank_logo.png" />
	<?php } ?>
</div>

and then, i'd like to show the company description in the view_job.php :unsure:
13 years 4 months ago #1659 by Ahmad
Replied by Ahmad on topic Display logo on "view_job"
Hi,

Please edit the query and add 'company.description as companydescription'
and show in view_jobs.php job.companydescription where you want.

Please write your valuable review JS Jobs and JS Support Ticket at JED.
13 years 4 months ago #1662 by jp
Replied by jp on topic Display logo on "view_job"
Hi,

Well, it works for the company description but still have the prob to display the logo and then, i tried everything except the right one obviously :(
13 years 3 months ago #1673 by Ahmad
Replied by Ahmad on topic Display logo on "view_job"
Oh, can you send me your site link.

Please write your valuable review JS Jobs and JS Support Ticket at JED.
Time to create page: 0.078 seconds

Please publish modules in offcanvas position.