[User List Addon] No users show up*
  • basbbasb
    Posts: 110
    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
  • melatoninmelatonin
    Posts: 28
    It bonk'd for me.
  • I will look into this ASAP. Thanks for telling me.

    Are you both using at least RC3 of Vanilla 2?
  • melatoninmelatonin
    Posts: 28
    Yep, RC3
  • basbbasb
    Posts: 110
    2.0 final
  • Okay, thanks for your input.
  • jbrownjbrown
    Posts: 14
    any progress yet?
  • Hopefully I'll be able to get this update up soon, I've been immensely busy lately. Sorry everyone.
  • I've uploaded 0.5. It should address the bugs listed here. Please let me know if it still doesn't work.
  • DesmanthusDesmanthus
    Posts: 116
    Just installed and it says "No users to display." I fiddled with the settings but no luck.
  • @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.
  • DesmanthusDesmanthus
    Posts: 116
    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?
  • @Desmanthus - The import process might put the users from Vanilla 1 in a separate table. I'm going to begin testing that.
  • basbbasb
    Posts: 110
    I'm also still having the same issue
  • @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.
  • DesmanthusDesmanthus
    Posts: 116
    Just installed the update. No change in my issue, "No users to display."
  • @desmanthus - I haven't made the fix for imported users from Vanilla 1 yet.
  • jbrownjbrown
    Posts: 14
    Confirmed, I was able to get this working but only on a clean install with users setup in the clean install.
  • tmilovantmilovan
    Posts: 102
    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.
  • tmilovantmilovan
    Posts: 102
    Also limit does not work, but if you add:
    ->Limit($Limit)
    at line 37, it should be fine.
  • tmilovantmilovan
    Posts: 102
    And, in order for Order to work:)) you need to add:
    ->Orderby($Order)
    ... after above mentioned line.

    I guess, with this three changes everything should work fine for 2.0.3. installations with ported forums.
  • @tmilovan Thanks, I will implement these changes probably later today.
  • DesmanthusDesmanthus
    Posts: 116
    I am excited about getting this plugin to work with my V1 imported users!
  • Any update on this?
  • 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 ?
  • I've fixed a bug in this plugin that caused some users to show up twice in the list.

    In class.userlistmodule.php changed:

    Line 16:
    $Select='u.UserID, u.Name, u.Photo';
    changed to
    $Select='DISTINCT(u.UserID), u.Name, u.Photo';

    and again on line 40:
    ->Select('u.UserID')
    changed to
    ->Select('DISTINCT(u.UserID)')
  • Anyone figure out how to include members from an imported V1 forum?
  • The randomize feature doesn't work for me.
    EDIT: I could mention that there are no error messages, and I'm running it on 2.0.9

    Also, a nice feature would be to add an option to select where you want to show the panel. Kinda like what the WhosOnline plugin.
  • Is there a simple way for me to tweak this so it only shows up on the discussions view and not in each thread?
  • If you don't mind tweaking the code, you can do this:

    default.php, change line 43 to:
    if(!in_array($Sender->ControllerName, array('categoriescontroller', 'discussionscontroller'))) return;

    That should work, but let me know if it doesn't.
  • 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?

    Thank you in advance for your help.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Who's Online 3

JhauraWpaintballer82422