Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Top Header and Side Borders on Forum Home Details »»
Top Header and Side Borders on Forum Home
Version: 1.5, by Boosted Panda Boosted Panda is offline
Developer Last Online: Oct 2010 Show Printable Version Email this Page

Version: 3.8.x Rating:
Released: 10-24-2008 Last Update: Never Installs: 8
 
No support by the author.

I get asked a lot for my code on how to make a top header and side borders for a forum. You can see an example by going to: http://yorkiechat.net. This assumes you have a Fixed Size of 800. You will notice in the Header and Footer the widths are 808. This is to compensate a 4px border we will add.

Another super simple Mod that really enhances the overall look of the forum. First off you'll need to adjust the header template.

Paste below and edit where needed:
PHP Code:
<table cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="808" class="page" align="center">
<
tr>
    
<
td align="center" class="navheader"><a href="www.yourforum.com">Description Here</a></td>

<
td align="center" class="navheader"><a href="www.yourforum.com">Description Here</a></td>

<
td align="center" class="navheader"><a href="www.yourforum.com">Description Here</a></td>

<
td align="center" class="navheader"><a href="www.yourforum.com">Description Here</a></td>
            
    </
td>
</
tr>
</
table>
<!-- /
logo -->

<!-- 
content table -->
$spacer_open

$_phpinclude_output

$ad_location
[ad_header_end
Next we'll need to edit the Footer

PHP Code:
$ad_location[ad_footer_start]

<
br />
<
div align="center">
<
div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
    <
div class="smallfont" align="center">
    <!-- Do 
not remove this copyright notice -->
    
$vbphrase[powered_by_vbulletin]
    <!-- Do 
not remove this copyright notice -->
    </
div>

    <
div class="smallfont" align="center">
    <!-- Do 
not remove $cronimage or your scheduled tasks will cease to function -->
    
$cronimage
    
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->

    
$vboptions[copyrighttext]
    </
div>
</
div>
<
br />

$spacer_close
<!-- /content area table -->

<
form action="$vboptions[forumhome].php" method="get">

<
table cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="808" class="page" align="center">
<
tr>
    <if 
condition="$show['quickchooser']">
        <
td class="tfoot">
            <
select name="styleid" onchange="switch_id(this, 'style')">
                <
optgroup label="$vbphrase[quick_style_chooser]">
                    
$quickchooserbits
                
</optgroup>
            </
select>
        </
td>
    </if>
    <if 
condition="$show['languagechooser']">
        <
td class="tfoot">
            <
select name="langid" onchange="switch_id(this, 'lang')">
                <
optgroup label="$vbphrase[quick_language_chooser]">
                    
$languagechooserbits
                
</optgroup>
            </
select>
        </
td>
    </if>
    <
td class="tfoot" align="$stylevar[right]width="100%">
        <
div class="smallfont">
            <
strong>
                <if 
condition="$show['contactus']"><a href="$vboptions[contactuslink]rel="nofollow" accesskey="9">$vbphrase[contact_us]</a> -</if>
                <if 
condition="$vboptions['hometitle']"><a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -</if>
                <if 
condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
                <if 
condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
                <if 
condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
                
$template_hook[footer_links]
                <if 
condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
                <if 
condition="$vboptions[tosurl]"><a href="$vboptions[tosurl]">$vbphrase[terms_of_service]</a> -</if>
                <
a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
            </
strong>
        </
div>
    </
td>
</
tr>
</
table>

</
form>

$ad_location[ad_footer_end]

<if 
condition="$show['dst_correction']">
<!-- 
auto DST correction code -->
<
form action="profile.php?do=dst" method="post" name="dstform">
    <
input type="hidden" name="s" value="$session[sessionhash]/>
    <
input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]/>
    <
input type="hidden" name="do" value="dst" />
</
form>
<
script type="text/javascript">
<!--
    var 
tzOffset $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
    var 
utcOffset = new Date().getTimezoneOffset() / 60;
    if (
Math.abs(tzOffset utcOffset) == 1)
    {    
// Dst offset is 1 so its changed
        
document.forms.dstform.submit();
    }
//-->
</script>
<!-- / 
auto DST correction code -->

</if>
<
script type="text/javascript">
<!--
    
// Main vBulletin Javascript Initialization
    
vBulletin_init();
//-->
</script
Now in the .page CSS area add this to the Extra CSS attributes. Change the color as necessary to fit your forum.

PHP Code:
border-left4px solid #000000;
border-right4px solid #000000; 
And finally add this to the Additional CSS area. Again change colors as needed to fit your forum.

PHP Code:
.navheader
{
background#000000;
color#FFFFFF;
fontbold 8pt tahomaverdanagenevalucida'lucida grande'arialhelveticasans-serif;
padding3px 6px 3px 6px;
white-spacenowrap;
}

