Titlechanger 0.1 Released

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Titlechanger 0.1 Released

Post by Howie »

This is a tiny (it's nearly as small as the SSL plugin) plugin I wrote this morning, that maybe other people will find useful.

I help administer multiple Cacti installations for various customers, and often have several tabs open to different customer's installations at the same time. Wouldn't it be nice to be able to tell them apart?

Titlechanger is a very small and simple plugin for Cacti that allows you to change the HTML TITLE for the pages (which shows in the tab title on most browsers) without getting into the code.

Install using the Plugin Architecture 2.x Plugin Management screen.

Look in Settings..Misc and there is an option to change the Title Prefix. If you have other plugins that change the title too, like Weathermap, then as long as they leave the 'Cacti' at the beginning, everything will continue to work fine.

http://wotsit.thingy.com/haj/cacti/titl ... lugin.html
Attachments
titlechanger.png
titlechanger.png (16.66 KiB) Viewed 5456 times
Last edited by Howie on Fri Jul 31, 2009 7:54 am, edited 1 time in total.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
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!)
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Nice plugin, Howie - just installed it at my site. Gives a nice branded feel to Cacti.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
DLNoah
Cacti User
Posts: 119
Joined: Wed Jun 20, 2007 11:27 pm

Post by DLNoah »

In the not quite what I expected department: Titlechanger does not change the title on the login page.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

DLNoah wrote:In the not quite what I expected department: Titlechanger does not change the title on the login page.
Hmm. It looks like the login page doesn't include the page_title hook, so Titlechanger can't change it. You can edit it manually in auth_login.php though.

Or, add the hook. Something like this instead of the existing title tag should work:

Code: Select all

<?php
$page_title = api_plugin_hook_function('page_title', 'Cacti Login');
?>

        <title><?php echo $page_title; ?></title>
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
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!)
DLNoah
Cacti User
Posts: 119
Joined: Wed Jun 20, 2007 11:27 pm

Post by DLNoah »

Yes, that did work. I would recommend it be included in the next PIA, seems that it would make the login page more consistent with everything else.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests