MyBB Hacks

Full Version: Xthreads Images and Shadowbox/Lightbox
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Ok, thank you - is the code ok for the lightbox? Not too sucky?

Code:
    '#\[lightbox=([\w:;&,~%+!=@\/\.\-\#\?]+)\]([\w:;&,~%+!=@\/\.\-\#\?]+)\[\/lightbox\]#is' => '<a href="$1" rel="lightbox"><img src="$2" /></a>',

(01-29-2011 09:35 AM)leefish Wrote: [ -> ]What do you mean RateU?

Nothing.... I think I've misunderstood what you wanted.
I thought you want a BBCode for internal XThreads attachemnts only with lightbox, but it seems you want it for general images too.

(01-29-2011 09:35 AM)leefish Wrote: [ -> ]Or do you mean on the post preview? I put the BB Lightbox code in like the BB IMG code.

Never mind. I already have my own BBCode for internal XThreads attachment only that (I think) it "works" for me.
It came out great RateU thank you - but my question was answered - and now I have a BB code for the forum too. Users are happy. I am just not sure if the code is secure.
Pages: 1 2
Reference URL's