The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Style References for vBulletin 4.x
TheLastSuperman
Join Date: Sep 2008
Posts: 5,844
Hey vb.org members and coders! Not much to say except I have a beautiful wife, three fantastic kids North Carolina
vBulletin utilizes files and templates to render it's pages. As an administrator of your site you have access to the "Style Manager" which allows you to customize nearly every aspect of your style including the templates, css, and stylevars! *Please keep in mind not everything related to your style in terms of CSS has a stylevar, you could be required to add in custom css if your going beyond the default style and or functionality of vBulletin. Some useful links:
Now with all great things come some conditions am I right? Basically here's what you need to know in short... vBulletin comes with a default style, it's nice and subtle... why is it not popping or cutting edge? Well that's your perspective, you may think it's not up to par others love it, some want a light style and others a dark style and so forth. The default style can be customized or you can create your own new styles or even import free or paid styles into your site. One thing to bear in mind as with anything you customize sometimes additional maintenance is required, now what does that mean? It means if you heavily customize your sites style there is a chance when you upgrade that templates will not merge correctly... there's is a comparison tool built in but do not, I repeat do not assume things will always go smoothly - on some occasions they do and some they don't for a number of reasons and/or factors etc however the number one reason would be you chose to customize so don't become upset if your required to work on it every now and then ok? Overall what we need to realize is how it works, how we can customize it and then we have control! Displaying the forum page, the templates are in this order from top to bottom:
Now that's a basic short version, as you can see in the images below there's more but where? Well the black numbered items in the list above are usually the constants meaning they are on all pages, the royal blue colored item is the one that interchanges if you will. So another way to read it could be:
Now for those of you that have already delved into the style manager and the new stylevars system in vbulletin 4 you might be more familiar with this more complex breakdown:
Now I did say more complex and as you can see I mentioned the showthread template wraps the postbit template right? Well of course but how? vBulletin can call a template via a variable, so in the showthread template it calls the postbit template with one simple snippet of code... you can also call forth variables that display information and additionally you can also utilize template conditionals to show or hide data and present it in various ways within your sites templates i.e. style. Now let's do a quick run-through of some of the templates we listed above, please see my notes above each image with color coded references. Header The header houses your logo, upper (toplinks) links for a member i.e. Notifications, Settings, and more. To change your logo, you have two options: Quote:
Quote:
Quote:
Quote:
Navbar The navbar houses your navbar tabs, their sub-links and menus, plus the breadcrumbs i.e. top navigation. To edit your navbar template: Quote:
Quote:
Forum Home (Forumhome) The forumhome template displays your categories, forums, and sub-forums depending on your preferences chosen in AdminCP > Settings > Options.
Threadbit (Showing list of threads etc) The threadbit template houses the list of all threads within a forum, if there are sub-forums they will be shown in a forumhome "forum" style above the list of threads.
Showthread/Postbit (Showing list of posts etc) The showthread template houses the postbit template so basically the postbit or posbit_legacy templates are called from the middle of the showthread template then a thread is viewed with all posts shown. The showthread has controls above and below the postbit within it's own respective template. There are two distinctive templates to choose from in regards to how your posts display. To access the setting for this and change go to: AdminCP > Settings > Options > Style & Language Settings Now look for: Use Legacy (Vertical) Postbit Template and please note the description; Quote:
Footer The template template houses your style and language drop-down's or some call them selectors and your footer links. In addition it also houses the code for the scripts related to each of those functions.
Now that you have viewed a few of the templates and corresponding images and labels it should be easier to ask for assistance on the forums. If your ever unsure of the name for something, anything related to the styling of vBulletin refer to this guide and post new questions below, if they are indeed style related and we can offer some tips I'll add them to the guide . *I do plan on expanding this into specific breakdowns for each forum template and how to customize each however in multiple threads as I feel one long post will become confusing over time. |
#42
|
|||
|
|||
Hi
On this style below I cant get a simple border around the header or navbar using the style vars any help? http://www.lostoppos.co.uk/testvb/ |
#43
|
||||
|
||||
Quote:
Edit vbulletin-chrome.css and find: Code:
.above_body { background:{vb:stylevar header_background}; _background-image: none; margin: {vb:stylevar bodyheader_margin}; padding: {vb:stylevar header_padding}; -moz-border-radius-bottom{vb:stylevar left}:{vb:stylevar border_radius}; -moz-border-radius-bottom{vb:stylevar right}:{vb:stylevar border_radius}; -webkit-border-bottom-{vb:stylevar left}-radius:{vb:stylevar border_radius}; -webkit-border-bottom-{vb:stylevar right}-radius:{vb:stylevar border_radius}; border-bottom-{vb:stylevar left}-radius:{vb:stylevar border_radius}; border-bottom-{vb:stylevar right}-radius:{vb:stylevar border_radius}; } Code:
.above_body { background:{vb:stylevar header_background}; _background-image: none; border-{vb:stylevar right}: 1px solid #151515; border-bottom: 1px solid #151515; border-{vb:stylevar left}: 1px solid #151515; margin: {vb:stylevar bodyheader_margin}; padding: {vb:stylevar header_padding}; -moz-border-radius-bottom{vb:stylevar left}:{vb:stylevar border_radius}; -moz-border-radius-bottom{vb:stylevar right}:{vb:stylevar border_radius}; -webkit-border-bottom-{vb:stylevar left}-radius:{vb:stylevar border_radius}; -webkit-border-bottom-{vb:stylevar right}-radius:{vb:stylevar border_radius}; border-bottom-{vb:stylevar left}-radius:{vb:stylevar border_radius}; border-bottom-{vb:stylevar right}-radius:{vb:stylevar border_radius}; } |
#44
|
|||
|
|||
Thats perfect.
Thank you for your help. |
Благодарность от: | ||
TheLastSuperman |
#45
|
|||
|
|||
I have managed to change something that u cant seem to recitify.i have revereted all file taht i can find that have been altered (wasnt much) and it still doing this even after clearning cache.
It only does it to threads that have attachments and it seems to have affected the boxes when i do a "New Posts" search. |
#46
|
||||
|
||||
Quote:
|
#47
|
||||
|
||||
Hi
Great write up helped a lot, I've found the stylevars to be much easier to use then editing templates, as I know nothing about editing templates or css etc. I have one last thing to do on our test site before we move, I would like to insert this image below into the forumhome on vb4 like it is on vb3 is this possible? Regards, Dave |
#48
|
||||
|
||||
Quote:
|
#49
|
||||
|
||||
Hi
Thanks for the reply, I would like to add the fish logo plus the rounded corners. I couldn't get the colour to be the same for some reason using the stylevars. Is it possible to use the original css templates for this? We have no web designer now he's gone AWOL. Dave |
#50
|
||||
|
||||
Quote:
Regards, Dave |
#51
|
||||
|
||||
Quote:
Edit additional.css and try something along the lines of: Code:
.forumhead { background: #1a9fda url(images/buttons/home.png) no-repeat; } Another method is editing the templates themselves that contain the forumhead <div> tags i.e. Edit forumhome_forumbit_level1_nopost and find: Code:
<li class="forumbit_nopost {vb:raw forum.statusicon} L1" id="cat{vb:raw forum.forumid}"> <div class="forumhead foruminfo L1 collapse"> <h2> <span class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></span> <span class="forumthreadpost">{vb:rawphrase threads_posts} </span> <span class="forumlastpost">{vb:rawphrase last_post}</span> <vb:if condition="!$show['collapsable_forums']"> Code:
<li class="forumbit_nopost {vb:raw forum.statusicon} L1" id="cat{vb:raw forum.forumid}"> <div class="forumhead foruminfo L1 collapse"> <h2> <span class="forumimage"><img src="images/buttons/home.png" alt="{vb:raw forum.title}" /></span> <span class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></span> <span class="forumthreadpost">{vb:rawphrase threads_posts} </span> <span class="forumlastpost">{vb:rawphrase last_post}</span> <vb:if condition="!$show['collapsable_forums']"> Code:
.forumimage { padding-left:5px; } .forumbit_nopost .forumhead .forumtitle a { margin-left: 5px; } |
Благодарность от: | ||
Disco_Dave |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|