How can I put timer from the left to the right side?

How can I put timer from the left to the right side?

by david chikhradze -
Number of replies: 11

How can I put timer from the left to the right side? We have the moodle 1.9, theme - foodle. thank you.

Attachment timer.jpg
Average of ratings: -
In reply to david chikhradze

Re: How can I put timer from the left to the right side?

by Bob Puffer -

theme/standard/styles_layout.css:

insert what's between the commented lines

#mod-quiz-attempt #timer {

  position:absolute;

  /*top:100px; is set by js*/

  /*MDL-8547 */

  /* CLAMP # 114 2010-06-23 bobpuffer */

  right:10px

  /* CLAMP # 114 2010-06-23 end */

}

In reply to Bob Puffer

Re: How can I put timer from the left to the right side?

by Lev Abramov -

Bob, I wonder if this approach works for Moodle 2.X as well.

In reply to Lev Abramov

Re: How can I put timer from the left to the right side?

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

In 2.x this is not relevant.

In reply to Bob Puffer

Re: How can I put timer from the left to the right side?

by Lev Abramov -

An afterthought. My first gut reaction to this was, I remember I had this problem some five or six years ago. Why don't "they" just change it from left to right once and for all?!

Then I remembered: RTL (did not take me long: some of the Moodle sites I deal with are in Hebrew).

Then I thought of something more balanced: can we add another field to the quiz settings - right after the time limit field? It should be a time position selector: right or left. How hard can it really be?!

Alternatively, timer position can be made language-dependent: on the right for LTR languages, and on the left for RTL ones. This should fit 99.9% of the situations.

Any takers?

In reply to Lev Abramov

Re: How can I put timer from the left to the right side?

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Lev "timer position can be made language-dependent: on the right for LTR languages, and on the left for RTL ones. This should fit 99.9% of the situations."

I do not see the logic here. Why would LTR language users de facto want their quiz timer to be displayed on the right side of the screen rather than on the left?

Joseph

In reply to Joseph Rézeau

Re: How can I put timer from the left to the right side?

by Lev Abramov -

You are absolutely right. Everything I said was somewhat relevant for 1.9 where in LTR languages the floating counter would overlap with the beginning of the sentences or with scores, inconveniencing the user. In RTL, it would occupy the are where in RTL screens (right-adjusted by default) was very little information, if at all.

In 2.0 it is totally irrelevant, as has been mentioned - I stand corrected! smile

In reply to Lev Abramov

Re: How can I put timer from the left to the right side?

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

"in LTR languages the floating counter would overlap with the beginning of the sentences or with scores"

Ah yes, point taken!

Anyway, the problem has been nicely solved in Moodle 2.

In reply to Joseph Rézeau

Timer-eclipsing-the-question fix (1.9)

by Gary Sutcliff -

My fix for this is to add a sequince number to the beginning of the question.  Chapter, Section, Sequince is the format so a question would read: 2.5-03 meaning Chapter 2, section5, question 02.  This is enough to move the start of teh question to the right far enough that the timer dows not eclipse the question. 

The sequince number is helpful when I have a student tel me the that is an errror in the question.  If they are randomized than I cannot have everyone look at question 36 rather they are told to look at question 2.5-03 instead.

This is not all the much of a problem as the timer really only affects the first question anyway...

 

 

In reply to Lev Abramov

Re: How can I put timer from the left to the right side?

by Itamar Tzadok -

It should be way more flexible to just make the timer draggable so that the user can place it wherever s/he sees fit. Maybe it's already implemented that way (haven't had the opportunity to look into that but won't be surprized as Moodle is already quite YUInized). smile

In reply to Bob Puffer

Re: How can I put timer from the left to the right side?

by david chikhradze -

thank you Bob Puffer.

my apache is turning off in arround every 2 hours, can you help me?

In reply to david chikhradze

Re: How can I put timer from the left to the right side?

by Bernhard Hiegl -

I wonder why the floating timer could not get pinned to the top by giving it position:fixed in the css? Why having it float around anyway?

Regards, Bernhard