vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Display Enhancements - Filter Closed Threads (https://vborg.vbsupport.ru/showthread.php?t=205863)

Vitaly 02-18-2009 10:00 PM

Filter Closed Threads
 
1 Attachment(s)
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

ppmfic 02-21-2009 03:25 AM

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.

Vitaly 02-21-2009 04:56 AM

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

May be, conflicting with other mods?

inciarco 02-21-2009 11:29 PM

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? :confused:

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? :confused:

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

My Best Regards.

:)

skYfIrE 07-19-2009 09:26 PM

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

Vitaly 07-19-2009 10:04 PM

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.

skYfIrE 07-20-2009 05:15 PM

Hello,

Thanks for you reply.

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

Regards,
Fred.

bradbeattie 09-28-2009 07:29 PM

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); 


whitetigergrowl 10-07-2009 02:14 AM

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.

Luke Carrier 10-07-2009 04:56 PM

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


All times are GMT. The time now is 02:10 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.01120 seconds
  • Memory Usage 1,744KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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