hobo

Topic: Seo title for job pages

In page_job.php the line:

Code:

$smarty->assign('seo_title', $translator->translate("jobs.html_title", stripslashes($info['title']), stripslashes($info['company']), SITE_NAME));

should instead look like:

Code:

$smarty->assign('seo_title', $translator->translate("jobs.html_title", stripslashes($info['title']), stripslashes($info['company']), stripslashes($info['location']), SITE_NAME));

And in your template translations file (_translations/translations_en.ini) the line:

Code:

html_title = "{0} at {1} / {2}" ; {0} - job title, {1} - location, {2} - your jobberbase site name

should look like:

Code:

html_title = "{0} at {1} in {2} / {3}" ; {0} - job title, {1} - company, {2} - location, {3} - your jobberbase site name

This will make the title look as intended:
Job title at employer in Location / mysitename

instead of:
Job title at employer / mysitename.

Last edited by hobo (2011-03-23 03:00:24)

Ralf

Re: Seo title for job pages

not sure this is the right place - was searching for the right thread to post...

Some job urls are messed up, when you have (very) special characters in the company name or the jobtitle. Things like § or "" or (c) or more!?

Where are these characters rewriten? Can I adjust these rules somewhere?

While the job can still be called, there are problems in the sitemap xml file, and I'm sure some crawlers have problems too.

Example here: http://www.jobboard-deutschland.de/job/63/
jopbberbase 1.9.1

New jobboard for germany: www.jobboard-deutschland.de it's getting better every day!
Thanks to everyone -specially within this forum- for supporting!

hobo

Re: Seo title for job pages

The function is in _includes/class.sanitizer.php

Maybe you can add something like this somewhere in there:

$title = str_replace('§', '', $title);
$title = str_replace('©', '', $title);

ghalehame

Re: Seo title for job pages

thanks for sharing title coding format but what about content subheading bold !

Ralf

Re: Seo title for job pages

ok, my rewrite problem can be found here: http://www.jobberbase.com/forum/topic39 … m-bug.html

And for this one: works perfectly - the location is in the title! Great! Thanks Hobo!
Cheers, Ralf

New jobboard for germany: www.jobboard-deutschland.de it's getting better every day!
Thanks to everyone -specially within this forum- for supporting!

Ralf

Re: Seo title for job pages

One thing that wasn't mentioned here: The Sitemap.xml doesn't pick up the full URL now. I have e.g. this in the sitemap:
...-deutschland.de/job/1113/kundenbetreuer-innendienst-mw-customer-service-mw

but this is the whole JOB-URL:
...-deutschland.de/job/1113/kundenbetreuer-innendienst-mw-customer-service-mw-bei-mindjet-gmbh/

Do you know how to fix this?
Thanks, Ralf

New jobboard for germany: www.jobboard-deutschland.de it's getting better every day!
Thanks to everyone -specially within this forum- for supporting!

hobo

Re: Seo title for job pages

Hi, this is a "defect" that comes with jobberBase by default as the sitemap.xml url does not show the company name like regular job does.
Line 370 in _includes/functions.php that currently looks like this:

Code:

    while ($row = $result->fetch_assoc()) $sitemap[BASE_URL . URL_JOB . '/' . $row['id'] . '/' . $sanitizer->sanitize_title_with_dashes($row['title'])] = 1;

could be replaced with this:

Code:

    while ($row = $result->fetch_assoc()) $sitemap[BASE_URL . URL_JOB . '/' . $row['id'] . '/' . $sanitizer->sanitize_title_with_dashes($row['title'] . ' at ' . $row['company'])] = 1;

In your case the "at" should be replaced with "bei".

hobo

Re: Seo title for job pages

Or replace with this if you want a trailing slash:

Code:

    while ($row = $result->fetch_assoc()) $sitemap[BASE_URL . URL_JOB . '/' . $row['id'] . '/' . $sanitizer->sanitize_title_with_dashes($row['title'] . ' at ' . $row['company']) .'/'] = 1;

Ralf

Re: Seo title for job pages

Thanks for that ... excellent!

New jobboard for germany: www.jobboard-deutschland.de it's getting better every day!
Thanks to everyone -specially within this forum- for supporting!