N2S

Topic: Link Names/Company to Their Sites

JOBBER VERSION: 1.5 beta 1 (20/08/2008)
USES: Links Employers name to their own website. (on a fresh install, their names are not linked)
FILE: posts_loop.tpl

Code:

FIND:
<a href="{$BASE_URL}job/{$job.id}/{$job.url_title}/" title="{$job.title}">{$job.title}</a> <span class="la">{$translations.homepage.at}</span> {$job.company}{if $job.location == 'Anywhere'}, {$job.location}{else} <span class="la">{$translations.homepage.in}</span> {$job.location}{/if}
Code:

REPLACE WITH:
<a href="{$BASE_URL}job/{$job.id}/{$job.url_title}/" title="{$job.title}">{$job.title}</a> <span class="la">{$translations.homepage.at}</span> <a href="{$job.url}">{$job.company}</a>{if $job.location == 'Anywhere'}, {$job.location}{else} <span class="la">{$translations.homepage.in}</span> {$job.location}{/if}

BEFORE:
http://img236.imageshack.us/img236/4296/beforepp5.jpg

AFTER:
http://img291.imageshack.us/img291/4633/afterub3.jpg

very simple.. and to the point. (=

http://i34.tinypic.com/2affofk.png

N2S

Re: Link Names/Company to Their Sites

hmm.. I think I will have to re-code this and include.

Code:
                    <span class="fading">Company: </span>
                    {if $job.url && $job.url != 'http://'}
                    <a href="{$job.url}">{$job.company}</a>
                    {else}
                    <strong>{$job.company}</strong>
                    {/if}

please post if my coding in incorrect in the first post. (I think it will be)
I have not tested it 100%

Last edited by N2S (2008-10-31 20:19:01)

http://i34.tinypic.com/2affofk.png