vb.org Archive

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

Sorky 01-27-2009 10:00 PM

Sorky - SubForum List Control
 
1 Attachment(s)
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
  • Sort SubForum display order
  • plus lots more!
Installation
Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]

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

Tips
To get it on the Forum Home page, set...
"vBulletin Options" > "Forum Listings Display Options" > "Depth of Forums - Forum Home" to "1"
For all other forums, set...
"vBulletin Options" > "Forum Listings Display Options" > "Depth of Forums - Forum Display" to "1"
You should also set...
"vBulletin Options" > "Forum Listings Display Options" > "Depth of Sub-Forums" to "1" Note: Setting it higher will also work!
Version Log
For previous versions see 3.7.x or 3.6.x Mods
v1.5.2 - 28th of January, 2009 = official release for 3.8.x (click here for more information)
v1.6.0 - 11th of April, 2009 = Removed (small bug found)
v1.6.1 - 13th of April, 2009 = Remember show/hide state + more (more information here)
v1.6.2 - 27th of April, 2009 = Debug opton + more (more information here)
v1.7.0 - 21st of May, 2009 = New & improved sorting (more information here)
v1.7.1 - 23rd of May, 2009 = alt text for show/hide image (more information here)
v1.7.2 - 17th of June, 2009 = Removed (small change simply combined with another in next version)
v1.7.3 - 17th of June, 2009 = Hide SubForums: prefix & count tool-tip as well as the SubForums (more information here)
v1.7.4 - 23rd of June, 2009 = Hide specific SubForums from the SubForum list (more information here)
v1.8.0 - 17th of August, 2009 = Display of SubForum descriptions (more information here)

Hall Of Fame (Donations - Greatly Appreciated - Thank You)
Fungsten US$25
Budweiser US$20
CreditForum US$25
lazyseller US$30
Alisa Lindsay US$10

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

Keywords
SubForum, SubForums, Sub-Forum, Sub-Forums, Table, List, Grid, Child, Children, Parent

Settings, Demonstration Screenshots, Notes, etc
See v1.5.2 post (click here)

If you like this Mod please click INSTALL.

Sorky 01-28-2009 09:19 AM

1 Attachment(s)
V1.5.2 Features
  • Official update for 3.8.x
  • Other minor coding and commenting adjustments
  • For previous versions see 3.7.x or 3.6.x Mods

Notes

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
  • Number of people viewing count (med)
  • SubForum moderators (med)
  • Enable/Disable for certain styles (med)
  • Different formatting for each SubForum depth [child/grandchild/etc] (low)

Settings & Demonstration Screenshots

Vaupell 01-28-2009 09:33 AM

Excelent, excaktly what i need for a guy im helping setup his forum. :D

this is actually #1 request. thank you.

tagged for later use.

buileminh 01-28-2009 11:35 AM

Looks very good! Not installed yet but will do soon

Howell 01-28-2009 05:03 PM

I've updated my forum to 3.8.x and the previous version of this mod (1.5.1) was working fine but to keep my forums mods up to date I installed this (1.5.2) also.

I double checked that I had 'Allow Overwrite' set to YES but it installed a second installation of the Mod.

Everythings fine as I uninstalled the old version and set the options for the new one.

Would it not be easier for this to simply overwrite a previous version?? :confused:

Regards, Howell :)

Nadeemjp 01-29-2009 05:19 AM

yeah i liked urs better so i installed urs even when i was using 3.7.3.
and that version is still usable in 3.8 as well.
however today i updated it to the latest version for 3.8:)

thanx for the update.

Sorky 01-29-2009 05:28 AM

Quote:

Originally Posted by Howell (Post 1727383)
Would it not be easier for this to simply overwrite a previous version?? :confused:

Regards, Howell :)

I know... Unfortunately a new Mod needs a new ID, which means they do not override.

If I do a 1.5.3 under 3.8.x, then it will of course be automatically updated.

Sorky 01-29-2009 05:33 AM

Quote:

Originally Posted by Nadeemjp (Post 1727831)
and that version is still usable in 3.8 as well

Yes... So far the only actual differences in the Mods are the new ProductID, Version Description and URL... Main thing is that I can support the different versions without potentially breaking the others if a major change occurs.

ckusmez 01-29-2009 06:10 AM

good work i'll update now :) thanks

yingzhou 01-29-2009 09:33 AM

will update now. thanks.

kylek 02-07-2009 08:19 PM

Thanks, works great!

uklupinfan 02-14-2009 04:54 PM

*Marked as installed*

Thanks

