vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   New vbcode.js - vBcode and smilie user interface improvement (https://vborg.vbsupport.ru/showthread.php?t=24033)

s.molinari 08-03-2001 04:36 AM

Sorry about the java script thingy. That I believe is a special function of the [code] tag in the vbcode parser. It does that to avoid people writing JS in their posts and using willfully or not to mess up vB. I may be wrong though. :)

For those of you who cut and paste the code out of my directions please do not forget to delete the space between java and script.


Scott

JJR512 08-04-2001 03:18 PM

Mostly this hack seems to work fine, but I did notice one odd thing. When in Enhanced Mode, if you use the keyboard shortcuts for the various tags (like Ctrl+I for italics), the codes do not show up in the message. They don't show up anywhere, even at the end. The really odd thing is that the status window acts as if the code is there; if you hit Ctrl+I twice, for example, on the second time it will tell you that "You already have an open tag of this type".

Enhanced Mode works fine if you actually click the buttons. It's just the keyboard shortcuts that don't work anymore. Can a way be found to get them working again?

s.molinari 08-05-2001 01:57 AM

JJR512,

What Browser are you using? With IE 5.+ it works fine. The keypress doesn't work with NS 4.7. But then again the whole script doesn't work right with NS.

Scott

JJR512 08-05-2001 03:56 AM

It's IE6 beta, updated as far as I know. Windows 2000 Pro, if it helps.

JJR512 08-05-2001 04:03 AM

I just noticed another odd thing.

For the record, what I mentioned earlier was while posting a new thread.

This happens while posting a reply.

In Enhanced Mode, if I click the I button to begin italic text, the tag appears, and I type the text. When I click the Close Current Tag button, the /i tag appears. But if instead I click the Close All Tags button, the /i tag appears, immediately followed by another tag that says /undefined. (This also happens while starting a new thread.)

s.molinari 08-05-2001 04:28 AM

I've recreated the /undefined problem. I'll look into that. Is the alt+i or b or u still not working?

Scott

JJR512 08-05-2001 04:40 AM

No...well sort of.

Here's another aspect of the problem which looks like it's getting weirder and weirder.

If I click on "New Reply", if I'm in Normal Mode, and I hit alt+b and put some text in the pop-up box, the text, along with the bold codes, appears in the message. But if I do it again, after the first time, the popup box will appear, but when I press Enter, nothing new shows up in the message area. It doesn't matter which code I try to use the second time; it just won't work.

It looks to be similar in Enhanced Mode...the first time I use a keyboard shortcut, it shows up where the cursor is. But when I try to close it or begin a new tag, nothing new shows up. For example I can hit alt+b and the b tag shows up, but when I hit alt+x, the /b tag does not show up. If I hit alt+x again, the status thing tells me there are no open tags to close.

s.molinari 08-05-2001 07:03 AM

Hello JJR 512,

There was an error in my logic. I have corrected the problem and the new file is ready for upload in my original post. See if it works.

Scott

s.molinari 08-05-2001 07:11 AM

Hello all users of this hack,

There was a small logic error in the script. I used the same variable twice not knowing that variables in JS are considered GLOBAL. At least I think that was the prob. Anyhow, I believe it's fixed. Please download the vbcode.js file again.

Scott

JJR512 08-05-2001 02:24 PM

Even on your test board I'm having the same problem. That is, (Normal Mode, btw) if I hit alt+i, type in some text in the popup box, hit Enter, the text I typed shows up with the codes around it. So that's fine. But if I do it again, the popup box shows up, I type in my text and hit Enter, but nothing happens. The text I just typed does not go into the message, and no codes go into the message, either. The original text is still there; it's just that the new stuff doesn't go into the message.

So if it works fine for you on your test board, but doesn't work for me, then maybe that means the problem is with IE6? Can anyone else with IE6 try it on the test board?


All times are GMT. The time now is 10:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01235 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete