Archive for the 'Website Development' Category


Common Error Messages in WebJobs

Thursday, April 9th, 2009

If you turn debugging on (in site configuration in Smartway), you can see lots of errors! Some of them actually originate from the base_classes.lib file. That has been encrypted by WebScribble, so you won’t be able to fix those errors.

Here are some errors that are easy to fix

1. Use of Undefined Constants

You may see a bunch of these cluttering up your page when you run your site with debugging on:

Notice: Use of undefined constant SOME_CONSTANT_HERE - assumed ‘SOME_CONSTANT_HERE’ in /path to your site/engine/pages/your_problem_page.php on line 41

Fixing it is simple, and I have to believe it helps make your site run more efficiently. Find the constant on the line referenced by your error notice. It will be in all capital letters. Add a single quotation at the beginning and end of the constant. Reupload your file. The error message should no longer be there.

2. Permission Denied Errors

Warning: touch() [function.touch]: Utime failed: Permission denied in /path to your site/engine/pages/your_problem_file.php on line 43

Open up the file that is referenced, and look on the line referenced. You should see it refer to another file. Change the permissions (CHMOD) to 775 on that file. If that doesn’t work, try chmoding to 777.

Custom Page Top in webjobs

Tuesday, 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

Tuesday, 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.