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
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
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
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.
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
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
/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.Originally Posted by sacramentojoe
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.
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.
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..
Hi,
Can you please tell me how to remove the theme selection dropdown from inner pages?
Thanks in advance
David
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks