Results 1 to 7 of 7

Thread: Change Default Theme

  1. #1
    aubreyisland is offline Sugar Community Member
    Join Date
    Nov 2006
    Posts
    10

    Exclamation Change Default Theme

    I am using a low end server for testing Sugar. So, I need to only enable the White Sands theme, for server bandwidth issues, etc.

    I would like to set all users to this theme and possibly remove the option of using other themes.
    Anyone know how to do this? In administrator settings I don't see a 'Default Theme' option?

    Thanks-

  2. #2
    simple is offline Sugar Community Member
    Join Date
    Jul 2005
    Posts
    259

    Default Re: Change Default Theme

    Hi

    you can change the "default_theme" in config.php (or better config_override.php). And if you delete (or zip/tgz) the other themes they won't be available anymore.
    Cheers Pascal
    Simplicity GmbH

  3. #3
    aubreyisland is offline Sugar Community Member
    Join Date
    Nov 2006
    Posts
    10

    Default Re: Change Default Theme

    Interesting- I considered deleting, but I thought there must be another way haha!
    I will look at the override thing and see what happens- thanks!

  4. #4
    aubreyisland is offline Sugar Community Member
    Join Date
    Nov 2006
    Posts
    10

    Smile Re: Change Default Theme

    So, I wanted to have only one theme enabled, this is what I did...

    First I went in and deleted all the themes except for the one I wanted.
    [I can upload them later, if I want them... I left WhiteSands]

    Next I modified the config.php in Sugar's root.
    *This is required, otherwise the login does not have a theme and says Invalid Theme.

    I changed...

    Code:
    'default_theme' => 'Sugar',
    to...

    Code:
    'default_theme' => 'WhiteSands',
    Doing both of these resulted in only having the WhiteSands theme enabled, used, an available in users theme menu.


    Now I wanted to see how easy it was to install other themes for users to optionally pick after logging in.

    *Remember, I still have WhiteSands as the default.

    So I uploaded the Sugar theme folder, and... Sugar was under the theme's list.

    Hope this helps someone.

  5. #5
    chrisky is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Trondheim, Norway
    Posts
    293

    Cool Re: Change Default Theme

    Delete?

    Bad practice boys & girls....

    If I caught one of my team doing such opposed to my [required] way of achieving such, I'd wish them the best and give them a wonderful reference while hoping that they move forward and even end up better in life than they were while with us..

    In such case, my {required} way would the following:

    In the same parent directory that such themes directory exists,
    you would create a directory with a name that indicates what it is [such as: the original items/content] while also including the original directory name as part of the new directory name.
    In this case, I myself would create a new directory named 'original-themes'
    Then proceed to move (though I would use copy and once satisfied that I have a good copy complete and uncorrupted) the unwanted themes from the within the themes folder to the new folder previously created.

    And hopefully the 'rocket scientisists' will take the time to explain why [how, and the benefits of doing such] I personally require such practice.

    P.S. The act of compressing the unwanted themes was a step above 'deletion' and in the right direction; however, still the wrong way [imho]. though I suppose in fairness, compression of such is not bad or 'technically' wrong but rather just takes a little more time [uncompressing] before one is able to either restore such or even just work with it (i.e. opening a PHP file for viewing its code)..

    Not to mention, that the powerful ability to search directories, files, and their contents for a string....is essentially made non-existent should one choose to go the route of compressing such as discussed above..
    Last edited by chrisky; 2006-11-06 at 10:13 PM.

  6. #6
    aubreyisland is offline Sugar Community Member
    Join Date
    Nov 2006
    Posts
    10

    Cool Re: Change Default Theme

    Too bad I'm not on your team... But, for those of you out there who want to preserve the themes, 'simple' suggested a similar solution by tar'ing the files, from which you can extract a given theme from at any given time. I, too, don't believe in the deletion of things, but... never mind.

  7. #7
    KaleStud is offline Junior Member
    Join Date
    Nov 2008
    Posts
    3

    Default Re: Change Default Theme

    Hmmm...

    looked good the first time on v5.
    But, of course, something weird happened.
    If a normal user changes their theme, it changes for all users?!

    so the next login I did under a different username was in a different theme?
    Weird huh?!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
  •