MyBB Community Forums
Click the bar to fiew the full image - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Click the bar to fiew the full image (/thread-229445.html)



Click the bar to fiew the full image - blongso - 2020-09-18

Hello community,
At the request of some users who log into our forum with their tablet and have to scroll endlessly because the images posted in the threads are too big, I activated the "Mybb Ncode Image Resizer (1.2)" plug-in.

That works as it should. But I've found that this also affects the images posted in signatures, which I personally don't find nice.
Example:
[Image: PZgp4.png]

Can I create an exception for the signature? If yes how?

THX in advance for your help!
blongso


RE: Click the bar to fiew the full image - Crazycat - 2020-09-19

The trouble is that the plugin changes globally all images tags to add the javascript.
The better way to correct that might be to hook on postbit and change only the content of the post, rather than hook the parse_message_end which has the signature as a part of the message.

I'll do some tests soon

EDIT can you try using the attached file ? It works on my test server

.php   resim.php (Size: 5.67 KB / Downloads: 60)


RE: Click the bar to fiew the full image - blongso - 2020-09-19

re Crazycat!

Big Grin YES! Works perfect! Thank you!!!! Big Grin

Problem solved.

Greets,
blomgso