vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   How can I make a three part forum header? (https://vborg.vbsupport.ru/showthread.php?t=300076)

K4GAP 07-13-2013 06:21 PM

How can I make a three part forum header?
 
1 Attachment(s)
I've noticed on some of the nicer styles the designer has implemented forumheaders that consist of three images made up as a "right side", "center" and "left side".

Anyone have information they would like to share about how to do this?

The attachment shows just a regular single image forum header, I want a 3 piece.

Chivster 08-13-2013 07:28 PM

Are you sure its not designed as one image, but differently in Photoshop, etc?

Disco_Dave 08-13-2013 07:36 PM

Can you show us an example?

Lynne 08-13-2013 08:17 PM

You put an image aligned left and aligned right and then the center image can just be a background image x-repeated.

K4GAP 08-14-2013 08:18 AM

Quote:

Originally Posted by Lynne (Post 2438719)
You put an image aligned left and aligned right and then the center image can just be a background image x-repeated.

That's exactly what I have in mind :up: . What I need is the code to accomplish that.

Disco_Dave 08-14-2013 08:25 AM

This is our code we use for a small logo on the left, may be this can help get you started:

PHP Code:

/*NIRC FORUM HEAD CSS EDITS*/

.forumbit_nopost .forumhead .forumtitle a {
margin-left28px;
}

.
forumhead .forumtitle, .forumbits .forumhead h2 background:url(images/evid_blue/elements/forumhead.pngno-repeat top left; }

.
forumhead h2.forumtitle, .forumbits .forumhead h2 span.forumtitle text-indent:30px; }

.
forumbits .forumhead h2 span background-image:none; }

.
forumbit_nopost .forumhead span, .forumbits .forumhead h2 padding:10px 0px 8px 0px; }

.
forumbit_nopost .forumhead .collapse padding:10px 0px 8px 0px; }

.
forumbit_post .forumhead h2 span padding:10px 0px 8px 0px; }

.
forumbit_nopost .forumhead .forumtitle padding:10px 0px 8px 0px; }

.
forumbit_nopost .forumhead a.collapse img top:-2pxright:4.4px; }

.
blockhead img padding-top:2pxpadding-right:5px; }

/*NIRC FORUM HEAD CSS EDITS*/ 

But I'm not 100% sure if this is what you are looking.

K4GAP 08-14-2013 08:38 AM

Quote:

Originally Posted by tricksodave (Post 2438785)
This is our code we use for a small logo on the left, may be this can help get you started:

PHP Code:

/*NIRC FORUM HEAD CSS EDITS*/

.forumbit_nopost .forumhead .forumtitle a {
margin-left28px;
}

.
forumhead .forumtitle, .forumbits .forumhead h2 background:url(images/evid_blue/elements/forumhead.pngno-repeat top left; }

.
forumhead h2.forumtitle, .forumbits .forumhead h2 span.forumtitle text-indent:30px; }

.
forumbits .forumhead h2 span background-image:none; }

.
forumbit_nopost .forumhead span, .forumbits .forumhead h2 padding:10px 0px 8px 0px; }

.
forumbit_nopost .forumhead .collapse padding:10px 0px 8px 0px; }

.
forumbit_post .forumhead h2 span padding:10px 0px 8px 0px; }

.
forumbit_nopost .forumhead .forumtitle padding:10px 0px 8px 0px; }

.
forumbit_nopost .forumhead a.collapse img top:-2pxright:4.4px; }

.
blockhead img padding-top:2pxpadding-right:5px; }

/*NIRC FORUM HEAD CSS EDITS*/ 

But I'm not 100% sure if this is what you are looking.

It doesn't appear to be because the code I see in your's looks like it's controlling the forumhead not the header?

Disco_Dave 08-14-2013 08:40 AM

Your pic above ^ shows the forumhead, not the header, that's why I asked to see an example ;)

K4GAP 08-14-2013 07:18 PM

Quote:

Originally Posted by tricksodave (Post 2438789)
Your pic above ^ shows the forumhead, not the header, that's why I asked to see a example ;)

It sure does .... sorry about that.
Either or both would be sufficient as I'm attempting to create a style that requires both.

Thanks for pointing that out to me.

Lynne 08-15-2013 02:05 AM

If you post a link to an example, then we can just get the CSS/code used right from that.

K4GAP 08-15-2013 03:52 PM

Here is a good example of a header with three pieces.

Disco_Dave 08-15-2013 07:28 PM

there it is :)

I just done what Lynne as suggested, above.


PHP Code:

.headerL{
    
float:left;
    
width:146px;
    
background-imageurl(images/artakusia/artakusia_headerL.png);
    
background-repeatno-repeat;
    
height173px;
    
    
}

.
headerR{
    
float:right;
    
width:146px;
    
background-imageurl(images/artakusia/artakusia_headerR.png);
    
background-repeatno-repeat;
    
height173px;


}

