MyBB Community Forums

Full Version: Need help [ Urgent]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I write a small java script for keyboard layout change. It is Not working but it work on phpbb . This Code is bellow and it will be used in new Thread and New reply page:
Quote: <script type="text/javascript">
if ( readCookie( 'kbsetting' )=='ujy' )
{
makeUnijoyEditor('subject');
makeUnijoyEditor('message');

switched=false;
setCheckedValue(document.forms['editorform'].elements['layoutGrp'], 'unijoy');

}
else if ( readCookie( 'kbsetting' )=='pbh' )
{
makeProbhatEditor('subject');
makeProbhatEditor('message');

switched=false;
setCheckedValue(document.forms['editorform'].elements['layoutGrp'], 'probh');

}
else if(readCookie( 'kbsetting' )=='phn')
{
makePhoneticEditor('subject');
makePhoneticEditor('message');

switched=false;
setCheckedValue(document.forms['editorform'].elements['layoutGrp'], 'phonetic');
}
else if(readCookie( 'kbsetting' )=='eng')
{
switched=true;
setCheckedValue(document.forms['editorform'].elements['layoutGrp'], 'english');
}
else
{
switched=true;
setCheckedValue(document.forms['editorform'].elements['layoutGrp'], 'english');
}
</script>

Now my question is his ok for using in mybb?


I also add the source of java keyboard layout on <head> -- </head>.
Quote:<script type="text/javascript" src="bangla/phoneticunicode.js"></script>
<script type="text/javascript" src="bangla/unijoy.js"></script>
<script type="text/javascript" src="bangla/probhatunicode.js"></script>

And lastly i add this code given below for show the keyboard layout changer.
Quote: <fieldset><legend><font color=red>Typing Method :</font></legend>
<input type="radio" name="layoutGrp" onclick="makeUnijoyEditor('subject');makeUnijoyEditor('message');createCookie('kbsetting' ​,'ujy',30);switched=false;" value="unijoy" > UniJoy <input type="radio" name="layoutGrp" onclick="makeProbhatEditor('subject');makeProbhatEditor('message');createCookie('kbsettin ​g','pbh',30);switched=false;" value="probh" > Probath <input type="radio" name="layoutGrp" onclick="makePhoneticEditor('subject');makePhoneticEditor('message');createCookie('kbsett ​ing','phn',30);switched=false;" value="phonetic" > Phontecs
<input type="radio" name="layoutGrp" onclick="createCookie('kbsetting','eng',30);switched=true;" value="english" > English<hr/>
[ <a href="./virtualkeyboard.php" onclick="window.open('./virtualkeyboard.php', 'VirtualKeyboard', 'height=230,width=450,resizable=no,scrollbars=no,left=50,top=400,screenX=50,scre ​enY=400,status=no,menubar=no,toolbar=no,location=no,directories=no'); return false;"> Popup Mouse Bangla Keyboard</a> ]
</fieldset>
I add this on new replay and new thread page.

Now my question is his ok for using in mybb? Because i try to use it but it not work on mybb!! Plesee help
can i used this code given bellow with mybb.
Quote:<fieldset><legend><font color=red>Typing Method :</font></legend>
<input type="radio" name="layoutGrp" onclick="makeUnijoyEditor('subject');makeUnijoyEditor('message');createCookie('kbsetting' ​ ​,'ujy',30);switched=false;" value="unijoy" > UniJoy <input type="radio" name="layoutGrp" onclick="makeProbhatEditor('subject');makeProbhatEditor('message');createCookie('kbsettin ​ ​g','pbh',30);switched=false;" value="probh" > Probath <input type="radio" name="layoutGrp" onclick="makePhoneticEditor('subject');makePhoneticEditor('message');createCookie('kbsett ​ ​ing','phn',30);switched=false;" value="phonetic" > Phontecs
<input type="radio" name="layoutGrp" onclick="createCookie('kbsetting','eng',30);switched=true;" value="english" > English<hr/>
[ <a href="./virtualkeyboard.php" onclick="window.open('./virtualkeyboard.php', 'VirtualKeyboard', 'height=230,width=450,resizable=no,scrollbars=no,left=50,top=400,screenX=50,scre ​ ​enY=400,status=no,menubar=no,toolbar=no,location=no,directories=no'); return false;"> Popup Mouse Bangla Keyboard</a> ]
</fieldset>



I am only want to now is this code is correct for mybb. i want to add new replay and new thread page!
Wait... What?
Thanks for your response.
(2009-02-02, 02:32 AM)RenegadeFan Wrote: [ -> ]Wait... What?

For keyboard layout change. I made at last 4 post for help in my issue.
You can also see my another post about this. Plsee Help me . Its to Urgent. Huh
http://community.mybboard.net/thread-44207.html
What is this supposed to do exactly? Also, a link to your forum and a demo account?
I replied to the other thread.

Kind Regards,
TomL
Ok:

Address: http://tfmpoint.com/MyBB

user id = demo
password : 589331

Plesse go the forum-- New Thread.
Thanks for the link and account, but...
(2009-02-02, 02:53 AM)TomL Wrote: [ -> ]What is this supposed to do exactly?
exactly i want to embedded a bangla keyboard. Bangla Keyboard has very layout. Most of Them Bijoy, Probath, Unojoy, Phonetics are very favorites. So i want

When i click unijoy radio button the unijoy keyboard layout will activated as default keyboard that i want.
And other also same.

Pless Help Me