Alfa1 03-15-2009 11:17 AM

1. If I show my sub-subforums, by setting the depth of subforums to 3 in forum listing display options and 'Allow depth of SubForums > 1 by indenting the Sub-SubForums' to yes, then they get alphabetically sorted in such a way that sub-subforums are sorted together with subforums. It shows like this:

Subforum A
Subsubforum A
Subforum B
Subforum C
Subforum D
Subforum E

Even when Subsubforum A is a child of Subforum D. I would like it to show under Subforum D.

2. Some of my forums do not show a horizontal border between them. Edit: for some reason this is now resolved.
3. 'Forums where this Mod will HIDE any SubForums' does not seem to work for me.

How can I fix this?

Please add the function to show the number of people viewing a subforum.

Sorky 03-16-2009 12:33 AM

Quote:

Originally Posted by Alfa1 (Post 1768584)
1. If I show my sub-subforums, by setting the depth of subforums to 3 in forum listing display options and 'Allow depth of SubForums > 1 by indenting the Sub-SubForums' to yes, then they get alphabetically sorted in such a way that sub-subforums are sorted together with subforums. It shows like this:

Subforum A
Subsubforum A
Subforum B
Subforum C
Subforum D
Subforum E

Even when Subsubforum A is a child of Subforum D. I would like it to show under Subforum D.

This is a known limitation (Note that the sorting option actually says: "Do not use alphabetic sorting if SubForumDepth > 1 as the sorting may not make sense"). The logic to try and do nested sorting given the way the SubForum are returned is far to complex and liable to impact performance... Use the "Forum Display order" sorting and you can force the order in the Forum Manager.

Quote:

Originally Posted by Alfa1 (Post 1768584)
2. Some of my forums do not show a horizontal border between them. Edit: for some reason this is now resolved.

If it re-occurs, PM me a link &/ image so I can see it

Quote:

Originally Posted by Alfa1 (Post 1768584)
3. 'Forums where this Mod will HIDE any SubForums' does not seem to work for me.

Works fine for me... PM me a link and screen shots of the option settings so I can see if you have something set incorrectly

Quote:

Originally Posted by Alfa1 (Post 1768584)
Please add the function to show the number of people viewing a subforum.

It's added to the wish-list

boandmichele 03-17-2009 11:46 AM

works and looks great for us sorky, thanks :)

one question: when hiding the subforum list in the forumbit, if i leave that page and come back, it is no longer hidden. is there anyway to make this stay on a per-user basis?

Sorky 03-18-2009 06:35 AM

Quote:

Originally Posted by boandmichele (Post 1770349)
works and looks great for us sorky, thanks :)

one question: when hiding the subforum list in the forumbit, if i leave that page and come back, it is no longer hidden. is there anyway to make this stay on a per-user basis?

Yeah - I have in my wish-list to add a cookie to remember the show/hide state. I do expect to get to it sooner or later ;)

Budweiser 03-21-2009 01:18 AM

I have been checking out your work and think I can use this. It changes the formatting for all my forums so I must have something set wrong.

What config setting do I need to change to restore the original formatting?

I captured a couple screen shots so you can see what I mean....

http://usamusicians.com/wv/with_mod.jpg
The picture above is with the mod enabled...^

http://usamusicians.com/wv/without_mod.jpg
The picture above is with the mod disabled...^

Alfa1 03-21-2009 09:12 AM

It would indeed be nice to decrease the space/margin between forum names and forum description.

Sorky 03-23-2009 05:40 AM

Quote:

Originally Posted by Budweiser (Post 1773070)
What config setting do I need to change to restore the original formatting?

vBulletin Options / Sorky03 - SubForum List Control - V1.5.2 / Forum description (div) formatting [original was class="smallfont"]
Default: class="smallfont" style="margin: 10px 10px 0px 10px"
Change back to: class="smallfont"
PS: Screenshots really helped!

Quote:

Originally Posted by Alfa1 (Post 1773234)
It would indeed be nice to decrease the space/margin between forum names and forum description.

See above ;) - You can try different settings here to suit your own personal needs

Walter Ronny 03-23-2009 01:11 PM

Hello, installed, works but i want to get forum looks like this. i was using and hack as this but with the 3.8.1 doesnt works, desinstalled it alrady and installed your .

problem now is when i enable the hack, it appear a comma.. here a screen...

http://img4.imageshack.us/img4/6879/faildzr.jpg

I want to add another subforum in another forum category but i do it and appear like this.. in the secong line..

look yourself..

