Joomla and Extensions Hacks

From HAA Best Practices Wiki
Revision as of 20:53, 13 February 2009 by Whbean65 (talk | contribs) (New page: ==GMapsPro== ===Suppress map on user profile tab=== joomla\components\com_comprofiler\plugin\user\plug_cbmapuser\mapnearbyuserstab.class.php; Added: return; after the code block that...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

GMapsPro

Suppress map on user profile tab

joomla\components\com_comprofiler\plugin\user\plug_cbmapuser\mapnearbyuserstab.class.php;

Added:

return;

after the code block that does the geocoding right after the comment

// If the users profile needs to be geocoded and IF geocoding is enabled

The effect is to suppress the generation of the map on the user profile tab.

Fix problem with calls to www.sitename.org vs. sitename.org

// ORIG LINE	$query = 'SELECT * from #__gmaps_config where site = "' . $mosConfig_live_site . '"';
// NEW LINE	$query = 'SELECT * from #__gmaps_config limit 1';