MyBB Community Forums

Full Version: img tag not working for some accounts, turns to link
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I don't know why this is happening but it's getting annoying.

For some usergroups/accounts the img tag shows the image. For others it turns it into something like this:
[Image: the img url]

Which is a link.

How do I disable this issue? I want images to show no matter what!
Just bumping this.

I'm still having this issue.
Are they external images which are denied hotlink permissions?
Or are the images displayed for some members / usergroups but not others?

These members can see images.
SELECT count(uid) as users FROM `mybb_users` WHERE showimages=1; 

They can't if showimages=0.
this will probably be a setting in the UserCP of the users concerned
There under "Edit Profile" you will find "Display images in posts".
If this is not checked, it comes to the mentioned by you
(2023-06-19, 12:38 PM)HLFadmin Wrote: [ -> ]Or are the images displayed for some members / usergroups but not others?

^ This.

Originally I thought it was a usergroup issue but this is happening for members of the same usergroups. One person can use the image tag with the photo and it shows (when I see it) while the other person does the same but when I look at it is the link.
And all members who see it as a link have their UserCP setting as shown in bv64's post?
If yes, then it could be a plugin interaction.
I checked and the users in question have showimages set to 1.

I attached a screenshot of all the plugins I do have. However, when I posted this original post this was back before most of these plugins were installed. I started out with just:
  • Enhanced Account Switcher (2.1.12)
  • Automention (1.4.0)
  • BAM+ Announcements Manager (2.0)
  • Content Restricted (2.0)
  • Dice Roller MyCode (1.2.0)
  • Date of Birth on Registration (1.0.1)
  • DVZ Mentions (1.0.6)
  • MyAlerts (2.0.4)
  • PHP and Template Conditionals (2.2)
  • XThreads (1.68)

[attachment=46073]
Very mysterious

we could now wildly guess which plugin it could be
But the easiest solution is probably to disable all plugins and turn them on again bit by bit until the problem occurs
A testboard (copy of the original board) is a good help here
Good luck

one question more: all users using the same style?
Disabled all plugins to start with in the gen config settings. Images show.

So I turned them all back on and then went through to disable.

Found that the Dice Roller MyCode plugin is the culprit here. I reactivated it and the images went back to being weird. So I clicked "Undo edits to class_parser.php" and although its still activated the problem is solved.

Whatever edits that plugin is making is causing an issue. I'm not even sure the edits its making are necessary considering the roller still works appropriately despite the edits being undone. How odd!