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 inetd Please post screenshot of this hack.
Hello inetd,
A screen shot is practically useless. The improvement is in the functionality and you can't take a picture of that. A screen shot would look just like any other vB Board. You wouldn't see a difference.
I made the hack and it took me 120 seconds. Seriously, about 10 minutes and the hack should be up and running. I believe my instructions are a bit more cumbersome than the actual work that they describes. So don't let my longwindedness scare you.
Scott - I added the 'get more' smilies additon...works awesome....it even brings the user back to their textarea in the original window after.
I'm sure if we wanted we could even put a 'close window' in the link to so that once they choose the smilie and added it...it closed the window all in one click.
I wonder if that would be good....or if the window should stay open.
Here is the code to CLOSE the 'get more smilies' window after you click. This will allow the process of adding and closing the 'get more smilies' window a one click process.
AFTER you make both Scotts changes just change your vbcode__popup_smiliebits
Very simple and makes things cleaner. Not for everyone though....some people might want to leave the window open to add more. But I'll just let the user open the window again.
Thanks again Scott and Vincent Puglia for this....truly a simple yet very useful addition.
except that problem with the space between the java and script drove me crazy hahahah I installed the hack twice and removed it then I noticed the space problem now it's working fine