how to change background image ?

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
alihyder
Posts: 9
Joined: Fri Aug 26, 2011 11:08 am

how to change background image ?

Post by alihyder »

anybody can tell me, how i can change my cacti default user login page at Linux-Debian ?
i want to replace and put my organization logo design (plz see the attachment) instead of cacti default page.

plz tell me step by step procedure how i can change background picture of the User Logon page and others inside pages ?

waiting for kind reply.
Attachments
logo-new.jpg
logo-new.jpg (11.16 KiB) Viewed 6330 times
--
Thanks &

Warm Regards.

=============================
Engr. Md. Alihyder Bhuiyan
Mob : +88 01611 001 606
+88 01191 001 606
+88 01552 444 262
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: how to change background image ?

Post by noname »

http://forums.cacti.net/viewtopic.php?p=216519#p216519

Code: Select all

function plugin_loginmod_cacti_image ($image) {
        // return $image;
        return $config['url_path'] . 'images/logo-new.jpg';
}
For other images except login logo, replace appropriate files within images/ directory.
voyager
Posts: 21
Joined: Sat Jun 14, 2014 11:01 am

Re: how to change background image ?

Post by voyager »

I have followed the instructions and made the change with desired company logo.

1. Downloaded loginmod plugin
2. Moved to plugins directory (/var/www/cacti/plugins)
3. Renamed loginmod1.0 to loginmod
4. Changed the owndership from 500:500 to cacti:cacti
5. Now opened the Cacti application portal & Clicked plugin management where I found loginmod.
6. Clicked the arrow button to install it.
7. Then uploaded the company logo in the images directory ( /var/www/cacti/images)
8. Searched & uncommented the function plugin_loginmod_cacti_image and written the loginmod function in setup file (/var/www/cacti/plugins/loginmod/setup.php) as below:

#function plugin_loginmod_cacti_image ($image) {
# return $image;
#}
function plugin_loginmod_cacti_image ($image) {
// return $image;
return $config['url_path'] . 'images/comp_logo.jpg';
}

9. Logout and then re-login and got the desired results

Cheers !!!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests