vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   admin cp login background (https://vborg.vbsupport.ru/showthread.php?t=97756)

Protoman 10-05-2005 10:00 PM

admin cp login background
 
AdminCP Image Background 1.00
by Protoman

What this Does??: Give your adminCP LOGIN page a custom background of your choosing. I thought the original was a bit bland so I threw in a background image to liven it up!

You loose the link to your forum home from the login screen but I don't find that necessary to have.

File Edits: 1
File Uploads: 1

1) Start by getting the dimensions of a picture, then upload it to /forum/cpstyles/YOUR_STYLE/bg.jpg
(ie. /forum/cpstyles/vbulletin_3_Default/bg.jpg)
*You will need to upload this file for each of your admin control panel styles.*

2) Edit the height and width values below as needed to match your image.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
In includes/adminfunctions.php
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Find:
Code:

<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="450" align="center"><tr><td>
Replace with: * you can change width in this line to the width of your background image
Code:

<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="600" align="center"><tr><td>
On Line 114 Find:
Code:

<!-- logo and version -->
<table cellpadding="4" cellspacing="0" border="0" width="100%" class="navbody">
        <tr valign="bottom">
                <td><img src="../cpstyles/<?php echo $vbulletin->options['cpstylefolder']; ?>/cp_logo.gif" alt="" title="<?php echo $vbphrase['vbulletin_copyright']; ?>" border="0" /></td>
                <td>
                        <b><a href="../<?php echo $vbulletin->options['forumhome']; ?>.php"><?php echo $vbulletin->options['bbtitle']; ?></a></b><br />
                        <?php echo "vBulletin " . $vbulletin->options['templateversion'] . " $pagetitle"; ?><br />
                        &nbsp;
                </td>
        </tr>
</table>
<!-- /logo and version -->

        <table cellpadding="4" cellspacing="0" border="0" width="100%" class="logincontrols">
        <col width="50%" style="text-align:<?php echo $stylevar['right']; ?>; white-space:nowrap"></col>
        <col></col>
        <col width="50%"></col>

<!-- login fields -->

Replace with: * change background image height in the 2nd line, width of inner box in embedded table
Code:

<!-- start background image -->
<table align="center" background="../cpstyles/<?php echo $vbulletin->options['cpstylefolder']; ?>/bg.jpg" height="400" cellpadding="4" cellspacing="0" border="0" width="100%">
        <tr align="center" valign="middle">
                <td>
                        <table cellpadding="4" cellspacing="0" border="0" width="60%" class="logincontrols">
                                <tr align="center">
                                        <td colspan="2"><b><?php echo $vbulletin->options['bbtitle']; ?></b></td>
                                </tr>

~Line 173 Find:
Code:

</table>
Replace with:
Code:

<!-- version information -->
        <tr>
                <td align="center" colspan="3"><?php echo "vBulletin 3.5.x" . " $pagetitle"; ?></td>
        </tr>
        <!-- /version information -->
</table></td></tr>
<!-- /end background image -->


%%%%%%%%%%%%%%%%%%%%%
All Done! Enjoy! :)
%%%%%%%%%%%%%%%%%%%%%

If you like it click install!

COBRAws 10-07-2005 01:24 AM

Revolution is great!

Ill put my biz logo in there.

imported_magjr 10-28-2005 08:21 PM

cant get it to work. When I try it, the background pic isnt there and it doesnt allow me to login

I'm using vb3.5 gold and on my adminfunctions.php there is no </table> on line 173

edit* when you do all the coding, it pushes that line 173 </table> down quite a bit. I reworked it starting with that line and it worked, but I'm still unable to login to my control panel after doing this.

ANy help would be great.


All times are GMT. The time now is 09:08 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.01024 seconds
  • Memory Usage 1,724KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete