Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Selective Forum Filter Details »»
Selective Forum Filter
Version: 1.07, by akanevsky akanevsky is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 04-12-2005 Last Update: 07-25-2005 Installs: 14
DB Changes Template Edits
Code Changes  
No support by the author.

/*================================================= =====================*\
|| Selective Forum Filter for vBulletin 3.0.3 - 3.0.7
|| Author : Psionic Vision
\*================================================ ======================*/

What's That For:
It enables your forum users to selectively hide various forums from the forum list and from search by using the new "Edit Forum Visibility Mode" on the index page of your forums.
When hidden, users can access those forums using direct url, or using the edit mode.
The user will still be able to access his hidden forums by using direct url, and he will be able to search from within them.

1.07
[+] Bugfix release..

1.06
[+] Now you can also enter visibility edit mode in subforums. That is useful when there are many forum levels and thus not all of them are accessible from forumhome.
[+] Edit mode is now saved into cookie, so until you either exit from that mode or close your browser, your state will be saved between pages

1.05
Two more template changes that were forgotten about in 1.04.

1.04
Major Update! The confusing type-in-digits text field in the user profile is no more. Now, to edit forum visibility, user must simply click on a new link, and that link will take him to the edit interface. See screenshots.

Note: Of course, guests will not be able to access that mode.

1.03
Once again the manual has been corrected...

1.02
[BugFix] The subforums now get hidden as well (subforums are the list of forums that are outside your forum depth view).

1.01
My apologies - The manual has been incomplete. A query and a step were missing.
This time everything is fixed

1.00
First Public Release

P.S. I do not think there is a screenshot needed here, because the only visual thing the hack does is a new field in user options panel.

I WILL ONLY PROVIDE SUPPORT IF YOU CLICK INSTALL

Show Your Support

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

Comments
  #22  
Old 04-14-2005, 11:42 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Umm... What exactly do you mean by "sub"forums?
The way I did it, it hides every forum starting from the one your specified.

On my board, there is only one depth level.
Reply With Quote
  #23  
Old 04-14-2005, 11:48 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh! Now I understand what you are talking about! And what the code is for, too. Thanks. I'll add that.
Reply With Quote
  #24  
Old 04-14-2005, 11:58 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Manual has been updated once more Thanks, kall.
Reply With Quote
  #25  
Old 04-15-2005, 12:04 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dark Visor
Manual has been updated once more Thanks, kall.
Did you catch the search.php error that causes each forum to show up twice if not in the excluded array?

In the install file,
HTML Code:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ADD AFTER
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

		if (!in_array($forumid, explode(',', $bbuserinfo['excludeforumids']))) 
		{
			eval('$searchforumbits .= "' . fetch_template('option') . '";');
		}
Should be:
HTML Code:
FIND

eval('$searchforumbits .= "' . fetch_template('option') . '";');

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
REPLACE WITH
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

		if (!in_array($forumid, explode(',', $bbuserinfo['excludeforumids']))) 
		{
			eval('$searchforumbits .= "' . fetch_template('option') . '";');
		}
As far as I can see, logically, the way you had it, it said: "If the forum is not in the excluded list, and the member has permission to see it, show it in the list of available forums to search. Then, If the member has permission to see it, show it in the list of available forums to search."

The way I have it, it is saying ONLY "If the forum is not in the excluded list, and the member has permission to see it, show it in the list of available forums to search."
Reply With Quote
  #26  
Old 04-15-2005, 12:43 AM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol. yeah you are right ))) Idk, I was probably rushing through the code.
Reply With Quote
  #27  
Old 04-15-2005, 12:46 AM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually... I only see one instance of that eval in my search.php
Are you sure you did everything right?
Reply With Quote
  #28  
Old 04-15-2005, 12:50 AM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind. The thing is, I have modded my file, but forgot the fact that the line was originally there
Reply With Quote
  #29  
Old 04-15-2005, 07:04 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dark Visor
Nevermind. The thing is, I have modded my file, but forgot the fact that the line was originally there
All good man, I am happy I was able to help squash these little bug.
Reply With Quote
  #30  
Old 04-15-2005, 11:45 AM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very very nice, I'll have to test this one out. I do something with the $hidden_forums array right now, but this is much cleaner.

I wonder how one could go about making a small link to disable a forums display...

Then people could just click the link for the forums they want to hide while viewing forumhome.
Reply With Quote
  #31  
Old 04-15-2005, 10:47 PM
Aurous Aurous is offline
 
Join Date: Apr 2004
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance of having a multiple check-box with all forums listed? So users can conveniently select the forums they want to hide? That will really complete this hack.

Anyways, good work.
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 06:55 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.04948 seconds
  • Memory Usage 2,308KB
  • 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
  • (2)bbcode_html
  • (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
  • (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