The secondary stock theme (black) that comes packaged with vshare 2.7, how can i set this to load by default?
The secondary stock theme (black) that comes packaged with vshare 2.7, how can i set this to load by default?
vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
[email protected]
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.
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]
that did the trick, thanyou
Bookmarks