EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   Site Help & Suggestions (https://www.eq2interface.com/forums/forumdisplay.php?f=12)
-   -   Smilies/Post Buttons in Mod Attachments (https://www.eq2interface.com/forums/showthread.php?t=2338)

Drumstix42 04-02-2005 09:14 PM

Smilies/Post Buttons in Mod Attachments
 
When I'm editing a UI or submitted a UI in the attachment post, the follow do not work:

-Smilies
-Buttons (Bold, underline, image, ect)
-Font/size/color

I'm not sure if this is a code-related problem or some kind of cookie issue? I have no clue really. I tried doign a few things to fix it, but no go.

Dolby 04-03-2005 12:24 AM

I'm using FF1.02 and dont experience this problem. Does it only happen after you attach an image or just when you click the edit button and try to edit the description? Are you using the WYSYWIG editor (check under user options)?

Drumstix42 04-03-2005 02:10 AM

Not using WYSYWIG option, and let me experiment more with it to give more info.

taco-man 04-03-2005 03:59 AM

i know this much, mozilla is "retarded" when it comes to dealing with text. compare...
the scripting it takes to do the button for IE:
Code:

                if (text.substring(0, vbcode.length + 2 ) == "[" + vbcode + "]" && text.substring(text.length - vbcode.length - 3, text.length) == "[/" + vbcode + "]")
                {
                        AddTxt = text.substring(vbcode.length + 2, text.length - vbcode.length - 3);
                }
                else
                {
                        AddTxt = "[" + vbcode + optioncompiled + "]" + text + "[/" + vbcode + "]";
                }
                AddText(AddTxt);

the scripting it takes to do the button for Mozilla:
Code:

                var start_selection = theform.message.selectionStart;
                var end_selection = theform.message.selectionEnd;

                // fetch everything from start of text area to selection start
                var start = (theform.message.value).substring(0, start_selection);
                // fetch everything from start of selection to end of selection
                var middle = (theform.message.value).substring(start_selection, end_selection);
                // fetch everything from end of selection to end of text area
                var end = (theform.message.value).substring(end_selection, theform.message.textLength);

                if (middle.substring(0, vbcode.length + 2 ) == "[" + vbcode + "]" && middle.substring(middle.length - vbcode.length - 3, middle.length) == "[/" + vbcode + "]")
                {
                        middle = middle.substring(vbcode.length + 2, middle.length - vbcode.length - 3);
                }
                else
                {
                        middle = "[" + vbcode + optioncompiled + "]" + middle + "[/" + vbcode + "]";
                }

                theform.message.value = start + middle + end;
                setfocus();
                theform.message.selectionStart = end_selection + middle.length;
                theform.message.selectionEnd = start_selection + middle.length;
                return false;



All times are GMT -5. The time now is 10:47 AM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI