- I can't reproduce the problem with the spoilerbb Bb Code ; check if you have any JS error inside the console (when you open the spoiler).
- I'm not sure to understand your second point:
- the url Bb Code is not meant to "wrap" any other Bb Codes ; the wrapper Bb Code must be a block that displays a content.
- If you mean this kind of code below, then I don't have any problem
Code:
[URL]http://www.xenforo.com[/URL][IMG]http://www.{{{{{{}}}}}}/myimage.jpg[/IMG][URL]http://www.xenforo.com[/URL]
Oops, looks like my limited knowledge of English and my severe headaches screwed things up again.
Please allow me to explain the situation properly this time:
In
Admin Control Panel ->
Home ->
Bb Codes options (Xen) there is an option called
XenForo Img wrapper. If you have the Advanced BBCodes Pack installed, this will allow you to select the
spoilerbb BBCode. This will result in any occurrence of the
img-BBCode being placed inside a
spoilerBB-BBCode.
As you know, if an image is put inside of the
spoilerBB code the normal way, a user typing
Code:
[spoilerbb][img]http://example.com/test.png[/img][/spoilerbb]
the location is put in the
data-spoiler-src attribute rather than the
src attribute. This allows you to use JavaScript to only load the image when a user opens the spoiler, by putting the value of the
data-spoiler-src attribute into the
src attribute.
However, when using the aforementioned feature of the BBodes & Buttons Manager, the image's location is put directly into the
src attribute and the
data-spoiler-src attribute is not set.
My second problem was basically the twice-aforementioned functionality of the BBodes & Buttons Manager turning
Code:
[url=http://example.com][img]http://example.net/image.png[/img][/url]
into
Code:
[url=http://example.com][spoilerbb][img]http://example.net/image.png[/img][/spoilerbb][/url]
which puts the link around the spoiler rather than the image. While it is default behaviour, in this case it's a tad weird and unconvenient.