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)

Linux 11-27-2002 12:42 AM

I Never seen the VB3-Style admin-login, could you please post a screenshot ?

CeleronXL 11-27-2002 01:01 AM

You can see the vB3 style mod login here: http://www.vbulletin.com/forum/modcp

The admin login looks the same.

Erwin 11-27-2002 01:17 AM

Just a few tips - you need to manually add the table background image to the HTML code to make it look exactly like the vB3 mod cp login.

Also, you need to remove the username from the login text input box.

Ensure you remove all the vB3 <form> and hidden input variables, and replace it with the vB2 ones as well as the PHP code needed in the middle of the HTML code - his instructions don't make it clear.

As the hack author has stated he will support this hack, I will leave the rest to him. :)

countryboy713 11-27-2002 05:15 AM

Quote:

Step 1, download the vb3 control-panel stylesheet, name it to eg admin/vb3cp.css
where do i download this?

Erwin 11-27-2002 05:34 AM

Another tip - in vB3cp.css, get rid of the references to the background gifs - they don't exist on your server and will slow down the loading of your login page.

rylin 11-27-2002 09:29 AM

Right,
after
PHP Code:

if ($bbuserinfo[userid]==and $checkpwd) { 

it should look like

PHP Code:

//  cpheader("<title>Forums admin</title>");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
        <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" />
        <meta http-equiv="MSThemeCompatible" content="yes" />
        <link rel="stylesheet" href="cp2.css" />
        <title>vBulletin Moderators' Control Panel</title>      <script language="Javascript">

        // attempt to rename the frameset title
        if (typeof(parent.document) != 'undefined' && typeof(parent.document) != 'unknown' && typeof(parent.document.title) == 'str$
        {
                if (document.title != '')
                {
                        parent.document.title = document.title;
                }
                else
                {
                        parent.document.title = "vBulletin Community Forum Control Panel";
                }
        }
        </script>
</head>
<body onload="document.forms.submitrow.loginusername.focus()">
        <p>&nbsp;</p><p>&nbsp;</p>
                
<br><br><br>
<form method="post" id="submitrow">
<input type="hidden" name="s" value="<?php echo $session[sessionhash]; ?>">
<input type="hidden" name="action" value="login">
<input type="hidden" name="redirect" value="<?php
                        
if ($HTTP_SERVER_VARS['REQUEST_URI']!="") {
  
$url $HTTP_SERVER_VARS['REQUEST_URI'];
} else {
  if (
$PATH_INFO) {
    
$url $PATH_INFO;
  } else {
    
$url $PHP_SELF;
  }

  if (
$QUERY_STRING) {
    
$url .= "?$QUERY_STRING";
  }
}                       

  
$url=ereg_replace("sessionhash=[a-z0-9]{32}&","",$url);
  
$url=ereg_replace("\\?sessionhash=[a-z0-9]{32}","",$url);
  
$url=ereg_replace("s=[a-z0-9]{32}&","",$url);
  
$url=ereg_replace("\\?s=[a-z0-9]{32}","",$url);
echo 
htmlspecialchars($url);
?>">
        <table cellpadding="1" cellspacing="0" border="0" width="450" align="center" class="tborder"><tr><td>
        <table cellpadding="4" cellspacing="0" border="0" width="100%">
        <tr>
        <td class="tcat" align="center"><b>Please Log In:</b></td>
</tr>
        </table>        
        <!-- logo and version -->
        <table cellpadding="4" cellspacing="0" border="0" width="100%" class="navbody">
        <tr valign="bottom">
                <td><img src="cp_newlogo.gif" width="160" height="66" alt="cplogo" title="vBulletin &copy;2000-2002 Jelsoft Enterpr$
                <td><b><a href="../index.php">MGOForum</a></b><br />vBulletin Administrators' Control Panel<br />&nbsp;</td>
        </tr>
        </table>
        <!-- /logo and version -->
        <table cellpadding="4" cellspacing="0" border="0" width="100%" class="submitrow">
        <tr>
                <td width="100" align="right" class="button"><u>U</u>sername</td>
                <td><input type="text" name="loginusername" value="" size="40" accesskey="u" /></td>
        </tr>           
        <tr>
                <td align="right" class="button"><u>P</u>assword</td>
                <td><input type="password" name="loginpassword" size="40" accesskey="p" /></td>
        </tr>
        <tr>
                <td colspan="2" align="center">
                        <input type="submit" value="  Log In  " accesskey="s" />
                </td>
        </tr>
        </table>
        </td></tr></table>
</form>
<p align="center"><font size="1">vBulletin v<?php echo $templateversion ?> Administrator Control Panel</font></p>
<?php
  cpfooter
();
  exit;
}

?>

(Note, this was to the actual *end* of the file, in other words, the last } bracket is the end of the
PHP Code:

if ($bbuserinfo[userid]==and $checkpwd) { 

check)

rylin 11-27-2002 09:43 AM

Now for the urls to stylesheets etc :p
Stylesheet: http://vbulletin.com/forum/clientscr...ntrolpanel.css
save it as admin/cp2.css
vBulletin logo: http://www.vbulletin.com/forum/images/cp/cp_logo.gif
save it as admin/cp_newlogo.gif
background image 1: http://vbulletin.com/forum/images/cp...lheader_bg.gif
save it as admin/cp_colheader_bg.gif
background image 2: http://vbulletin.com/forum/images/cp/cp_navbody_bg.gif
save it as admin/cp_navbody_bg.gif
background image 3:
http://vbulletin.com/forum/images/cp/cp_tblhead_bg.gif
save it as admin/cp_tblhead_bg.gif

now, the whole thing should look something like the attachment:

camikazi2k 11-27-2002 11:14 AM

ok ok ok
THIS IS WAY TOO CONFUSING
u should put everything in one file and release the hack
thanks

rylin 11-27-2002 11:17 AM

we're not allowed to release whole files though? (eg. vbulletin files) :/

Xenon 11-27-2002 01:16 PM

you can release files you've written yourself, or the instructions here can be put into a file, but you are not allowed to post full vb-files, no matter if you have changed some code in it or not..


All times are GMT. The time now is 09:50 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.02076 seconds
  • Memory Usage 1,766KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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