1
fipoo
Login page...
  • 2007/5/24 15:58

  • fipoo

  • Just popping in

  • Posts: 11

  • Since: 2005/9/9 0


Hi guys!
Is there a way to do an external login page?

What I'm planning is to redirect the user to a login page only when he's not already loged...

Like gmail do, displaying the login page when you are not loged on.

Can you help me?

2
wtravel
Re: Login page...

What you could do is to make all modules unavailable for anonymous users. When visitors try to open a page they will be forwarded to the login page by default (AFAIK).

3
Masske
Re: Login page...
  • 2007/5/25 11:58

  • Masske

  • Just popping in

  • Posts: 3

  • Since: 2007/5/25


Hi, I'm having the same problem.
I want a popup with a simple login page the be opened on page load.

I don't want to use the login page (user.php) or block.

Is there any way?

4
Masske
Re: Login page...
  • 2007/5/27 11:32

  • Masske

  • Just popping in

  • Posts: 3

  • Since: 2007/5/25


Weird, isn't there anybody who knows how to do this?

5
kris_fr
Re: Login page...
  • 2007/5/27 12:26

  • kris_fr

  • Theme Designer

  • Posts: 1009

  • Since: 2005/12/31


exemple :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<
head>
<
meta name="keywords" content="news,technologie,labs,laboratoire,rss,xoops,xoop,tuto,tutoriel,flash,video,avi,cours,apprentissage,student,nuke,myphpnuke,myphp-nuke,phpnuke, SE, geek, geeks, hacker,linux,software,download,telechargement,application,logiciel,free,libre,communaute,community,mp3,forum,bulletin,board,bbs,php,survey,poll,sondage,kernel,comment, portal,france,odp,open,source,opensource,FreeSoftware,gnu,gpl,license,Unix,*nix,mysql,sql,database,web site,weblog,guru,module,theme,cms,content management,blog,ajax,seo,css template,accessibility,demo,flv," />
<
meta name="description" content="XOOPS is a dynamic Object Oriented based open source portal script written in PHP. XOOPS est un Portail Dynamique Orienté Objet basé sur un script Open Source en PHP - Gestion de contenu pour collectivité, association, entreprise pme pmi et solution intranet" />
<
meta name="rating" content="general" />
<
meta name="author" content="KRIS XOOPS" />
<
meta name="copyright" content="Copyright © 2006-20011" />
<
meta name="generator" content="KRIS XOOPS" />
<
title>XooFoo Labs XOOPS Tips and Astuces</title>
</
head>
<
body><form action="http://labs.xoofoo.org/user.php" method="post">
  <
div align="center">
  <
input type="text" name="uname" size="12" maxlength="25" onfocus="this.value=''" onblur="if(this.value=='')this.value='Pseudo';" value="Pseudo" />
  <
input type="password" name="pass" size="12" maxlength="32" onfocus="this.value=''" onblur="if(this.value=='')this.value='Password';" value="Password"/>
  <
input type="hidden" name="xoops_redirect" value="/index.php" />
  <
input type="hidden" name="op" value="login" />
  <
input type="submit" value="Ok" />
  </
div>
</
form>
</
body>
</
html>

6
ewonline
Re: Login page...
  • 2007/5/27 16:26

  • ewonline

  • Not too shy to talk

  • Posts: 198

  • Since: 2004/11/17


I think you might be able to put something in header.php in the effect of
if (!$xoopsUser) {
header('Location: user.php');
//user.php is the login page
exit;
}
Resized Image

7
Masske
Re: Login page...
  • 2007/5/29 13:20

  • Masske

  • Just popping in

  • Posts: 3

  • Since: 2007/5/25


thx @kris_fr

it's working great now:
http://abipage.extra.hu

8
fipoo
Re: Login page...
  • 2007/5/31 16:44

  • fipoo

  • Just popping in

  • Posts: 11

  • Since: 2005/9/9 0


Yes!
What I have done was verify in header.php if the "user" that was trying to access the page is an xoopsuser... If no, I redirect the site to a login page... But to register an user I have created a temporary guest user so he can enter into the login page passing trought the header.php file!

So, it is working!

Login

Who's Online

274 user(s) are online (180 user(s) are browsing Support Forums)


Members: 0


Guests: 274


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits