Joomla Jobline Component Strip Slashes
2008 May 1
If you have magic_quotes_gpc set to on in php and would like to keep it on but jobline is not removing the slashes on display or edit in the backend then edit the following files to fix it.
/administrator/components/com_jobline/admin.jobline.php
Look for the editJobPosting function and just before the last line in this function which is HTML_jobline_admin::editJobPosting( $row, $lists, $cur_template, $returnpage ); add the following lines of code.
$row->description = stripslashes($row->description); $row->qualifications = stripslashes($row->qualifications); $row->applyinfo = stripslashes($row->applyinfo);</blockquote> That just fixes editing in the backend, now for the front end view. Go find this file... /components/com_jobline/jobline.php and look for this function viewJobPosting and add the same lines as above which are <pre lang="php"> $row->description = stripslashes($row->description); $row->qualifications = stripslashes($row->qualifications); $row->applyinfo = stripslashes($row->applyinfo);
right before this line
HTML_jobline::show( $row );
Hope this helps, it takes a little while to find so I thought I would save someone else the time. Enjoy
4 Responses
leave one →

Thanks for the jobline solution – I was having a really hard time with this issue.
By the way, do you know of a Jobline plugin for Xmap?
@toby no problem!
I don’t offhand, sorry.
Nick,
Great solution bro! Thanks very much.
I do have a recommendation, though. The way you have your solution is a little confusing at first. I would recommend placing it thus:
Step 1:
/administrator/components/com_jobline/admin.jobline.php
Look for the editJobPosting function and just before the last line in this function which is:
HTML_jobline_admin::editJobPosting( $row, $lists, $cur_template, $returnpage ); add the following lines of code.
$row->description = stripslashes($row->description);
$row->qualifications = stripslashes($row->qualifications);
$row->applyinfo = stripslashes($row->applyinfo);
*(note for nick: I deleted the which is now at the end of that last line).
Step 2:
That just fixes editing in the backend, now for the front end view. Go find this file…
/components/com_jobline/jobline.php
and look for this function viewJobPosting and add the same lines as above which are
Thanks for the update Charley! I haven’t touched Joomla in a few years now so it’s nice to have an update to that issue.