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

USS Phenix 12-07-2002 11:23 PM

IS there like a Admin CP made to look like vb3?

rylin 12-07-2002 11:44 PM

Quote:

Originally posted by USS Phenix
IS there like a Admin CP made to look like vb3?
yeah, http://vbulletin.com/forum/admincp ;)

jokes aside - no, only logon :)

Boofo 12-08-2002 12:39 AM

Quote:

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

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:

Any further on the log file? :)

Boofo 12-08-2002 12:59 AM

Sebastian, I can't find any of that code you posted in the admin/global.php. I am running 2.2.9. Can you tell me where it is supposed to be?

Zazz 12-08-2002 09:09 AM

it's in the vb3login.php file.
The instructions he posted are for the old version of the hack.

Boofo 12-08-2002 12:47 PM

Has anyone noticed the problem when clicking a link (to like the following)?

http://www.bearfacts2.com/forum/admin/user.php?action=doips&s=&ipaddress=xx.xxx.xx.xxx

It seems to log on fine and then just goes to a Done page with background color and nothing else. There is normally an IP address in there, but I replaced it with x's.

Xenon 12-08-2002 12:53 PM

Quote:

Originally posted by USS Phenix
IS there like a Admin CP made to look like vb3?
you can always modify cp.css to look like vb3 and then change a view images :)

but released? no, there you ahve to wait for vb3 ;)

Bison 12-08-2002 04:54 PM

I'll give this a try ... looks good from a visual standpoint.

Kohhal 12-09-2002 09:52 AM

Quote:

Originally posted by USS Phenix
IS there like a Admin CP made to look like vb3?
Yes, http://www.vbulletin.com/forum/showt...threadid=60376

drives fast 12-13-2002 02:44 AM

why exactly does this hack require a seperate php script?

the html in the global.php can be edited and get the same result without it

Keyser S?ze 12-13-2002 11:23 PM

ok, i installed this, works fine, but is the only thing new/diffrent the login screen?

wats the point of that

Xenon 12-14-2002 09:40 PM

yes it's the only thing, that's the hack

what's the point?
you should know why you installed it....

Boofo 12-14-2002 10:31 PM

Did anyone ever figure out when you click on an IP link (to check it) that it goes to a blank screen instead of the IP listing with this hack?


All times are GMT. The time now is 04:19 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.01197 seconds
  • Memory Usage 1,774KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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