• 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)

DrYontem

Well-known member
Author: yilmaz
Setup Instructions
1-) Upload the necessary files/folders in _upload folder
2-) Install addon_xentr_com_mostliked_users.xml via add-on installer
3.a-) open forum_list template and find
HTML:
</xen:sidebar>
3.b-) add above
HTML:
<xen:include template="xen_tr_com_most_liked_users" />
 

Attachments

  • liked.jpg
    liked.jpg
    81.3 KB · Views: 84
  • Xen-TR_MostLiked_Users_v.1.0.0.zip
    4.6 KB · Views: 62

DrYontem

Well-known member
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
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)";
 

DrYontem

Well-known member
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
 

turtile

Well-known member
Thanks for the great mod!

Where do you find the group ID? I only want regular members to be displayed.
 

Brogan

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

1 - Unregistered / Unconfirmed
2 - Registered
3 - Administrative
4 - Moderating
 
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...)
 
Top