1
homam
Change dirction in the default theme
  • 2004/2/16 13:17

  • homam

  • Just popping in

  • Posts: 3

  • Since: 2004/2/16


Hello ,
How can i change the dirction of the default theme
to be from right to left i try this in theme.html

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>" [b]dir="rtl"[/b]>

sorry of my poor English

best regards
homam

2
homam
Re: Change dirction in the default theme
  • 2004/2/16 13:37

  • homam

  • Just popping in

  • Posts: 3

  • Since: 2004/2/16


i found some thing useful every thing now is ok u should disactive the cash of themes

3
irmtfan
Re: Change dirction in the default theme
  • 2004/2/16 15:30

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:

homam wrote:
Hello ,
How can i change the dirction of the default theme
to be from right to left i try this in theme.html

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>" [b]dir="rtl"[/b]>

sorry of my poor English

best regards
homam


in theme.html find all "<table " and replace it with "<table dir=rtl "

4
Mithrandir
Re: Change dirction in the default theme

perhaps rather do this in the theme css file? Depending of course on whether you want it to be right on ALL tables on the site.

5
irmtfan
Re: Change dirction in the default theme
  • 2004/2/16 19:15

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


for make a real right to left theme u must do this items:

1- in theme.html replace all "<table " to "<table dir=rtl"

then u must work on style.css
2- in style.css replace all "text-align: left" to " text-align: right"

u can change any item at style.css for good performance.
i think u want use themes for persian or arabic site
our team work on some themes and module to make them useful for persian users
this is our site:
http://ict.iut.ac.ir

btw u can see my site www.jadoogaran.com that use EADJ2.1 theme & is specially for harry potter fans in iran.

6
homam
Re: Change dirction in the default theme
  • 2004/2/24 13:42

  • homam

  • Just popping in

  • Posts: 3

  • Since: 2004/2/16


thanx all every thng is fine
i hope that the developers of XOOPS make some thing like that to help right to left languages like Arabic and others
you can make variables like these, so users can modify it from the lang file:
$lang_ENCODING 'windows-1256'//for Arabic
$lang_DIRECTION 'ltr';


7
meme
Re: Change dirction in the default theme
  • 2004/2/24 16:21

  • meme

  • Quite a regular

  • Posts: 271

  • Since: 2002/12/10


lol
if you use the dir tag into <html>
like
<html dir=rtl> the scroller bar appear on the left hand that will make ugly look of your site

just read my lesson for arabic users click here

btw : lang_ENCODING already used by XOOPS
find it in global.php in lang dir

8
irmtfan
Re: Change dirction in the default theme
  • 2004/2/24 17:31

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:

meme wrote:
lol
if you use the dir tag into <html>
like
<html dir=rtl> the scroller bar appear on the left hand that will make ugly look of your site



using dir=rtl didnt change the direction of scroller. so u must use it only in all tables with this tag:
Quote:
<table dir=rtl >



look at my sites:

www.jadoogaran.com

http://ict.iut.ac.ir

9
meme
Re: Change dirction in the default theme
  • 2004/2/24 18:08

  • meme

  • Quite a regular

  • Posts: 271

  • Since: 2002/12/10


plz read my reply again to know what i mean

i said if you use <html dir=rtl> will change the scroller bar

i am not talking about table

you can change all the table and td direction by style.css just add this tag
table, td { direction: rtl; }

you dont need to change anything in the theme.html

i post a link in my last reply this link contain 5 lesson to arabic users how to design new theme

thanks

Login

Who's Online

197 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 197


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits