MyBB Community Forums

Full Version: RTL languages & Jalali date
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!

	echo "<fieldset><legend>{$lang->users}</legend>\n";
	echo "<img src=\"index.php?module=tools-statistics&amp;action=do_graph&amp;type=users{$range}\" />\n";
	echo "</fieldset>\n";
	
	echo "<fieldset><legend>{$lang->threads}</legend>\n";
	echo "<img src=\"index.php?module=tools-statistics&amp;action=do_graph&amp;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! ;-)