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:
@lanciastratos I do believe it's a browser problem. I use IE6 and had no such problems. I did have the situation that the smilies didn't work at all after opening different reply screens but my messages never disappeared.
Originally posted by s.molinari @fwc - Highlighting was never intended. It works for some and for others it doesn't. I do believe though the basic functions are stable.
Scott
Yes, the basic functions are very stable. But, highlighting seems to work for most of my users and they love it.
It's kind of funny because a lot of what I've heard from folks about this hack pertains to how great the (unintentional?)highlight feature is. Serendipity
Quote:
Originally posted by s.molinari
I don't think that part works. But it does let you place a tag or a smilie where you want it.
I'm probably not allowed to do this, but adding the following function:
Code:
function insertGenericTwoParter(theForm, theValue, theMessage, defaultArg){
//theValue is the vb code
//theMessage is the message asking for the argument to the VB code
var arg=prompt(theMessage, defaultArg);
if (!arg) return; //end on cancel.
var theText=prompt("Enter text to insert between the "+theValue+" tags", "");
if (!theText) return; //end on cancel.
var tempText= "["+theValue+"="+arg+"]"+theText+"[/"+theValue+"]";
AddText(tempText,theform);
theform.message.focus();
}
...into the same .js file allows you to add new buttons for new effects at will, without having to re-hack the file.
Nice work, but i still good a closing undefined when i use just one opened tag. When i use bold and italic or italic an underlined etc, it works fine!
-> IE5.5, W2K SP2