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

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

Category: Forum Home Enhancements - Version: 4.x.x Rating:
Released: 02-25-2010 Last Update: 03-31-2012 Installs: 1855
Uses Plugins Auto-Templates
 
No support by the author.

Info:
-This is used to arrange sub-forums into columns on forumhome.
-You can add thread/post counts to sub-forums, hide "Sub-forums" title, customize CSS, and more...

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

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

Versions:
v1.0 - Apr 24. 2006.
-First release
v2.5.1 - Jun 20. 2009.
-Latest vB 3.x version
v3.0 - Feb 26. 2010.
-Updated for vBulletin 4
-Fixed known bugs
v3.0.1 - Apr 03. 2010.
-Fixed bug where 'Sub-Forums:' is not hidden in some blocks
v3.1 - Oct 31. 2010.
-New: Almost completely rewritten regarding main functionality
-New: Removed all tables - CSS based now
-Fixed bug: Different column widths through categories
-Fixed bug: Unneeded commas in IE
-Fixed bug: Customizations not fully applied to latest category
-Fixed: XHTML errors
-Fixed: Minor bugs
v3.1.1 - Nov 05. 2010.
-Fixed: Sorting issues
-Fixed: Unneeded thread/reply counts in friendly URLs
v3.1.2 - Dec 12. 2010.
-Fixed bug: Forum Moderators listed in a column
v3.1.3 - Nov 19. 2011.
-Fixed: Compatibility issues with vB 4.1.8
v3.1.4 - Apr 01. 2012.
-New Option: Exclude styles
-New Option: Exclude forums
-Fixed some style issues

Download Now

File Type: zip VSa - Sub-Forum Manager v3.1.4.zip (3.8 KB, 6331 views)

Screenshots

File Type: jpg subforums.jpg (62.0 KB, 0 views)
File Type: png acp.png (99.1 KB, 0 views)

Show Your Support

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

Comments
  #412  
Old 03-29-2012, 01:26 AM
Breakpoint Breakpoint is offline
 
Join Date: Dec 2005
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be nice for Valter to make an update with this code. Thanks
Reply With Quote
  #413  
Old 03-31-2012, 05:23 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TiKu View Post
To fix the problem, add this code to MN hook:
Code:
			if (!function_exists('vsa_CompareVersions'))
			{
				function vsa_CompareVersions($verstr1, $verstr2)
				{
					$ver1 = explode('.', $verstr1);
					$ver2 = explode('.', $verstr2);
					for($i = 0; $i < 3; $i++)
					{
						if(intval($ver1[$i]) > intval($ver2[$i]))
							return -1;
						elseif(intval($ver1[$i]) < intval($ver2[$i]))
							return 1;
					}
					return 0;
				}
			}
Then instead of
Code:
if ($vbulletin->options['templateversion'] >= '4.1.8')
use this code:
Code:
$templateVerIsOlderThan418 = (vsa_CompareVersions($vbulletin->options['templateversion'], '4.1.8') > 0);
if(!$templateVerIsOlderThan418)
That's cool you posted the fix but you sort of re-invented the wheel there. PHP has a built in function called "version_compare" that compares versions numbers like x.x.x to y.y.y

http://php.net/manual/en/function.version-compare.php

You just need to replace the old IF conditions with this:
Code:
if (version_compare($vbulletin->options['templateversion'], '4.1.8', 'ge'))
The "ge" means "Greater than or equal to"

Working good for me on 4.1.11 with this change. :up:
Reply With Quote
Благодарность от:
Valter
  #414  
Old 04-01-2012, 11:56 AM
Valter Valter is offline
 
Join Date: Aug 2005
Location: Sarajevo
Posts: 2,432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

v3.1.4 - Apr 01. 2012.
-New Option: Exclude styles
-New Option: Exclude forums
-Fixed some style issues

To upgrade:
-Import XML, allow overwrite
Reply With Quote
4 благодарности(ей) от:
BirdOPrey5, CharlieDelta, mitch84, Sage Knight
  #415  
Old 04-01-2012, 09:12 PM
1320Nation 1320Nation is offline
 
Join Date: Sep 2008
Posts: 246
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What does CSS 1- Main suppose to control? It doesn't matter what I enter in this option nothing seems to change.
Reply With Quote
  #416  
Old 04-01-2012, 10:09 PM
Breakpoint Breakpoint is offline
 
Join Date: Dec 2005
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the update!
Reply With Quote
  #417  
Old 04-03-2012, 06:30 AM
dhemitz dhemitz is offline
 
Join Date: Oct 2007
Location: INDONESIA
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks........
Reply With Quote
  #418  
Old 04-03-2012, 11:38 AM
Dave_The_Don's Avatar
Dave_The_Don Dave_The_Don is offline
 
Join Date: May 2011
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ricsca View Post
How to disable in defoult mobile vbulletin?

Thanks

I want to disable the product ‘VSa – Sub-Forum Manager’ for styleid=14 so I created a new plugin like this:

goto your :-

http://www.yourdomain.com/admincp/plugin.php?do=add

Product: VSa - Sub-Forum-Manager
Hook: style_fetch
Title: Disable VSa – Sub-Forum Manager For DefaultMobileStyle
Order: 1
PHP Code:
if ($styleid == 14){
$vbulletin->options['vsasfm_enable'] = 0;
}
Active plugin: YES

you will need to place your default Mobile Style id where i put 14!
Reply With Quote
  #419  
Old 04-03-2012, 11:54 AM
TiKu's Avatar
TiKu TiKu is offline
 
Join Date: Sep 2006
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
That's cool you posted the fix but you sort of re-invented the wheel there. PHP has a built in function called "version_compare" that compares versions numbers like x.x.x to y.y.y
Thank you! I'm not that familar with PHP. I'm mainly doing C++.
Seems like Valter integrated this fix and the feature to disable the add-on on a per-forum basis into version 3.1.4. :up:
Reply With Quote
  #420  
Old 04-03-2012, 11:55 AM
TiKu's Avatar
TiKu TiKu is offline
 
Join Date: Sep 2006
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave_The_Don View Post
I want to disable the product ?VSa ? Sub-Forum Manager? for styleid=14 so I created a new plugin like this:
With version 3.1.4 this isn't required anymore, because now you can exclude styles from the add-on using the settings page.
Reply With Quote
  #421  
Old 04-03-2012, 12:21 PM
Dave_The_Don's Avatar
Dave_The_Don Dave_The_Don is offline
 
Join Date: May 2011
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh well never mind lol.
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 07:41 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.09021 seconds
  • Memory Usage 2,373KB
  • Queries Executed 28 (?)
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
  • (4)bbcode_code
  • (4)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
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (30)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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