Version: , by s.molinari
Developer Last Online: Sep 2018
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:
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:
When posting, there are two radio buttons in the vbCode field. One for Normal Mode, one for Enhanced. When your testing the functionality of this hack, make sure you try highlighting a word and pressing one of the buttons (B/I/U) with each mode.
somehow I must have messed up the bb tags in normal mode ... in enhanced about 75% of them work but in normal mode not at all
this happens in editpost, newreply, newthread etc
can someone help? where do I need to look in order to fix this :$
Event thread: onclick
Error:
name: TypeError
message: Statement on line 53: Expression evaluated to null or undefined and is not convertible to Object: document.selection
Backtrace:
Line 53 of linked script http://localhost/vBtest/vbcode.js
text = text;
In unknown script
getActiveText(this);
At unknown location
{event handler trampoline}
Line 53 is located in getActiveText() and looks like
Quote:
text = (document.all) ? document.selection.createRange().text : document.getSelection();
Got a new recent issue. In vB 2.3.4 the installation of this hack goes fine. However when using the vB Quick Links toolbar in enhanced mode users who highlight their text and click a button have their text replaced by the code their attempting to use. So instead of making a word bold, the word would be replaced by the
Got a new recent issue. In vB 2.3.4 the installation of this hack goes fine. However when using the vB Quick Links toolbar in enhanced mode users who highlight their text and click a button have their text replaced by the code their attempting to use. So instead of making a word bold, the word would be replaced by the
Code:
[B]
tag. Has anyone had this issue?
I have always had this issue with VB 2.x. I've always had to do the codes by hand. The buttons wouldn't work properly. VB 3.0 rocks, though!