Archive for the 'Website Development' Category


FAQ Page on Webjobs

Monday, November 10th, 2008

Adding content to the FAQ page template in Webjobs is slightly different than other pages. (By the way, I always recommend using Dreamweaver to edit the templates rather than the template editor in Smartway for two reasons:

  1. Permissions: To edit templates through Smartway, the file permissions have to be 777. This makes your site insecure.
  2. WYSIWYG: The editor in Smartway just shows raw html. It is easier to format your content if you can see what it is going to look like. For that, you need an editor like Dreamweaver.)

Anyway, the FAQ page is cool because it will load content based on whether your user is logged in as a jobseeker or an employer. So if you’re logged in as an employer, it can load questions like — “How do I post a job”, “How much does it cost?”, etc.  If you’re logged in as a jobseeker, it can load questions like, “How do I post my resume”, or “How can  I find a job?”.

So, for a seeker, add your content in between

<?php if(isset($output[’seeker’])){ ?>

and

<?php
}
else if(isset($output[’employer’])){
?>

For an employer, add it after

<?php
}
else if(isset($output[’employer’])){
?>

but before

<?php } ?>

near the end of the document.

Quick Search Quirks on Webjobs

Monday, November 10th, 2008

Problem: The quick search form uses “Alabama” as the default state if USA is selected in Smartway as the default country. If users don’t think to choose a different state, only the jobs for Alabama will show up.

Solution: If you are using “city” as a write-in field, edit this file: smartway/conf/quick_search_city.xml. Around line 22, find the form field for state. Add this: blankline=”all_states” .

So your line 22 will look something like:

<input name=”state” type=”select” table=”jb_states” blankline=”all_states”  key=”name” value=”name” required=”1″ otherattr=”onChange=”javascript:document.quicksearch.action.value=’load_cities’;document.quicksearch.city.value=”;document.quicksearch.submit();”">state</input>

Problem: No matter how I try to align the secondary quick search box, it still shows up on the left side of the page.

Solution: Around line 966 of career_style.css, add a left margin, like this:    margin-left: 33px;
. You may need to adjust the number of pixels to fit your page design.

Bugs in WebJobs

Tuesday, October 14th, 2008

These are the source of my headache today… I recently downloaded WebJobs 2.1, and although some bugs were fixed from 2.0, new ones cropped up:

  • SEO - Friendly URLs break pagination in WebJobs 2.1 -

Although they seem to have written a fix in the rewrite.php file, it does not work. The pagination will not work on resume searches or job searches. This is pretty serious and breaks the function of the site, so I just removed the rewrite conditions in .htaccess until WebScribble can apply a better fix. (I sent them a bug report — we’ll see how that goes…)

  • Edit Seeker Profile on Member Manager

If the seeker does not have a profile (because he did not complete page 2 of the registration form), clicking on “Edit Profile” in Member Manager shows a nasty error message.

Fatal error: Class ’smartway_module_member_manager__edit_form’ not found in /…/member_manager.php on line 1586

  • When paying for a job posting, negative credits can show up in the “Available credits” section.

You can even select the credits. I have no idea how a person would even GET negative credits, but this showed up several times. The code looks correct in  post single job3 , so I don’t know….

  • The resume attachment is blank in the new job application email.

When a jobseeker applies to a job, a copy of his resume is emailed as an attachment to the employer who posted the job. However, that resume shows up as an empty text file, named simply resume.txt. I have not found  a fix for this yet. Anyone?