MoodleBook in arabic

MoodleBook in arabic

by ibrahim kiswani -
Number of replies: 13

I used 2.4  version and used moodlebook theme. I have a problem to change theme to arabic style (right to left).
 where can I change the direction of LOGO and navigation menue syle

 

Average of ratings: -
In reply to ibrahim kiswani

Re: MoodleBook in arabic

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi,

This is not easy, however, I would have thought that the calendar would have changed the directional arrows automatically. However, in Moodlebook these are set in the theme, so you need to override them with this CSS...

Just copy and paste the following CSS to your moodlebook/style/blocks.php

/* reversed images for dir-rtl */

.dir-rtl .block .calendar-controls .previous {
    background:transparent url([[pix:theme|next]]) no-repeat left top;
    height:19px;
}
.dir-rtl .block .calendar-controls .next {
    background:transparent url([[pix:theme|previous]]) no-repeat right top;
}

The logo also needs some css to make it move from left to right. So COPY and PASTE the following CSS to moodlebook/style/core.css

/* page-header changes for dir-rtl */

.dir-rtl #page-header{
    margin-left: 0;
    margin-right: auto;
    border-left: 1px solid #cbcbcb;
}
.dir-rtl #page-header .logininfo {
    float: left;
    text-align: right;
}
.dir-rtl #page-header .sitelogo {
    float: right;
}
.dir-rtl #page-header .headermain{
    right: 0.5em;
    left: auto;
}
.dir-rtl #logo {
    background:#39589a url([[pix:theme|logo]]) no-repeat right top;
    float: right;
}

I think you will find this will fix most of the problems for the time being until you find some other place that needs some attention. smile

Let me know if you need some help with this as it is not easy.

Cheers

Mary

Average of ratings: Useful (1)
In reply to Mary Evans

Re: MoodleBook in arabic

by ibrahim kiswani -

thank you

I try it but still nothing happened

 

 

In reply to ibrahim kiswani

Re: MoodleBook in arabic

by ibrahim kiswani -

thank you

the calendar work but the logo not

when I delete moodle cash from the server  (where moodle install)

the calendar work

In reply to ibrahim kiswani

Re: MoodleBook in arabic

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
In reply to Mary Evans

Re: MoodleBook in arabic

by ibrahim kiswani -

Hi,as you say it's not easy .

I was try (Purge all cache); but still the same problem  so I go to moodledata in the server and delete all files and folders  .

then I install language and make the modification but also the same problem !!!, I don't git it why ?
I make sure it rtl .

In reply to ibrahim kiswani

Re: MoodleBook in arabic

by ibrahim kiswani -

hi mary, Now I change the most element  to rtl  by change the (blocks, core, menu, menubar) CSS files the same way you put in the first post

but it seem not 100% as I wish 

 

 

how can I change the color of menu to blue

 

In reply to ibrahim kiswani

Re: MoodleBook in arabic

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Again this is not easy trying to explain how to add all the RTL fixes for a theme that is NOT a core theme.

One thing right now is time and I don't have that. But if you would like me to look at the theme then I need a copy of the theme you are using so I can change it for you, but this will take at least a week.

I also need to know which version of Moodle you are using so that I can set that up on my server as I only have 2.5/2.4/2.3 set up for testing.

I'll add you as a contact then you can send me a message

Cheers

Mary

In reply to Mary Evans

Re: MoodleBook in arabic

by ibrahim kiswani -

Hi, its really not easy but I almost finish it ,still some small issue but I think I can do it

 

In reply to ibrahim kiswani

Re: MoodleBook in arabic

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

If you take a look at Afterburner theme the custommenu there is created using a renderer, and works well in RTL. I'll see if I can add it into the theme you sent me.  If it works I'll send you the main parts of the theme back so you can add them to your working copy, as you seem to be fixing the theme quite well yourself. smile

Cheers

Mary

In reply to Mary Evans

Re: MoodleBook in arabic

by ibrahim kiswani -

hi

I'm back with new problem

 

tow of this problem I solve it (done near the issue ) but th other I dont find how to solve it

 

In reply to ibrahim kiswani

Re: MoodleBook in arabic

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Easy! smile

In reply to Mary Evans

Re: MoodleBook in arabic

by ibrahim kiswani -

thank you for help , other issue

the margin solved but how to contral the bolck

 

 

In reply to ibrahim kiswani

Re: MoodleBook in arabic

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

In Moodle 2.4 Try...

  1. Disable Tags:
    Site administration ->Advanced features -> Enable tags functionality = No
  2. Disable Blogs:
    Site administration ->Advanced features -> Enable blogs = No