MyBB Community Forums

Full Version: Userstars/groupimages are not displayed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Userstars (and groupimages as well) are not displayed for some (majority) of users... MyBB v1.8.16 (updated from 1.8.15)

Check this, Ben doesnt have any star, StefanT has :-O

https://imgur.com/J2rEN35

And this is the output in my devtools (Google Chrome)
https://imgur.com/bLknv0Z


That happens on MyBB official forum too Sad

Original thread: https://community.mybb.com/thread-218440...pid1308085
Please edit the post and title including issue about usergroup image as well. This will be pushed.
I edited the first post, anyway I can reproduce only for userstars
Look at the post you have just posted. You are missing Contributor group image ...
Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/3303

Thanks for contributing to MyBB!

Regards,
The MyBB Group
The following code is causing the issue:
	$displaygroup = usergroup_displaygroup($post['displaygroup']);
	if(is_array($displaygroup)
usergroup_displaygroup() always returns an array however all its items can be null (no display group).
Thank you for your input and debugging @StefanT!
hello

$displaygroup = usergroup_displaygroup($post['displaygroup']);
if(is_array($displaygroup)

where to edit this code?
Note that this fix may not be complete, as it is still being tested.
Pages: 1 2