![]() |
Ok, I'm not sure if this has already been done. I checked Kier's original hack and I searched for other possible hacks and didn't find any.
This hack or code improvement, as I would like to call it, helps out with the problem of the vBcode or smilies always being added to the end of the text in the textarea box. In other words no matter where you would like to add a vBcode or smilie it will always be placed at the end of the text written. The new vbcode.js script below will fix this. With this improvement you could go any where in the text that you have written and add smilies or format the text in what ever way you would like. The added vBcode or smilie will always be inserted at the point where the cursor is. Please note: You must add the following in the textarea tag for the message, otherwise the new script will not work. You'll find these textareas in the newreply and newthread templates. Your new textarea tag should look like this(red code denotes the chages that should be made): Code:
<textarea name="message" rows="20" cols="$textareacols" wrap="virtual" tabindex="2" Enjoy and let me know what you think. Scott |
oops.......pressed the wrong botton. Here is the file.
Scott |
huh is the change in vb_code.js and the newthread and newreply as well?
|
Quote:
Make more sense now? Scott |
Quote:
|
Please remember to not post vBulletin source code *which* includes the javascript files.
|
could you give a better area for description in the new reply and new thread area? Is this a hack for 2.01, because i am not finding these statements for 2.0.
Proximate line locations, or something along those lines? |
Works well,thank you.
|
i must be blind, or this is for 2.01....
|
nevermind. Blind is the answer we are looking for here. :)
|
All times are GMT. The time now is 06:19 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:
|