Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Xthreads Images and Shadowbox/Lightbox
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #7
RE: Xthreads Images and Shadowbox/Lightbox
OK, is solved. I have a copy of ZingaBurga's mycodepack, and I added the bbcode in via that file rather than trying to use the MYBB MYCODE editor. I would appreciate a yes/no on how "safe" this code is, and if unsafe some tips on how to fix.

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


EDIT: I missed your post RateU - yea, its insane. That scraffly little mycode SHOULD have worked - but no go. This way is working - now I guess I have to add the mycode version into the post preview set up?

LATER EDIT:  Muwhahahaha - it worked!! Yay. Thanks  for listening Smile



[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 01-29-2011 05:57 AM by leefish.)
01-29-2011 05:44 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Xthreads Images and Shadowbox/Lightbox - leefish - 01-29-2011 05:44 AM

 Standard Tools
Forum Jump: