Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorpk
    • CommentTimeMar 14th 2008 edited
     
    Hi,
    Firstly the code is great, secondly the code is great and finally i have some question :)
    I'm trying to chande the code a bit. I had to add extra field in job advertisement. I've added input field into form, additional field in database and also changed the class.Job file to save this data into database. Everything works fine, all data is saving correctly. But now i don't know why the search engine doesn't look through this extra field too. Any idea?

    Sorry for my english. i'm a foreign speaker and i'm still studying :)

    Regards
    • CommentAuthorpk
    • CommentTimeMar 21st 2008
     
    I've find it :)
    To add extra condition in search, we must edit class.Job.php file, line 550.

    Regards
    • CommentAuthorcapone
    • CommentTimeMar 24th 2008
     
    can you story us what have u achieve
    • CommentAuthorpk
    • CommentTimeMar 28th 2008
     
    Hi,
    I wanted to add extra field in job advertisement. In my case it was “special ability” (like driving licence or karate black belt ;p).
    Firstly i did like in http://www.jobberbase.com/community/discussion/76/adding-salary-and-expires-field.
    After that everything was fine. I could add extra information in form and it was saved in the database. But… but when i was searching for some job advertisement i’ve noticed that the search engine doesn’t look trough this field. The problem why is in class.Job.php file. Near 550 line you have something like:

    $conditions = 'title LIKE "%' . $keywords . '%" OR company LIKE "%' . $keywords . '%"' . ' OR description LIKE "%' . $keywords . '%" OR outside_location LIKE "%' . $keywords . '%"' . $extra_conditions;

    I modified this a bit:

    $conditions = 'title LIKE "%' . $keywords . '%" OR company LIKE "%' . $keywords . '%"' . 'OR sp_field LIKE "%' . $keywords . '%"' . ' OR description LIKE "%' . $keywords . '%" OR outside_location LIKE "%' . $keywords . '%"' . $extra_conditions;

    where sp_field is the name of my new field.

    I hope this will help You a bit.

    Regards