.
navheader a:link, .tfoot_alink
{
    
color#FFFFFF;
}
.
navheader a:visited, .tfoot_avisited
{
    
color#FFFFFF;
}
.
navheader a:hover, .tfoot a:active, .tfoot_ahover
{
    
color#40364D;

For those using vBadvanced
adv_portal template

Find:
PHP Code:
<table align="center" class="page" cellspacing="0" cellpadding="0" width="100%"
Replace With:
PHP Code:
<table align="center" class="portal" cellspacing="0" cellpadding="0" width="100%"
Add in Additional CSS Area
PHP Code:

.portal 
colorSAME AS .PAGE
backgroundSAME AS .PAGE;
fontSAME AS .PAGE;

And thats it! Cool little mod to make your site POP!

Screenshots

File Type: png Picture 1.png (65.8 KB, 0 views)
File Type: png Picture 2.png (33.3 KB, 0 views)

Show Your Support

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

Comments
  #12  
Old 10-30-2008, 08:47 PM
GreigScott GreigScott is offline
 
Join Date: Jul 2008
Location: Scotland :]
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's a online virtual game, I can't wait to tell everyone who works at "clubhabboforum" that they ripped there skin I feel so sorry for you. can't believe "lily" the manager would rip it(;
Reply With Quote
  #13  
Old 10-30-2008, 09:52 PM
Lilyk Lilyk is offline
 
Join Date: Jun 2007
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That skin is not yours and infact was made by myself and a friend for www.clubhabboforum.net which is currently down. I'd be ashamed of myself if I ripped a Habbo skin.
Reply With Quote
  #14  
Old 10-31-2008, 12:41 AM
Boosted Panda Boosted Panda is offline
 
Join Date: Mar 2008
Location: Long Beach, CA
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got the skin from a phpbb skin, had no idea this even existed. Either way Ill change the images. I have no idea what a Habbo is so why should I feel ashamed #1, and again, how can I "steal" a skin from a site that isn't even open?
Reply With Quote
  #15  
Old 10-31-2008, 11:45 PM
GreigScott GreigScott is offline
 
Join Date: Jul 2008
Location: Scotland :]
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lilyk View Post
That skin is not yours and infact was made by myself and a friend for www.clubhabboforum.net which is currently down. I'd be ashamed of myself if I ripped a Habbo skin.
*sigh. told you
Reply With Quote
  #16  
Old 12-13-2008, 03:23 PM
Indyaboard Indyaboard is offline
 
Join Date: Dec 2008
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for a wonderful style make-over.
Reply With Quote
  #17  
Old 12-13-2008, 03:26 PM
Indyaboard Indyaboard is offline
 
Join Date: Dec 2008
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lilyk View Post
That skin is not yours and infact was made by myself and a friend for www.clubhabboforum.net which is currently down. I'd be ashamed of myself if I ripped a Habbo skin.
Quote:
Originally Posted by GreigScott View Post
it's a online virtual game, I can't wait to tell everyone who works at "clubhabboforum" that they ripped there skin I feel so sorry for you. can't believe "lily" the manager would rip it(;
LOL! :down: No1 cares.
Reply With Quote
  #18  
Old 12-14-2008, 12:32 AM
TomJames TomJames is offline
 
Join Date: Apr 2006
Location: UK
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice, thanks! (going to try installing later)
Reply With Quote
  #19  
Old 12-19-2008, 06:20 PM
Boosted Panda Boosted Panda is offline
 
Join Date: Mar 2008
Location: Long Beach, CA
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Indyaboard View Post
LOL! :down: No1 cares.
Thanks mate. Some people just want to cause problems.
Reply With Quote
  #20  
Old 06-05-2009, 12:46 PM
Noser Noser is offline
 
Join Date: Oct 2008
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lilyk View Post
That skin is not yours and infact was made by myself and a friend for www.clubhabboforum.net which is currently down. I'd be ashamed of myself if I ripped a Habbo skin.
you gonna alway find kiddys on the inet(by the way if you converted it from a phpbb skin he should talk to the maker of phpbb skin)

back to topic: great mod i love it

installed
Reply With Quote
  #21  
Old 06-18-2009, 02:22 PM
Boosted Panda Boosted Panda is offline
 
Join Date: Mar 2008
Location: Long Beach, CA
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Noser View Post
you gonna alway find kiddys on the inet(by the way if you converted it from a phpbb skin he should talk to the maker of phpbb skin)

back to topic: great mod i love it

installed

That though would make the "creator" though a hypocrite

Funny thing though was the only thing that matched the skin was the fact that I used a skyblue and Veranda Font
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 02:04 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.14905 seconds
  • Memory Usage 2,410KB
  • Queries Executed 26 (?)
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
  • (7)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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
  • (2)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete