bihor / fp_masterquiz

TYPO3 extension to create a quiz, poll or test. The user result will be saved in the DB too and could be displayed as a chart.
GNU General Public License v3.0
5 stars 9 forks source link

Star-Rating Order reversed #59

Open resta3000 opened 3 months ago

resta3000 commented 3 months ago

Hi,

the order of the stars is reversed for the evaluation function via CSS (RTL), so the results are also reversed by the users when voting.

bihor commented 3 months ago

At which site? The evaluation of the own submit looks good: https://www.quizpalme.de/quiz-umfrage/umfragen/besucher-umfrage Do you mean the evaluation of all entries?

resta3000 commented 3 months ago

Auf der Seite: https://www.quizpalme.de/quiz-umfrage/umfragen/besucher-umfrage befindet sich im zweiten Schritt eine Frage "Wie glücklich bist du?", diese Frage wird per Rating-Stars bewertet. Die fünf Werte der darunter liegenden Form Elemente belaufen sich von 388 bis 392 (Stern 1 bis 5). Durch den CSS Stil der Rating-Stars (.star-cb-group { direction: rtl; }) wird die Reihenfolge umgekehrt, d.h. dass wenn ein Nutzer fünf Sterne vergeben möchte, wird der Wert 388 eingetragen. Bei uns führt das zu genau umgekehrten Ergebnissen in der Auswertung.

bihor commented 3 months ago

Nun, die Funktionsweise ist von hier: https://codeconvey.com/css-star-rating-radio-buttons/ D.h. man muss zuerst die 5-Sterne im Backend anlegen. 388 ist also 5 Sterne. Ist vielleicht die Reihenfolge im Backend anders herum? quiz7