Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #462  
Old 04-10-2008, 03:35 PM
jim6763nva's Avatar
jim6763nva jim6763nva is offline
 
Join Date: Oct 2005
Location: Virginia
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got this working with 3.7 RC2 however today, when I went to integrate vbadvanced with my forums, something got messed up. Now my sub-forums are all listed on 1 line, for example:

Forum Name
Forum Description
Sub-Forums:
SubForumName , SubForumName , SubForumName , SubForumName , SubForumName

I have a lot of sub forums since I run a Virginia State-wide forum and I show sub-forums by city and county.

I had the VBSEO addon installed so I uninstalled that thinking maybe something there was causing it, however when I turn off the cyb-sub forums addon, all sub-forums start wrapping within the forum area below the main forum.

Anyone know what would be causing this?

Thanks in advance,
Jim
Reply With Quote
  #463  
Old 04-10-2008, 07:17 PM
Jenkins Jenkins is offline
 
Join Date: Nov 2002
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

make sure it didn't revert any templates when you installed vbadvanced? dunno just a suggestion, maybe re-install the subforum manager xml file
Reply With Quote
  #464  
Old 04-11-2008, 12:50 AM
jim6763nva's Avatar
jim6763nva jim6763nva is offline
 
Join Date: Oct 2005
Location: Virginia
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jenkins View Post
make sure it didn't revert any templates when you installed vbadvanced? dunno just a suggestion, maybe re-install the subforum manager xml file
Hey Jenkins,
Thank you for your suggestions. I tried a couple times uninstalling this addon and reinstalling it.. as well as deleting the forums and recreated them and resetting the forum information in the maintenance section. None of these worked.

It's weird. This is what I did to integrate a vba page, went to VBA CMPS secton in AdminCP:

1. Created a new page of type "module"
2. Set the title to "Forum"
3. Set the Id to "forum".
4. Set the display order to 2.
5. Added the Site Navigation block to the left column.
6. Excluded the Forum module page from the Site Navigation menu.
7. Set the Forum module page as the page to integrate with.
8. Changed the "THIS_SCRIPT" variable in the index.php file to "forum_index".
9. Added "forum_index" to the "THIS_SCRIPT Integration Method" box.

Integration went fine, but sub-forums are listed all on one line. If I have a lot of subforums, it will stretch the forum category table way out to the right.

I just found out tonight, if I undo the integration, and put the THIS_SCRIPT variable in the index.php file back to "index", and refresh the page, this addon (cyb_sub-forums) will work again, and all subforums will be listed in columns as set in the cyb_sub-forum settings.

I'm not sure where the issues is to be honest.
Reply With Quote
  #465  
Old 04-11-2008, 01:05 AM
jim6763nva's Avatar
jim6763nva jim6763nva is offline
 
Join Date: Oct 2005
Location: Virginia
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I'm not sure if this is the correct way to do this but I took a look at the plugin for this addon and noticed that the code in the "parse_templates" hook is expecting the "THIS_SCRIPT" variable in the forum index.php file to be set to "index". I modified it to look at the new value I set for the integration ("forum_index") and this seems to allow the sub-forums addon to work.

At the top of the Parse_Templates" Hook there is the following line of code:
PHP Code:
 
 
 
if ($vbulletin->options['cybsfa_enable'] AND (THIS_SCRIPT=='index' OR THIS_SCRIPT=='forumdisplay')) 
I changed it to read:
PHP Code:
 
if ($vbulletin->options['cybsfa_enable'] AND (THIS_SCRIPT=='forum_index' OR THIS_SCRIPT=='forumdisplay')) 
Reply With Quote
  #466  
Old 04-12-2008, 07:37 AM
Turelio Turelio is offline
 
Join Date: Apr 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you bro!
Reply With Quote
  #467  
Old 04-13-2008, 09:01 PM
soundbarrierpro soundbarrierpro is offline
 
Join Date: Nov 2007
Posts: 767
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this hack installed and I want my sub forums to look like this. I've done everything I can imagine to get mine to config this way and nothing works.

Reply With Quote
  #468  
Old 04-21-2008, 04:09 AM
giraffesyo's Avatar
giraffesyo giraffesyo is offline
 
Join Date: Nov 2007
Location: My Computer.
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked on my setup. I didn't use depth 1 though, I set it to 2 on all three depths and it works beautifully for my purposes.

Thanks


(Using 3.7.0 RC2
Reply With Quote
  #469  
Old 04-22-2008, 03:30 AM
Sorky Sorky is offline
 
Join Date: Apr 2007
Location: Australia
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance of having an "include these forums" as opposed to the exclude? Or any advice on what to change to make it that way?

Also, if I have a sub-forum with no posts, the post count doesn't show and the alignment gets stuffed as those that do have posts are a little wider - can I get it to show (0/0)?
Reply With Quote
  #470  
Old 04-22-2008, 10:50 AM
Sorky Sorky is offline
 
Join Date: Apr 2007
Location: Australia
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems I had a few issues as I had changed some of the styles that this mod works with (My style changes were primarily to add a <br /> after the "," so I had subforums in a sigle column by default)

I wanted this MOD to enable me to have the long sub-forums listed in several columns, but I still wanted all the "excluded" forums as a single column

Long story short, I modified the mod to add two new options

1) show excluded forums as a list [forced excluded forums to be treated as a single column list]

2) show counts as 0/0 for sub-forums with no threads

PS : Great work Cybernetec - I've PM'd you my modifications if you are interested
Reply With Quote
  #471  
Old 04-22-2008, 11:00 PM
Sorky Sorky is offline
 
Join Date: Apr 2007
Location: Australia
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OLDrCF View Post
Works great in 3.6.9 too , nice mod.

Is there any way can increase the spacing between columns and perhaps make it consistent down the whole of the forums?

Install clicked too.
I had the same issue - Changed the "forumhome_forumbit_level1_post" style

Change 1 was to move the icon to the top (not necessary to solve your problem)
Change 2 was the fix

Code:
<tbody>
	<tr align="center">
		<td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]">
		
		<table cellpadding="0" cellspacing="0" border="0">
		<tr valign="top">
			<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
			<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
			<td width="100%">
			<div>
				<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
				<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
			</div>
			<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
			<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
			<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
			</td>
		</tr>
		</table>
		
		</td>
		<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
		<td class="alt1">$forum[threadcount]</td>
		<td class="alt2">$forum[replycount]</td>
		<if condition="$vboptions['showmoderatorcolumn']">
		<td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
		</if>
	</tr>
</tbody>
<if condition="$childforumbits">
<tbody>
	$childforumbits
</tbody>
</if>


Quote:
Originally Posted by jim6763nva View Post
I got this working with 3.7 RC2 however today, when I went to integrate vbadvanced with my forums, something got messed up. Now my sub-forums are all listed on 1 line, for example:

Forum Name
Forum Description
Sub-Forums:
SubForumName , SubForumName , SubForumName , SubForumName , SubForumName

I have a lot of sub forums since I run a Virginia State-wide forum and I show sub-forums by city and county.

I had the VBSEO addon installed so I uninstalled that thinking maybe something there was causing it, however when I turn off the cyb-sub forums addon, all sub-forums start wrapping within the forum area below the main forum.

Anyone know what would be causing this?

Thanks in advance,
Jim
That happened to me also - Took the "white-space:nowrap;" out of the "CSS 3" and back to normal
Reply With Quote
Reply


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 05:00 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.06111 seconds
  • Memory Usage 2,331KB
  • 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
  • (1)bbcode_code
  • (2)bbcode_php
  • (3)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
  • (1)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