Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Jun 26, 2017 7:11 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: 2 must-have GUI Improvements
PostPosted: Thu Dec 05, 2013 9:59 am 
Offline
Cacti User
User avatar

Joined: Sun Jul 24, 2005 12:20 pm
Posts: 120
Location: Ireland, Dublin
1st improvement: change the Create New Graph page

Attachment:
File comment: BEFORE
cacti1.png
cacti1.png [ 100.07 KiB | Viewed 3969 times ]


Attachment:
File comment: AFTER
cacti2.png
cacti2.png [ 96.42 KiB | Viewed 3969 times ]


2nd improvement: replace all combo-boxes with jquery autocomplete combos

ex1. http://jqueryui.com/resources/demos/aut ... bobox.html
ex2. http://harvesthq.github.io/chosen/

_________________
[i]Born to be online![/i]


Top
 Profile  
 
 Post subject: Re: 2 must-have GUI Improvements
PostPosted: Thu Dec 05, 2013 12:22 pm 
Offline
Cacti User
User avatar

Joined: Sun Jul 24, 2005 12:20 pm
Posts: 120
Location: Ireland, Dublin
very easy to implement...

extract contents of
https://github.com/harvesthq/chosen/rel ... v1.0.0.zip
at
cacti/include/chosen

add
Code:
<link rel="stylesheet" href="<?php echo $config['url_path']; ?>include/chosen/chosen.css">

at
cacti/include/top_header.php
after <head>

add
Code:
<script src="<?php echo $config['url_path']; ?>include/jquery.min.js"              type="text/javascript"></script>
<script src="<?php echo $config['url_path']; ?>include/chosen/chosen.jquery.js"    type="text/javascript"></script>
<script type="text/javascript">
var config = {
  'select'                   : {},
  '.chosen-select'           : {},
  '.chosen-select-deselect'  : {allow_single_deselect:true},
  '.chosen-select-no-single' : {disable_search_threshold:10},
  '.chosen-select-no-results': {no_results_text:'Oops, nothing found!'},
  '.chosen-select-width'     : {width:"95%"}
}
for (var selector in config) {
  $(selector).chosen(config[selector]);
}
</script>

at
cacti/include/bottom_footer.php
before </body>

Attachment:
cacti3.png
cacti3.png [ 83.01 KiB | Viewed 3964 times ]

_________________
[i]Born to be online![/i]


Top
 Profile  
 
 Post subject: Re: 2 must-have GUI Improvements
PostPosted: Thu Dec 05, 2013 12:53 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5111
Location: United Kingdom
nice!

_________________
Weathermap 0.98 is out! & QuickTree 0.2. Superlinks is over there now.
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)


Top
 Profile  
 
 Post subject: Re: 2 must-have GUI Improvements
PostPosted: Tue Jan 07, 2014 7:01 am 
Offline
Cacti User

Joined: Mon May 03, 2010 11:48 am
Posts: 71
good one!

thanks for sharing!

_________________
_________________
Cacti - 0.8.8c
Poller Type - SPINE 0.8.7i
Server Info - Linux 2.6.31.14 - Opensuse 11
Web Server - Apache/2.2.13 PHP 5.3.3
MySQL - 5.1.49 ;RRDTool - 1.3.7 ;SNMP - 5.4.2.1


Top
 Profile  
 
 Post subject: Re: 2 must-have GUI Improvements
PostPosted: Thu Apr 03, 2014 10:15 am 
Offline
Cacti Guru User

Joined: Mon Oct 16, 2006 5:57 am
Posts: 1876
Location: United Kingdom
Very nice !

However, you'd also need to make this change for each "general_header.php" file in use for all your plugins, too :D

_________________
Quote:
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b


Top
 Profile  
 
 Post subject: Re: 2 must-have GUI Improvements
PostPosted: Thu Aug 21, 2014 2:37 pm 
Offline

Joined: Thu Sep 20, 2012 8:00 am
Posts: 9
This is great, but i am having alignment issues at the top of the graph page. Anyone have a fix?


Attachments:
chosen.png
chosen.png [ 27.02 KiB | Viewed 3352 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group