Author Topic: Login Screen Question  (Read 15023 times)

0 Members and 1 Guest are viewing this topic.

Offline LoOpP

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Login Screen Question
« on: February 28, 2003, 08:54:28 PM »
Is it possible to put the login and register field on a special page
and after you logged in you get directed to the page where you can view the pictures??


thx for help

tobi

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
Login Screen Question
« Reply #1 on: February 28, 2003, 10:06:48 PM »
You can do more or less the same thing without any script modification. Go Admin Panel > Edit Categoris and set View Category > Registered Users. Then your visitors can see no images/categories before they logged in.

Offline LoOpP

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Login Screen Question
« Reply #2 on: March 01, 2003, 03:33:27 AM »
thx for the answer but I did this already


I want the login screen separted, because of a better design and better viewing

Offline LoOpP

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Login Screen Question
« Reply #3 on: March 01, 2003, 05:31:23 PM »
no answers?

please help me??

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Login Screen Question
« Reply #4 on: March 01, 2003, 06:36:03 PM »
Create a new HTML file in your template directory.  (Must have .html as the file name extension)  For this example let's call it "MyLogin.html".

Inside this file put,
Code: [Select]
{header}
{user_box}
{footer}

Display the page to your visitors using this link:
http://www.Domain.com/4images/index.php?template=MyLogin

The only drawback is that if the login fails, the user is directed to the 4images error.html template.  For more information, you might want to consult the "user integration" mods.  These might give you a direction on how to implement something on your site.

Offline LoOpP

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Login Screen Question
« Reply #5 on: March 01, 2003, 09:00:00 PM »
thx for the answer
my MyLogin.html looks :
Code: [Select]

<html>
<head>
<title>Unbenanntes Dokument</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
{header}
{user_box}
{footer}

<body>
</body>
</html>


and I only come to the normal page

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Login Screen Question
« Reply #6 on: March 01, 2003, 09:40:06 PM »
Quote from: LoOpP

my MyLogin.html looks :
Code: [Select]

<html>
<head>
<title>Unbenanntes Dokument</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
{header}
{user_box}
{footer}

<body>
</body>
</html>

You are close but you did not follow the instructions I gave exactly.

The file should contain ONLY:
Code: [Select]
{header}
{user_box}
{footer}

The contents of header.html and footer.html will contain the <HEAD> and <BODY> tags.  If you add them again, you will produce a page that contains invalid HTML markup.

Try again with only the 3 lines as I have illustrated and it should work.  I tested it this way myself before making my first post.  

(Of course you can also ADD additional body content as you see fit)

Offline LoOpP

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Login Screen Question
« Reply #7 on: March 01, 2003, 10:11:36 PM »
Ok

I have this code in MyLogin.html

Code: [Select]
{header}
{user_box}
{footer}


this link

http://www.fos-spion.de/4images1.7/4images/index.php?template=MyLogin

but as you can see when you follow the link it doesn't work!!


what do I wrong?
THx for your support!

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Login Screen Question
« Reply #8 on: March 01, 2003, 11:29:00 PM »
I'm not sure what you did wrong but as far as I can tell, the new template file doesn't exist.

Using your link of:
http://www.fos-spion.de/4images1.7/4images/index.php?template=MyLogin

the template file should be located here:
http://www.fos-spion.de/4images1.7/templates/default/MyLogin.html

But that only produces a "page not found" error.  Are you sure you put "MyLogin.html" in the default templates directory?  Is the file spelled correctly?  UNIX systems are case sensitive so if you're using such a system to host your site, is your file named "mylogin.html"?

The new template must be located with the other 4images templates like home.html, details.html and so forth.

Offline LoOpP

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Login Screen Question
« Reply #9 on: March 02, 2003, 12:06:18 AM »
YEA it works

I placed the mylogin.html wrong! THX

But now I see another problem if I marke the option that I should logg in automaticly after i registered than I see only the field that I 'm logged in but I can't see the pictures(the normal main layout)

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Login Screen Question
« Reply #10 on: March 02, 2003, 06:06:54 AM »
I don't understand you.  After logging in from index.php?template=mylogin, you should be taken to index.php which uses home.html as the template.

Offline LoOpP

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Login Screen Question
« Reply #11 on: March 02, 2003, 02:16:16 PM »
It looks like this wenn I'm automaticly logged in and it is very compicated for the users to come now to the pictures


Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Login Screen Question
« Reply #12 on: March 02, 2003, 05:33:42 PM »
Sorry.  I don't know what needs to be modified in the PHP code to support auto login in this setup.  My only suggestion would be to remove
Code: [Select]

        <br />
        <table border="0" cellspacing="0" cellpadding="0">
          <tr valign="top">
            <td><input type="checkbox" name="auto_login" value="1" /></td>
            <td><span class="smalltext">{lang_auto_login}</span></td>
          </tr>
        </table>

from the user_loginform.html template to disable the "auto-login" since the standard login redirects to the home.html template.

Offline LoOpP

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Login Screen Question
« Reply #13 on: March 03, 2003, 11:57:41 AM »
I have changed like you said but the problem still exsists!!!

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Login Screen Question
« Reply #14 on: March 04, 2003, 02:56:12 AM »
Click the logout link, close the browser and try logging in as a user other than a 4images administrator

If that doesn't work, then I'm out of ideas.