MyBB Community Forums

Full Version: Remove image links in quotes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Much like this chap back in 2006, our forum has a lot of picture links.  We've spent time explaining why it's undesirable to quote with image links in place, and how to remove them.  But of course it keeps happening.  A moderation nightmare. Undecided

The linked thread is no longer useful, so my question is - anything we can do about links in quotes?  Plugin or code mod.

cheers...
replies here can be helpful
No luck - so far - with the updated code, but will double check the instructions and confirm.  Thanks .m., this is a big deal for us.

cheers...

Still no joy with this, although it clearly worked to an extent for this member.  Doesn't hurt anything, just not the expected result.

Curious if anyone else has had any luck?
(2020-06-03, 02:33 AM).m. Wrote: [ -> ]replies here can be helpful

And they were .m.  Had another look - think I can make that work. +1 from me.
sorry, I haven't seen earlier reply. if direct help required then
you may PM me temporary access to your forum admin panel ..
(2020-06-11, 01:58 AM).m. Wrote: [ -> ]sorry, I haven't seen earlier reply. if direct help required then
you may PM me temporary access to your forum admin panel ..

Thanks .m., think I'm ok now.  First look was hurried - just needed to refresh browser cache - lol.  I should know better with javascript.  Thanks for setting me on the right path.

cheers...
Hi, I coded a little plugin for this:
https://gist.github.com/Sama34/9f9ac5496...emedia.php

It will convert images and videos in posts to links.
(2020-06-11, 11:50 PM)Omar G. Wrote: [ -> ]Hi, I coded a little plugin for this:
https://gist.github.com/Sama34/9f9ac5496...emedia.php

It will convert images and videos in posts to links.

Thanks Omar, I'll have a look at that.

cheers...

Had to change my best answer - lol.  Been running Omar's plugin live since yesterday.  No issues to report, and we're well pleased. .M.'s javascript definitely works as a quick fix, so anyone having this sort of problem on their forum should check this thread for the solution that works for them.

cheers all...
(2020-06-11, 11:50 PM)Omar G. Wrote: [ -> ]Hi, I coded a little plugin for this:
https://gist.github.com/Sama34/9f9ac5496...emedia.php

It will convert images and videos in posts to links.

Since the upgrade to 1824, seeing inconsistent results.  Sometimes the plugin works, sometimes not.  Another member reports similar issues here:

https://community.mybb.com/thread-229040...54800.html

I upgraded to 1824 via changed files 2 days ago, and tested again on our live board just now.  Link to a post I had to go in and edit to remove the picture:

https://www.dartsnutz.net/forum/showthre...#pid618516

Seems we've got to the bottom of this.  Pre-existing use case, not the upgrade at all.  Nested quotes will cause some issues as described by @philbean here.  

Apologies @Omar G.

cheers...
Great plugin Omar but we're having an issue where users are nesting images within quotes within quotes and these are still showing as images.
See here > https://community.mybb.com/thread-229040...54810.html

Can you advise ?
Smile
Pages: 1 2