vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Center Category Names and Descriptions. (https://vborg.vbsupport.ru/showthread.php?t=101513)

Xplorer4x4 11-24-2005 10:00 PM

Center Category Names and Descriptions.
 
The title basicly explains it all. This will simply center the categorey name and description. Simple yet effective.

In forumhome_forumbit_level1_nopost find the following:
PHP Code:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
        <if 
condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if> 

And add <div align="center"> before it.
Now add </div> directley after it.
Now your done.

This WILL NOT center forum names. If you are interested in centering forum names and descriptions, add the </div> right before the
Code:

<!-- what's going on box -->
tag.


Please click https://vborg.vbsupport.ru/ if you use this. :)

Snake 11-25-2005 11:48 AM

Nice one. :)

[high]* Snake installs[/high]

SHANE-D-PAIN 11-25-2005 12:09 PM

Pretty simple, infact its not something I would have ever bothered to post but oh well.

Suppose its useful for those still using the default vBulletin template who dont have a clue what HTML is! :P

tnguy3n 11-25-2005 12:24 PM

it'd be better to use <div align="center"></div>.

Boofo 11-25-2005 12:33 PM

And you need to post a text file with the instructions also. ;)

Flow Fusion 11-25-2005 01:03 PM

Centered it all for me. Thanks.

Rhoads 11-25-2005 03:01 PM

Thnx, installed :)

euan doc 11-25-2005 04:08 PM

Clicks installed

Im new to all this. How would I be able to centre forum names and post names ?

Gizmo5h1t3 11-25-2005 04:39 PM

as a n00b meself, id like to know how to continue this by centering the who`s online as well.....

and also as mentioned, centering the members names in the who`s online boxes....

Sooner95 11-25-2005 05:37 PM

yea, saw this in one of the xmas styles.. actually looks nice. Thx

NuclioN 11-25-2005 06:53 PM

This is nice but in our style we have an image thead on the right and now the left side looks....empty. I've placed a small image but then the above forumname looks off balance.

Xplorer4x4 11-26-2005 03:15 AM

Quote:

Originally Posted by Boofo
And you need to post a text file with the instructions also. ;)

Read my post. Said I would do it later. So I will do that now! ;)

As far as the centering forums and who is online, I will post it on another thread.

@ tnguy3n thanks for that. I kinda assumed there was a better way to so this. ;)

@SHANE-D-PAIN Yeah I almost considered not posting it but hey some people can;t figure it out on there own and the comunity is all baout helping others so I figuered why not? Plus it helps me earn credit towards my coder status.

Xplorer4x4 12-10-2005 11:48 PM

Quote:

Originally Posted by Gizmo5h1t3
as a n00b meself, id like to know how to continue this by centering the who`s online as well.....

and also as mentioned, centering the members names in the who`s online boxes....

I was gona post it in another thread but I forgot you just need to drop the clossing </div> tag, and move it to the very end of the template. :)

hotwheels 12-31-2005 06:27 PM

very nice addition............ hotwheels clicks *installs*

vietkieu_cz 01-04-2006 12:43 PM

Or in Main CSS/Category Strips /Extra CSS Attributes add
Quote:

text-align: center;

XtremeOffroad 01-04-2006 01:36 PM

That looks so much nicer, Installed
Thanks for this

miner 01-11-2006 04:44 AM

Thanks i have installed ...

Pl help me to center the Who Is online text...

stefaandk 01-11-2006 07:21 AM

Might be a simple hack but I wouldnt' have found it, so thanks!

Looks heaps better.

Xplorer4x4 01-11-2006 08:31 AM

Quote:

Originally Posted by foruma-z
Thanks i have installed ...

Pl help me to center the Who Is online text...

Please click the install button if you apreciate this hack. ;)
https://vborg.vbsupport.ru/showpost....6&postcount=13

vietfancy 01-11-2006 04:32 PM

very nice. Thanks

kregger 01-12-2006 07:38 PM

Definitely a simple hack. But a really good one. Its one of those things I might have figured out on my own, but probably wouldn't have actually thought of it. hehe Thanks! *clicks Install*

Craig

QueenBee 01-15-2006 06:47 AM

tah dah!!! done in 60 seconds. LMAO

XFSImperial 01-21-2006 01:06 AM

A simple mod, but it does make a difference. Thanks

Gripemaster 02-03-2006 10:34 AM

Nice and easy... thank you! *Clicks Install*

BabyNameAddict 03-09-2006 03:41 PM

Quote:

Originally Posted by vietkieu_cz
Or in Main CSS/Category Strips /Extra CSS Attributes add

Did this, eas as pie! Thanks :D

Klaymen TM 08-23-2006 10:52 AM

Great! Thanks. ;)

josepheseven 08-16-2007 09:50 PM

Quote:

Originally Posted by vietkieu_cz (Post 864198)
Or in Main CSS/Category Strips /Extra CSS Attributes add



thanks mate :)


All times are GMT. The time now is 05:30 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.01312 seconds
  • Memory Usage 1,768KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)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