1
laurie1681
Exporting user login block in an external page?(php or html page)
  • 2005/9/25 17:42

  • laurie1681

  • Just popping in

  • Posts: 12

  • Since: 2005/5/6 2


I have a question is it possible to import the login/authentification block on the index page of my website? if yes how?
Like this i keep my current index page and only members can access the portal..(through the login block on the index page)
thanks a lot

2
skalpa
Re: Exporting user login block in an external page?(php or html page)
  • 2005/9/25 17:47

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Yes, just copy the content of the login block, and change the xoops_redirect field value to the real address of your portal homepage:
<form style="margin-top: 0px;" action="https://xoops.org/user.php" method="post">
    
Username: <br />
    <
input type="text" name="uname" size="12" value="" maxlength="25" /><br />
    
Password: <br />
    <
input type="password" name="pass" size="12" maxlength="32" /><br />
    <
input type="hidden" name="xoops_redirect" value="http://www.mydomain.com/portal/" />
    <
input type="hidden" name="op" value="login" />
    <
input type="submit" value="User Login" /><br />  
</
form>


skalpa.>
Any intelligent fool can make things bigger, and more complex. It takes a touch of genius, a lot of courage, to move in the opposite direction.
Two things are infinite: the universe and human stupidity; and I'm not sure about the 1st one (A.Einstein)

Login

Who's Online

232 user(s) are online (164 user(s) are browsing Support Forums)


Members: 0


Guests: 232


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