In Easy Profile in the users map module (mod_jsnmap), I would like to change the user avatar to show three different icons/pins for three different Joomla usergroups. I found this similar post which seemed to indicate it was possible:
https://www.easy-profile.com/support/user-map-3-user-groups-3-different-pins.html
I created a file called "custom.php", entered the code and the links to the three new image icons at line 117, selected "custom" and "avatar" as the module selections in the backend, but the custom icons didn't appear on the map.
The code I used is below. Can you please let me know what I'm doing wrong?
Changed line 117 from:
url: '<?php echo JURI::root(true).'/'.$user->getValue('avatar_mini'); ?>'
to:
url: '<?php
if( $user->getValue('group_id') == '13' ) echo 'https://www.premierlawyers.org/images/marker-platinum.png';
if( $user->getValue('group_id') == '12' ) echo 'https://www.premierlawyers.org/images/marker-gold.png';
if( $user->getValue('group_id') == '11' ) echo 'https://www.premierlawyers.org/images/marker-silver.png';
?>',
If this is not possible I would just like to change the default red location pin to my own image. I tried changing the link in default.php at line 162 from 'https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi2.png' to my own url but it didn't change. Is there a way to do this? Thanks!!