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

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

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.

附件 timer.jpg
評比平均分數: -
In reply to david chikhradze

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

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?

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?

Joseph Rézeau發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片 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?

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! 微笑

In reply to Lev Abramov

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

Joseph Rézeau發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片 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)

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?

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). 微笑

In reply to Bob Puffer

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

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?

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