This discussion is related to the User List addon.
Hi! When I enable the plugin "user list", the following text but no users appears in the box in the sidepanel: "No users to display. Try changing your settings."
This text is visible to ALL users, they even get to the dashboard by clicking the link! If I uncheck "randomize" in the plugin's settings, I get a "bonk". Furthermore, the plugin show's version 0.1 instead of 0.4
@Desmanthus Which settings did you choose? If none of your users have photos, you must check "Show users that don't have a photo" in order to have users show up.
I tried with and without photos, randomize, all different combos. All options show "No users to display." When I turn on show number it says (0). I just imported my forum from vanilla 1 to try out vanilla 2. Does this count those imported users?
@basb - Do you know how to turn on dev error? If you do, please do so and tell me exactly what the error is that you're getting, because I'm unable to recreate it.
Reason for this problem is simple. There is hardcoded default usergroup id (RoleID) in this addon source and that works fine for Vanilla imports, but if you are importing from any other forum engine, chances are your default usergroup id is not 7, but lower.
So, author needs to find the way to read default usergroup real value, and use that in addon source. Meanwhile I guess we can just manually put this value in lines 18 and 43 of class.userlistmodule.php.
On my page, this plugi load all of user in panel (limit set to 20, but plugin try to load all of forum users) and does not show photos. Vanilla v2.0.6, data imported from Vanilla 1.
Maybe there is some patch for people who has imported users with customs roles and their ID's ?
Dear tmilovan, Dear all, Sorry I'm a beginner with coding and stuff, so I really don't understand your solution for both limit and order. What do you mean by adding:
->Limit($Limit) and ->Orderby($Order)
to line 37? I tried placing those two lines everywhere in the 37 to 39 lines but nothing seems to work. Would you be kind enough as to show us the original content and where to place those two lines, and then the new content once those two lines are added. I am sorry once again, but for instance, should we place a ";" after each line as is the case with the rest of the file?