![]() |
This hack adds a yes/no option for forums, to select whether you want to display that forum (or category) on the main page.
I added a "sanity check", so you can't hide forums that have no parent (because then you won't be able to access any of its sub-forums). I'll get a demo in a few minutes. Demo:: https://vborg.vbsupport.ru/attachmen...&postid=172718 Installation:: Run this query: Code:
ALTER TABLE forum ADD showonhome SMALLINT(6) DEFAULT '1' not null AFTER allowicons PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
In index.php (main folder) replace PHP Code:
PHP Code:
That's it! :) |
Demo: :)
It says "You can hide a forum with a parent!" but it's "You can't hide a forum with no parent!". :p |
master i am first reply your post!!
but i still can not use this hack in my forum~~~ cause i haven't phpmyadmin right now~~~ i think next time ba!! by the way have any picture??--haha!!sorry~i see it!! it looks great!! thanks your hack~~ |
Tested on 2.0.3
Working great. Great hack!!! |
Squawell this is the second time that I will ask you to enter your license into your profile.
|
I'm not sure exactly what this does? Here's my idea of it:
You have the forum depth set at 2, so forums 4 deep aren't shown. But if you want one of those shown, you use this and select to have it shown, then its on the forum homepage? I'm not really sure about this... squawell: Enter your license info in your profile. To do that go to [url=http://www.vbulletin.com/forum/member.php?s=&action=editprofile]this[url] page and scroll down. Then enter your license and password. |
It's the other way around
Say you have the depth at 3 and have a category with three forums in it: cat-->forum1 forum2 forum3 Now all forums are shown on forumhome under the category turn of the show on forumhome switch and they are not shown on main page but if you click the category they're there. |
Oh! So its sorta like what happens when a forum is beyond the depth that is shown. Sweet. :)
|
I just wanted to add, FireFly you rock!!!
I was looking for a collapsable forum feature, but this is just as good if not better!!! Thanks I'm going to add this tonight. |
Very nice...
Just something about 'sanity check'... :p If I had some private forums within a category, can it be hidden by this hack if none of the subforums is visible to the logged user ? Thank you very much Bye |
All times are GMT. The time now is 01:42 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|