Custom Page Top in webjobs

November 18th, 2008

Problem: A lot of websites like to have a different masthead on the home page than on secondary pages. Since webjobs offers only one template for the page header - templates/page_top.html — the solution is an if/then statement within the template. I heard that you can modify what template is chosen by webjobs in the base library files, but since these files are encrypted, the below method is the only method I can come up with on short notice.

Solution: Edit templates/page_top.html to display one bit of html for the index, and another bit for any other page. Here’s the basic idea:

<? if ($_GET['page'] == "" )

{
?>
put your html for the index page top here
<!–End top and Logo for home page–>
<!–start top and Logo for secondary pages–>
<?
}
else

{
?>
put your html for the other pages here
<?
}
?>
<!–End top and Logo for secondary pages–>

Frequently Asked Questions about Webjobs

November 18th, 2008

Here are some frequent questions I get from both users and administrators of webjobs sites I’ve worked on. Since I didn’t write the software, (Webscribble Solutions did), I am not sure that my solution is the best way, however it worked for me!

Q: How do I delete or disable a payment method?

A: In lib/payment, find the payment method you want to delete for example Authorize_net.lib . Rename this file to Authorize_net.disabled. It will no longer show up as a payment method for the users.

Q: My employers are complaining that they get an error when they try to upload their business logo.

A: Make sure that the uploads directory has sufficient permissions. (777). Another reason they may get an error is if their file size is too large. Admin can adjust this in smartway. Finally, if the client is using Internet Explorer and has previously already uploaded a logo, uploading a logo again will show an error. This is a file overwriting bug that has not yet been fixed.

Q: My jobseekers are getting multiple job agent emails for the same job.

A: It’s possible that the mailer_queue table in your database is not deleting the emails after they have been sent. Making sure the permissions are correct on ALL of the files under engine/scheduler/trigger/ (777) solved this one for me.

Q: How do I add a link to the matching job in the job agent email?

A: Add this to templates/mail/new_job_agent_result.txt

<a href=”http://www.yoursitehere.com/index.php?page=view_job&post_id={{job_id}}”>{{job_title}}</a>

Replace “yoursitehere.com” with your own domain name.

Q: How can I see a list of my newest registered jobseekers?

A: Paste this into phpmyadmin sql box:

SELECT jb_users.First_name, jb_users.Last_name, jb_emails.email
FROM `jb_users` , jb_emails

WHERE jb_users.id = jb_emails.user_id ORDER BY `jb_users`.`signup_time` DESC

Q:How do I invoice my employers, instead of having them pay right away through the webjobs payment system?

A: You can quite easily do this by modifying the check payment method. Just change the language to say something like, “we will send you an invoice for blah blah” instead of “please send your check or money order to blah blah”. You will also need to edit the language files where check is displayed in the job posting process. Change “check” to “send an invoice”, or whatever fits best. When an employer chooses this method, his job will show up in check status. Once you have invoiced him and received payment, you can activate his job.

Q: How do I add a link to a page?

A: Well, it depends on where you want to add it.

  • If you want it to show up on every page, in the top right where Home | Login | Contact Us is, edit templates/page_top.html
  • If you want it on the bottom of every page where this navigation bar is
    Home
    | Register | My Account | | Contact Us |
    edit page_footer.html
  • If you want it within the text of a certain page, find and edit that page in the templates folder
  • If you want it in the navigation bars that change within each page (i.e. Post Jobs, Post Resumes, Find Jobs, Employer, etc.) — that is a bit trickier because there are multiple files to edit.

Q: My states dropdown doesn’t work on the Resume Search Form.

A: Make sure you have a default country selected in Smartway (under Site Configuration), such as United States. The states will then correctly load.

FAQ Page on Webjobs

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.