July 3, 200917 yr The frequent admin for the site I am making is going to be one with no knowledge of HTML. But he is only going to be changing some aspects of the site such as uploading new photos, updating newest posts, etc. So, that is fine. And any editing that requires editing code will be done by me. The question is this, I need to have some sort of log in system that allows for the other admin to log in make his changes. But I do not want that log in sectin to be apparent on the site, so other viewers won't mistaken it as something else. Is there a way to do this? Or is there a totally different way to think about this which is more productive? Thanks for your help.
July 3, 200917 yr Look into PHP and MYSQL. The login section is easy... make a page called "login.php", just don't advertise it on the website. If you tell your site admin to goto "http://www.yoursite.com/login.php" (notice the added login.php) then they can go there every time they wish to adminitrate the site.
July 4, 200917 yr Author Look into PHP and MYSQL. The login section is easy... make a page called "login.php", just don't advertise it on the website. If you tell your site admin to goto "http://www.yoursite.com/login.php" (notice the added login.php) then they can go there every time they wish to adminitrate the site. ok, I'll try that out thanks
July 4, 200917 yr Author Look into PHP and MYSQL. The login section is easy... make a page called "login.php", just don't advertise it on the website. If you tell your site admin to goto "http://www.yoursite.com/login.php" (notice the added login.php) then they can go there every time they wish to adminitrate the site. Ok, so here is the script i got for the login scetion: "<? function isLogged($UserName, $PassWord, $LogInPage) { //Without this, PHP will create a local //variable called $HTTP_COOKIE_VARS. global $HTTP_COOKIE_VARS; $Entered_UserName = ""; $Entered_PassWord = ""; if(isset($HTTP_COOKIE_VARS["UserName"]) && isset($HTTP_COOKIE_VARS["PassWord"])) { $Entered_UserName = $HTTP_COOKIE_VARS["UserName"]; $Entered_PassWord = $HTTP_COOKIE_VARS["PassWord"]; } if($Entered_UserName != $UserName || $Entered_PassWord != $PassWord) { //$LogInPage should be the name of an existing file //with alternative web content. If you don't wish to //provide such content, just pass the empty string. if($LogInPage != "") include($LogInPage); return(false); } else return(true); } ?>" and "<form name="login"> <table align="center" cellpadding="10" cellspacing="0" border="1"> <tr> <td>User Name </td> <td><input type="text" name="UserName" /></td> </tr> <tr> <td>Password</td> <td><input type="password" name="PassWord" /></td> </tr> <tr> <td colspan="2" align="right"> <input type="button" value="log in" onclick="document.cookie = 'UserName=' + document.login.UserName.value; document.cookie = 'PassWord=' + document.login.PassWord.value; document.EmptyForm.submit();"> </td> </tr> </table> </form> <form name="EmptyForm" method="post"> </form>" Now, because I don't need a register section, so all I need is set a login and password name. If say I set that login = "hello" and password = "world", how do I set that and what type of page should that lead to? When the admin is logged in he would be able to use several PHP applicatins to upload pictures, etc. Thanks alot and sorry for my ignorance.
July 4, 200917 yr The PHP and MySQL route plus login would be fine if there will be thousands of items in a database, like a photo gallery or records of news items, but will it be OTT in your case? If it's just a question of changing a photo or a bit of text every week, then a simple CMS (content management system) might be better. These are designed for untrained staff to edit websites without wrecking the structure, they use a username and password to edit only selected places. Joomla is a professional CMS but Snippetedit http://www.snippetedit.com/ is designed for simple situations. <snippet> and </snippet> tags are put in places by you, but I suggest that image sizes are put outside the snippet tags so that if a huge image is uploaded , it will be resized automatically otherwise it would wreck a layout:- <img style="width: 350px;" src="<snippet>image.jpg</snippet>"> alt="<snippet>Photo description</snippet>"> height will be adjusted in proportion to width if not stated.
Create an account or sign in to comment