Git Product home page Git Product logo

tirea-material-lesson-blog's People

Contributors

corscheid avatar general-anubis avatar sevcikfi avatar tirea avatar titstewan avatar vawm avatar willem3141 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tirea-material-lesson-blog's Issues

?p=lessons with no &l

?p=lessons with no &l throws warning message: Missing argument 1 for navi_lesson(). We should fix that because the page should render withouth the &l argument.

Internationalize stuff

I'll try this evening to lurk to add some code to make this blog international by integrating some kind of text strings.

Language specific links doesn't work

Clicking on a link that contain l=01g-german for example loads only stuff that was stored in the cookie like english or any other language.
A possible fix ould be to let update the cookie lang value also by requesting a specific language lesson.

Lesson pages

I want to find an elegant way to let include the lessons...

Sounds

By reorganizing the html code of the Sound page, I apparently broke a javascript code. Not enterly sure what happened...

Invalid cookie value causes HTTP Error 500

Steps to reproduce:

  1. Use an invalid language choice in the URL
  2. See blank page or Error 500

To fix the 500, until cookie value and URL var are validated:

  1. Use a legitimate value of a language that is actually supported, such as: this
  2. Page now loads as expected, using English.

I recommend the following to fix this bug:

Force the setting of only acceptable values to the cookie. This way, the value can never be invalid no matter how hard user tries. Also, because of this, we would not need to check validity of the var in every single file of function where it's used.

Name generator broken

Well, it's not really broken, but if one try to choose custom variable, it won't work, everything else works fine.

Language Switcher Broken Due To 2 Cookies

This bug exists on both Firefox and Chrome.

Steps to reproduce:

  1. Clear all cookies in the browser
  2. Visit the Test Site
  3. Check Cookies in Firebug. You will see one cookie already, default set by index.php:
lang        english        .tirea.learnnavi.org  11 B        /  <expire date> 

notice the dot before $domain (HOW TF does that get there?)

  1. Switch language to any language using the language menu (Esperanto, z.B.)
  2. Check the Cookies in Firebug again. Now there are two:
lang        esperanto   tirea.learnnavi.org  11 B         /  <expire date> 
lang        english        .tirea.learnnavi.org  11 B        /  <expire date> 
  1. Switch language again to something else and check cookies again:
lang        german       tirea.learnnavi.org  11 B         /  <expire date> 
lang        english        .tirea.learnnavi.org  11 B        /  <expire date>

Result: Language Switcher does not work. Stays in English the entire time.

Hack-fix:

  1. Use http://tirea.learnnavi.org/test/index.php?lang=esperanto z.B. to actually have target language load.
  2. Checking cookies again, we see (if just now following these steps right after step 6 above):
lang        esperanto      .tirea.learnnavi.org  11 B         /  <expire date> 
lang        german           tirea.learnnavi.org  11 B        /  <expire date>
  1. Switch language again using URL: index.php?lang=dutch z.B.
  2. Check again:
lang        dutch        .tirea.learnnavi.org  11 B        /  <expire date>
lang        german     tirea.learnnavi.org  11 B         /  <expire date> 

Interesting indeed. What on Pandora is causing this? the Flux Vortex? This wasn't happening before...
I have checked and All functions in our PHP that calls setcookie() use $domain var from settings.php which on the server is set $domain = 'tirea.learnnavi.org'; (with no dot at beginning)

I have no idea how this is happening or how to fix this. O__o

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.