MyBB Community Forums
[How To?] Add mybb code with input box - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: [How To?] Add mybb code with input box (/thread-103095.html)



Add mybb code with input box - bahaa87 - 2011-09-03

hello,
how are you?
thanks for you for your jobs.
I added flash bbcode to my forum with this code:

Parses quote MyCode
\[flash=(.*?)\](.*?)-(.*?)\[/flash\]

<object width="$2" height="$3">
<param name="movie" value="$1">
<embed src="$1" " type="application/x-shockwave-flash"></embed>
</object>

and it's perfect.
but I need when I press in its button ( which I add it to quick reply buttons ) use the input box to enter url of file, width and height. such as when I press on image button.

how I can do that?

thanks for all

I added that button by adding this code to "wysiwyg_quickreply" and "wysiwyg_default"
var tmpBBCode = { wysiwyg:0, bbCode:'Flash', htmlOpen:'', htmlClose:'', icon:'flash.gif', sourceCode:1, attributes:[{ attributeHTML:'', validationPattern:'^\\d+$', required:0 }] };
                extraBBCodes['Flash'] = tmpBBCode; sourceCodes['Flash'] = 'Flash'; language['Flash.title'] = "Insert Flash File";

thanks
can any one help me? please.