MyBB Community Forums

Full Version: Lightbox Mod Help.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I install Lightbox mod On Mybb 1.4

Now i wanted to ask is that Does the Lightbox mod Gives me a Button on editor in thread??

http://mods.mybboard.net/view/lightbox-mycode

this is the code that I Installed..

But No Lightbox button has Appeard to Me..

When I insert the img=lightbox code the image works good.

Is there Some way i put the button in the box or else how can make the normal img tag to work for lightbox?
thanks Lex ..bRo


But i wanted a Little more Info from you bro..

I wanted to know what should i edit in the mod files as to make the [img]Url[/img] tags work for it?

I mean i want my normal images to work with the Lightbox.

Think This can Be Done?
editing editor.js

find
insertIMG: function()
	{
		image = prompt(this.options.lang.enter_image, "http://");

		if(image)
		{
			this.performInsert("[img]"+image+"[/img]", "", true);
		}
	},

change

insertIMG: function()
	{
		image = prompt(this.options.lang.enter_image, "http://");

		if(image)
		{
			this.performInsert("[img=lightbox]"+image+"[/img]", "", true);
		}
	},
---------------------------

should work well Smile
It Works Like a Charm .. but you made a mistake in the previous Code there is No "=" after image in the last line..

Bro but if you spare me a bit i wanted to ask if it can be done in reverse?

I mean Lightbox code work for [img] Blah.jpg [/img] tags?

I mean i would mostly be add posts quoted from other scripts and thus .. Can the image code be used for the lightbox mod?

Just asking thought..
the code is correct, if you add "=" does not effect lightbox
ohh yes the code is correct ..

Thank you.. but i was asking is it Possible to make lightbox work on [img] [/img] Tags?
I do not understand what to ask, [img = lightbox] works instead of [img]