Display logo on job_searchresults & listnewestj

8 years 1 month ago #1901 by jp
Hi,
I'd like to add the company's logo on these following pages
  • job_searchresults.php
  • listnewestj.php

I suppose i've to add ", company.logoisfile AS logoisfile, company.logofilename AS logofilename" somewhere in jsjobs.php, do i??

tks for your support

JP
8 years 1 month ago #1905 by jp
no idea for that question??
8 years 4 weeks ago #1911 by Super User
Hi,

You need to edit files and add company logo code.
job_searchresults.php
listnewestj.php

i.e
<img src="images/logo_file_path" />

Best regards,

Ahmad Bilal
7 years 7 months ago #2244 by jp
Hi,

I've another issue to display companies logo into list_jobs.php

i'm actually using this code:
<div>
<?php if ($this->job->logoisfile !=-1) { ?>	
	<img width="150" src="<?php echo $this->config['data_directory'];?>/data/employer/comp_<?php echo $job->companyid;?>/logo/<?php echo $job->logofilename;?>" />
<?php }else { ?>
<img width="150" height="54" src="components/com_jsjobs/images/blank_logo.png" />
<?php } ?>
</div>
Nothing appears as logo although si i'm using Firebug for Firefox, it recognizes this following code
<img width="150" src="/jsjobsdata/data/employer/comp_5/logo/">
which means, only logofilename is unknown.
I've tried many things to find a solution such as swap $job by $app or $this->job but nothing works :(

Any idea for that??

Thanks again

JP
7 years 7 months ago #2245 by Super User
Hi,

You need to edit module class functions.
../models/jsjobs.php

function &getListNewestJobs

Add ', company.logofilename' after 'company.url'

Same changes in function &getJobSearch

Best regards,

Ahmad Bilal
7 years 7 months ago #2253 by jp
Thanks again

it worked well ;)
Time to create page: 0.309 seconds

Please publish modules in offcanvas position.