|
|
| Author |
Message |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Sun Nov 04, 2007 11:14 am Post subject: Small Tabs and Header |
|
|
I don't know about you guys, but I've always felt the tabs across the top were a bit large, and I personally despise horizontal scroll bars on webpages. So I spent the morning reducing the size of the tabs. I've included the images as well as PSD files for the Red and Blue tabs so that you can easily create your own for any ones that I did not create. I've only done tabs for plugins that I use myself. If you want a tab created and you cannot do it via Photoshop let me know and I'll see if I can get it made for you.
To complete this, you'll have to make a couple of changes to a couple of files as well.
top_header.php and top_graph_header.php search for where height="37" in those files and change it to 25. In the MacTrack plugin under the include folder do the same thing for top_header.php.
Each image will need to be placed in the correct folder for them to work. The default Cacti images will need to be in <cactiroot>/images the plugin images will need to go into <cactiroot>/plugins/<pluginname>/images.
I've noticed that not all plugins are supporting the RED tab yet, but I've included a RED tab for all the plugins that I use so that when they do support it, the tab is already there.
I also made one change to the BASE plugin. In base.php on the iframe line there's a width=100%. I've changed that to 100% to 1010. Otherwise if your top cacti menu is pushed off to the right, it will force the Iframe into a window that's 1024 wide, which is a perfect width for BASE.
I think that's about it. Enjoy having more tabs with less of a horizontal scroll.
Update: I have uploaded a new version of zip file. All the images are now in appropriate folders for easy unzipping directly to your Cacti Installation. I've also included modified top_header.php, top_graph_header.php files for base Cacti and MacTrack and I made a slight modification to Weathermap's setup.php file. (Howie likes to use PNG files for his images and I was trying to keep everything standard on GIF's).
I've also added more tabs that I hadn't made before. Enjoy.
| Description: |
|
 Download |
| Filename: |
Cacti-Tab-Red.psd |
| Filesize: |
34.01 KB |
| Downloaded: |
151 Time(s) |
| Description: |
|
 Download |
| Filename: |
Cacti-Tab-Blue.psd |
| Filesize: |
39.72 KB |
| Downloaded: |
139 Time(s) |
| Description: |
| New Version: 1/7/2008 11:30am |
|
 Download |
| Filename: |
Small_Tabs.zip |
| Filesize: |
154.09 KB |
| Downloaded: |
187 Time(s) |
Last edited by streaker69 on Mon Jan 07, 2008 2:34 pm; edited 3 times in total |
|
| Back to top |
|
 |
sizulku Cacti User
Joined: 04 Nov 2002 Posts: 102 Location: ACEH
|
Posted: Sun Nov 04, 2007 9:42 pm Post subject: |
|
|
Thanks! Nice works. Would you please add small tab for "monitor" plugin?
Zul
|
|
| Back to top |
|
 |
sizulku Cacti User
Joined: 04 Nov 2002 Posts: 102 Location: ACEH
|
Posted: Sun Nov 04, 2007 9:43 pm Post subject: |
|
|
Thanks! Nice works. Would you please add small tab for "monitor" plugin?
Zul
|
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Sun Nov 04, 2007 9:52 pm Post subject: Monitor as Requested |
|
|
Here's the monitor Tabs as requested.
| Description: |
|
| Filesize: |
1.83 KB |
| Viewed: |
5914 Time(s) |

|
| Description: |
|
| Filesize: |
1.84 KB |
| Viewed: |
5915 Time(s) |

|
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Sun Nov 04, 2007 9:57 pm Post subject: |
|
|
Would be nice if Superlinks also supported this, eh? It would also make it easy for people to generate tabs for other plugins too...
I'll try and add it in 0.7 - should just be a case of two more template images and some tweaks to the coordinates.
|
|
| Back to top |
|
 |
sizulku Cacti User
Joined: 04 Nov 2002 Posts: 102 Location: ACEH
|
Posted: Sun Nov 04, 2007 10:02 pm Post subject: |
|
|
| Thank you!!
|
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Sun Nov 04, 2007 10:05 pm Post subject: SuperLinks Tabs |
|
|
Superlinks Tabs.
| Description: |
|
| Filesize: |
1.86 KB |
| Viewed: |
5906 Time(s) |

|
| Description: |
|
| Filesize: |
1.88 KB |
| Viewed: |
5906 Time(s) |

|
|
|
| Back to top |
|
 |
chrisgapske Cacti User
Joined: 22 May 2007 Posts: 264 Location: Padacuh, Ky-Alpena, MI-Gulf Shores,AL
|
Posted: Mon Nov 05, 2007 3:10 pm Post subject: Re: SuperLinks Tabs |
|
|
| streaker69 wrote: | | Superlinks Tabs. |
Superlinks creates dynamic tabs. He will have to make adjustments to his code to produce such a tab.
Nice idea.
|
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5447 Location: Wisconsin, USA
|
Posted: Mon Nov 05, 2007 3:26 pm Post subject: |
|
|
Future interfaces will be dynamic tabs...
|
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Mon Nov 05, 2007 3:32 pm Post subject: |
|
|
| rony wrote: | Future interfaces will be dynamic tabs...  |
...but will they be smaller?
Also, I would think using DIV's and Layers it could be designed that the tags overlay each other by maybe 40% so that you can squeeze more on a page.
I read the roadmap and saw that you're working on more CSS for .89, but if you haven't looked into layering the Tabs, it might be something you want to investigate.
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Mon Nov 05, 2007 5:16 pm Post subject: Re: SuperLinks Tabs |
|
|
| chrisgapske wrote: | | streaker69 wrote: | | Superlinks Tabs. |
Superlinks creates dynamic tabs. He will have to make adjustments to his code to produce such a tab.
Nice idea. |
That's what I meant - it wouldn't be hard to get superlinks to generate two different sizes of tabs. If only there were a standard way to tell which ones you were using, like a Cacti setting.
So I was thinking that the plugin would have two sizes of image, with different sizes, and then this setting would select which to use.
I suppose it could be argued that it's all just making a silk purse out of a pigs ear, and actually the answer is a different layout...
|
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5447 Location: Wisconsin, USA
|
Posted: Mon Nov 05, 2007 5:48 pm Post subject: Re: SuperLinks Tabs |
|
|
| Howie wrote: | I suppose it could be argued that it's all just making a silk purse out of a pigs ear, and actually the answer is a different layout...  |
Bingo!!
0.9.0.... No clue what it will look like, but it's in the plan..
|
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Mon Jan 07, 2008 11:30 am Post subject: |
|
|
| Bumpity Bump for a new version. See Original Post for details.
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Mon Jan 07, 2008 2:25 pm Post subject: |
|
|
Am I being dense or are the PSD files not in the zip?
(just looking into adding support for this into superlinks now - small tabs are neat)
|
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Mon Jan 07, 2008 2:32 pm Post subject: |
|
|
| Howie wrote: | Am I being dense or are the PSD files not in the zip?
(just looking into adding support for this into superlinks now - small tabs are neat) |
No, I don't think you're dense, I think I forgot to put them in there.
|
|
| Back to top |
|
 |
|