MyBB Community Forums

Full Version: [Request] Plugin that puts all images into spoilers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm looking for a plugin that automatically puts all images (detects [img][/img]) into [spoiler][/spoiler].
I need this for my forum mebes.net because the images people upload are so grand and due to dumps threads find themselves being too long.
Why not just tell people to put spoiler tags around their images?
If you entirely want it, create a new bbcode Smile
(2011-10-01, 08:15 PM)Sama34 Wrote: [ -> ]If you entirely want it, create a new bbcode Smile

How?
I need it to be that every single picture that is posted ([img][/img]) must be automatically placed in [spoiler][/spoiler].
What would be the code for such thing.
Maybe something like:
\[img\](.*?)\[/img\]

<spoiller><img src="$1" title="" alt="" /></spoiller>

Obliviously, the spoiler tag doesn't exist, you need to add your own code or whatever you use as to make up the spoiler.