Results 1 to 5 of 5

Thread: Default Theme Qestion

  1. #1

    Default Default Theme Qestion

    The secondary stock theme (black) that comes packaged with vshare 2.7, how can i set this to load by default?

  2. #2
    Join Date
    Sep 2007
    Posts
    906

  3. #3
    Join Date
    Jan 2011
    Posts
    6

    Default

    i have done what you recommended above and it seems to work...but..

    is there a way so that under no circumstances will the default white template ever be shown? i have removed the /style/default/ button from the header.tpl and made the changes you've listed above to the class.css.php file. But still from time to time the default white template shows, which I absolutely do not want my visitors to see.

  4. #4
    Join Date
    Sep 2007
    Posts
    906

    Default

    If you done it, default template will not show. Some users already have cookie set with style defauult, that is why it is showing. To force all users to black, replace include/class.css.php with

    Code:
    <?php
    
    class css
    {
    
        public static function set($css)
        {
            css::validate($css);
    
            $redirect_url = '';
    
            if (isset($_SERVER['HTTP_REFERER']))
            {
                $redirect_url = $_SERVER['HTTP_REFERER'];
            }
    
            if (stripos($redirect_url, VSHARE_URL) === false)
            {
                $redirect_url = VSHARE_URL . '/index.php';
            }
    
            redirect($redirect_url);
        }
    
        public static function validate($css)
        {
    	$css = 'black';
            $_SESSION['CSS'] = $css;
            setcookie('CSS', $css, time() + 2592000); /* expire in 30 days */
        }
    
        public static function cookie()
        {
            $css = 'black';
            css::validate($css);
        }
    }
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    [email protected]

  5. #5
    Join Date
    Jan 2011
    Posts
    6

    Default

    that did the trick, thanyou

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •