miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /  
 

Write in Persian by switchboard

 
Author Prince
Partaker
#1 | Posted: 27 Jun 2010 13:51 
I've found the solution:

This (Persian Language) works for all Browsers (Internet Explorer, Firefox, Google Chrome, ...)

Edit main_post_form.html and paste this script somewhere above

<!--Persian Language Script-->
<script type="text/javascript">
var
arabic =' !"#$%،گ)(×+و-./0123456789:ك,=.؟@ِذژىُيلآ÷ـ،/'د×؛َءٍ،'{ًْإ~جپچ^_پشذزیثبلاهتنمئدخحضقسفعرصطغظ<|>ّ';

function keyenter(ev){
var
acode = window.event ? window.event.keyCode : ev.charCode;
if (acode>31 && acode<128){
if (ev.target){
ev.target.value +=
String.fromCharCode(arabic.charCodeAt(acode-32));
ev.preventDefault();
}
else{
window.event.keyCode = arabic.charCodeAt(acode-32);
}
}
}

</script>
<!--/Persian Language Script-->
just put this onkeypress="keyenter(event)" like this:

<textarea name="postText" id="postText" cols="38" rows="10" class="textForm postingForm" tabindex="2" onkeypress="keyenter(event)">{$postText}</textarea>

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /
 Write in Persian by switchboard
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