![]() |
This hack will let you add "spanish" characters to your
vbcode (á é í ó ú Ñ ñ ¡ ¿)! You can follow the same format for other languages, (french, for example û ù, etc.) This is a beta hack, mainly since it's my first "hack". I created it on 2.2.1. 1)edit template vbcode_buttons after: "<input type="button" class="bginput" value="Quote" title="Insert Quote" onclick="vbcode(this.form,'QUOTE','')" onmouseover="stat('quote')"> insert: <!-- extra character hack --> <br> <input type="button" class="bginput" value="á" onclick="extrachara('á')" title="á" onmouseover="stat('aaccent')"> <input type="button" class="bginput" value="é" onclick="extrachara('é')" title="é" onmouseover="stat('eaccent')"> <input type="button" class="bginput" value="í" onclick="extrachara('í')" title="í" onmouseover="stat('iaccent')"> <input type="button" class="bginput" value="ó" onclick="extrachara('ó')" title="ó" onmouseover="stat('oaccent')"> <input type="button" class="bginput" value="ú" onclick="extrachara('ú')" title="ú" onmouseover="stat('uaccent')"> <input type="button" class="bginput" value="Ñ" onclick="extrachara('Ñ')" title="Ñ" onmouseover="stat('capitalene')"> <input type="button" class="bginput" value="ñ" onclick="extrachara('ñ')" title="ñ" onmouseover="stat('lowerene')"> <input type="button" class="bginput" value="¡" onclick="extrachara('¡')" title="¡" onmouseover="stat('exinvert')"> <input type="button" class="bginput" value="¿" onclick="extrachara('¿')" title="¿" onmouseover="stat('quesinvert')"> <br> <!-- /extra character hack --> 2. Edit vbcode.js: At the end of the file, insert: function extrachara(thechara) { //inserts extra character text document.vbform.message.value += thechara; document.vbform.message.focus(); } //end extra character text 3. Edit vbcode_language.js: After: closeall_text = "Close all open vbcode tags"; insert: aaccent_text = "Insert 'á' into your message"; eaccent_text = "Insert 'é' into your message"; iaccent_text = "Insert 'í' into your message"; oaccent_text = "Insert 'ó' into your message"; uaccent_text = "Insert 'ú' into your message"; capitalene_text = "Insert 'Ñ' into your message"; loweene_text = "Insert 'ñ' into your message"; exinvert_text = "Insert '¡' into your message"; quesinvert_text = "Insert '¿' into your message"; |
I am using French. A simple CTRL 130 for exmaple gives me é
and so on |
I agree, but not everyone understands what it means to
do a <Ctrl-130> or <Ctrl-225> etc. This makes it easier for non-technical people that do not have international keyboards to use these characters. |
I wonder how could i do this for the current vB version
|
All times are GMT. The time now is 08:15 PM. |
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:
|