PDA

View Full Version : Admin CP styled "invalid password"


Marshalus
02 Oct 2002, 19:18
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 (http://www.vbulletin.org/forum/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
02 Oct 2002, 19:36
lol ive wanted to do this for a while now...

- miSt

Marshalus
02 Oct 2002, 20:30
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
02 Oct 2002, 22:13
lool, short, easy and something everyone wanted to do in the past *gg*

thanks marshalus

NTLDR
02 Oct 2002, 22:46
Simple, but sweet, thanks for sharing :D

DWZ
04 Oct 2002, 09:58
can we have a screenshot please?

thanks :)

8ball
04 Oct 2002, 14:55
this is a screenshot :

Chris M
04 Oct 2002, 18:10
Nice:)

Satan

CeleronXL
05 Oct 2002, 01:37
/me clicks install

Very nice. :)

blackice912
05 Oct 2002, 02:20
Oh, sweet. :) *installs*

FleaBag
13 Oct 2002, 16:00
Cheers, small but I like it. :) Running on 2.2.7. :)

TECK
14 Oct 2002, 06:35
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
29 Oct 2002, 20:39
Works with 2.2.8. :)

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

Satan

Visionray
30 Oct 2002, 11:56
OR I guess we could just all remember our own passwords ;)

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

-=dm=-
30 Oct 2002, 14:29
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
30 Oct 2002, 15:39
I do...

I forget my password lol...

Satan