PDA

View Full Version : Admin CP styled "invalid password"


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'

Dean C
10-02-2002, 06:36 PM
lol ive wanted to do this for a while now...

- miSt

Marshalus
10-02-2002, 07:30 PM
So have I, but it wasn't till I was rehacking my board installing Firefly's admin e-mail hack that I realized where to put it.

Xenon
10-02-2002, 09:13 PM
lool, short, easy and something everyone wanted to do in the past *gg*

thanks marshalus

NTLDR
10-02-2002, 09:46 PM
Simple, but sweet, thanks for sharing :D

DWZ
10-04-2002, 08:58 AM
can we have a screenshot please?

thanks :)

8ball
10-04-2002, 01:55 PM
this is a screenshot :

Chris M
10-04-2002, 05:10 PM
Nice:)

Satan

CeleronXL
10-05-2002, 12:37 AM
* CeleronXL clicks install

Very nice. :)

blackice912
10-05-2002, 01:20 AM
Oh, sweet. :) *installs*

FleaBag
10-13-2002, 03:00 PM
Cheers, small but I like it. :) Running on 2.2.7. :)

TECK
10-14-2002, 05:35 AM
marshalus, isnt easier this way?
sessions.php
if (md5($loginpassword)!=$bbuserinfo[password]) {
echo "Invalid password!";
i have it this way for a long time... :)

FleaBag
10-29-2002, 07:39 PM
Works with 2.2.8. :)

Chris M
10-29-2002, 07:41 PM
@TECK - Does that style it as an Admin CP way?

Satan

Visionray
10-30-2002, 10:56 AM
OR I guess we could just all remember our own passwords ;)

lol this is nice though, Im installing it. :)

-=dm=-
10-30-2002, 01:29 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.

damn I have never seen that window, I always carefull :D

thanx Marshalus

Chris M
10-30-2002, 02:39 PM
I do...

I forget my password lol...

Satan