vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Forum Display Enhancements - Sorky - SubForum List Control (https://vborg.vbsupport.ru/showthread.php?t=181939)

Sorky 06-07-2008 10:00 PM

Sorky - SubForum List Control
 
Purpose
This plugin allows extensive control of how SubForums are displayed.
  • Use any mix of between 0 and 10 columns
  • Different layouts can be used on specified forums
  • Change formatting
  • Display Thread/Post counts
  • Limit the number of SubForums shown (Show More/Less)
  • Collapse entire display
  • plus more!

Acknowledgement
Thanks (and apologies) to Cybernetec for the ideas & inspiration to generate this Mod.

Installation
Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]

Options
To set hack options go to: AdminCP > vBulletin Options > Sorky - SubForum List Control

Versions
v1.0.0 - 28th of April, 2008 = Launch (click here)
v1.1.0 - 8th of June, 2008 = Added functionality (click here)
v1.2.0 - 15th of June, 2008 = Removed (small bug found)
v1.3.0 - 6th of July, 2008 = Removed (small bug found)
v1.3.1 - 8th of July, 2008 = Added functionality (click here)
v1.4.0 - 12th of July, 2008 = Added functionality (click here)
v1.4.1 - 27th of July, 2008 = Added functionality (click here)
v1.5.0 - 28th of September, 2008 = Removed (small bug found)
v1.5.1 - 30th of September, 2008 = Added functionality (click here)

More versions available for 3.8.x (still work for 3.7.x though)

Hall Of Fame (Donations)
Budweiser US$20
Fungsten US$25

Settings & Demonstration Screenshots
See v1.0.0 post (click here)

If you like this Mod please click INSTALL.

Sorky 06-08-2008 09:50 PM

V1.0.0 Features
  • Hide or edit the SubForums: display
  • Add thread & post counts after SubForum names
  • Allow a DEFAULT layout of between unchanged, 0 or 1 to 5 columns
  • Allow INDIVIDUAL SubForums to be specifically set as unchanged, 0 or 1 to 5 columns
Tips
To get it on the Forum Home page, set the "vBulletin Options" > "Forum Listings Display Options" > "Depth of Forums - Forum Home" to "1".

For all other pages, set the "vBulletin Options" > "Forum Listings Display Options" > "Depth of Forums - Forum Display" to "1".

You should also set the "vBulletin Options" > "Forum Listings Display Options" > "Depth of Sub-Forums" to "1". Setting it higher will also work, however, beware that the grandchildren & indenting does not integrate well if using alphabetic sorting (use Forum Display Order sorting instead).

If the following templates have been modified from their original, either "revert" them or test this Mod carefully before use:
  • forumhome_forumbit_level1_nopost
  • forumhome_forumbit_level1_post
  • forumhome_forumbit_level2_nopost
  • forumhome_forumbit_level2_post
  • forumhome_subforumseparator_post (ignored)
  • forumhome_subforumseparator_nopost (ignored)
  • forumhome_subforumbit_post (append only)
  • forumhome_subforumbit_nopost (append only)
  • header (append only)
WishList - Other Ideas
  • Remember collapse state [eg : cookie] (high)
  • Number of people viewing count (med)
  • Enable/Disable for certain styles (med)
  • Different formatting for each SubForum depth [child/grandchild/etc] (low)
Settings & Demonstration Screenshots

Brian30fl 06-08-2008 09:51 PM

no demo or screenshots?

Alfa1 06-08-2008 09:54 PM

Thanks!

Please add the function to: apply a different depth of sub-forums to specific sub-forums.

Sorky 06-08-2008 09:55 PM

Version 1.1.0 Changes

1) Added ability for user to set the characters containing the thread and post counts

2) Added ability to alphabetically sort the SubForum list by row (horizontal) OR by column (vertical)

3) Added blank cell padding so that the entire grid is fully populated no matter how many elements so that coloured backgrounds look better

4) Added an option for the main icon alignment

5) Added an option to push the table width to the full 100% of the cell

6) Added an option for formatting of the forum description

