Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Filter Closed Threads Details »»
Filter Closed Threads
Version: 0.4, by Vitaly Vitaly is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.8.x Rating:
Released: 02-18-2009 Last Update: 01-02-2010 Installs: 32
DB Changes Uses Plugins Auto-Templates
Re-useable Code  
No support by the author.

vb 4.x version here

Description


This product allows to hide closed threads.

Features:
  • Settings are forum-based
  • Administrator can setup default state (hide or show)
  • Administrator can allow user to switch filter setting or make it mandatory
Setup

Just import product XML

Configuration

ACP -> Forums & Moderators -> Forum Manager -> edit forum
Find section "Filter Closed Threads settings" and do necessary changes (usually, all ON).

(!) By default, filtering is disabled.

This mod is developped here: http://github.com/rcdesign/vb-filter_closed_threads . Patches are welcome.

history

v0.4
- hope that fixes unserialisation bug, reported by some members

v0.3
- small fixes for guests
- refactoring
- developnent moved to vb3.8

v0.2
- first public release

Download Now

File Type: xml product-filter_closed_threads-0.3.xml (10.0 KB, 119 views)
File Type: xml product-filter_closed_threads-0.4.xml (8.8 KB, 76 views)

Screenshots

File Type: gif fc_settings.gif (7.4 KB, 0 views)
File Type: gif fc_user.gif (14.9 KB, 0 views)

Supporters / CoAuthors

    Show Your Support

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

    Comments
      #2  
    Old 02-21-2009, 03:25 AM
    ppmfic ppmfic is offline
     
    Join Date: Jun 2007
    Posts: 5
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    It's a very useful mod but I have the problem after installed this product. It showed the below warning when opened forumdisplay pages.

    Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in [path]/forumdisplay.php(111) : eval()'d code on line 70

    Unable to add cookies, header already sent.
    File: .../includes/class_core.php
    Line: 3254

    Please help me. Thanks in advanced.
    Reply With Quote
      #3  
    Old 02-21-2009, 04:56 AM
    Vitaly's Avatar
    Vitaly Vitaly is offline
     
    Join Date: Apr 2004
    Location: Russia, St.Petersburg
    Posts: 428
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Hm... no ideas. Works fine at my 3.8.1+VBSEO production site.

    May be, conflicting with other mods?
    Reply With Quote
      #4  
    Old 02-21-2009, 11:29 PM
    inciarco's Avatar
    inciarco inciarco is offline
     
    Join Date: Mar 2007
    Posts: 758
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Interesting Mod, Thank You For Sharing It. :up:

    Idea For Next Update: It'd be Great to Place some Option for Usergroups Allowed to Use this Mod.

    Until then, what Plugins can Admins Edit to Allow Only Certain Usergroups to Use the Mod, and what Codelines should Admins Include?

    Question: How can Admins Activate this Mod in All Forums? (It'd be Nice to Have Also a Global Options to Hide/Show Closed Threads on All Forums). For now, could you please share with us the Two (2) SQL Query Sentencen that Admins can Use to Activate the Options of the Mod (Set them to Yes) on All Forums?

    Imagine Setting Yes to the Two (2) Mod's Options ("Show filter to user?" and "Hide closed threads by default?") for like 500 Forums or more, One by One.

    My Best Regards.

    Reply With Quote
      #5  
    Old 07-19-2009, 09:26 PM
    skYfIrE skYfIrE is offline
     
    Join Date: Oct 2006
    Posts: 10
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Hello,

    I have this error on only one profile.
    Warning: unserialize() expects parameter 1 to be string, array given in [path]/includes/class_userprofile.php(141) : eval()'d code(7) : eval()'d code on line 1

    And, on the sub-forum where I use this mod, i have this error :
    Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in [path]/forumdisplay.php(111) : eval()'d code on line 45

    After the error message, the forum is displayed without CSS.

    I'm running 3.8.2, i deactivated all the mods, including vbseo. And, i still have the error.

    For now, i deactivated this mod.

    Thanks in advance if you can do something.

    Regards,
    Frederic
    Reply With Quote
      #6  
    Old 07-19-2009, 10:04 PM
    Vitaly's Avatar
    Vitaly Vitaly is offline
     
    Join Date: Apr 2004
    Location: Russia, St.Petersburg
    Posts: 428
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Can't promis fast fix.

    What php version and OS used on your server? Anyway, thanks for bug report, I've recorded it into buglist.
    Reply With Quote
      #7  
    Old 07-20-2009, 05:15 PM
    skYfIrE skYfIrE is offline
     
    Join Date: Oct 2006
    Posts: 10
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Hello,

    Thanks for you reply.

    My server is running under Freebsd7 with Apache22, & PHP5.2.10

    Regards,
    Fred.
    Reply With Quote
      #8  
    Old 09-28-2009, 07:29 PM
    bradbeattie bradbeattie is offline
     
    Join Date: Feb 2009
    Posts: 5
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Haven't narrowed down the why yet, but the
    PHP Code:
    if ($fct_temp_state != $filterclosedthreads
    block can cause a nopermission_loggedin error to display. Just a heads up.

    Edit:

    More specifically, it seems to be this block:

    PHP Code:
            // update user profile
            
    $vbulletin->userinfo['fct_data']["$foruminfo[forumid]"] =
              
    $filterclosedthreads;

            
    // init user data manager
            
    $fct_userdata =& datamanager_init('User'$vbulletinERRTYPE_STANDARD);
            
    $fct_userdata->set_existing($vbulletin->userinfo);
            
    $fct_userdata->save();

            unset(
    $fct_userdata$fct_userid); 
    Reply With Quote
      #9  
    Old 10-07-2009, 02:14 AM
    whitetigergrowl whitetigergrowl is offline
     
    Join Date: Jun 2004
    Posts: 243
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    I had to disable for much the same reasons. I kept getting an error in the member profiles that seemed to be coming from this mod. Errors went away when this mod was disabled.
    Reply With Quote
      #10  
    Old 10-07-2009, 04:56 PM
    Luke Carrier Luke Carrier is offline
     
    Join Date: Jun 2009
    Posts: 2
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Can this modification have the ability to order threads (not filter, but sort) the thread listings so that closed threads can be shown at the bottom of the list? If not, could you consider adding this feature please? Been looking everywhere for some way of doing this.

    Thanks
    Reply With Quote
    Reply

    Thread Tools

    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 11:45 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
    • Page Generation 0.07177 seconds
    • Memory Usage 2,320KB
    • 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_php
    • (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
    • (1)pagenav_pagelink
    • (10)post_thanks_box
    • (10)post_thanks_button
    • (1)post_thanks_javascript
    • (1)post_thanks_navbar_search
    • (10)post_thanks_postbit_info
    • (9)postbit
    • (4)postbit_attachment
    • (10)postbit_onlinestatus
    • (10)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_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