Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create a new login page
Author Message
Polarbear541
Tuts Team



Posts: 448
Joined: Aug 2008
Reputation: 0
MyBux: 366
Post: #11
RE: How to create a new login page
I think he meant the whole file if that is?

Anyway if the login box is in the mybb directory couldn't you just use the template for the login box itself with any other required code parts.

Thanks Polarbear541! (Polar or PB)
Tuts Team at MyBBSource

[Image: polarbear541.png]
04-07-2009 02:37 AM
matrixsc
Junior Member


Posts: 33
Joined: Mar 2009
Reputation: 0
MyBux: 12
Post: #12
RE: How to create a new login page
(04-07-2009 02:37 AM)polarbear541 Wrote:  I think he meant the whole file if that is?

Anyway if the login box is in the mybb directory couldn't you just use the template for the login box itself with any other required code parts.


Ok after looking around and playing with a few things it seems this code works


To a degree !


PHP Code:
<form action='member.php' method='post'>
Username: <input type='text' name='username' size='25' maxlength='30' /><br />
Password: <input type='password' name='password' size='25' />
<
input type='hidden' name='action' value='do_login'>
<
input type='hidden' name='url' value='index.php' />
<
input type='submit' class='submit' name='submit' value='Login' /></form><br

Now who do i add a little box around this and centre it on a page?
Also add a registrations link?
Also is it possible to redirect after a member logs out back to this page?

What and where is the template for the login box ?

Thanks
04-07-2009 03:56 AM


Polarbear541
Tuts Team



Posts: 448
Joined: Aug 2008
Reputation: 0
MyBux: 366
Post: #13
RE: How to create a new login page
It is in ungrouped templates but it hasnt got the login button in that code so it would be best to stay with Nickmans code. The little box can be added with css. The registration link can also be added by basic HTML.

However redirecting it to another page would mean you having to change member.php which would be global on the forum.

Thanks Polarbear541! (Polar or PB)
Tuts Team at MyBBSource

[Image: polarbear541.png]
04-07-2009 04:30 AM
mirrorside
Junior Member


Posts: 8
Joined: Nov 2008
Reputation: 0
MyBux: 6
Post: #14
RE: How to create a new login page
Nice.
Will implement this on my board.
04-17-2009 07:08 AM


 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Creating my own NEWTHREAD page... need some quick infos BrownChiLD 3 52 04-15-2009 01:51 AM
Last Post: ByteHunter
  Custom forum down page patf 4 45 04-12-2009 06:51 AM
Last Post: Bluepower10
  Latest poll in index page side box??? karthikguru 0 28 01-09-2009 04:36 PM
Last Post: karthikguru
  html code for "redirect user to the page where he came from" karthikguru 5 139 12-21-2008 06:16 AM
Last Post: Dalton



New to MyBBSource?Need Assistance?
  • Mark Forums Read
  • View Forum Staff
  • Looking for a MyBB Host?

  



Theme created by AK-47. Find more great themes and skins at K! Dezign R1s.net