0
Welcome Guest! Login
0 items Join Now

Disable URL preset switching?

  • Disable URL preset switching?

    Posted 13 years 1 month ago
    • I notice that even when I'm logged out, if I vist url/?preset= whatever it will switch it for the entire site and the user will see the site like that from then on. Can this be turned off? I guess I would just hide that string for my users and if they happen to type that in...oh well...bye bye website colors I chose.

      Thanks!
  • Re: Disable URL preset switching?

    Posted 12 years 8 months ago
    • I´m searching as well for a solution on this topic, please help...
  • Re: Disable URL preset switching?

    Posted 12 years 8 months ago
    • Found a solution.

      In templates/rt_clarion/gantry.config.php

      I deleted all the presets, in my case:

      $gantry_presets = array (
      'presets' => array (
      'preset1' => array (
      'name' => 'Preset 1',
      'main-body' => 'light',
      'bgstyle' => 'wavy-lines-light',
      'main-accent' => '#00AFF0'
      ),

      'preset2' => array (
      'name' => 'Preset 2',
      'main-body' => 'dark',
      'bgstyle' => 'diamond-dark',
      'main-accent' => '#F38D2A'
      ),

      'preset3' => array (
      'name' => 'Preset 3',
      'main-body' => 'dark',
      'bgstyle' => 'diagonal-lines-light',
      'main-accent' => '#7EAF28'
      ),

      'preset4' => array (
      'name' => 'Preset 4',
      'main-body' => 'light',
      'bgstyle' => 'cube-light',
      'main-accent' => '#E3231D'
      ),

      'preset5' => array (
      'name' => 'Preset 5',
      'main-body' => 'dark',
      'bgstyle' => 'squares-dark',
      'main-accent' => '#ABA0C6'
      ),

      'preset6' => array (
      'name' => 'Preset 6',
      'main-body' => 'light',
      'bgstyle' => 'textile-light',
      'main-accent' => '#F5859D'
      ),

      'preset7' => array (
      'name' => 'Preset 7',
      'main-body' => 'light',
      'bgstyle' => 'wavy-lines-dark',
      'main-accent' => '#CA572A'
      ),

      'preset8' => array (
      'name' => 'Preset 8',
      'main-body' => 'light',
      'bgstyle' => 'triangles-light',
      'main-accent' => '#4693B8'
      ),

      'preset9' => array (
      'name' => 'Preset 9',
      'main-body' => 'dark',
      'bgstyle' => 'paper-light',
      'main-accent' => '#DA874A'
      ),

      'preset10' => array (
      'name' => 'Preset 10',
      'main-body' => 'light',
      'bgstyle' => 'rubber-dark',
      'main-accent' => '#178F8C'
      ),

      'preset11' => array (
      'name' => 'Preset 11',
      'main-body' => 'dark',
      'bgstyle' => 'elegant-dark',
      'main-accent' => '#F8B923'
      ),

      'preset12' => array (
      'name' => 'Preset 12',
      'main-body' => 'light',
      'bgstyle' => 'diamond-light',
      'main-accent' => '#7EAF28'
      ),

      )
      );

      Hope this can help others.
  • Re: Disable URL preset switching?

    Posted 12 years 7 months ago
    • Thank you. Just what I needed. I want to stay in control of my custom style/branding and want to be able to prevent "smart" users from switching styles. I was about to start digging around the code myself, and then I found your post.
  • Re: Disable URL preset switching?

    Posted 11 years 4 months ago
    • I cannot find gantry.config.php in my styles download. I downloaded the Reaction phpBB3 style.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Disable URL preset switching?

    Posted 11 years 4 months ago
    • No wonder ... the advice above is for Joomla!
      Please post in the dedicated phpBB forum.

Time to create page: 0.056 seconds