Marshalus
10-01-2002, 10:00 PM
I don't know about anyone else, but the incorrect password window on the Admin CP really bugs the hell out of me. It's purple, and ugly, and looks well, bad.
I wanted something simple, and something that was styled to look like my Admin CP, so I did this:
Open admin/sessions.php
Find the line that says:
eval("standarderror(\"".gettemplate("error_wrongpassword")."\");");
And comment it out so it says:
// eval("standarderror(\"".gettemplate("error_wrongpassword")."\");");
Then directly under it place:
echo "<html><head><link rel=\"stylesheet\" href=\"../cp.css\"><title>Error</title></head>";
echo "<body leftmargin=\"10\" topmargin=\"10\" marginwidth=\"10\" marginheight=\"10\">";
echo "The username and/or password you're attempting to use is invalid.";
echo "</body></html>";
exit;
Reupload admin/session.php and test it out for yourself. If you don't like it, you can un // the normal code, and remove what you added.
Screenshot: Result of an invalid login (https://vborg.vbsupport.ru/attachment.php?s=&postid=305964)
Any comments are welcome, it should work without any problems, as I've run it on my test board and live board without any problems.
Remember, if you use it, hit 'install'
I wanted something simple, and something that was styled to look like my Admin CP, so I did this:
Open admin/sessions.php
Find the line that says:
eval("standarderror(\"".gettemplate("error_wrongpassword")."\");");
And comment it out so it says:
// eval("standarderror(\"".gettemplate("error_wrongpassword")."\");");
Then directly under it place:
echo "<html><head><link rel=\"stylesheet\" href=\"../cp.css\"><title>Error</title></head>";
echo "<body leftmargin=\"10\" topmargin=\"10\" marginwidth=\"10\" marginheight=\"10\">";
echo "The username and/or password you're attempting to use is invalid.";
echo "</body></html>";
exit;
Reupload admin/session.php and test it out for yourself. If you don't like it, you can un // the normal code, and remove what you added.
Screenshot: Result of an invalid login (https://vborg.vbsupport.ru/attachment.php?s=&postid=305964)
Any comments are welcome, it should work without any problems, as I've run it on my test board and live board without any problems.
Remember, if you use it, hit 'install'