Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Cyb - Sub-Forum Manager Details »»
Cyb - Sub-Forum Manager
Version: 2.5.1, by Valter Valter is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.x Rating:
Released: 08-03-2006 Last Update: 06-19-2009 Installs: 1753
Uses Plugins Template Edits
 
No support by the author.

vB 3.7 VERSION HERE:
https://vborg.vbsupport.ru/showthread.php?t=177954


======


Info:
This plugin is useful when you have big number of sub-forums. It arranges them into columns. You can easily choose number of columns (1 to 7) to arange sub-forums into. There are options to enable/disable hack, exclude forums, enlarge font for sub-forums titles, hide commas, hide "Sub-Forums" phrase, show thread/reply counts, and more...


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


Notes:
-To get this hack working you must set "Depth of Sub-Forums" to "1" in vBulletin Options > Forum Listings Display Options
-To set hack options go to: AdminCP > vBulletin Options > Cyb - Sub-Forum Manager


Versions:
v1.0 - Apr 24. 2006.
-First release
v1.1 - Apr 24. 2006.
-Typo fixed
v1.2 - Apr 25. 2006.
-TC bug fixed
v1.3 - May 30. 2006.
-Added ability to use original font size for subforums titles (requested)
v1.4 - May 30. 2006.
-Added ability to hide commas (shown after every subforum title except the last one) - requested
v1.5 - May 30. 2006.
-Fixed little bugs (phrase, variable)
v1.6 - Aug 04. 2006.
-Release of this hack for vB v3.6
v1.7 - Aug 12. 2006.
-Added option to hide "Sub-Forums" phrase
-Added options to customize sub-forums table attributes
-Little improvements in the code
v1.8 - Sep 06. 2006.
-Added: Option to exclude forums
-Added: Options to show thread-count or reply-count or both after sub-forum title
-Hack name changed from "Cyb - Sub-Forums Arranger" to "Cyb - Forumhome Sub-Forums Manager"
-Added "Product Version Checking"
v1.9 - Sep 06. 2006.
-Fixed bug (if you choose to arrange sub-forums into two columns it arranges it into one)
-Added: When you mouseover count(s) it shows you what count(s) are for, depending on settings
v2.0 - Sep 09. 2006.
-Thread/post counts are hidden automatically if sub-forum is link or contains "child forums"
-Added option to turn on/off extra style and counts for excluded forums
v2.1 - Sep 14. 2006.
-Added: Option to change text size for thread/reply counts
-Fixed bug (unneded space before commas)
v2.2 - May 31. 2007.
-Option to hide thread/reply counts for selected sub-forums
-Counts automatically hidden for sub-forums with '0' threadcount
-Option to add blank lines after selected sub-forums
-Options to change CSS attributes for sub-forums inner table (change background color, text size,...)
-Several other improvements and general code cleanup
v2.3 - Jun 01. 2007.
-Fixed bug with some XHTML validation errors
-Fixed bug where some sub-forums are not arranged properly
v2.4 - Jun 01. 2007.
-Fixed bug where excluded forums shows "Cybernetec" between sub-forums
v2.5.1 - Jun 20. 2009.
-Minor bugs fixed (CSS, variables, phrases, product info)


If you like this hack please click INSTALL.


LIVE DEMO

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #202  
Old 03-16-2007, 04:48 AM
TheMilkCarton TheMilkCarton is offline
 
Join Date: Jan 2007
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those wanting it in forumdisplay.. Just change the "Depth of Forums - Forum Display" option to 1.

However,
This doesn't quite display correctly if you have "Act as a Forum" set to "No" for the subforum when you have:

Parent Forum -> Child Forum -> Subforum (that only acts as a category) -> More Subforums -> Threads.

If you have a setup like this, adding the $forumid to "Exclude Forum" in the Subforum Manager doesn't work either... and I'm not sure why.

I included an image of how it doesn't display correctly. Attachment 61912
Notice that it uses the "tcat" class, and also has the collapse button which is not needed since nothing will be displaying under it.

Fixing these few things is simple:

Open forumhome_forumbit_level1_nopost and find:
Code:
<tbody>
    <tr>
        <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
Replace with:
Code:
<tbody>
    <tr>
        <td class="<if condition="!in_array($forumid, array(X,Y,Z))">tcat<else />alt1</if>" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
Where X, Y, and Z are the $forumid's of the subforums that are Category Only and displaying incorrectly.

Now for getting rid of the collapse button.

In the same template find:
Code:
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
and replace with:
Code:
<if condition="!in_array($forumid, array(X,Y,Z))"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a></if>
again where X,Y,Z are the $forumid's that aren't displaying correctly. Note: If you ever change your Forumdisplay depth back to 2, you should delete this conditional, or you won't be able to collapse/expand your Subforums.

It should now look like this:Attachment 61913

Not done yet! If you want to fix that column spacing, add the $forumid of that subforum to the "Forum Exclude" in the Subforum Manager. The columns will now space the same as Subforum (Act as forum) in the attached pictures.

