Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
VB3-Style admin-login Details »»
VB3-Style admin-login
Version: 1.00, by rylin rylin is offline
Developer Last Online: Dec 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-26-2002 Last Update: Never Installs: 27
 
No support by the author.

Right..
Just for fun (well, for the looks, really ) I took a few minutes to re-write the vb2.2.8 admin-login screen to look like the vb3 preview one.

Note: the code does use images that are copyrighted to jelsoft, so you're *supposed* to use your own, unless jelsoft allow us all to use them

Step 1, download the hack (attachment to this post)
Step 2, unzip all the files to your admin/ directory
Step 3, open up global.php (in the admin dir!)
Step 4:
Look for
PHP Code:
if ($bbuserinfo[userid]==and $checkpwd) { 
Delete *everything* below it, and paste:
PHP Code:
  include 'vb3login.php';
  
cpfooter();
  exit;
// end of if ($bbuserinfo[userid]==0 and $checkpwd)
  
?> 
anyway.. have fun, and enjoy

11/28: Made the username (if it was ever set) appear in the username box automatically.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 11-27-2002, 12:42 AM
Linux's Avatar
Linux Linux is offline
 
Join Date: Feb 2002
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I Never seen the VB3-Style admin-login, could you please post a screenshot ?
Reply With Quote
  #13  
Old 11-27-2002, 01:01 AM
CeleronXL's Avatar
CeleronXL CeleronXL is offline
 
Join Date: Nov 2001
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

The admin login looks the same.
Reply With Quote
  #14  
Old 11-27-2002, 01:17 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #15  
Old 11-27-2002, 05:15 AM
countryboy713 countryboy713 is offline
 
Join Date: Mar 2002
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Step 1, download the vb3 control-panel stylesheet, name it to eg admin/vb3cp.css
where do i download this?
Reply With Quote
  #16  
Old 11-27-2002, 05:34 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 11-27-2002, 09:29 AM
rylin rylin is offline
 
Join Date: Nov 2001
Location: Stockholm, Sweden
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #18  
Old 11-27-2002, 09:43 AM
rylin rylin is offline
 
Join Date: Nov 2001
Location: Stockholm, Sweden
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now for the urls to stylesheets etc
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:
Reply With Quote
  #19  
Old 11-27-2002, 11:14 AM
camikazi2k camikazi2k is offline
 
Join Date: Jan 2002
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok ok ok
THIS IS WAY TOO CONFUSING
u should put everything in one file and release the hack
thanks
Reply With Quote
  #20  
Old 11-27-2002, 11:17 AM
rylin rylin is offline
 
Join Date: Nov 2001
Location: Stockholm, Sweden
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

we're not allowed to release whole files though? (eg. vbulletin files) :/
Reply With Quote
  #21  
Old 11-27-2002, 01:16 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:52 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.06988 seconds
  • Memory Usage 2,331KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete