Putting simple logon box on main site homepage issue.
Posted by Dumb Newbie (DJ)
|
Putting simple logon box on main site homepage issue. November 07, 2006 09:07PM |
Registered: 19 years ago Posts: 3 |
Been having some problems doing something that I'm sure is probably very simple.
I have Phorum installed on my main server at [www.myserver.com] - and it's working fine.
I want however to put a simple logon box (http://www.myserver.com/index.php) onto the main site homepage and then redirect back to the homepage once logged on.
I guess I'm misunderstanding some of the things I've read but I'd hoped that something like:
<form action="[www.myserver.com]; method="post" style="display: inline;">
<input type="hidden" name="forum_id" value="0" />
<input type="hidden" name="redir" value="/index.php" /> // I.E. A level above the phorum dir //
Username<br />
<input type="text" id="username" name="username" class="form_entry" size="12" />
Password<br />
<input type="password" id="password" name="password" class="form_entry" size="12" />
<input type="submit" VALUE="Submit" />
</form>
Would do it - but it doesn't - it goes to the normal Phorum post login page.
I've had success pointing it to pages within the Phorum (forum) directory itself - i.e.
<input type="hidden" name="redir" value="/forum/search.php" />
will direct it to the search page post logon.
Very new to this (but have the forum set up coloured in as per client spec and working) I'm almost there? Any help appreciated.
I have Phorum installed on my main server at [www.myserver.com] - and it's working fine.
I want however to put a simple logon box (http://www.myserver.com/index.php) onto the main site homepage and then redirect back to the homepage once logged on.
I guess I'm misunderstanding some of the things I've read but I'd hoped that something like:
<form action="[www.myserver.com]; method="post" style="display: inline;">
<input type="hidden" name="forum_id" value="0" />
<input type="hidden" name="redir" value="/index.php" /> // I.E. A level above the phorum dir //
Username<br />
<input type="text" id="username" name="username" class="form_entry" size="12" />
Password<br />
<input type="password" id="password" name="password" class="form_entry" size="12" />
<input type="submit" VALUE="Submit" />
</form>
Would do it - but it doesn't - it goes to the normal Phorum post login page.
I've had success pointing it to pages within the Phorum (forum) directory itself - i.e.
<input type="hidden" name="redir" value="/forum/search.php" />
will direct it to the search page post logon.
Very new to this (but have the forum set up coloured in as per client spec and working) I'm almost there? Any help appreciated.
|
Re: Putting simple logon box on main site homepage issue. November 08, 2006 09:31PM |
Registered: 19 years ago Posts: 3 |
I'm now going to try using a full URL
e.g.
<input type="hidden" name="redir" value="[www.myserver.com"]; />
Doesn't seem to work so far, will update if I succeed.
e.g.
<input type="hidden" name="redir" value="[www.myserver.com"]; />
Doesn't seem to work so far, will update if I succeed.
|
Re: Putting simple logon box on main site homepage issue. November 09, 2006 04:58PM |
Registered: 24 years ago Posts: 1,076 |
Sorry, only registered users may post in this forum.