![]() |
VB3-Style admin-login
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 :p 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:
PHP Code:
11/28: Made the username (if it was ever set) appear in the username box automatically. |
Thanks!
Btw, that URL should be http://www.vbulletin.com/forum/modcp , not just mod.] Posting the HTML in the files creates a parse error. O_o |
Hehe...
I don't the images should be a problem, since we are using it with a licensed vB. Post a demo or screenshot for the ones who would surely ask for one... |
To avoid parse errors when you place HTML in PHP files, make sure you put a \ slash behind every " like this:
<img src\"http://test.com/test.gif\"> Edit: Actually, this doesn't apply to global.php I've just had a look at it, as the HTML is not within php tags. |
The parse error is on the line that contains naught but <html>
|
Cool... it worked for me. :) Your instructions need to be a bit clearer - what to copy, what to replace etc. But it looks nice. :)
It works for both the Admin and Mod CP logins - for the mod one, just edit the mod global.php in the same way. :) |
Eh? Can you post exactly what you have from
PHP Code:
I was adding "echo "";" tags all the way down and it was working until I got to echo "<table cellpadding=\"4\" cellspacing=\"0\" border=\"0\" width=\"100%\" class=\"submitrow\">"; Whereupon it still gives a parse error. |
No, no need to put echo - just cut and paste the HTML code UNCHANGED - no need echo, no need backslash - that bit is not within PHP as the PHP tags have ended. :)
|
So what does yours read then? Even without the echo's, it does not work. Without the backslashes, it does not work. O_o
Mine reads like this: PHP Code:
|
can someone post a way I can understand it better I'm confused and i wanna get this.
|
I Never seen the VB3-Style admin-login, could you please post a screenshot ?
|
You can see the vB3 style mod login here: http://www.vbulletin.com/forum/modcp
The admin login looks the same. |
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. :) |
Quote:
|
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.
|
Right,
after PHP Code:
PHP Code:
PHP Code:
|
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: |
ok ok ok
THIS IS WAY TOO CONFUSING u should put everything in one file and release the hack thanks |
we're not allowed to release whole files though? (eg. vbulletin files) :/
|
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..
|
Quote:
|
Was this rewritten at all or just a save as ... file.htm
|
Quote:
global.php was hacked to simply include() the page |
nice one for attaching that zip :D
|
looks great! thx
*installs* |
heh...my co-admin messed up and installed it wrong...only he could log in for admin, wouldn't let me in. Uninstalled it, for now.
|
Quote:
might wanna try the zip |
hehe this is cool
Thanks for sharing it with the community :) Regards - miSt |
can someone explain better how to do this for the mod CP also? i cant find
Code:
if ($bbuserinfo[userid]==0 and $checkpwd) { |
Quote:
PHP Code:
also, a few rows after this, you should see PHP Code:
I'll verify it by fixing on my site.. gimme a few minutes :) |
yep, that did it for me.
In other words, you should have the permission-check section look like PHP Code:
|
A complete waste of my time just to enhance the aesthetics of the admin panel to appear like vBulletin 3. Which is why I will probably install it. :p
Good job maestro. [high]* Velocd clicks install.[/high] |
[high]* Link14716 installs onto Admin and Mod CP's.
[/high] And yea, I found that out about the mod pannel too, okidoki, I was actually about to post it, but you beat me to it :) |
By the way, it finally worked for me. Thanks okidoki!
/me installed it to the admin and mod panels. |
hmm, you have to say, this hack has no use if you want to hear the truth...
but it's a very nice feeling to see that cp-loginscreen ;) *installs* |
Quote:
But hey, it's a two minute job that makes you waste^H^H^H^H^Hspend 5 minutes of your time staring at the pretty screen instead of just logging in :D |
I wouldn't mind installing this, but it's too much of a pain to follow this thread. Could someone release a good text file of how this should be installed? Thanks.
|
Quote:
|
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.
|
Quote:
|
All times are GMT. The time now is 04:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|