PDA

View Full Version : Login Box


reapercharlie
01-29-2007, 02:26 AM
I don't know if this is in the right forum section, but I figured I'd post it here.

For my site, I want to have it so the login box (after you have logged in) shows things such as private messages, link to control panel, etc...

How would I do that? Link is here: http://www.bombhq.com (the login box is on the left)

_Aerospace_Eng_
01-29-2007, 03:05 AM
Not with HTML. You'll need a server side language like php. www.hotscripts.com has some scripts that you might be able to use. You might be better off finding some kind of CMS. Coding the things from scratch isn't easy. From the sounds of things that would be a strong learning curve for you.

reapercharlie
01-29-2007, 04:48 AM
Thanks! =)

phpnewb
01-29-2007, 05:01 AM
If this has anything to do with a forum it is quite easy. I use phpbb on my site and my homepage has a login box on it. All I had to was integrate a few of the code files for login into my login form and I was finished. It really is quite easy. But if you are doing something from scratch, well that is a lot more difficult.

reapercharlie
01-29-2007, 06:14 AM
Mine are Invision forums =/ I don't know how to do it for Invision.

neomaximus2k
01-29-2007, 07:44 PM
If you are using phpSessions then you can check for the session login variable and if it is set then display the members menu, else show the login box.

If you are looking to use AJAX for this then using a DIV container for the login box and then change the innerHTML for that DIV tag once logged in.

reapercharlie
01-30-2007, 06:49 AM
I don't know how to use either of those. I'm kinda a newb with PHP, and AJAX is beyond me. How could I learn about those more?