.
headerC{
    
margin-left:146px;
    
margin-right:146px;
    
height173px;
    
background-imageurl(images/artakusia/artakusia_logo.png);
    
background-repeatno-repeat;
    
background-positioncenter top;
}


.
navwrap {
    
background-imageurl(images/artakusia/artakusia_navbg.png);
        
height54px;
    
}




.
navL{
    
float:left;
    
width:92px;
    
background-imageurl(images/artakusia/artakusia_navL.png);
    
background-repeatrepeat-y;
    
height54px;
    
    
    
}

.
navR{
    
float:right;
    
width:92px;
    
background-imageurl(images/artakusia/artakusia_navR.png);
    
background-repeatrepeat-y;
    
height54px;
    

}

.
navC{
    
margin-left:92px;
    
margin-right:92px;
    
height54px;
    
}


/* CONTENT - cara ni je expand vertical div dgn background,lansung takde float */


.contentL {
    
width:100%;
    
background-imageurl(images/artakusia/artakusia_left.png);
    
background-repeatrepeat-y;
    
    
    
}

.
contentR {
    
padding-top0;
    
padding-right:8px;
    
padding-bottom0;
    
padding-left:8px;
    
background-positionright;
    
background-imageurl(images/artakusia/artakusia_right.png);
    
background-repeatrepeat-y;

}

.
contentC {
    
width:100%;
    
background-imageurl(images/artakusia/artakusia_cbg.png);
    
background-repeatrepeat;    
}







.
bottomwrap {
    
overflow:hidden;
    
background-imageurl(images/artakusia/artakusia_footbg.png);
    
background-repeatrepeat-x;

    
}



.
bottomL{
    
float:left;
    
width:92px;
    
background-imageurl(images/artakusia/artakusia_footL.png);
    
background-repeatrepeat-y;
    
height93px;    
    
    
}

.
bottomR{
    
float:right;
    
width:92px;
    
background-imageurl(images/artakusia/artakusia_footR.png);
    
background-repeatno-repeat;
    
height93px;
    

}

.
bottomC{
    
margin-left:92px;
    
margin-right:92px;
    
height93px;
    



K4GAP 08-15-2013 11:11 PM

Quote:

Originally Posted by tricksodave (Post 2439065)
there it is :)

I just done what Lynne as suggested, above.

**

And this goes into additional ?

Lynne 08-15-2013 11:46 PM

The CSS posted isn't going to help unless you also modify your template.

Have you tried googling "3 part header CSS"? There are a lot of articles that come up. Even better:

"3 part header CSS" site:vbulletin.com

K4GAP 08-16-2013 07:45 AM

Quote:

Originally Posted by Lynne (Post 2439098)
The CSS posted isn't going to help unless you also modify your template.

Have you tried googling "3 part header CSS"? There are a lot of articles that come up. Even better:

"3 part header CSS" site:vbulletin.com

No, but I will.
Thanks Lynne

Lynne 08-16-2013 03:05 PM

Whoops....

"3 part header CSS" site:vbulletin.org

(changed to .org)

Max Taxable 08-16-2013 03:44 PM

Another example of a 3 image fluid header.

K4GAP 08-16-2013 04:22 PM

Quote:

Originally Posted by Lynne (Post 2439190)
Whoops....

"3 part header CSS" site:vbulletin.org

(changed to .org)

Thanks Lynne, I ended up going with some old code that was originally posted in '09

https://vborg.vbsupport.ru/showthread.php?p=1927493

--------------- Added 16 Aug 2013 at 13:24 ---------------

Quote:

Originally Posted by Max Taxable (Post 2439196)
Another example of a 3 image fluid header.

Thanks Max. I've found some useable code.

--------------- Added 17 Aug 2013 at 00:45 ---------------

The following is what I did to have a left and a right image with a background to blend the two.

First I looked for this code in the header template:
Code:

<div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div>
Replace that code with this:
Code:

<div id="headerfill"><div id="headerl"></div><div id="headerr"></div></div>
Add the following to the styles additional css area:
Code:

#headerfill{
background-image: url(images/headerfill.png);
background-repeat: repeat-x;
height: 150px;
width: 100%;
margin-right: auto;
margin-left: auto;
}
#headerl{
background-image: url(images/headerl.png);
height: 150px;
background-repeat: no-repeat;
width: 400px;
float: left;
}
#headerr{
background-image: url(images/headerr.png);
background-repeat: no-repeat;
height: 150px;
width: 400px;
float: right;
}

Works for me and I'm running vb 4.2.1

Thank you once again Lynne for pointing me in the right direction.


All times are GMT. The time now is 11:54 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
  • Page Generation 0.01245 seconds
  • Memory Usage 1,826KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)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