What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • This area is dedicated to the support of our xF1 add-ons. For xF2, please use the dedicated area: HERE.

Support Only show markers for a specific usergroup

CazMcI

Member
Hi,

How can I modify the code so that the map only renders markers for a specific usergroup?

I know you can filter by usergroup, but I would like the default to be already filtered.

Thank for your help :)
 
In library/XFA/MembersMap/ControllerPublic/Map.php

find
PHP:
if(!$usergroup) {
    $usergroup = 'all';
}

replace "all" by your usergroupid you want display by default
 
Thank you very much for your help.

Would it also be possible to only list members of a specific usergroup on the members-map/country pages?
 
Last edited:
Top