Ok, I've searched, but can't seem to find exactly how to add the buttons. Give me an example, please. I've added vbcode for flash, and now I'd like to add a flash code button. How do I do this?
Adding code buttons
Collapse
X
-
Tags: None
-
Re: Adding code buttons
Originally posted by SloppyGoat
Ok, I've searched, but can't seem to find exactly how to add the buttons. Give me an example, please. I've added vbcode for flash, and now I'd like to add a flash code button. How do I do this?
(Admin Control Panel > Templates > Modify (expand) > vB code > vbcode_buttons < that one.)
Code:<input type="button" class="bginput" value=" X " onclick="vbcode(this.form,'X','')" onmouseover="stat('x')" title="X (alt+x)" accesskey="x">
-
And that adds the actual button? I thought it would be an image or something? How do you determine where it's positioned? I'm not sure I get this. Could you possibly substitute the labels/names in? I'd assume I'm supposed to know what goes where all the X's and parenthesis are, right? I'll take a look at the template when I get home, but so far, it doesn't make a lot of sense to me.Comment
-
Originally posted by SloppyGoat
And that adds the actual button? I thought it would be an image or something? How do you determine where it's positioned? I'm not sure I get this. Could you possibly substitute the labels/names in? I'd assume I'm supposed to know what goes where all the X's and parenthesis are, right? I'll take a look at the template when I get home, but so far, it doesn't make a lot of sense to me.Comment
-
I just added this, and I'd just like to add another small button that says "swf" next to the IMG button....or wherever it can go. Then, I can get rid of the example url in it, right? (yourdomain.com) Would doing this bring up the box to paste the url in like an IMG or http tag? Or does that require some additional JS?
[swf="http://yourdomain.com/test.swf"]width="300" height="250"[/swf] is replaced with (<embed src=http://yourdomain.com/test.swf type=application/x-shockwave-flash width="300" height="250"></embed>)
Thanks for your help! Much appreciated!
BTW, my vbcode buttons are default right now....just like the ones here, if you need a visual.Last edited by SloppyGoat; Fri 31 May '02, 9:02pm.Comment
-
One other thing I've noticed. When I use the code tag button, the text shows up black, and I have a black background, so it's invisible! How do I change that?Comment
-
-
-
Hey thanks man! I knew there was going to be some JS in there somewhere. It worked perfectly.Last edited by SloppyGoat; Sun 30 Jun '02, 9:05pm.Comment
Related Topics
Collapse
-
by GuestI've made a simple but effective hook to show three buttons in the lower right corner of the forum.
I've use the standard buttons of vBulletin, so they are in the default style and integrate...1 Photo-
Channel: vBulletin 5 Tutorials
Wed 26 Feb '14, 3:52am -
Comment