vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Admin CP styled "invalid password" (https://vborg.vbsupport.ru/showthread.php?t=44212)

Marshalus 10-01-2002 10:00 PM

Admin CP styled "invalid password"
 
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:
Code:

eval("standarderror(\"".gettemplate("error_wrongpassword")."\");");
And comment it out so it says:
Code:

// eval("standarderror(\"".gettemplate("error_wrongpassword")."\");");
Then directly under it place:
Code:

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

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

[high]* CeleronXL clicks install
[/high]

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
Code:

    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

Quote:

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


All times are GMT. The time now is 09:07 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02113 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete