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)
-   -   VB3-Style admin-login (https://vborg.vbsupport.ru/showthread.php?t=46137)

rylin 11-28-2002 09:16 AM

Quote:

Originally posted by Sebastian
how do I get it to automatically put my username in the username field like: http://www.vbulletin.com/forum/modcp when I go there is puts my vbulletin.com username in the box and puts the cursor on the password box.
Look for the line that says (in vb3login.php)
PHP Code:

<td><input type="text" name="loginusername" value="" size="40" accesskey="u" /></td

and change it to
PHP Code:

<td><input type="text" name="loginusername" value="<?php if(isset($bbuserinfo["username"]) && ($bbuserinfo["username"] != "Unregistered")) { echo $bbuserinfo["username"]; } ?>" size="40" accesskey="u" /></td>

updating zip in a while..

Kars10 11-28-2002 09:38 AM

Cool OkiDoki!!
But can u make that we can use this for the Mod-Login too??
What must i change in the mod-global.php if i would use there the login-screen too?
Thankx!

/me klicks install.

rylin 11-28-2002 09:49 AM

Quote:

Originally posted by Minifreunde
Cool OkiDoki!!
But can u make that we can use this for the Mod-Login too??
What must i change in the mod-global.php if i would use there the login-screen too?
Thankx!

* Minifreunde klicks install.

I'm going to re-work it slightly to use the same include for admin & mod, stripped down css etc for tonight..
Expect a updated zip in some 12 hours (or less, if i get bored :p :p :p)

Exo 11-28-2002 11:05 AM

any screens? ;)

rylin 11-28-2002 11:08 AM

Quote:

Originally posted by Exo
any screens? ;)
https://vborg.vbsupport.ru/attachmen...&postid=325989

Sebastian 11-28-2002 04:44 PM

okidoki: That works.. it puts the username in the box, but how do I get the cursor to go to the password field automatically if the username is already filled in?

Kars10 11-28-2002 04:50 PM

Quote:

Originally posted by Sebastian
okidoki: That works.. it puts the username in the box, but how do I get the cursor to go to the password field automatically if the username is already filled in?
Check this Hack by Teck out:

Sebastian 11-28-2002 09:01 PM

Thanks, the admin/global.php already has the code.

Change:
Code:

<body onload="document.forms.submitrow.loginusername.focus()">
to:
Code:

<body onload="document.forms.submitrow.loginpassword.focus()">
And it will put the cursor on the password field instead.

Sebastian 11-28-2002 09:30 PM

Okay, I added IP/Hostname to it, so at leasts it scares a mice away, or try ;)

After you have applied okidoki's hack.

In admin/global.php

Find:
Code:

<input type="hidden" name="s" value="<?php echo $session[sessionhash]; ?>">
<input type="hidden" name="action" value="login">
<input type="hidden" name="redirect" value="<?php

Directly below add:
Code:

$ipaddress=iif(getenv("REMOTE_ADDR")!="",getenv("REMOTE_ADDR"),$HTTP_HOST);
$hostname = @gethostbyaddr($ipaddress);

Still in admin/global.php
Find:
Code:

<p align="center"><font size="1">vBulletin v<?php echo $templateversion ?> Administrator Control Panel</font></p>
Replace with:
Code:

<p align="center"><font size="1">vBulletin v<?php echo $templateversion ?> Administrator Control Panel<br><?php echo $ipaddress ?>@<?php echo $hostname ?> <br><b><font color="#F90824">LOGGED</font></p>
If you really want you can make it log IP/Hostmask to a .txt file or .log file. I will probably end up doing that.
Anyone want to give it a shot? hope you don't mind okidoki ;)

Pic:

rylin 11-29-2002 01:27 PM

Quote:

Originally posted by Sebastian
Anyone want to give it a shot? hope you don't mind okidoki ;)

I don't mind at all :)


All times are GMT. The time now is 08:06 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.01090 seconds
  • Memory Usage 1,749KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete