Back to vBulletin 3.8 Template Modifications

Post Message with Ctrl+Enter
Mod Version: 1.00, by kotkerk

vB Version: 3.8.x Rating: (0 vote - 0 average) Installs: 7
Released: 29 Jul 2010 Last Update: Never Downloads: 0
Not Supported Template Edits  

One template to edit showthread_quickreply
Find:
Code:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:100%; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]"></textarea>
Replace:
Code:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:100%; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]" onKeyPress="if (event.ctrlKey&&((event.keyCode==10)||(event.keyCode==13))){qr_prepare_submit(this.form, $vboptions[postminchars]);}"></textarea>
If you want to show message [Post reply (Ctrl+Enter)], you must edit template SHOWTHREAD
Find:
Code:
value="$vbphrase[post_quick_reply]"
Replace:
Code:
value="$vbphrase[post_quick_reply] (Ctrl+Enter)"
To add this feature to advanced editor, Open template editor_toolbar_on and find:
Code:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="display:block; width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea>
Replace:
Code:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="display:block; width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]" onKeyPress="if (event.ctrlKey&&((event.keyCode==10)||(event.keyCode==13))){this.form.submit();}">$newpost[message]</textarea>
repeat for editor_toolbar_off

Work ONLY in standart editor, NOT WYSIWYG

Download

No files for download.

Similar Mods

Miscellaneous Hacks Forum enter for X message and X day necessary vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024