2010-05-24, 12:27 PM
Hi,
I have 3 suggestions to improve RTL languages support in MyBB 1.6!
1. Default ACP theme is designed for LTR languages. So I edit it and now we have a both LTR & RTL compatible theme: http://community.mybb.com/thread-67333.html
It would be really nice if this theme could be replaced with current one.
2. If in "admin/modules/tools/statistics.php" change all "date" functions to "my_date", we would be able to show "Hijri date" for Persian and Arabic forums. (e.g. 05-24-2010 --> ۱۳۸۹-۰۲-۰۳)
3. Please watch this code!
I think it's a good idea to use a template engine for ACP. So no more need to edit PHP files to customize an ACP theme. On the other hand transferring embedded HTML codes to a template engine like Smarty would be so easy. I promise! ;-)
I have 3 suggestions to improve RTL languages support in MyBB 1.6!
1. Default ACP theme is designed for LTR languages. So I edit it and now we have a both LTR & RTL compatible theme: http://community.mybb.com/thread-67333.html
It would be really nice if this theme could be replaced with current one.
2. If in "admin/modules/tools/statistics.php" change all "date" functions to "my_date", we would be able to show "Hijri date" for Persian and Arabic forums. (e.g. 05-24-2010 --> ۱۳۸۹-۰۲-۰۳)
3. Please watch this code!
echo "<fieldset><legend>{$lang->users}</legend>\n";
echo "<img src=\"index.php?module=tools-statistics&action=do_graph&type=users{$range}\" />\n";
echo "</fieldset>\n";
echo "<fieldset><legend>{$lang->threads}</legend>\n";
echo "<img src=\"index.php?module=tools-statistics&action=do_graph&type=threads{$range}\" />\n";
echo "</fieldset>\n";
I think it's a good idea to use a template engine for ACP. So no more need to edit PHP files to customize an ACP theme. On the other hand transferring embedded HTML codes to a template engine like Smarty would be so easy. I promise! ;-)