vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Home Enhancements - Centering Forum Category Title Text on Forum Home (https://vborg.vbsupport.ru/showthread.php?t=257546)

CoreyLTH 01-20-2011 10:00 PM

Centering Forum Category Title Text on Forum Home
 
1 Attachment(s)
I could of sworn I saw this on here before and have spent quite a lot of time trying to find it. Well I finally decided to open up "Forumbits.css" to solve my problem.

I've been trying to center the title on the forum head for each category. Here is how you go about it.

Style Manager > CSS Templates > Forumbits.css

Find:
(Right at the top of the forumbits.css document)
Code:

.forumhead {
        background: {vb:stylevar forumhead_background};
        _background-image: none;
        padding: 0;
        font:{vb:stylevar forumhead_font};
        color:{vb:stylevar forumhead_color};

Add below:

Code:

text-align: center;
Simple, yet effective for centering your forum category text.

cyberchief 01-21-2011 10:54 PM

Any before/after screen shots?

cyberchief 01-21-2011 11:00 PM

Nevermind... I just tried it and viewed the change. guess I like the standard better. Good Suggestion though! Good to know! 5 stars.

OldSchoolDSL 01-22-2011 10:39 PM

1 Attachment(s)
Anyone know how to center this?

CoreyLTH 01-23-2011 03:10 AM

Quote:

Originally Posted by OldSchoolDSL (Post 2153133)
Anyone know how to center this?

Open up your "Forum Home" template. Look for:

Code:

{vb:raw navbar}
Some where below that you will see something like:

Code:

{vb:rawphrase bb.forumtitle}
{vb:rawphrase bb.forumdescription}

Then wrap <center></center> tags around that coding. It's not the exact coding that I quoted, I removed that part from my forum home so I couldn't tell you exactly, but it looks awfully similar to that.

So your end result would be...

Code:

<center>{vb:rawphrase bb.forumtitle}
{vb:rawphrase bb.forumdescription}</center>


eTiKeT? 01-23-2011 07:40 PM

1 Attachment(s)
Thanks ...

Add Screenshot

OldSchoolDSL 01-25-2011 02:32 AM

Quote:

Originally Posted by CoreyLTH (Post 2153202)
Open up your "Forum Home" template. Look for:

Code:

{vb:raw navbar}
Some where below that you will see something like:

Code:

{vb:rawphrase bb.forumtitle}
{vb:rawphrase bb.forumdescription}

Then wrap <center></center> tags around that coding. It's not the exact coding that I quoted, I removed that part from my forum home so I couldn't tell you exactly, but it looks awfully similar to that.

So your end result would be...

Code:

<center>{vb:rawphrase bb.forumtitle}
{vb:rawphrase bb.forumdescription}</center>


The following is what I needed to do, but you really did help point me in the right directions (thanks)

PHP Code:

<center><div id="pagetitle">
        <
h1>{vb:raw vboptions.bbtitle}</h1>
        <
p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>
    </
div></center

Released this bit of info as a modification. Shared credit (50/50).

https://vborg.vbsupport.ru/showthread.php?t=257765


All times are GMT. The time now is 09:18 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.01933 seconds
  • Memory Usage 1,734KB
  • 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
  • (8)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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