7) Changed the code so that it works with forums with ", " (comma followed by space) in the name

8) Other minor coding and commenting adjustments

Sorky 06-08-2008 09:58 PM

Quote:

Originally Posted by Alfa1 (Post 1544473)
Please add the function to: apply a different depth of sub-forums to specific sub-forums.

You can specify a default for all forums AND you can specify individual forums to have specific settings that are different from the default.

Options are:
  1. Leave as original (screen2.jpg)
  2. Apply formatting only (screen3.jpg)
  3. Put in 1 column
  4. Put in 2 columns (screen4.jpg)
  5. Put in 3 columns (screen8.jpg)
  6. Put in 4 columns
  7. Put in 5 columns

The "formatting" is the addition of the (thread/post) counts as well as the ability to style various aspects of the SubForum display.

If that is not what you mean... can you please explain?

Alfa1 06-08-2008 10:08 PM

For an example, please go to AdminCP -> vb options -> forum listing display options -> Depth of Forums - Forum Display

This function defines whether sub-forums below a certain depth are shown on forumdisplay.

And:
AdminCP -> vb options -> forum listing display options -> Depth of Sub-Forums

I have several forums where I would like to handle this different from the rest of my forums. It would be nice if you would add settings for this.

Sorky 06-08-2008 10:20 PM

I see...

It is only designed for 1 at this stage, but if you enter more, the grandchildren, etc get listed also (no differentiation though) .

How exactly would you expect this to work?

Alfa1 06-08-2008 10:29 PM

One of my forums; forum X has a subforum Y, with about 50 subforums below that. So the display of this subforum Y takes so much space in the forumdisplay of forum X, that forum to reach the threads in forum X, one must browse all the way down.

I would like to just display subforum Y, without listing its 50 subforums.

So instead of:

- Forum X
- - SubForum Y
- - - SubForum 1
- - - SubForum 2
- - - SubForum 3
- - - SubForum 4
- - - SubForum 5
- - - SubForum 6
- - - SubForum 7
- - - SubForum 8
- - - etc
- - Subforum Z

- Threads

I would like to display:

- Forum X
- - SubForum Y
- - Subforum Z

- Threads

Ljusya 06-08-2008 11:47 PM

hmm, i have some problem with this hack - if i choose "show in two columns" I look this:
https://vborg.vbsupport.ru/external/2008/06/55.jpg
I thought that my template wrong, but it is in any templates

Baldilocks 06-08-2008 11:51 PM

Does this work any differently than the Cyb SubForum hack already available?

Mattimus1984 06-09-2008 01:09 AM

How do i take the commas out i hate how that makes it look in the colums, has comma behind each subcat

bjf2k 06-09-2008 03:53 AM

i only edit something in this section
its at bottom of the SubForum list Formatting
i leave everything blank. no comma or ( / ), and i choose Post/Thread counts display after SubForum name : dont show any count
Hide the count display if there are no threads in the SubForum: NO
also the back ground color.fonts..etc everything else blank
my screen shot
http://fusionaw.com/sub.jpg

Mark as Installed..very easy to work with and useful =)

Super Jinni 06-09-2008 04:40 AM

nice job

thanks

installed

Sorky 06-09-2008 06:26 AM

Quote:

Originally Posted by Brian30fl (Post 1544471)
no demo or screenshots?

Give a guy a chance ;)

Quote:

Originally Posted by Ljusya (Post 1544535)
hmm, i have some problem with this hack - if i choose "show in two columns"
<snip>
I thought that my template wrong, but it is in any templates

Your width seems very narrow... May also be a problem with non-english... Can you try turning all the formatting off and then do No change, Formatting Only, 1 column, then 2, etc (trying with a couple of short named Sub-Forums). PM me the screen-shots and I'll see what I can figure out.

Quote:

Originally Posted by Alfa1 (Post 1544499)
One of my forums; forum X has a subforum Y, with about 50 subforums below that. So the display of this subforum Y takes so much space in the forumdisplay of forum X, that forum to reach the threads in forum X, one must browse all the way down.
<snip>
I would like to just display subforum Y, without listing its 50 subforums.
- Threads

