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.

taffy056 06-30-2005 02:58 PM

Perfect! Went with your first suggestion!

Thanks very much :)

taffy

Azhrialilu 07-05-2005 02:14 PM

column-y goodness :D

paulz 07-10-2005 07:26 AM

Quote:

Originally Posted by hpwilhelm
Screenshots: Before, and after on 1024px and 800px browser-window-width.

I LOVE THIS ONE!

lionslair 07-11-2005 07:21 AM

Cool that looks much better.

slank 07-21-2005 05:20 PM

excellent idea...subforums in lines really clogged up the window

Brinnie 08-10-2005 09:39 AM

Thanks, this one worked great with RC2... The other one broke teh forumz.

FD929 08-17-2005 11:13 PM

Very cool. It'd be nice if vBulletin spent a little more time on these little annoyances. Another happy RC2'er.

GrendelKhan{TSU 08-18-2005 01:58 AM

love this hack...some quick questions:

1. Is it possible to change the title "Sub-Forums" to something else?
2. is possible to decrease the spacing size between the title "Sub-Forums" and the subforums' titles. its rather a big gap on mine.

anyway..... love this kind of hack. THANKS!

Vizionz 08-18-2005 12:50 PM

i liked how it looked in the screenshots but when i did it it didnt look like that at all.

1.i had the huge space like the above post
2/ my subforums didnt go in two columns like yours it was all in one column

GrendelKhan{TSU 08-19-2005 08:13 AM

Quote:

Originally Posted by Vizionz
i liked how it looked in the screenshots but when i did it it didnt look like that at all.

1.i had the huge space like the above post
2/ my subforums didnt go in two columns like yours it was all in one column


1. yah. iky!! :(

2. this depends on your screen resolution as well as how big you opened your browser window size to. open your browser window to full and/or set a higher screen res. it should go to the second column relative to window size.

still to make it make a column "sooner", go to:

Admincp >>Styles & Templates>>> (choose your style) >> Additional CSS Definitions (second box) >>>

edit the "width: 150px;"


small px makes it go to second column a relatively small browser window size. I use 170 on mine. try a few and see what works for you. :)

3. anyone know where to go to change if I want to change the "Sub-Forums" to something else?

tamarian 08-19-2005 12:09 PM

Quote:

Originally Posted by GrendelKhan{TSU
3. anyone know where to go to change if I want to change the "Sub-Forums" to something else?

Edit "<strong>$vbphrase[subforums]</strong>:" from the "forumhome_forumbit_level_x_post" templates. Or just edit the phrase itself.

GrendelKhan{TSU 08-24-2005 10:22 AM

Quote:

Originally Posted by tamarian
Edit "<strong>$vbphrase[subforums]</strong>:" from the "forumhome_forumbit_level_x_post" templates. Or just edit the phrase itself.

thanks!! :D :D

wilky49 08-26-2005 12:43 PM

Dumb Question: How do I turn on sub-forums.

tamarian 08-26-2005 12:45 PM

Quote:

Originally Posted by wilky49
Dumb Question: How do I turn on sub-forums.

1. Go to your forum Admin panel
2. Click vBulletin Options
3. Select "Forum Listings Display Options" from the drop down list
4. In "Depth of Sub-Forums" replace 0 with 1

wilky49 08-26-2005 03:03 PM

Installed

Vizionz 09-12-2005 12:33 AM

i am using 1024 x 768 resolution

and still it wont go into seperate lines

mtha 09-12-2005 04:18 PM

you didnt have the css at the right place

nexialys 09-12-2005 05:35 PM

Quote:

Originally Posted by Vizionz
i am using 1024 x 768 resolution and still it wont go into seperate lines

you did not add the CSS content in the proper Style... Step #1 is the one... you also have to RELOAD your browser window if you have put your CSS into files...

trancetopia 09-20-2005 12:40 PM

Simple but very effective. Nice mod.

Clicks install

JohnBee 10-04-2005 12:18 AM

Just beautiful!
One simple question :)
I want to add a small space on the bottom of my columns to even out the layout with the top of the layout. How could I do that?

say add 1 line space on the bottom under the columns?

JohnBee 10-04-2005 10:18 AM

I was also wondering if there was a way to turn turn on/off the subforum in columns option by individual forums? if not, could this become a featiure? In some cases i would like to let the smaller (2 or less) subforum, forums in there original state, justified next to the Subforum: subtitle in the forumhome layout.

Just thought

R1D1 10-06-2005 10:19 AM

perhaps anybody only needs a clean table-like list?

use:

Code:

<if condition="$show['subforums']"><ul style='margin:0px; padding:0px;'>$forum[subforums]</ul></if>
at forumhome_forumbit_levelx_post instead... ;)

ggiersdorf 10-07-2005 12:38 AM

Great mod, but I have a question.. Is there any way to make it sort the forums in the list alphabeticaly?

cyberxp9 10-08-2005 07:49 PM

Quote:

Originally Posted by flup
I just requested it, perfect job!
[high]* flup installs[/high]

+preeteh goofd

hpwilhelm 10-09-2005 08:59 AM

Quote:

Originally Posted by R1D1
perhaps anybody only needs a clean table-like list?

use:

Code:

<if condition="$show['subforums']"><ul style='margin:0px; padding:0px;'>$forum[subforums]</ul></if>
at forumhome_forumbit_levelx_post instead... ;)

My own working version had the subforum class at the <ul> element, with margins and paddings set to zero. That way you get more control with the aperance. I have also added a clear:both underneath so you can put stuff below the list.

I'll post it later today.

ggiersdorf 10-09-2005 11:45 AM

what does the post by R1D1 do I dont understand the clean table can you attach a picture for us?

stinger2 10-09-2005 03:59 PM

did any one tried this on Gold?

hpwilhelm 10-09-2005 05:10 PM

Quote:

Originally Posted by ggiersdorf
what does the post by R1D1 do I dont understand the clean table can you attach a picture for us?

Here is a screenshot :)

stinger2: It works with Gold.

hpwilhelm 10-10-2005 08:41 AM

Quote:

Originally Posted by JohnBee
One simple question :)
I want to add a small space on the bottom of my columns to even out the layout with the top of the layout. How could I do that?

say add 1 line space on the bottom under the columns?

If you add another <br /> after <br class="clear" /> (in v2) you should get a extra line. :)

Quote:

Originally Posted by JohnBee
I was also wondering if there was a way to turn turn on/off the subforum in columns option by individual forums? if not, could this become a featiure? In some cases i would like to let the smaller (2 or less) subforum, forums in there original state, justified next to the Subforum: subtitle in the forumhome layout.

As this is just a template mod, this is not possible. But if someone writes a plugin that adds a setting for this somewhere (forummanager) it would be possible to achieve through if-conditions.

Quote:

Originally Posted by ggiersdorf
Great mod, but I have a question.. Is there any way to make it sort the forums in the list alphabeticaly?

You need to do this manually in your forummanager.

ggiersdorf 10-10-2005 12:46 PM

Quote:

You need to do this manually in your forummanager.
Ughh seriously? Is there another way I could have 200+ subforms. Im running a game website and dedicating a forum to each specific game title.

were always adding them, is there ANY way to make them sort alphabetically?


All times are GMT. The time now is 04:49 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.01328 seconds
  • Memory Usage 1,817KB
  • 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
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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