News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Login from my homepage

Started by dazserv, June 15, 2006, 10:04:47 AM

Previous topic - Next topic

dazserv

I'm very new to this, its probably very simple but i'm new.

I have a regular html home page, and my smf forum is in a subdirectory /forum
how do i put a login form on my html home page, simmalar to what SMF has here on the home page at the bottom

Oldiesmann

Change the extension of your homepage to .shtml (instead of .htm or .html) and add this code wherever you want the login box to appear:

<!--#include virtual="./forum/SSI.php?ssi_function=login"-->
Michael Eshom
Christian Metal Fans

dazserv

Ok, how does this work because I don't see anything, when I say i'm new I mean I'm really new i don't understand

dazserv


dazserv

I understand how this works, but I don't understand why I don't see the login box

<html>
<head>
<title></title>
</head>


<body bgcolor="#FFFFFF">
<!--#include virtual="./forum/SSI.php?ssi_function=login" -->
</body>


</html>

nend

Maybe server isn't set up for server side inclusions.  Rename your html document to php and try this

<?php include('./forum/SSI.php?ssi_function=login'); ?>

Advertisement: