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-05-2001 03:17 PM

Hello JJR512,

I tried it again just as you explained and it works fine for me. I'm using IE 5.1.

If there are other browser users out there please give the test board a try and report how the interface reacts, good or bad.

I would really appreciated it.

Up till now I know the following browsers work:

IE 5.X, without errors.(now ;))
NS 4.7, without errors but code/code with text is always added to the end of any previously written text.

Scott

fury 08-05-2001 03:39 PM

IE 5.50.4522.1800, same problem (using the keyboard shortcut method works once, but not the second time)

I just downloaded and installed it today, I should have the latest version

I'll let you know if I can find any glaring issues in the javascript file

s.molinari 08-06-2001 07:06 AM

Hello All,

Yep IE 5.5 is screwy when you use the access keys(alt+i for example). Don't know what the prob is but obviously a Browser discrepancy. IE 5.1 works fine. I'll try and see what I can do.

All I can say is just use the buttons for now. :)

Scott

JJR512 08-07-2001 03:00 AM

As I said earlier, this problem also occurred not just in 5.5, but the 6 Beta as well. The thing with the 6 Beta was that it didn't matter how you used the code the first time. I mean, you could put in the first code by using the keyboard shortcut, or by clicking the button. The thing was that the second time you used a code, like if you tried to close the tag, it wouldn't work by keyboard.

That said...

Tonight I checked Windows Update (on Microsoft's site, you know, the link that's on the Tools menu of IE), and noticed there was a new IE 6 Beta available. I downloaded/installed it, and interestingly, everything works fine now. I tried everything I could think of to test it, multiple codes at once, some by keyboard, some by button, mixing by opening with the button and closing with the keyboard, etc. Everything seems to work fine.

So if what you said is true: That IE 5.1 works fine, but 5.5 does not, and the original 6 Beta does not, then users will need to upgrade their 5.5 or original 6 Beta to the newest 6 Beta for this hack to work properly for them.

(BTW, this is all on Win2k; I have no idea if there is a new IE6 Beta for Win95/98/Me.)

theflow 08-24-2001 11:37 PM

Quote:

Originally posted by s.molinari
Hello All,

Yep IE 5.5 is screwy when you use the access keys(alt+i for example). Don't know what the prob is but obviously a Browser discrepancy. IE 5.1 works fine. I'll try and see what I can do.

All I can say is just use the buttons for now. :)

Scott

Scott, this is exactly the hack I've been wanting. Thank you. I know I am late to the discussion, but tubedogg just pointed me to this thread today. I just tried it out on your test forum here:

http://www.webtroniks.de/showthread.php?&threadid=8

and I only used the buttons, not the keyboard commands, and all was well. I use IE 5.5/ windows 2000 pro... I will probably test out keyboard commands later. I didn't even know there were keyboard equivalents for vB code. doh!

Streicher 11-11-2001 08:24 AM

Is this hack working with version 2.2.0?

Grover 11-12-2001 01:40 PM

<font size="4">O MY GOD!</font>

This is just EXACTLY what I was looking for all the time since I am using VBulletin!!!
This just has to be the BEST hack I have ever seen, yes: I AM serious!

It improves Vbulletin enormously. It was just THE most irritating part of the Vbulletin software that it was such a hassle to put the message-tags into a message.

I am thrilled that you produced this hack, Scott! Jelsoft just HAVE TO implement it in a future release. They just MUST. A BIG, BIG improvement, if you'd ask me.

Hope that you will fix all possible bugs and that your hack will be used in the future.
~Grover.

LuBi 11-18-2001 06:32 AM

Quote:

Originally posted by Streicher
Is this hack working with version 2.2.0?
I don't believe so, we have 2.2.1 now and these posts are from months ago.. for the most part. Correct me if I'm wrong. ;)

Admin 11-18-2001 06:53 AM

Ok, let's see how this works here. :)
PHP Code:

<?php
echo "This is working good.";
?>


LuBi 11-18-2001 07:05 AM

Quote:

Originally posted by FireFly
Ok, let's see how this works here. :)
PHP Code:

<?php
echo "This is working good.";
?>


What the?

punkbull 11-18-2001 01:12 PM

If I install this hack, will my Netscape users still be able to use the smilies normally?

LanciaStratos 11-19-2001 09:24 PM

Working perfect on 2.2.0! :D Great hack, thanks s.molinari! :cool:

LuBi 11-20-2001 01:47 AM

When i try to edit a post, the body part where I would edit the text posted is blank now?

DarkReaper 11-20-2001 02:53 AM

Quote:

Originally posted by FireFly
Ok, let's see how this works here. :)
PHP Code:

<?php
echo "This is working good.";
?>



LOL! :)

LuBi 11-27-2001 02:42 PM

I still need help with this code. After I installed it when members would go to edit a post the body where their text was is blank. Can anyone help me out my members are bothered by it big time :eek: mad emails

JJR512 11-27-2001 03:58 PM

Did you correctly make the necessary changes to the editpost template?

LuBi 11-27-2001 04:09 PM

Well I'll re-install and go over everything again. thanks

TheUnforgiven 11-28-2001 06:19 PM

*bump* hehe i just needed this hack...

Mutt 11-28-2001 09:32 PM

Hey everyone. I just installed this at
CCDV.com and love it, but it's missing something. when you highligh text in normal mode it correctly grabs the text and sticks in in the popup then inserts the vbcode around the text, but when in enhanced mode, the highlighted text gets lost. this is a problem

I wrote the original UBB Code buttons hack back in the day which was later used by the vb team to build these great vbcode buttons. (hey vb team, great job by the way. your code is damn pretty compared to my old messy code.) I was disappointed to see that the vbcode buttons were missing the cursor possition and highlighted text enhancements so it's great to see this addon hack.

real quick, I got a fix for this and wanted to share.

here are 2 new functions. replace the ones in this hack with these new functions and it will work.

code removed due to some error. I reposted it on the next page as an txt attachment and that code works fine.

now when in enhance mode, if you highlight some text and hit any of the top row vbcode buttons or dropdowns and the text will get surrounded by the begining and ending vbcode tags. the bottom row buttons will still open prompts.


I hope it isn't a problem for me posting this code. if this is some copyright violation or something, feel free to delete.

JJR512 11-28-2001 10:53 PM

I tried your replacements, Mutt, and what happens to me now is that in enhanced mode, if I select some text and hit a button, the text is replaced by the opening tag, not surrounded by the opening and closing tags.

Mutt 11-29-2001 01:00 AM

thats what used to happen before the new functions.

let me look at it and see if something was missed. are you sure you deleted the 2 old subs and replaced them with these 2?

JJR512 11-29-2001 01:09 AM

I selected each entire function and pasted the newer version from your earlier post over each.

To be sure, I tried it again, with the same results.

FWC 11-29-2001 01:54 AM

Quote:

Originally posted by JJR512
I selected each entire function and pasted the newer version from your earlier post over each.

To be sure, I tried it again, with the same results.

Same here. I thought it was just me. :)

Princeton 11-29-2001 02:23 AM

Does anyone know if this is working with the latest vb version?

FWC 11-29-2001 03:02 AM

Quote:

Originally posted by princeton
Does anyone know if this is working with the latest vb version?
The hack in the first post works great with 2.2.1.

Mutt 11-29-2001 09:50 PM

did you replace the fxns in the new hack javascript or the original script that comes with VB? these would only work in the new hacked javascript from the first post in this thread. I just redownloaded my copy and checked it. this is the code I used.

I'm going to try uploading the functions as an attachment.

if it still doesn't work, sorry. I tried :)

Once again, here are the directions.

Install the new vbcode javascript hack. then go into vbcode.js and replace function vbcode and function fontformat with the ones in this attachment.

this should improve text highlighting in enhanced mode

Mutt 11-29-2001 09:52 PM

with the original hack installed, have any of your members experienced any posting problems., javascript errors, or browser crashes?

FWC 11-29-2001 10:09 PM

Quote:

Originally posted by Mutt
with the original hack installed, have any of your members experienced any posting problems., javascript errors, or browser crashes?
My users and I have had no problems with Scott's hack.

FWC 11-29-2001 10:10 PM

Quote:

Originally posted by Mutt
if it still doesn't work, sorry. I tried :)

Still doesn't work for me. Thanks for trying! :)

Hooper 11-29-2001 10:38 PM

Quote:

Originally posted by FWC
Still doesn't work for me. Thanks for trying! :)
I'm lost. A post above says great in the latest vb version and this says it doesn't work? or does it?

Thanks

JJR512 11-29-2001 10:50 PM

Mutt, I edited in the new functions from your attached text file, and after that, it worked fine. Just to double-check myself, I tried editing the code from your earlier post over the code from your attached text file, and once again, it did not work fine. Finally, I reapplied the code from the attached text file, and all was well. That leads me to believe there is something wrong with the code you posted in the message, because that doesn't work while the code in the attachment does.

FWC 11-29-2001 10:55 PM

Quote:

Originally posted by Hooper


I'm lost. A post above says great in the latest vb version and this says it doesn't work? or does it?

Thanks

The original hack by Scott works fine. Mutt enhanced the hack. Unfortunately, the enhancement doesn't work on my board. It does for Mutt and JJR. Simple. :cool:

Hooper 11-30-2001 12:48 AM

Ah,,,, Ok.

Thank you for the clarification. Much appreciated.

admiralapril 12-03-2001 05:27 AM

Thank you for this great hack! It's working fine over here. :)

Parker Clack 12-03-2001 12:53 PM

This hack is working great with IE 6.0 on 2.2.0 but it does put an extra space between the code and the body of the text that isn't needed. Any way to reduce this? Also, in Netscape the code and smilies are inserted in the right place in the text but then the cursor returns back to the beginning of the message.

Ideas?

BTW, Mutt. I loved the work you did with the UBB code buttons. I used them for years.

Parker

Airwaves 12-04-2001 11:58 AM

If it is that good, I darent install it yet, why dont the developers include it in future versions of vbulletin ?

And you can the devs can work together to perhaps fix the netscape and the more similies pop-up window box?

LuBi 12-12-2001 04:23 AM

Quote:

Originally posted by Parker Clack
This hack is working great with IE 6.0 on 2.2.0 but it does put an extra space between the code and the body of the text that isn't needed. Any way to reduce this? Also, in Netscape the code and smilies are inserted in the right place in the text but then the cursor returns back to the beginning of the message.

Ideas?

BTW, Mutt. I loved the work you did with the UBB code buttons. I used them for years.

Parker

I think the smilies add a space before and after. So since this code puts them exactly where the cursor is since your used to putting a space then hitting the smilie. I dunno I guess thats why..

Anyhow this hack doesn't work for me, I installed it and cannot uninstall it. I don't really want to uninstall but my members cannot edit their posts when they try to the body of their post comes up blank...? Any ideas?

LuBi 12-12-2001 04:29 AM

Quote:

Originally posted by JJR512
Did you correctly make the necessary changes to the editpost template?
Yes I did that, still comes up blank.. what other things might ih ave done wrong to cause this? Thanks!

LuBi 12-12-2001 03:39 PM

Just wanted to say thanks to everyone who helped me out, I got it working it was the editpost thingy. The $postinfo[message] was what threw me off. Now my members can edit their posts!?!

s.molinari 12-27-2001 03:54 PM

Hello everyone,

I deleted my demo link since I have the best demo there is. vB.org.:)

Scott

It works perfect with IE6. I just upgraded to XP.


All times are GMT. The time now is 11:19 AM.

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.01441 seconds
  • Memory Usage 1,831KB
  • 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
  • (3)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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