TinyPortal

Development => Support => Installation => Topic started by: vivid on June 26, 2007, 06:08:44 PM

Title: how to change TP direction to be from right to left
Post by: vivid on June 26, 2007, 06:08:44 PM
Hi,
I need to change the direction of the index.template.php
to be from right to left
bcz I am using Arabic Language.


also my Tp is instaledl very good
but in admin cpanel when I click on frontpage the page seem hang in ENTERNET EXPLORER but in FIREFOX it is working very good why?
Title: Re: how to change TP direction to be from right to left
Post by: IchBin on June 26, 2007, 09:20:27 PM
Not sure about how to fix the Right to Left issue, but I know there is another user here on TP that has done this that is using Arabic as well. Search for Arabic and I'm sure you can find it.

If one browser is working well and the other is not, its hard to say what could cause it. A link would be nice so we can test it ourselves.
Title: Re: how to change TP direction to be from right to left
Post by: Zetan on June 26, 2007, 09:28:59 PM
The second part of vivids question was previously asked in this topic:
http://www.tinyportal.net/index.php?topic=16854.0
Title: Re: how to change TP direction to be from right to left
Post by: vivid on June 27, 2007, 11:35:51 AM
Quote from: IchBinâ„¢ on June 26, 2007, 09:20:27 PM
Not sure about how to fix the Right to Left issue, but I know there is another user here on TP that has done this that is using Arabic as well. Search for Arabic and I'm sure you can find it.

If one browser is working well and the other is not, its hard to say what could cause it. A link would be nice so we can test it ourselves.

thank you friend,

Mr. Croco solve the direction case

but still the my smf hang in admin cpanel when I click on the choice FRONTPAGE.

the navigator refuses to go up and down smoothly
it need time to move
Title: Re: how to change TP direction to be from right to left
Post by: vivid on June 27, 2007, 11:37:54 AM
Quote from: Zetan on June 26, 2007, 09:28:59 PM
The second part of vivids question was previously asked in this topic:
http://www.tinyportal.net/index.php?topic=16854.0

Sir,

I made all your advice before and upload my smf again. all succeeded but hanging problem remains.
Title: Re: how to change TP direction to be from right to left
Post by: IchBin on June 27, 2007, 07:07:16 PM
What is on your frontpage? Can you show us a link? Test account to access your site if guests aren't allowed?
Title: Re: how to change TP direction to be from right to left
Post by: vivid on June 27, 2007, 07:44:45 PM
Quote from: IchBinâ„¢ on June 27, 2007, 07:07:16 PM
What is on your frontpage? Can you show us a link? Test account to access your site if guests aren't allowed?


hi friend,

this is my site

www.albahala.com/smf

if you need admin password I should send to you in private msg.

Title: Re: how to change TP direction to be from right to left
Post by: IchBin on June 27, 2007, 08:22:09 PM
Can you create a temp admin account and set the language to english so I can take a look? Send in a PM if you'd like.
Title: Re: how to change TP direction to be from right to left
Post by: vivid on June 28, 2007, 07:33:41 AM
Quote from: IchBinâ„¢ on June 27, 2007, 08:22:09 PM
Can you create a temp admin account and set the language to english so I can take a look? Send in a PM if you'd like.

plz check you private msg
Title: Re: how to change TP direction to be from right to left
Post by: IchBin on June 28, 2007, 02:07:15 PM
Well at first I didn't have a problem. Firefox was working just fine. When I switched to Internet Explorer I seen what you're talking about. The page is reallllllllly slow on the frontpage in TinyPortal. I tried a few different things but had no success. I don't know why it would do that. Perhaps you can try it in different languages and see if the problem still appears. I can't read your language so it was really hard to navigate.
Title: Re: how to change TP direction to be from right to left
Post by: vivid on June 28, 2007, 07:32:17 PM
I change language to English, but same thing.

is it has any future consequences?

if I wait to update to v1.0 (after release). it may solve this prob.?

Title: Re: how to change TP direction to be from right to left
Post by: IchBin on June 28, 2007, 07:51:49 PM
Actually, I just went in and changed the admin acount you gave me to English and the frontpage settings in TPadmin worked great. It has something to do with your language. I'm not sure what. Take a look for yourself and see if it works for you now.
Title: Re: how to change TP direction to be from right to left
Post by: vivid on June 28, 2007, 08:08:26 PM
I should work with firefox . who knows, it may fix in the next version
Title: Re: how to change TP direction to be from right to left
Post by: Crip on June 28, 2007, 08:12:14 PM
TP's only direction is U^P! :P
Title: Re: how to change TP direction to be from right to left
Post by: Mossa TheGreat on July 02, 2007, 01:37:27 PM
Vivid, would you please tell us how you changed TP or TinyPortal's directions? Please I need the solution myself!
Title: Re: how to change TP direction to be from right to left
Post by: Hadi on October 04, 2007, 10:06:33 PM
Quote from: Mossa TheGreat on July 02, 2007, 01:37:27 PM
Vivid, would you please tell us how you changed TP or TinyPortal's directions? Please I need the solution myself!
Title: Re: how to change TP direction to be from right to left
Post by: G6Cad on October 05, 2007, 03:08:46 PM
I think the solution is in the index.template.php file for the themes in use.
If you open the file and search for // Show right to left and the character set for ease of translating.

You see that you can change the direction there from $context['right_to_left'] to (i hope)
$context['left_to_right']

And the following "rtl" to "ltr"

You have to search in the file as there are several places you have to change it.
I havent tried this, so be sure to make a backup of the file before you start to change anything so if it is wrong, you can add the old one back again.