Results 1 to 7 of 7

Thread: New Question for Vshare 2.9 Version

  1. #1

    Default New Question for Vshare 2.9 Version

    Sorry for the back-to-back posts here, but I've been re-installing some of my old sites onto a new host and I've encountered things that I haven't known how to deal with since I took them down what seems like a lifetime ago. So here is the question: I just installed Vshare 2.9 on one of my newer sites and I need to know where I can set the default for the black theme to black? In past versions of vshare it used to be /include/class.css.php, in 2.9 it's not there. Where is it now?

    Site: http://cypher.obscure-media.org

    Thanks in advance.

  2. #2
    Join Date
    Oct 2007
    Posts
    126

    Default

    /include/classes/Css.php
    CasselmanCanada.com (free access)


  3. #3

    Default

    I just set it to the black as the default, but it won't take. The site whenever I refresh it keeps reverting back to the lighter background. The person I had from the helpdesk didn't remove the "default" from the file. Both should be set to "black" and "black".

    Here is the coding:

    public static function validate($css)
    {
    $valid_css = array(
    'black', 'black'
    );
    Last edited by nowordneeded; 08-15-2015 at 06:48 AM.

  4. #4
    Join Date
    Oct 2007
    Posts
    126

    Default

    I came back here to say it was not working in v2.9 but it looks like you got help to fix it. I will try your code. Thanks.
    CasselmanCanada.com (free access)


  5. #5

    Default

    Hi,

    To set black theme as default, do the following.

    Open include/classes/Css.php file and find
    PHP Code:
    $css 'default'
    replace this line with
    PHP Code:
    $css 'black'
    Save file.

    Re-load your site after clearing the browser's cache and cookie.

  6. #6

    Default

    this not work in 3.1, how can i set the theme with black style in 3.1?

  7. #7

    Default

    In the 2.9 theme, the code is in this directory:

    /include/classes/css.php

    I would think it would be the same for 3.0 and above. Find the code that starts on line 22 in a code editor. It should look like this:

    Code:
     public static function validate($css)
        {
            $valid_css = array(
                'default', 'black'       );
    Change the 'default', 'black' to:

    Code:
    public static function validate($css)
        {
            $valid_css = array(
                'black', 'black'       );
    Both have to be set to black for you to use the black theme exclusively. If you don't change it to that, it'll keep reverting to the default, which is the white theme.

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
  •