Joomla and Extensions Hacks: Difference between revisions
From HAA Best Practices Wiki
Jump to navigationJump to search
(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...) |
No edit summary |
||
Line 19: | Line 19: | ||
// ORIG LINE $query = 'SELECT * from #__gmaps_config where site = "' . $mosConfig_live_site . '"'; | // ORIG LINE $query = 'SELECT * from #__gmaps_config where site = "' . $mosConfig_live_site . '"'; | ||
// NEW LINE $query = 'SELECT * from #__gmaps_config limit 1'; | // NEW LINE $query = 'SELECT * from #__gmaps_config limit 1'; | ||
==Fixed problem in communitybuilderprofileadapter.class.php== | |||
Changed code to suppress second copy of avatar and to add View Profile link. | |||
<pre> | |||
$desc = "<table><tr><td>" | |||
. $row["name"] . "<br/>" | |||
. $row["cb_address"] . "<br/>" | |||
. $row["cb_city"] . ", " . $row["cb_state"] . "<br/>" | |||
. "<a href='".$profile_path.$row["user_id"]."'>View Profile</a><br />" | |||
. "</td></tr> | |||
</table>"; | |||
</pre> |
Revision as of 21:02, 13 February 2009
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';
Fixed problem in communitybuilderprofileadapter.class.php
Changed code to suppress second copy of avatar and to add View Profile link.
$desc = "<table><tr><td>" . $row["name"] . "<br/>" . $row["cb_address"] . "<br/>" . $row["cb_city"] . ", " . $row["cb_state"] . "<br/>" . "<a href='".$profile_path.$row["user_id"]."'>View Profile</a><br />" . "</td></tr> </table>";