I haven't tested this thoroughly, but I haven't had problems either.

If it's not working, make sure the $forumid's you are using are the actual $forumid's of the subforum.. i.e. "Test Subforum (Category Only)" in the images.

------------------------------------------
Also, if ALL of the subforums you have are "Category Only" you may want to get rid of the table with the Forum, Last Post, Threads, and Posts for that forum, since it won't display post counts, etc.

To do this go to forumdisplay.

Find:
Code:
<thead>
    <tr align="center">
      <td class="thead">&nbsp;</td>
      <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
      <td class="thead" width="175">$vbphrase[last_post]</td>
      <td class="thead">$vbphrase[threads]</td>
      <td class="thead">$vbphrase[posts]</td>
      <if condition="$vboptions[showmoderatorcolumn]">
      <td class="thead">$vbphrase[moderator]</td>
      </if>
    </tr>
</thead>
and replace with
Code:
<if condition="!in_array($forumid, array(X,Y,Z))"><thead>
    <tr align="center">
      <td class="thead">&nbsp;</td>
      <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
      <td class="thead" width="175">$vbphrase[last_post]</td>
      <td class="thead">$vbphrase[threads]</td>
      <td class="thead">$vbphrase[posts]</td>
      <if condition="$vboptions[showmoderatorcolumn]">
      <td class="thead">$vbphrase[moderator]</td>
      </if>
    </tr>
</thead></if>
This time, X, Y, and Z are the forums that contain the category only subforums, i.e. "Test Child Forum" in the attached images. They will NOT be the same $forumid's that you used in the other steps. It should look like this afterward: Attachment 61915

I'm pretty sure with all this info, Cybernetec may be able to incorporate this into the product?? It would be easy to add 2 more Exclude boxes for the 2 conditionals I added above, right?

Edit: For some reason "Exclude Forums" doesn't work at all on my forum... It just makes the columns closer together.. does this happen for anyone else?

Edit: Nevermind. I understand what the Exclude is for now. I thought it HID the subforums entirely. It just gets rid of the column formatting.
Reply With Quote
  #203  
Old 03-16-2007, 07:06 PM
Bree's Avatar
Bree Bree is offline
 
Join Date: Aug 2006
Location: Hawaii
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Installed* That was one of the easiest things I've ever done!! Now I feel stupid for putting if off so long LOL I guess I just kinda got it in my head that the cooler the hack the harder it will be to install... apparently that is not the case! Thanks a bunch!! Always, Bree (3.6.5)
Reply With Quote
  #204  
Old 03-20-2007, 05:10 AM
mgurain's Avatar
mgurain mgurain is offline
 
Join Date: Apr 2005
Location: KSA - Qatif - Al-Jarodiah
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a forum which has about 10 subforums,

Is it possible to "hide those subforums only" not other subforums from the forumhome?

But in forumdisplay it will show them.

It would be greate if I only need to specifiy the parent forum to do that.

This will be helpfull.

Thanks in advance,,
Reply With Quote
  #205  
Old 03-28-2007, 09:50 AM
Mecho's Avatar
Mecho Mecho is offline
 
Join Date: Aug 2006
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible that i disable Posts Count just for one section ???

Thanks
Reply With Quote
  #206  
Old 03-30-2007, 04:08 AM
RENDY81 RENDY81 is offline
 
Join Date: Mar 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

install thanks
Reply With Quote
  #207  
Old 04-03-2007, 03:57 AM
notrious notrious is offline
 
Join Date: Mar 2007
Location: New York
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Excelent Super

rating 11/10
Reply With Quote
  #208  
Old 04-03-2007, 11:40 PM
Mecho's Avatar
Mecho Mecho is offline
 
Join Date: Aug 2006
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mecho View Post
Is it possible that i disable Posts Count just for one section ???

Thanks

any idea !?!
Reply With Quote
  #209  
Old 04-04-2007, 03:31 AM
YabbaDabba YabbaDabba is offline
 
Join Date: May 2004
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still woking great on my vB 3.6.4. Many thanks.

Suggestion:

Support for more than one sub-forum level.


Category
Sub-forum A (threads/posts)
Sub-forum B
Sub-sub-forum 1 (threads/posts)
Sub-sub-forum 2 (threads/posts)
Sub-forum C (threads/posts)
Reply With Quote
  #210  
Old 04-04-2007, 03:35 AM
Valter Valter is offline
 
Join Date: Aug 2005
Location: Sarajevo
Posts: 2,432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll update this hack soon anyway... please be patient.
Reply With Quote
  #211  
Old 04-04-2007, 04:29 PM
Mecho's Avatar
Mecho Mecho is offline
 
Join Date: Aug 2006
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cybernetec View Post
I'll update this hack soon anyway... please be patient.

Sure and thanks for all ur activities and support
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 01:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.13034 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
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
  • (6)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete