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)
-   -   CSS - Sub-Forum-List in Columns (https://vborg.vbsupport.ru/showthread.php?t=91299)

hpwilhelm 06-28-2005 10:00 PM

CSS - Sub-Forum-List in Columns
 
For vb3.5.x --> vb3.6.x

Tested and working on Firefox, Safari and IE6.

What this does:
It converts the sub-forum-list into a unordered list, then by using CSS arranges the sub-forums into columns.

The columns are liquid - number of columns depends on browser-window-width or page width. The column width is set in the CSS.

Note that you need to enable sub-forums in your ACP.

3 CSS class definition added.
8 template edits.

See the zip for further instructions / full details.

Enjoy! :)

Update: v2.
  • Class attribute moved from <li> to <ul> element, and you now get full control through the stylesheet.
  • A clear:both style added below the list to constrict the floats, so that you can put stuff beneath the list.
Update:
  • Works for vb3.6.x with no changes.
  • Added .txt to textfile

hpwilhelm 06-29-2005 10:41 AM

Screenshots: Before, and after on 1024px and 800px browser-window-width.

flup 06-29-2005 11:52 AM

I just requested it, perfect job!
/me installs

Tony G 06-29-2005 01:00 PM

A very neat mod, thank you for sharing it. :D

tamarian 06-29-2005 02:15 PM

This is clever :up:

bigcurt 06-29-2005 03:30 PM

Thanks for sharing A+

Khent 06-29-2005 03:35 PM

Very clever use of CSS. Simple and effective. Well done.

FleaBag 06-29-2005 05:15 PM

I like to see template mods in CSS instead of hard coded tables! Nice!

taffy056 06-30-2005 01:55 PM

Hi,

Nice, thanks for sharing :) One thing though, how do you get the text of the sub-forums to be a little smaller?

taffy

hpwilhelm 06-30-2005 02:24 PM

Thanks for all the nice feedback :)

I'm probably going to tweak this a little more before my board launches with vb3.5.0. So I'll update this thread when I do. ;)

Taffy056: You can add:
Code:

font-size: XXpx;
to the subforum CSS class. (replace XX with your prefered font-size) Or you can adjust the font-size for 'smallfont' in the Main vbulletin CSS.


All times are GMT. The time now is 08:45 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.01221 seconds
  • Memory Usage 1,726KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete