Hm... After further testing, I've discovered that Vanilla leaves deleted users in the database and my plugin does show deleted users when calling the table. I will post another version as soon as this is fixed.
Also, It seems that in RC3, they moved the user photo data to another table altogether. I will change the requirements until this is fixed. Sorry for any inconvenience.
@Tim, if you are running RC2 and need this to be fixed, go to the UserList plugin folder and open class.userlistmodule.php. Go to line 58 and change 30% to 29%, so that line should now read 'width: 29%;'.
@Tim Sorry, I realized that after I left you that comment. :P I'm new to developing plugins. I don't think I need help right now, but thanks so much for letting me know about that bug!
User profile pictures are going to stay in GDN_User.Photo from now on and through the V2 release. We're probably going to get rid of the GDN_Photo table soon.
I just tried it again and the alignment seems to be mostly fixed, with 1 exception. When you combine users that have photos, with users that do not, you end up with strange alignment problems. I was thinking that maybe if the user check the 'Photo' option, you restrict your query to pull only users that actually have pictures.
->Where('u.Photo IS NOT NULL')
Just an idea On the other hand, you could simply mandate a fixed height for all the image boxes and remove names for users that have an image (putting the name in the Alt tag maybe).
Hm... thanks for the suggestion. I think I'll go with hiding the user name, and maybe making an option for hiding users who don't have pictures. How do I use the alt or title attributes using Vanilla's Img function?
Version 0.3 uploaded - Added option to only show users with photos, and removed user's names unless you decide to use the text list. You can see the usernames when hovering over the pictures.
Comments
I was checking out your plugin and I noticed some odd behavior when I enabled images.
Is that normal?
Vanilla Forums COO [GitHub, Twitter, About.me]
Is there anything I can help with?
Vanilla Forums COO [GitHub, Twitter, About.me]
Vanilla Forums COO [GitHub, Twitter, About.me]
->Where('u.Photo IS NOT NULL')
Just an idea
Something like this?
Vanilla Forums COO [GitHub, Twitter, About.me]
I hope to be uploading my first soon, soon as I work out the bugs :d
One request, though; could you add a total members number next to the title on the box?
Hopefully not that difficult, thanks.
look forward to seeing more of your work