Plugin Manage: Default settings

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
brononi
Cacti User
Posts: 123
Joined: Tue Aug 29, 2006 1:58 am
Location: Belgium
Contact:

Plugin Manage: Default settings

Post by brononi »

Hey,

A nice feature on the 'manage' plugin, are the user settings. Very handy if eveyrbody has a different screen resolutions and so.
But i can't get the default settings to work. Is there a place where i can define these default settings? Or where i can change them?

fe
- default view should be 'site view'
- Secondary view should be 'simple' <<when this is not set, i receive an error 'undefined'>>
- lines in site view would better be 5
...
  • Cacti: 0.8.8f / Plugin Architecture Version: 3.1 / Linuxbased
  • Third Party: Apache 2.4.12 / PHP 5.6.11 / NET-SNMP version 5.3.2.2 / RRDTool 1.5.4
  • Plugins: Configmanager 0.826 / Aggregate 0.70B2 / Manage 0.6.2 / Weathermap 0.97a / Thold 0.4.9 / Quicktree 0.2 / Realtime 0.5 / Settings 0.7
  • Data:Host 1341 / Graphs 6752
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Plugin Manage: Default settings

Post by noname »

According to source (manage-0.6.1), probably it's like this behavior:

1) At the beginning, there are no user-specific settings in DB. So default settings are applied. (e.g. "Default View" = "List View")

2) These settings are stored in session variable. (e.g. $_SESSION["sess_device_simple"])

3) You can modify user-specific settings at "Settings -> Manage -> User Options". Modifications are stored in DB. (cacti.settings)
Image

4) When Cacti created 'manage' tab at top of the screen, it's linked to 'manage.php' with several settings related to viewing style.
But the value from session variable is used in preference to the value from DB at that time. (That's usual behavior of load_current_session_value() function..) So your settings won't be applied.


I have no idea for its solutions..
If you changed source code to override session variables by DB values, perhaps you won't able to change settings temporarily under 'manage' tab.
User avatar
brononi
Cacti User
Posts: 123
Joined: Tue Aug 29, 2006 1:58 am
Location: Belgium
Contact:

Re: Plugin Manage: Default settings

Post by brononi »

My problem is with the site second view.
When a new user does this, he receives an error.
Because the default settings aren't filled in really.

So it's a bit unnice to demo this to new users... :$
  • Cacti: 0.8.8f / Plugin Architecture Version: 3.1 / Linuxbased
  • Third Party: Apache 2.4.12 / PHP 5.6.11 / NET-SNMP version 5.3.2.2 / RRDTool 1.5.4
  • Plugins: Configmanager 0.826 / Aggregate 0.70B2 / Manage 0.6.2 / Weathermap 0.97a / Thold 0.4.9 / Quicktree 0.2 / Realtime 0.5 / Settings 0.7
  • Data:Host 1341 / Graphs 6752
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests