MyBB Community Forums

Full Version: How do i hack the image Mycode to have a 3rd option?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do i hack the image Mycode to have a 3rd option? 

its has width and height and i need a caption option
cool so how do i add the x"caption" preg-reg?

"#\[img=([0-9]{1,3})x([0-9]{1,3}) caption=("("?(.*?)"?)") align=([a-z]+)\](\r\n?|\n?)(https?://([^<>\"']+?))\[/img\]#is"

is that right?

EDIT: Hmm interesting, it's got a float in the "align=" option?

yeah how do i add in the

caption=""

so align would be the fourth variable in the current setup?