Quote:
Originally Posted by Annapurna
I installed ME yesterday evening! Perfect hack!
Question: Is there a way to sort the usergroup legend?
Andreas
|
Hey Andreas,
You can add an 'order by' to the query
If you open the vbgooglemapme.php on line 163 (or about there depending on your editor)
look for
PHP Code:
$gettypes= $db->query("SELECT title,googlemapmetype FROM " . TABLE_PREFIX . "usergroup where showonvbgme = '1'");
and replace by
PHP Code:
$gettypes= $db->query("SELECT title,googlemapmetype FROM " . TABLE_PREFIX . "usergroup where showonvbgme = '1' ORDER BY title DESC");
if you add usergroupid after select you can also order on that or any other field in that query for that matter.
Greetz