I have similar, but I want them shown, so I use 4 columns ;)... Anyway... An extra option of "Forums in which to hide SubForums" or possibly a "Max number of Sub-Forums to display" would do the job?

Quote:

Originally Posted by Baldilocks (Post 1544537)
Does this work any differently than the Cyb SubForum hack already available?

Similar but most definitely not the same... You may note that I credit Cybernetec for the idea & inspiration. I tried his but the big problem for me was that it did ALL or NOTHING. I wanted some forums with 1 column, some with 2, some with 4 and others simply formatted. I offered my suggestions and even sent him adjustments to his to make it almost what I needed. As I received no response, I simply did it all myself. If you were to compare the code from both you would be hard pressed to find any similarities... In fact, his logic/methods and mine are very different.

I'll leave the functional comparison up to you... Whatever works for you is ok by me.

Quote:

Originally Posted by Mattimus1984 (Post 1544580)
How do i take the commas out i hate how that makes it look in the colums, has comma behind each subcat

Make sure you select an option up the top (even if it is just "apply formatting") and then make sure the "Separator to use between SubForum" is cleared ;)

There's heap of options, give them a try, you can simply disable/uninstall if you're not happy with the results!

tehtide 06-10-2008 09:44 PM

Is there any way to get this hack to follow the style? I've got quite a few different user selectable styles and it would be nice if the hack used the styles instead of the colors setup in the options.

Sorky 06-10-2008 09:55 PM

Quote:

Originally Posted by tehtide (Post 1546174)
Is there any way to get this hack to follow the style? I've got quite a few different user selectable styles and it would be nice if the hack used the styles instead of the colors setup in the options.

You can remove the color definition from the options (I simply put that in as an example). You can of course then put in styles references instead ;-)

tehtide 06-11-2008 12:56 AM

Yep... figured that out as soon as I opened my big mouth up. :D

Thanks for the great mod... it was exactly what we've been looking for.

Alfa1 06-11-2008 10:39 AM

Quote:

Originally Posted by Sorky (Post 1544749)
An extra option of "Forums in which to hide SubForums" or possibly a "Max number of Sub-Forums to display" would do the job?

If this could be applied to child forums, then yes.

chennairam 06-12-2008 10:38 AM

How can i align my forum home see my attachment after i install

GaiLoan 06-12-2008 06:06 PM

thanks for the hack, but i rather use Cyb SubForum hack already available :)

NeuroLancer 06-13-2008 02:15 AM

Thanks for this mod.

Quote:

Originally Posted by GaiLoan (Post 1547845)
thanks for the hack, but i rather use Cyb SubForum hack already available :)

;) I like this mod better, each to their own

Sorky 06-13-2008 10:50 PM

Quote:

Originally Posted by chennairam (Post 1547535)
How can i align my forum home see my attachment after i install

I had a similar behavior, which is why I added the "Use the full column width for the SubForum table" option. The fact that the vBulletin table did not have the 100% width setting, meant that the layout could vary. Turn this on and let me know if it helps. If not, PM me the URL so I can have a look at it live.

Quote:

Originally Posted by GaiLoan (Post 1547845)
thanks for the hack, but i rather use Cyb SubForum hack already available :)

I'm happy that you are happy with his offer.

Quote:

Originally Posted by NeuroLancer (Post 1548113)
Thanks for this mod. <snip> ;) I like this mod better, each to their own

I don't mind either way, but I'm pleased to know that my efforts have been appreciated.

mark|3 06-14-2008 12:38 PM

i would like to have it in this manner

forum
>subforum A
>>>subsubforum A
>>>subsubforum B
>subforum B

So far i am able to display up to subforum A level and not the subsubforum level. Will this hack serve this purpose?

thanks

Sorky 06-14-2008 05:37 PM

Quote:

Originally Posted by Alfa1 (Post 1546564)
If this could be applied to child forums, then yes.

