vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Selective Forum Filter (https://vborg.vbsupport.ru/showthread.php?t=79883)

akanevsky 04-14-2005 11:42 PM

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.

akanevsky 04-14-2005 11:48 PM

Oh! Now I understand what you are talking about! And what the code is for, too. Thanks. I'll add that.

akanevsky 04-14-2005 11:58 PM

Manual has been updated once more :) Thanks, kall.

kall 04-15-2005 12:04 AM

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."

akanevsky 04-15-2005 12:43 AM

lol. yeah you are right :)))) Idk, I was probably rushing through the code.

akanevsky 04-15-2005 12:46 AM

Actually... I only see one instance of that eval in my search.php
Are you sure you did everything right?

akanevsky 04-15-2005 12:50 AM

Nevermind. The thing is, I have modded my file, but forgot the fact that the line was originally there :)

kall 04-15-2005 07:04 AM

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. :)

Cyricx 04-15-2005 11:45 AM

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.

Aurous 04-15-2005 10:47 PM

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.


All times are GMT. The time now is 05:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01172 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete