Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: How to Remove the theme selection drop down

  1. #1
    asimzaidi is offline Sugar Community Member
    Join Date
    Jun 2007
    Posts
    50

    Default How to Remove the theme selection drop down

    I want to remove the drop down menu to prevent users from switching the themes. Could someone advice me how can I do that. Thanks

  2. #2
    andydreisch's Avatar
    andydreisch is offline Sugar Team Member
    Join Date
    Apr 2005
    Location
    San Jose
    Posts
    2,080

    Default Re: How to Remove the theme selection drop down

    Hi asimzaidi, I'll leave it to the technical experts in these forums to tell you how you can remove the theme list. I am wondering why you want to do this at all. Can you let us in on your design thoughts -- why you want the themes removed?

    Thanks,

    Andy
    Andy Dreisch
    Vice President, Online Team


    Check out our Podcasts!
    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

  3. #3
    longreach Guest

    Default Re: How to Remove the theme selection drop down

    I've seen users want to do this before for purposes of training and support - you can always say - look for this UI element to be in a given place.

  4. #4
    asimzaidi is offline Sugar Community Member
    Join Date
    Jun 2007
    Posts
    50

    Default Re: How to Remove the theme selection drop down

    Well I want to have a uniform design through out my organization and I am facing problems by users who constantly change the themes and the other user who get trained on the system get confused by other themes that they were trained on and being fresh data entry people they are not too savvy with navigations. So I tought it would be neat to have an option to block the users from changing the themes.
    Thanks

  5. #5
    asimzaidi is offline Sugar Community Member
    Join Date
    Jun 2007
    Posts
    50

    Default Re: How to Remove the theme selection drop down

    Well I couldn't find out as of yet how to remove the drop down, however I found something close that will restrict the users on changing the themes and just have one theme. It was simple, just remove all the theme folders that you do not want from /themes/...
    In my case, I removed all the themes but the sugar. So now my users are restricted to use only one theme. Hope that helps someone in future.
    If someone has a better option please let me know.
    Thanks

  6. #6
    sacramentojoe is offline Sugar Community Member
    Join Date
    Nov 2005
    Posts
    447

    Default Re: How to Remove the theme selection drop down

    /modules/Users/Login.php around line 244

    <tr>
    <td class="dataLabel" width="30%"><?php echo $current_module_strings['LBL_THEME'] ?></td>
    <td width="70%"><select style='width: 120px' name='login_theme'><?php echo get_select_options_with_id(get_themes(), $display_theme) ?></select></td>
    </tr>:

    Change this select to a hidden field with the value of the theme that you want.
    IE Sugar

  7. #7
    chinwoei's Avatar
    chinwoei is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    91

    Default Re: How to Remove the theme selection drop down

    Quote Originally Posted by sacramentojoe
    /modules/Users/Login.php around line 244

    <tr>
    <td class="dataLabel" width="30%"><?php echo $current_module_strings['LBL_THEME'] ?></td>
    <td width="70%"><select style='width: 120px' name='login_theme'><?php echo get_select_options_with_id(get_themes(), $display_theme) ?></select></td>
    </tr>:

    Change this select to a hidden field with the value of the theme that you want.
    IE Sugar
    It got help just for user login selection.
    how about user able to choose at the footer after login?
    I think mostly we able to take out all the theme, just remain one of them. this might be solve the issue.
    just a small opinion. correct me always while i am wrong.

  8. #8
    sallesjc is offline Junior Member
    Join Date
    Jun 2007
    Posts
    1

    Default Re: How to Remove the theme selection drop down

    Hi,

    Instead of removing theses files why donīt you just change permission to the folderīs themes through your files manager?

    You can use chmod like 700 (read,write,execute - owner permission).

    I only left the sugar theme with permission 777 ( read,write,execute - owner, group and public permission).

    It worked for me.

  9. #9
    Jimbobway is offline Sugar Community Member
    Join Date
    Jan 2008
    Posts
    52

    Default Re: How to Remove the theme selection drop down

    For those of you that are going "I did this and its not working!"

    Relogin to the application.

    It seems to generate these and store them as session information as some other source.. and only recalculates whats in that menu at point of login.

    Atleast thats how it happend for me anyway..

  10. #10
    daviddavid is offline Member
    Join Date
    Jan 2008
    Posts
    9

    Default Re: How to Remove the theme selection drop down

    Hi,
    Can you please tell me how to remove the theme selection dropdown from inner pages?

    Thanks in advance
    David

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Remove Theme and Language selection
    By tiger0516 in forum Help
    Replies: 12
    Last Post: 2009-03-20, 04:50 AM
  2. Problem reverting edit view to single select drop down lists
    By yabulurie in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2007-05-20, 10:17 PM
  3. add the contents of 4 drop down list in one field
    By Spy123 in forum Developer Help
    Replies: 0
    Last Post: 2007-01-24, 11:06 AM
  4. changing the theme for the login screen
    By gekido in forum Help
    Replies: 1
    Last Post: 2005-08-13, 11:39 PM

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
  •