Welcome, Guest
Please Login or Register.
Lost Password?
Creating a new Theme for Virtualmin. (1 viewing)
Post Reply

TOPIC: Creating a new Theme for Virtualmin.

#541
FaisalMehmood (User)
Posts: 115
graphgraph
Creating a new Theme for Virtualmin. 2005/11/02 02:38  
Hi.

I was thinking of changing the Virtualmin Main Page for server owners.

What i was thinking was to replace the buttons like creat mail alias / Edit Mail users etc etc with some nice images and move it on the top of the page so that its easily accesible. Any suggestion / Ideas what file i should mess around with and how i can make it into a theme ?
  The administrator has disabled public write access.
#545
Joe (Admin)
Posts: 3602
graph
Re: Creating a new Theme for Virtualmin. 2005/11/03 00:54  
Hey Faisal,Sounds like some good ideas. Unfortunately, buttons can't easily be moved without changing the actual module layout code for that page--though they can be made to look different using CSS.But to answer your question (just in case you have other ideas for modifications that [em]can[/em] be themed easily), start by copying a theme you like. Our default theme is "virtualmin-nuvola", so you'd:cd /usr/libexec/webmincp -a virtualmin-nuvola my-new-themeAnd then modify the name of the theme:cd my-new-themevi theme.infoThe first thing to change is:desc=Virtualmin, Inc. Nuvola Themebrand=<img src="images/virtualminlogo.png" border=0 alt="Virtualmin.com"></img>brand_url=http://www.virtualmin.com/You can just delete the brand_ stuff, or replace it with your own. The desc field is the name of the theme as displayed in the dropdown in the theme selection page.Now, you can tweak as much or as little as you like. Replacing icons can be done by dropping the appropriate image into the module-name/images/icon-name.gif file. HTML can be modified by editing the theme.pl, CSS in the style.css file, the Webmin index page in index.cgi, and the login page in session_login.cgi.It's worth noting that some of the older modules in Webmin have not been converted to using the ui_ functions, and so themes won't have control over the HTML elements in those modules. Jamie's been recoding to ui_ functions whenever he spends time with an old module, so every release brings more theme-ability. Of course, if there's a module you really want theme-control over, I'll be happy to help point you in the right direction on converting it to ui_ usage rather than the old HTML-inline behavior. (You probably won't need to do this in most of the Virtualmin-related modules, though.)In the not too distant future, the core Virtualmin modules will get some attention by me to make them fully CSS controllable, so that arbitrary element positioning will be possible in themes. This is just the beginning of theme-related work I'll be tackling once I've gotten the Early Adopter period wrapped up and a stable platform-neutral system to work with. The current Virtualmin Nuvola theme, as nice as it is (primarily due to David Vignoni's gorgeous icons), is only the beginning!
  The administrator has disabled public write access.
#3331
JohnnyRamos (User)
Posts: 8
graphgraph
Re: Creating a new Theme for Virtualmin. 2006/12/06 23:55  
Was there ever any themes created for Virtualmin Pro?
  The administrator has disabled public write access.
#3345
Joe (Admin)
Posts: 3602
graph
Re: Re: Creating a new Theme for Virtualmin. 2006/12/07 22:31  
Hey Johnny,

The second generation of the Nuvola theme has been around for quite some time in the form of the Virtualmin Framed Theme.

I'm now in the midst of the third re-write, which will take us further towards best practices in most UI areas, increase the speed of the UI through AJAX techniques, and make it look nicer and easier to customize. This will include some core Webmin work to make generating menus, like the left-menu in the Virtualmin framed theme, a standard UI function rather than a custom bit in the theme. That'll hopefully encourage folks to dive in and make new versions of the Virtualmin themes...right now, there's an awful lot of code in the theme, where it should really be nearly all GUI layout.

So, to answer your question: Nothing new since the Virtualmin Framed theme. But I'm working hard on the next generation version.
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.