Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Sorky - SubForum List Control Details »»
Sorky - SubForum List Control
Version: 2.0.0, by Sorky Sorky is offline
Developer Last Online: Jan 2015 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.0.x Rating:
Released: 01-13-2010 Last Update: 01-13-2010 Installs: 185
Uses Plugins Auto-Templates
 
No support by the author.

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.8.x
v2.0.0 - 15th of January, 2010 = official release for 4.0.x (click here for more information)

Hall Of Fame For ALL Versions (Donations - Greatly Appreciated - Thank You)
Fungsten US$25
Budweiser US$20
CreditForum US$25
lazyseller US$30
Alisa Lindsay US$10
Alfa1 ?50

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 post 1

If you like this Mod please click INSTALL.

Download Now

File Type: xml product-Sorky-SubForumListControl-v2.0.0.xml (91.7 KB, 1507 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
psd_hunter, StonePilot

Comments
  #112  
Old 09-21-2010, 06:28 PM
bigrover bigrover is offline
 
Join Date: Jun 2010
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was able to fix the collapsing forum issue by modifying the parse_templates plugin. I found the problem was related to missing </ol> tags in the html code delivered to the browser by comparing output using the baseline configuration where the collapse feature works, and with the Sub-Forum List Control enabled.

I tried to locate where these tags were supposed to be reinserted into the content per the embedded notes but I never determine where that should have been.

In the parse_templates plugin:

Replace:
PHP Code:
$vbulletin->templatecache[forumhome_forumbit_level1_nopost] = str_replace($Sorky01_SubforumOLBefore ''$vbulletin->templatecache[forumhome_forumbit_level1_nopost]); 
With:
PHP Code:
    // hack to fix collapsing forums
    // $vbulletin->templatecache[forumhome_forumbit_level1_nopost] = str_replace($Sorky01_SubforumOLBefore , '', $vbulletin->templatecache[forumhome_forumbit_level1_nopost]);
    // end hack 
Reply With Quote
  #113  
Old 09-21-2010, 08:19 PM
bigrover bigrover is offline
 
Join Date: Jun 2010
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found another problem related to how the Sub-Forum List Control is handling the <ol> tag. When the parse_templates plugin replaces the data for categories it removes an <ol> tag that is defining the container that holds the displayed data, while leaving the closing </ol> tag. This causes the container to close early, leaving all remaining forums, and the footer outside of the bounding box. I can fix it by commenting out the removal of the <ol> tag as indicated below, but that causes problems with the table width resulting in the sub-forums getting bunched up to the left rather than properly spaced as intended by the mod. This is apparently caused by the class attribute in the <ol> tag. I modified the plugin to remove the class attribute and have satisfactory results.

In the parse_templates plugin:

Replace:
PHP Code:
$vbulletin->templatecache[forumhome_forumbit_level1_nopost] = str_replace($Sorky01_SubforumOLBefore ''$vbulletin->templatecache[forumhome_forumbit_level1_nopost]); 
With:
PHP Code:
    // hack to correct forum home formatting
    
$Sorky01_SubforumOLReplace '<ol>' "\r\n";
    
$vbulletin->templatecache[forumhome_forumbit_level1_nopost] = str_replace($Sorky01_SubforumOLBefore $Sorky01_SubforumOLReplace$vbulletin->templatecache[forumhome_forumbit_level1_nopost]);
    
// end hack 
Reply With Quote
  #114  
Old 09-21-2010, 08:31 PM
pedroenf pedroenf is offline
 
Join Date: Jun 2006
Location: Portugal
Posts: 308
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bigrover View Post
I was able to fix the collapsing forum issue by modifying the parse_templates plugin. I found the problem was related to missing </ol> tags in the html code delivered to the browser by comparing output using the baseline configuration where the collapse feature works, and with the Sub-Forum List Control enabled.

I tried to locate where these tags were supposed to be reinserted into the content per the embedded notes but I never determine where that should have been.

In the parse_templates plugin:

Replace:
PHP Code:
$vbulletin->templatecache[forumhome_forumbit_level1_nopost] = str_replace($Sorky01_SubforumOLBefore ''$vbulletin->templatecache[forumhome_forumbit_level1_nopost]); 
With:
PHP Code:
    // hack to fix collapsing forums
    // $vbulletin->templatecache[forumhome_forumbit_level1_nopost] = str_replace($Sorky01_SubforumOLBefore , '', $vbulletin->templatecache[forumhome_forumbit_level1_nopost]);
    // end hack 

Thanks for the bug correction. It DOES work. I've been trying to solve this issue for a very long time. Time to update the MOD now, where's the coder?
Reply With Quote
  #115  
Old 09-23-2010, 02:10 PM
chriske chriske is offline
 
Join Date: Oct 2008
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pedroenf View Post
Time to update the MOD now, where's the coder?
Please update this wonderful mod
Reply With Quote
  #116  
Old 09-24-2010, 07:57 AM
ChaFF's Avatar
ChaFF ChaFF is offline
 
Join Date: Jun 2010
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think this mod should be a default in vb board
Reply With Quote
  #117  
Old 10-06-2010, 02:55 PM
Alex@Mk3OC Alex@Mk3OC is offline
 
Join Date: Dec 2007
Location: Northants, UK
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone had a problem with this mod messing the display of the forum index up in IE7?

I originally suspected vb to be at fault, but when I disable this mod it displays as it should in IE7?
Reply With Quote
  #118  
Old 10-06-2010, 03:44 PM
haidm haidm is offline
 
Join Date: Feb 2010
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can I remove "sub-forum" text with this mod?
Reply With Quote
  #119  
Old 11-28-2010, 02:46 PM
ZacFields ZacFields is offline
 
Join Date: Nov 2010
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay maybe I am just stupid, but I seem to be the only one having this problem:

I have an NFL forum, and I have all the NFL Team sub-forums set up perfectly through this mod. But for some reason, I can figure out how to make my other forums their normal size (using the standard large "new post" icons and showing the last post, etc.

On my forums www.NationalFootballForum.com , I want the "Site News" and "General NFL Discussion" forums to go back to looking like they did before. Any ideas? I see it working on other peoples' forums but I can't figure it out on mine.


*Edit* Nevermind I figured this out. You've just got to set the forums an extra level down and change an option in your VB ACP
Reply With Quote
  #120  
Old 01-24-2011, 03:02 PM
Kyo-dono Kyo-dono is offline
 
Join Date: Jun 2010
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@pedroenf
You are my personal hero!

But is there not a typo?
you wrote:
Code:
$Sorky01_SubforumOLReplace = '<ol>' . "\r\n";
but must be:
Code:
$Sorky01_SubforumOLReplace = '</ol>' . "\r\n";
With this its working for me.
Thanks for help
Reply With Quote
  #121  
Old 02-17-2011, 01:05 AM
Sorky Sorky is offline
 
Join Date: Apr 2007
Location: Australia
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry I've been away for such a long time... Different PC, new role, very little spare time and no copy of vBulletin to work with seriously impacts my ability to play with this ;-)

While the comments from "pedroenf" and "bigrover" will definitely help users with collapse issues, the real reason for the problem is (I expect) that my Mod is supposed to remove both the start and end outline, however I expect that in some users cases the applied class names "subforumlist commalist" may be different and the html produced does therefore not contain <ol class="subforumlist commalist">. This means that the start of the outline is not actually removed (as I intended) and hence the removal of the end of the outline causes issues.

Depending on feedback and time, I could (a) change that section of the code to be a little more reliable even with class changes or I could (b) make it possible to disable the outline change with an option or I could (c) just remove that section (lines 540 to 552). To do (a) I'll need to see a few sites that have my mod applied that I can look at to see the variations that I'd have to deal with. Note: I took the liberty of looking at pedroenf's site and saw <ol class="commalist">, so in that case, removing the "subforumlist " from line 542 of my Mod should also solve the problem, but in the way I intended, by removing the entire outline, both start and finish.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:38 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.08253 seconds
  • Memory Usage 2,353KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (6)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete