Author Topic: Changing login screen  (Read 8998 times)

Njguy

  • Newbie
  • *
  • Posts: 7
    • View Profile
Changing login screen
« on: January 28, 2009, 06:29:59 pm »
Is there a way I can put a company logo at the top of the login screen. Also I was wondering how I could disable the submit button until the user checks the terms and conditions. They would do this everytime they log in. I cannot find the right files for it.

werner.wuerfel

  • Sr. Member
  • ****
  • Posts: 319
    • View Profile
Re: Changing login screen
« Reply #1 on: January 29, 2009, 03:03:56 am »
When you will change the login window you must change the files "ligin.php" and "forgot_password" in appication/views/access

We are testing with an own stylesheet for a new login window, but in the moment we moved back to the defaults scripts, because we have some problems with the error message when I use a wrong username or password.

So it is a good idea, when the devolopers can show us to put an background grafic or an logo on the login window.

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Changing login screen
« Reply #2 on: January 29, 2009, 10:13:32 am »
Hi,

You can put the logo in the file 'application/layouts/dialog.php'. For example, you can put it in the div with id="dialog":
Code: [Select]
<div id="dialog">
    <img src="http://www.opengoo.org/images/logo_goo.png" />
    ...
</div>

Or you can edit CSS style in file 'public/assets/themes/default/stylesheets/dialog.css'.

Njguy

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Changing login screen
« Reply #3 on: January 30, 2009, 08:29:41 pm »
I dont even really care about the company logo, but I need the login submit button to be disabled until the user accepts the terms and conditions checkbox. The problem is, the coding for the submit button isn't even in login.php. If you view the page source from your browser whiel o nthe login page, you get this for the submit button.

<div id="loginSubmit"><button class="submit" type="submit" accesskey="s">Login</button>

This isn't even in login.php, where is it??

werner.wuerfel

  • Sr. Member
  • ****
  • Posts: 319
    • View Profile
Re: Changing login screen
« Reply #4 on: January 31, 2009, 04:17:46 pm »
Hi ignacio,

the change in the file 'application/layouts/dialog.php' for the logo works fine. What is the max. size of the logo. I think the width is max. 333 pixel.

It is possible to put a backgrund grafic on the login screen too?

To the question von Njguy: This were very good, if it is possible too.

Thanks for your greate work and support...

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Changing login screen
« Reply #5 on: February 04, 2009, 11:12:58 am »
The submit button is in login.php. It is generated by the call to the function submit_button. The second argument to that function is the access key and the third is an array of attributes (the key is the attribute's name and the value is the attribute's value).

aerotecnicademexico

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Changing login screen
« Reply #6 on: April 04, 2009, 06:20:26 pm »
I would like to disable the forgot password link, scince the email sending doesn't work.

How can I do it?

aerotecnicademexico

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Changing login screen
« Reply #7 on: April 04, 2009, 06:45:04 pm »
I would like to disable the forgot password link, scince the email sending doesn't work.

How can I do it?

I actually did it changing opengoo/application/views/access/login.php

the last part from this:
Code: [Select]
<div id="loginSubmit"><?php echo submit_button(lang('login')) ?><span>(<a class="internalLink" href="<?php echo get_url('access''forgot_password'?>"><?php echo lang('forgot password'?>?</a>)</span></div>
  <!-- <p><a class="internalLink" href="<?php echo get_url('access''forgot_password'?>"><?php echo lang('forgot password'?></a></p> -->
to this:
Code: [Select]
<div id="loginSubmit"><?php echo submit_button(lang('login')) ?><span>Si olvido su contrasena, contacte al administrador (admin@something.com)</span></div>
  <!-- <p><a class="internalLink" href="<?php echo get_url('access''forgot_password'?>"><?php echo lang('forgot password'?></a></p> -->

Currently running version 1.3.1 on winxp with wamp server and the mail sending still broken, that's the reason I had to disable this link, if you ask for a new password, it gives email error and changes it, so you have to go directly to the database to recover it.

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Changing login screen
« Reply #8 on: April 07, 2009, 02:24:49 pm »
Have you tried configuring mail settings to use an SMTP server?

aerotecnicademexico

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Changing login screen
« Reply #9 on: April 13, 2009, 01:53:05 pm »
Have you tried configuring mail settings to use an SMTP server?
yes I did, but nothign seems to work

Daiver

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Ahlera - Web design & development
Re: Changing login screen
« Reply #10 on: April 28, 2009, 11:33:19 am »
Hi,

You can put the logo in the file 'application/layouts/dialog.php'. For example, you can put it in the div with id="dialog":
Code: [Select]
<div id="dialog">
    <img src="http://www.opengoo.org/images/logo_goo.png" />
    ...
</div>

Or you can edit CSS style in file 'public/assets/themes/default/stylesheets/dialog.css'.

I´m having some trouble understanding the structure of how OpenGoo is built. I guess it just takes practice.

The only change I want to do is add a logo at the top of the login page and some text after the box.

Which method is best for these simple changes? Edit dialog.css or edit dialog.php?

Thanks!

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Changing login screen
« Reply #11 on: April 28, 2009, 04:36:58 pm »
I think it's better to edit dialog.php. It will give you more flexibility. But it will be overwritten next time you upgrade OpenGoo, so you should keep a backup to replace it again.

Daiver

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Ahlera - Web design & development
Re: Changing login screen
« Reply #12 on: April 28, 2009, 04:39:46 pm »
Thanks!

Daiver

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Ahlera - Web design & development
Re: Changing login screen
« Reply #13 on: May 28, 2009, 05:01:13 pm »
So, we finally got around to doing this. It looks pimp!

Check it out: http://projects.ahlera.com

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: Changing login screen
« Reply #14 on: June 04, 2009, 08:04:52 pm »
very inspiring!!
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?