Firefox PHP

A patch I have made for hebrew integrity in phorum!

Posted by GibsonLP 
Hello there.
I am attaching a small patch I have made in order to print Hebrew posts on the right way (from right to left, including everything needed such as "." on the right place, Hebrew/English together, etc...)

This should work for Arabic as well, eventhough I havn't tested it and it might require a small modification...

You should NOT put this patch in case and you are having posts in langages other than English/Hebrew since this will align all posts containing the characters à - ú to the right... The Swedish langauge for example have some of these letters used... Maybe you guys from phorum.org could put it on phorum 3.3, and enable/disable it from the admin screen (Default = off...) so your forum will work well for Hebrew/Arabic writers as well (It looked awful before...)

Here's the patch...:

In read.php, Right before <?PHP echo $body; ?></font><p>

<?PHP
////////////////////////////////////////
// Alignment Patch by GibsonLP Starts //
////////////////////////////////////////

if (preg_match("/[à-ú]/", $body)){
$alignment="dir=rtl";
}
else{
$alignment="dir=ltr";
}

//////////////////////////////////////
// Alignment Patch by GibsonLP Ends //
//////////////////////////////////////
?>
<p <?PHP echo $alignment; ?>>
Sorry, you do not have permission to post/reply in this forum.