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
  #52  
Old 04-19-2005, 03:04 PM
Phalynx Phalynx is offline
 
Join Date: Feb 2004
Location: Erlangen, Germany
Posts: 2,747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really nice Hack. It works, but I had to change 2 things:

Forum is named forum.php not index.php:
Code:
<if condition="$_REQUEST['e'] == 1 AND $bbuserinfo[userid]">
&nbsp; &nbsp;
<a href="forum.php?$session[sessionurl]e=0">$vbphrase[showhideforums_turnoff]</a></if>
<if condition="$_REQUEST['e'] != 1 AND $bbuserinfo[userid]">
&nbsp; &nbsp;
<a href="forum.php?$session[sessionurl]e=1">$vbphrase[showhideforums_turnon]</a>
</if>
After updating, go back to forumhome, instead of editmode again:
In forum.php (index.php) I added
Code:
header("Location: forum.php");
after

Code:
$DB_site->query("UPDATE user SET excludeforumids = '" . $bbuserinfo['excludeforumids'] . "' WHERE userid = '" . $bbuserinfo['userid'] . "' LIMIT 1");
Reply With Quote
  #53  
Old 04-19-2005, 05:53 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Really nice Hack.
Thank you

Quote:
Forum is named forum.php not index.php
I assume that any hack should be made to work on default configuration. If one is advanced enough to change things like that (like you), he will be able to fix it

Quote:
After updating, go back to forumhome, instead of editmode again:
In forum.php (index.php) I added
To tell you the truth, I made it go to the edit mode again on purpose. If you wish to fix it, there is no need for additional PHP code. What you have to do is change

Code:
<form method="post">
<input type="hidden" name="do" value="showhideforums_update" />
to

Code:
<form method="post" action="index.php">
<input type="hidden" name="do" value="showhideforums_update" />
In the hack code That's it. I do not see the reason, however, to make the user exit the mode just like that... Maybe he wants to make sure he marked everything right?
Reply With Quote
  #54  
Old 04-19-2005, 08:19 PM
Niceboy Niceboy is offline
 
Join Date: Apr 2005
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit : [Removed]
Reply With Quote
  #55  
Old 04-19-2005, 09:09 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Phalynx, Niceboy
What does the content of your posts have to do with my hack?
Reply With Quote
  #56  
Old 04-22-2005, 01:18 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this and my users love it, howevr I have noticed what appears to be a bug, my users are reporting they can only hide 27 forums, any more then that and it does not work correctly. Is there any ways we can bump the number up to 50?

(I have a LOT of forums)

Scott
Reply With Quote
  #57  
Old 04-22-2005, 05:51 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try increasing length of the DB field.
Reply With Quote
  #58  
Old 04-23-2005, 05:44 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And how would I go about doing that? I am not a programmer which is why I am using your hack. And a great hack it is!
Reply With Quote
  #59  
Old 04-24-2005, 11:36 AM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use phpmyadmin which is in your cpanel.
Reply With Quote
  #60  
Old 04-24-2005, 04:02 PM
artonex artonex is offline
 
Join Date: Mar 2005
Location: UK
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is very nice i will install it soon
Reply With Quote
  #61  
Old 04-24-2005, 04:59 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know that.

But what do I change ALTER TABLE `user` ADD `excludeforumids` VARCHAR( 100 ) NOT NULL ; to?

And is there any way to modify the table without dropping it and readding it which would force the users to select their forums again.

Thanks!
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 04:12 AM.


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.04738 seconds
  • Memory Usage 2,312KB
  • 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
  • (5)bbcode_code
  • (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
  • (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