Joomla Jobline Component Strip Slashes

2008 May 1
by Nick

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

2 Responses leave one →
  1. November 4, 2009

    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?

    • Nick permalink*
      November 4, 2009

      @toby no problem!

      I don’t offhand, sorry.

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS