Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by s.molinari s.molinari is offline
Developer Last Online: Sep 2018 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-29-2001 Last Update: Never Installs: 102
 
No support by the author.

Hello vB Troopers,

With special permission from the Dev Team I am proud to release an improved version of vbcode.js. Any usage of this script other than in licensed vBulletin driven Boards is a direct violation of Jelsoft copyrights. Any violators will be prosecuted to the full extent of the law!

One MAJOR Improvement(note: only works with IE, NS users are out o luck! But who uses NS anyway?)

vBcode and smilies will be inserted wherever the cursor is instead of at the end of the text.

Installation
Copy the new vbcode.js file over your old one(see "Another small note" below). If you'd like to keep the old file just rename it before copying the new one.

You need to add the following text to the "message" textarea tag:
Code:
onChange=getActiveText(this) onclick=getActiveText(this)
It should basically look similiar to this:
Code:
<textarea name="message" rows="20" cols="$textareacols" wrap="virtual" tabindex="2" 
onChange=getActiveText(this) onclick=getActiveText(this) >$message</textarea>
Please note: The variable($message) may be different in some templates, editpost for example, so make sure to keep the original variable in the textarea attribute "name =". Otherwise the text may be missing in some instances.

This textarea can be found in the following templates:

Calendar Templates

calendar_enterevent

New Posting Templates

newreply

newthread

Private Messaging Templates

priv_forwardmultiple

priv_sendprivmsg

priv_sendtobuddies

and the editpost template

additional template changes

In the vbcode_popup_smilies template you must delete the following code:
Code:
<script language="JavaScript">
function smilie(smilietext) {
        opener.document.vbform.message.value += smilietext+" ";
        //opener.vbform.message.focus();
}
</script>
In the vbcode__popup_smiliebits template you must change:
Code:
<a href="javascript:smilie('$smilie[text]')">
to:
Code:
<a href="javascript:opener.smilie('$smilie[text]')">
small note:If you use the above code pleas omit the space between java and script.


If these changes aren't made the new script WILL NOT WORK!

I hope to hear from those who use it, and please let me know if you find a bug.


vB.org is using this hack. Try it out!

Scott

Latest release date: 20.04.2002
Any version older than this should be updated.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 08-05-2001, 03:17 PM
s.molinari's Avatar
s.molinari s.molinari is offline
 
Join Date: Nov 2001
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #43  
Old 08-05-2001, 03:39 PM
fury's Avatar
fury fury is offline
 
Join Date: Oct 2001
Location: Indiana
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #44  
Old 08-06-2001, 07:06 AM
s.molinari's Avatar
s.molinari s.molinari is offline
 
Join Date: Nov 2001
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #45  
Old 08-07-2001, 03:00 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
  #46  
Old 08-24-2001, 11:37 PM
theflow theflow is offline
 
Join Date: Aug 2002
Location: San Francisco
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #47  
Old 11-11-2001, 08:24 AM
Streicher Streicher is offline
 
Join Date: Oct 2001
Location: Reinbek, Germany
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this hack working with version 2.2.0?
Reply With Quote
  #48  
Old 11-12-2001, 01:40 PM
Grover Grover is offline
 
Join Date: Nov 2001
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<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.
Reply With Quote
  #49  
Old 11-18-2001, 06:32 AM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #50  
Old 11-18-2001, 06:53 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, let's see how this works here.
PHP Code:
<?php
echo "This is working good.";
?>
Reply With Quote
  #51  
Old 11-18-2001, 07:05 AM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FireFly
Ok, let's see how this works here.
PHP Code:
<?php
echo "This is working good.";
?>
What the?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:35 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04904 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete