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:
Originally posted by VirtueTech 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...
If you had gotten the first script I posted here,
the one that was deleted, then you definitely have a faulty script. At the time I posted it, I too didn't test it with NS. My mistake......... or Netscapes?
The script in this post should work with NS(I tested it with 4.7). I racked my brains and searched all over the internet trying to find a fix to get it to work like it does with IE. All I was able to manage is that no errors come up with NS, but the functionality is, unfortunately, as it always was. i.e. the code is always added to the end of any previously written text. Another reason from hundereds why NS users should change over to the Explorer!
Ok question: Is there any way to make this script work with the "Get More Smilies" pop-up window. So that when they click on a smiley in the pop-up window that it updates the textarea in the last spot the cursor was?
Originally posted by VirtueTech Ok question: Is there any way to make this script work with the "Get More Smilies" pop-up window. So that when they click on a smiley in the pop-up window that it updates the textarea in the last spot the cursor was?
This is a valid problem, which I have tried to get rid of. Haven't found the trick yet.
I found a fix for the "get more" smilies popup window prob.
Many thanx goes to Vincent Puglia at www.pageresource.com. He basically solved the prob for me with his tips.
In the vbcode_popup_smilies template you must delete the following code:
Uh....guys I think there is a small problem with the vbcode parser! It should read "javascript : opener.smilies" without spaces and the embarrassed face.
Been there, done that. The responses I got from my members were 100X more viscious than the responses I got when I tried disabling post counts. You might think I had imposed a one post allowed per week per user curfew!
Does somebody have a test area on their board where guests can make post. I would like to link to it as a demo to show everyone what the new script does.
I would link to my own board but it's in german and is original vB!