https://vborg.vbsupport.ru/external/2009/03/54.jpg

what i want to get done is just like screen you posted, No Expand, No collapse , not count and 3 columns, but i want all it into one column.

And i'd like that text appear a bit little than normal..

Do i can do it ?

Thank you.

Budweiser 03-23-2009 01:37 PM

Sweet! Got it fixed. I would like to send you a donation for your hack. Where can I send it? (paypal?)

Marked as installed

Thnx, Dude...

Sorky 03-23-2009 09:05 PM

Quote:

Originally Posted by Budweiser (Post 1775001)
Sweet! Got it fixed. I would like to send you a donation for your hack. Where can I send it? (paypal?)

My pleasure & thanks for your appreciation. In the main post you will see a "Support the developer" link ;)

Quote:

Originally Posted by Walter Ronny (Post 1774975)
problem now is when i enable the hack, it appear a comma...

in the secong line..

And i'd like that text appear a bit little than normal..

Thank you.

Try this option to change the comma...
vBulletin Options / Sorky03 - SubForum List Control - V1.5.2 / Separator to use between SubForum [original was , ]
Try this option to help with the line wrap...
vBulletin Options / Sorky03 - SubForum List Control - V1.5.2 / Use the full column width for the SubForum table
Try this option to change the SubForum list font, etc...
vBulletin Options / Sorky03 - SubForum List Control - V1.5.2 / SubForum Element (td) formatting

Sorky 04-11-2009 10:50 AM

Withdrawn due to a small bug

pedroenf 04-13-2009 04:48 AM

1 Attachment(s)
New version returns an (several) error in IE:

https://vborg.vbsupport.ru/attachmen...1&d=1239601549


My 595 line is:

Code:

span.style.display = "";
    img.src = "images/buttons/collapse_thead.gif";
    set_cookie("Sorky03_ShowOrHide_" + n, 0);

Uninstalled and reinstalled 1.5.2 version.

Sorky 04-13-2009 10:42 AM

Quote:

Originally Posted by pedroenf (Post 1790000)
New version returns an (several) error in IE:

Damn a bug (when not using the collapse feature). Found & Fixed

Sorky 04-13-2009 10:55 AM

Change Log

1. Added the 'None' selection for greater clarity
2. The long awaited, often requested, cookie to remember the collapsed state
3. Other minor coding and commenting adjustments

Change 1
"None" is the same as using "Selected" with no forums in the following list
"All" is the same as using "UnSelected" with no forums in the following list.
"Selected" allows you to choose which forums the option applies to
"UnSelected" allows you to choose which forums the option DOES NOT apply to

Change 2
The following option has changed...
vBulletin Options / Sorky03 - SubForum List Control - V1.6.0 / Allow SubForum displays to be collapsed (Global)...
SubForums are shown/hidden when the page is loaded
It was a Yes/No choice but it is now a multi-state. The existing behavior remains and it has an extra choice to "Remember previous state". This uses a cookie to keep the state as the user last had it. The name has changed slightly...
vBulletin Options / Sorky03 - SubForum List Control - V1.6.0 / Allow SubForum displays to be collapsed (Global)...
How do you want the SubForums to be shown by default?
New option added...
vBulletin Options / Sorky03 - SubForum List Control - V1.6.0 / Allow SubForum displays to be collapsed (Global)...
If no cookie exists show as...

pedroenf 04-13-2009 02:38 PM

Quote:

Originally Posted by Sorky (Post 1790114)
Damn a bug (when not using the collapse feature). Found & Fixed

Sorry :( but i thought you should know. Thank you for the update :)

pedroenf 04-13-2009 02:50 PM

Udated and confirmed: no bugs. Thank you again.

Sorky 04-14-2009 08:55 AM

Quote:

Originally Posted by pedroenf (Post 1790252)
Sorry :( but i thought you should know. Thank you for the update :)

Glad you did as I'd rather be bug free ;) Took a bit to fix once I realized where the problem was and I forgot to test it without the collapse enabled

Quote:

Originally Posted by pedroenf (Post 1790267)
Udated and confirmed: no bugs. Thank you again.

Glad I could help


PS: Another user PM'd me that there was an issue. Found out that the "Ultimate Side Columns" Plug-In has an interaction issue with this. If anyone is using that one with this, changing the "parse_templates" order from 5 to 6 resolves it.

pedroenf 04-14-2009 02:15 PM

1 Attachment(s)
As kindly requested by Sorky, here it is a screen shot of sub forum list in 1, 2 and 5 columns and the alphabetically sorting (in my case only in the 5 columns listing) working well:


