• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Xen-TR Most Liked Users (sidebar)

Dr.Yontem

Formerly Tilkißey
#9
Hi, first of all thank you! I'm using this Addon modified to show the most liked users:

I would prefer to show the most liked users that belongs to a certain secondary group. How can I do that?
$excludedusergroup = XenForo_Application::get('options')->xentrcom_mlu_excluded;
$excludedusergroup = "AND user_group_id NOT IN ($excludedusergroup)";
this is default codes

$excludedusergroup = "AND secondary_group_ids NOT IN ($excludedusergroup)";
exclude for secondary usergroups

$excludedusergroup = "AND secondary_group_ids IN ($excludedusergroup)";
include for secondary usergroups

so, u can add another option at development mode and of course u ve to add its code to model file
 

Puntocom

Well-known member
#10
Thanks! it is strange, it now shows only users in a secondary group (id 8) (as expected) but, if the user is also in the group id 5 he doesn't appear in the list (although he is in the secondary group id 8)

I'm using this code:

$excludedusergroup = "AND secondary_group_ids IN ($excludedusergroup)";
 

Dr.Yontem

Formerly Tilkißey
#11
Thanks! it is strange, it now shows only users in a secondary group (id 8) (as expected) but, if the user is also in the group id 5 he doesn't appear in the list (although he is in the secondary group id 8)

I'm using this code:
oops, i see the problem now, i am not sure how fixing this but i will try
 

Brogan

XenForo moderator
Staff member
#14
If you haven't changed the default groups then they are as follows:

1 - Unregistered / Unconfirmed
2 - Registered
3 - Administrative
4 - Moderating
 
#17
Installed, did the template mod, doesn't work... It won't show anything on the sidebar. Did i miss something? (lots of mods don't work for me for some reason i don't know why...)