Page 1 of 1
Put image in loggin screen
Posted: Wed Sep 02, 2009 12:16 pm
by lmlovera
Hello:
I have ZoneMinder 1.23 ruming on Ubuntu 8.04 and want put a image in the loggin screen. help me?, thanks.
Tengo ZoneMinder corriendo sobre Ubunto 8.04 y quiero poner una imagen el la pantalla de login. Alguien puede ayudarme? Gracias
Posted: Thu Sep 03, 2009 2:16 am
by kingofkya
Like a camera image or a static image
Posted: Wed Sep 09, 2009 10:46 am
by lmlovera
I want put my logo in the loggin screen
Posted: Wed Sep 09, 2009 6:14 pm
by kingofkya
ok this is a simple thing that requires a simple text editor
Go to the ZM webroot Usually /var/www/zm
next descend into views by cd skins/classic/views/
use you favorite editor sudo "editor you like nano, vi etc..." login.php
no scroll down until you see
Code: Select all
<div id="header">
<h1>ZoneMinder <?= $SLANG['Login'] ?></h1>
</div>
than change it like so
Code: Select all
<div id="header">
<h1>ZoneMinder <?= $SLANG['Login'] ?><p><img src="logo.gif" alt="Logo" /></p></h1>
</div>
then in the ZM web root name a image "logo.gif"
Posted: Thu Sep 10, 2009 11:27 am
by lmlovera
no files in the folder /var/www/, the file´s zoneminder are in /usr/share/zoneminder but not existing login.php
Posted: Sat Sep 12, 2009 6:13 pm
by kingofkya
Opes i am sory this method will only work for 1.24.X versions. I forgot what forum i was in.
Posted: Tue Sep 22, 2009 12:46 pm
by sniz
To place a logo beneath the "Login" button, search your system for a file named zm_html_view_login.php with the command:
Code: Select all
locate zm_html_view_login.php <enter>
Mine is in /usr/share/zoneminder
As root, copy the image of your logo to this directory and name it "logo.gif", then, also as root, open the file zm_html_view_login.php in a text editor and scroll down to the line that reads:
You will add 3 lines beneath it as follows:
Code: Select all
<center>
<img src="logo.gif" alt="Logo"></img>
</center>
So that when you are finished it looks like:
Code: Select all
</form>
<center>
<img src="logo.gif" alt="Logo"></img>
</center>
</body>
Now save the changes, open the login page in your web browser, and softly mumble to yourself how totally wicked-awesome you are!!!