oh hai.

Joomla sitemap component Xmap

Posted: May 1st, 2008 | Author: Nick | Filed under: joomla | Tags: , , | No Comments »

The joomla Sitemap component Xmap is a very useful sitemap component for joomla which basically lets you generate a sitemap out of your menus. You can choose to use all of the menus or just your main menu, whichever works best. You can then link to the sitemap component from a menu item and see a sitemap in a human friendly form on your site. Xmap also generates the xml version for search engines such as google and yahoo. It isn’t extremely obvious where that is located at since it isn’t sitemap.xml so I thought I’d post it to save someone the hassle of looking for it. It should be here…

http://mysite.com/index.php?option=com_xmap&sitemap=1&view=xml&no_html=1


Joomla Jobline Component Strip Slashes

Posted: May 1st, 2008 | Author: Nick | Filed under: joomla, php | Tags: , , , | No Comments »

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);
 
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
$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