0
Welcome Guest! Login
0 items Join Now

Versatillity style 'remembering'

  • Versatillity style 'remembering'

    Posted 15 years 6 months ago
    • Hi,
      so I finally got around to implementing that VERY COOL pull-down with all the different styles. :cheesy: So now anyone on my site can pick a style of her / his choice!!!

      How can I 'remember' the style the user choose? Is there a way to set a cookie or something? Would be WAY COOL if that was somehow possible.

      Thanks for your help and regards from germany,

      Robert
  • Re: Versatillity style 'remembering'

    Posted 15 years 5 months ago
  • Re: Versatillity style 'remembering'

    Posted 15 years 5 months ago
    • Hi Piet,

      thank you for your reply. I guess I did not explain myself correctly, when posting the question.

      I do not want to use different templates, but different styles. Lets say the default style is
      'style09' but the user changes it to 'style14'. If the user closes the browser and then re-
      starts it, the default style is shown, not hte style he / she choose.

      See www.Sonnabend-EDV.de top of the page 'Farbwahl auf'.

      Regards from germany,

      Robert
  • Re: Versatillity style 'remembering'

    Posted 15 years 5 months ago
    • Hi,

      Styles, not template changer, I got it.

      I just checked the styleswitcher.php in versatility4. As far as I can see, a cookie is set when switching styles. It is also set for quite some time - a full year.
      <?php
      defined( '_JEXEC' ) or die( 'Restricted index access' );
       
      $cookie_prefix = "versatility4j15-";
      $cookie_time = time()+31536000;
      $template_properties = array('fontstyle','fontfamily','tstyle','mstyle','mtype','h3style','hwrap','fwrap');
       

      I have checked my cookies (working from the demo server) and indeed the cookie is stored.

      See screenshot.
    • Best regards,

      Piet Nutbey

      Joomla Video Tutorials: www.joomtorial.com
  • Re: Versatillity style 'remembering'

    Posted 15 years 5 months ago
    • Hi,

      Checked your website (and finding out you are using Versatility3) and was thinking perhaps it was different for Versatility 3. Changed a style and voila, same cookies are stored. So in essence, your site IS storing a cookie for a period of a year.

      I checked by closing my browser, opened your site again and did not get your default style, but my previously chosen style that was stored in the cookie.
    • Best regards,

      Piet Nutbey

      Joomla Video Tutorials: www.joomtorial.com
  • Re: Versatillity style 'remembering'

    Posted 15 years 5 months ago
    • Hi Piet,
      thanks a lot for your effort. I was on the road a while, so I did not get around to testing this. Maybe I will just have to check my browser. I have so many safety things set, that I am sure the cookies are probably killed somewhere along the way. ;-)
      Regards,
      Robert

      PS: Tested it out, works just fine. Don´t know why I didn´t get it to work before. :oops: I was already wondering what I was doing wrong, because I was sure, that because of the template quality, it would surely work!!

Time to create page: 0.085 seconds