Put image in loggin screen

Support and queries relating to all previous versions of ZoneMinder
Locked
lmlovera
Posts: 4
Joined: Wed Sep 02, 2009 11:55 am

Put image in loggin screen

Post 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
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

Like a camera image or a static image
lmlovera
Posts: 4
Joined: Wed Sep 02, 2009 11:55 am

Post by lmlovera »

I want put my logo in the loggin screen
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post 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"
lmlovera
Posts: 4
Joined: Wed Sep 02, 2009 11:55 am

Post by lmlovera »

no files in the folder /var/www/, the file´s zoneminder are in /usr/share/zoneminder but not existing login.php
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

Opes i am sory this method will only work for 1.24.X versions. I forgot what forum i was in.
sniz
Posts: 11
Joined: Wed Oct 29, 2008 10:57 pm

Post 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:

Code: Select all

</form>
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!!!
Locked