PDA

View Full Version : for arabic users some tips :)


majed
October 10th, 2005, 05:50 AM
hi all

just to help any arabic user use photopost i have two things


first if u want to ur users to register with arabic names and spaceses

like

ماجد سلطان

go to this file

pp-inc.php

find this function




function wordchars( $string ) {
global $Globals;
$stripstring = ereg_replace( "[^a-zA-Z0-9/\: _\-]", "", $string );
if ( strcmp($string, $stripstring) ) {
diewell( $Globals['pp_lang']['erroruser'] );
}
return ( $stripstring );
}



and replace it with this





function wordchars( $string ) {
global $Globals;
$stripstring = ereg_replace( "[^a-zA-Z0-9/\: _\-أإئ ا-ي ؤء]", "", $string );
if ( strcmp($string, $stripstring) ) {
diewell( $Globals['pp_lang']['erroruser'] );
}
return ( $stripstring );
}





2- find this

<html>

and replace it by this

<html dir=rtl>

it will work ok with u

thx alot for all

majed
October 10th, 2005, 05:56 AM
second tip is how to convert the alignment in all the photopost from left to right

u should go to the template folder and edit all the files there


replace any "" left "" to "" right "" and u r done or

take all these files in the attachment and replace them in ur template file to save ur time :)


hope any one have something useful for arabic users post it in this site :)

i sont know if this is the write forum :)

Michael P
October 10th, 2005, 08:33 AM
Thanks for helping with that, I was trying to get Arabic to work on my system the other day for testings and wasn't sure what to do.

majed
October 11th, 2005, 02:05 AM
:) u r welcome

Michael P
October 11th, 2005, 02:27 PM
Only thing was we can't post the pp-inc.php file you had attached; anyone who uplaods it may find conflicts with the current version if that file becomes not current; so a description of the changes is best.

majed
October 12th, 2005, 02:38 AM
:) u r the admin and u know what is best

thx :)

majed
March 14th, 2006, 06:25 AM
hi all this is also very nice topic for u in the admin side there is some problems like if u want to write

ÇáÓíÇÑÇÊ instead of السيارات

c it here

http://www.photopost.com/forum/showthread.php?t=122567


thx :)