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:
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.
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.
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.
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?
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!?!