|
|
Scorpian04111986
new user
Reg'd: Fri
Posts: 5
|
|
Hello im new quite new to the more complex website building but have made a few simple ones. The main one of these is one for my Scout Group and is at www.15thtorbay.150m.com. The problem i have is I have set up a page for Group members etc that is password protected so only members of the Group or local "Scouters" can view the details of the other members i have already read a few forums and successfully set up a single username and password interface using HTML code in the following way
"<script language="javascript"> <!--// /*This Script allows people to enter by using a form that asks for a UserID and Password*/ function pasuser(form) { if (form.id.value=="Username") { if (form.pass.value=="Password") { location="MembersArea.htm" } else { alert("Invalid Password") } } else { alert("Invalid UserID") } } //--> </script>
<center> <table bgcolor="white" cellpadding="12" border="1"> <tr><td colspan="2"><center><h1><i><b>Login Area</b></i></h1></center></td></tr> <tr><td><h1><i><b>UserID:</b></i></h1></td><td><form name="login"><input name="id" type="text"></td></tr> <tr><td><h1><i><b>Password:</b></i></h1></td><td><input name="pass" type="password"></td></tr> <tr><td><center><input type="button" value="Login" onClick="pasuser(this.form)"></center></td><td><center><br><input type="Reset"></form></td></tr></table></center>"
Obviously ive removed the username and password but i woul like to change it so i can have multiple logons with passwords (preferably one for each member ogf the group with online access about 20
any help on this would be greatly appreciated
|
|
ianm
regular
Reg'd: Fri
Posts: 345
Loc: Colchester
|
|
This idea may sound like a bit of a cop out but this will fit with your needs perfectly, there is an amazing CMS out called MODx, it classed as a CMS framework more than just a plane CMS you need to read their site for all the info, the secret on installation is to tick the box saying something like install demo site, once done you have a 100% ready to go site, all you need to do is set up your existing template which is all done from the admin / manager section. It may take a little while to work out how to do this but stick with it as I think this will be exactly what you need as people can log in as webusers and you can set permissions as to what pages they can or cant view. Here is the link to download it and find out everything you need to know about it http://www.modxcms.com/
|
Zippy_Brown
regular
Reg'd: Fri
Posts: 88
Loc: /dev/null
|
|
Do not use JavaScript for this purpose ever or your website WILL GET HACKED.
Anyone can simply view your HTML source code (if your JavaScript is embeded) or view the JavaScript file (the file name is in the HTML source), and it will clearly display the username and password in plain text!!!!!
BE WARNED. It's not a case of your site might get hacked, it's more a case of how soon will it be?
You MUST always use a server side scripting code for this purpose. Server side scripts are run on the server and not downloaded to each visitors computer. This way, no-one can view the source of your scripts. Try PHP for a linux server or ASP for Windows servers. If your host does not offer these, upgrade your hosting or move hosts.
-------------------- Zippy
|
predator
regular
Reg'd: Sun
Posts: 541
|
|
One option might be to install forum software such as phpbb as that lets you have public forums and/or private ones and comes with all the multiple login elements and security elements that you'd need
|
Scorpian04111986
new user
Reg'd: Fri
Posts: 5
|
|
how would i go about that ive downloaded something from the website but im not sure how to set it up and there doesnt seem to be any instructions
|
predator
regular
Reg'd: Sun
Posts: 541
|
|
phpbb does come with documentation, plus installation guides are available at www.phpbb.com
|