https://vborg.vbsupport.ru/attachmen...1&d=1239722046

Sorky 04-15-2009 02:35 AM

Quote:

Originally Posted by pedroenf (Post 1791044)
As kindly requested by Sorky, here it is a screen shot of sub forum list in 1, 2 and 5 columns and the alphabetically sorting (in my case only in the 5 columns listing) working well

Thanks for posting that - It shows very nicely how the multiple SubForum columns can be utilized.

I'd also like to take this opportunity to invite other users to share samples of how they have used this Plug-In ;)

Walter Ronny 04-15-2009 05:36 PM

Quote:

Originally Posted by Sorky (Post 1775327)
My pleasure & thanks for your appreciation. In the main post you will see a "Support the developer" link ;)



Try this option to change the comma...
vBulletin Options / Sorky03 - SubForum List Control - V1.5.2 / Separator to use between SubForum [original was , ]
Try this option to help with the line wrap...
vBulletin Options / Sorky03 - SubForum List Control - V1.5.2 / Use the full column width for the SubForum table
Try this option to change the SubForum list font, etc...
vBulletin Options / Sorky03 - SubForum List Control - V1.5.2 / SubForum Element (td) formatting

not sure if you understood me, doesnt work, anyway thx. :down:

Sorky 04-16-2009 07:30 AM

Quote:

Originally Posted by Walter Ronny (Post 1791858)
not sure if you understood me, doesnt work, anyway thx. :down:

Sorry to hear that - If you want to PM me a URL and access to your test server, I'm more than happy to have a quick look for you.

briansol 04-21-2009 04:53 PM

1.6.1 produces invalid xhtml.

eg

Code:

<div class="smallfont">
<!-- Sorky03 - vvvvv -->
<span id="Sorky03_ShowOrHide_span_xxxx"><strong>Discussion Forums</strong>:
<table width="100%" align="center" cellpadding="1" cellspacing="0"><tr><td><table width="100%" bgcolor="#fff" cellpadding="2" cellspacing="0">

a table cannot be contained within a span. the span needs to be closed.

looks like

Code:

// Finish the ShowOrHide span
        // --------------------------
        $Sorky03_SubForumShowOrHideFinish_HTML .= "\r\n</span>";

is not working properly.

Sorky 04-22-2009 10:19 AM

Quote:

Originally Posted by briansol (Post 1796111)
1.6.1 produces invalid xhtml

Thanks for the clue - for XHTML a table cannot go within a span. I do close the span (so the code you highlighed is not the issue), just the fact that I use a span around the table. I did this as I want the "SubForums:" text AND the table to disappear.

Good news is there is a very easy fix - edit lines 271 and 275 of my product XML file and change "span" to "div" (ignore the ").

I have updated a copy on my machine as a new 1.6.2 version with this change, but as it is so minor and the product actually works (even though it produces XHTML that is technically invalid) I won't publish a formal update at this point in time (unless everyone desperately wants one).

Alfa1 04-25-2009 10:12 PM

You might as well upload it or just add it to 1.6.1. I rather have valid xhtml

flipstyle 04-26-2009 06:10 PM

Hey Sorky Thanks for the update. Its working fine on my site. If anyone would like to see a live example of Sorky's SubForum Control you can check it out on myNGE.com

You can click on any of the main category tabs and you will see a show / hide button.

Sorky 04-27-2009 07:21 AM

Change Log

1. Addition of a debug information option
2. Changed a span to a div to make the plug-in XHTML compliant
3. Other minor coding and commenting adjustments

flipstyle 04-27-2009 05:34 PM

Hey Sorky I just updated to 1.6.2 works great.

About the rss feed I remember I got that one a long time ago somewhere in the template mods section. I found it in my installed mods here is the one I use Rss Feed Icon for boards
I'm actually going to install your Rss Icon since yours is up to date and offers admin controls thanks for letting me know about it.

Sorky 04-27-2009 11:51 PM

Quote:

Originally Posted by flipstyle (Post 1800038)
Hey Sorky I just updated to 1.6.2 works great.

About the rss feed I remember I got that one a long time ago somewhere in the template mods section. I found it in my installed mods here is the one I use Rss Feed Icon for boards
I'm actually going to install your Rss Icon since yours is up to date and offers admin controls thanks for letting me know about it.

Yeah - I acknowledged kami as I got the icon from there ;)

Glad you like it :up:


All times are GMT. The time now is 06:27 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.01872 seconds
  • Memory Usage 1,861KB
  • 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
  • (20)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