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
Put image in loggin screen
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
than change it like so
then in the ZM web root name a image "logo.gif"
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>
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"
To place a logo beneath the "Login" button, search your system for a file named zm_html_view_login.php with the command:
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:
So that when you are finished it looks like:
Now save the changes, open the login page in your web browser, and softly mumble to yourself how totally wicked-awesome you are!!!
Code: Select all
locate zm_html_view_login.php <enter>
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:
Code: Select all
</form>
Code: Select all
<center>
<img src="logo.gif" alt="Logo"></img>
</center>
Code: Select all
</form>
<center>
<img src="logo.gif" alt="Logo"></img>
</center>
</body>