![]() |
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) Code:
<textarea name="message" rows="20" cols="$textareacols" wrap="virtual" tabindex="2" 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"> Code:
<a href="javascript:smilie('$smilie[text]')"> Code:
<a href="javascript:opener.smilie('$smilie[text]')"> 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!:D Scott Latest release date: 20.04.2002 Any version older than this should be updated. |
thanks but i cant install it because im a complete newbie.
|
Quote:
That's all the skills you need.:) Scott |
I have the latest version installed and all is well. :)
I would also like to congratulate the VB team for allowing this file to be posted. You have completely restored my faith with your new common sense approach. It will also reduce the number of hits I was getting to this file on my board. :D |
Hi Scott,
really a great hack! Works like a charm, "installation" was easy. And thanks to the vB Team, too. cu & Gr??e ;) -Tom P.S.: At least it works in NS the way it did before, so this is not really a drawback... |
Found a problem with this hack. If I go to edit a post I made, the content of my post does not show up within the text field. I had to revert my editpost template back to the original. Anyone else experiencing this?
|
Quote:
You were probably a bit too fast. In the editpost template you probably copy and pasted over the $postinfo[message] variable. It is something I should point out in my installation instructions. The textarea in editpost should look like this: Code:
<textarea name="message" rows="20" cols="$textareacols" wrap="virtual" tabindex="2" |
Awesome Scott :)
v cool and works great. |
Quote:
Scott |
I found the script and used it...I had problems with my netscape users...they seemed to get script errors...when this ran.
Not sure what it was...I didn't get to test it with netscape... EDITED - I thought this was the original thread you started. I didn't see the new vbcode.js at the top of the page...I came into this thread via 'lastpost'. I got the last vbcode off Ztsky's site and that one didn't work. This new one you posted works great! Thanks. :) |
All times are GMT. The time now is 03:01 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|