I've added a few options, hopefully you'll find a combination that works for you ;)

Quote:

Originally Posted by mark|3 (Post 1549132)
i would like to have it in this manner

forum
>subforum A
>>>subsubforum A
>>>subsubforum B
>subforum B

So far i am able to display up to subforum A level and not the subsubforum level. Will this hack serve this purpose?

thanks

I've added indenting for Sub-SubForums ;) [NOTE : Sorting won't work well with Sub-SubForums, so if you want to sort, use the Forum Display Orders]

Sorky 06-14-2008 05:37 PM

Version 1.2.0 Changes

Withdrawn due to a small bug (see post 58)

ShiZoPhreN 06-15-2008 01:06 PM

Nice Hack :)

Thanks.. but its not so good for different styles :( make a option for it xD

Sorky 06-16-2008 09:54 AM

Quote:

Originally Posted by ShiZoPhreN (Post 1549946)
Nice Hack :)

Thanks.. but its not so good for different styles :( make a option for it xD

Please see posts 16, 17 & 18 ;)

Where the colours are defined, you could use styles instead.

Sorky 06-19-2008 08:44 AM

No change... Just accidentally removed the xml and had to replace it... Sorry for the update alert :confused:

transparent 06-23-2008 03:13 AM

A great hack...thank you! This was exactly what I was looking for and it works great. A bit of a pain to configure but I figured it out.

Thanx again!:)

Phornixx 06-23-2008 03:39 AM

Nevermind....

Sorky 06-24-2008 06:35 AM

Quote:

Originally Posted by Phornixx (Post 1556528)
Nevermind....

Was it something I said?

I'm guessing (hope) that you figured it out yourself!

Alfa1 06-29-2008 10:05 PM

Can I change the font type of subforums?
There is quite a lot of space between each row. How can I remove that?

Sorky 06-29-2008 11:22 PM

The SubForum List is displayed in a HTML Table with just the one element [I refer to it as the SubForum Outer Box (table) formatting]. Inside that is another HTML Table [I refer to it as the SubForum Table (table) formatting]. Each cell in that table contains a SubForum name that can have further formatting applied [I refer to it as the SubForum Element (td) formatting].

By working with the first two formatting options you can easily generate a display with or without grid lines with various degrees of spacing. The third formatting option lets you change the SubForum name display.

Enter the formatting here... (ie : Set a different font)

Sorky - SubForum List Control - V1.2.0
. SubForum list Formatting
. SubForum Element (td) formatting

Adjust the table formatting here... (ie : Remove the spacing & padding)

Sorky - SubForum List Control - V1.2.0
. SubForum list Formatting
. SubForum Table (table) formatting

yingzhou 06-30-2008 03:05 AM

can I have a option to show or hide the list of Sub forum by click on link below the forum?

Sorky 06-30-2008 10:09 PM

I presume you are thinking of a "collapse"... Nice idea - I'll add it to the wish list.

yingzhou 06-30-2008 10:41 PM

yeah, thats it. Thanks for this mod! :D

vitrag24 07-02-2008 09:53 PM

nice mod.
but one request:
i'm using "sorting subforum as it is option" and in "2 colums" but it's showing side by side in order i wanna show them up to down in order and then continue in next colums..

e.g. if "b" subforum is after "a" then it shd be seen below "a" not beside "a"

Sorky 07-02-2008 10:06 PM

Easy - Simply choose "Sort Alphabetically Down"

You could also leave it unsorted and manually change the "Forum Display Order" values of each forum to rearrange their order manually.

vitrag24 07-02-2008 10:15 PM

Quote:

Originally Posted by Sorky (Post 1565297)
Easy - Simply choose "Sort Alphabetically Down"

You could also leave it unsorted and manually change the "Forum Display Order" values of each forum to rearrange their order manually.

a AND b were just example..consider it like a and p..
i dont wanna show them in alphabetical order as i have set in diff. order.
:(


All times are GMT. The time now is 12:48 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.01399 seconds
  • Memory Usage 1,841KB
  • 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
  • (17)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