I'm using this code:
This doesn't want to load the lightbox though. Upon checking the JS console I get this:
Code:
<div class="section" data-author="&nsbp;">
<div class="secondaryContent">
<h3>Random Images</h3>
[COLOR=#000000][SIZE=12px][FONT=Consolas]<a href="attachments/igfgmage-jpg.9/" target="_blank" class="LbTrigger" data-href="misc/lightbox" style="display:block; text-align: center;"> <img src="attachment.jpg" alt="Igfgmage.jpg" class="bbCodeImage LbImage" data-src="attachments/igfgmage-jpg.9/?embedded=1"> </a>[/FONT][/SIZE][/COLOR]
</div>
</div>
This doesn't want to load the lightbox though. Upon checking the JS console I get this:
Code:
Opening LightBox for [
<div class="section" data-author="&?nsbp;">…</div>]
Num images: 3
setImage to attachments/idfdfmage-jpg.8/?embedded=1 from [<img id="LbImage" alt>]
Uncaught TypeError: Cannot call method 'replace' of undefined
XenForo.LightBox.setAvatar - /upload/:193
XenForo.LightBox.setImage - /upload/:136
XenForo.LightBoxTrigger.XenForo.OverlayTrigger.onBeforeLoad - xenforo.js:3318
c.event.handle - jquery-1.4.4.min.js:63
c.event.add.h.handle.o - jquery-1.4.4.min.js:56
c.event.trigger - jquery-1.4.4.min.js:61
c.fn.extend.trigger - jquery-1.4.4.min.js:74
c.b.extend.each - jquery-1.4.4.min.js:33
c.b.fn.b.each - jquery-1.4.4.min.js:26
c.fn.extend.trigger - jquery-1.4.4.min.js:74
a.extend.load - jquery.xenforo.rollup.js:46
XenForo.OverlayLoader.show - xenforo.js:3455
XenForo.OverlayLoader.createOverlay - xenforo.js:3440
jQuery.extend.context - xenforo.js:87
XenForo.ExtLoader.callSuccess - xenforo.js:1979
XenForo.ExtLoader.successCount - xenforo.js:2020
jQuery.extend.context - xenforo.js:87
$.extend.scriptLoader.loadCss.$.ajax.success - xenforo.js:1894
c.extend.handleSuccess - jquery-1.4.4.min.js:142
c.extend.ajax.L.w.onreadystatechange - jquery-1.4.4.min.js:141