vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Filter Threads By Post Icon (https://vborg.vbsupport.ru/showthread.php?t=123339)

RobParker 12-30-2006 03:04 PM

Installed and this works fine.

Has anyone been able to add a collapsable box to the top of their forums which includes the post icons and allows you to filter by post icons from there (similar to what the SomethingAwful forums use for those familar with them)?

bigdm 04-08-2007 06:10 PM

is there a way i can set it to display the icons for all, but only let registered members filter posts??

*im sure there is, i just cant work it out

sportsfroma2 04-09-2007 11:49 PM

First off, Great hack, works well and is a great idea... Something I have been looking for quite some time. Thanks for this.

AS a result of how good this hack is, I have a couple of questions on how I would do a couple of things:

1) I would like to make it MANDATORY that a post icon (or would it be a thread icon?) has to be selected to start a new thread.

2) Is there any way to have different sets of thread/post icons depending on the forum/subforum?

3) Eliminate the hot threads/locked threads column, which is usually to the left of the post icons in the default template. I would like to do this so I can user bigger/wider post icons.

Thanks!

vitnuce 04-13-2007 07:43 AM

Bookmarked for the future use..

Thanks for great hack, Wired :)

Muellmann 04-14-2007 01:09 AM

That's cool, i have installed it.

nicolerork 04-17-2007 12:19 AM

Does this work for 3.6.5? I tried modifying the templates, but I couldn't even find some of the codes to change.

rokked 05-05-2007 05:18 PM

is there a way to display the post icons in a list on the forumdisplay?

Skedoozy 05-11-2007 08:18 PM

Hmm I have installed but when I click on a post icon it does not filter. The unfilter option comes up but everything is the same.

Skedoozy 05-11-2007 08:27 PM

Quote:

Originally Posted by oz_moses (Post 1085036)
nice work, I really like this.

I did find step 2 slightly different from your instructions when using VB 3.6.1 - here's what I did instead

After:
Code:

    if ($daysprune != -1)
    {
        if ($vbulletin->userinfo['userid'] AND in_coventry($vbulletin->userinfo['userid'], true))
        {
            $tachyjoin = "LEFT JOIN " . TABLE_PREFIX . "tachythreadpost AS tachythreadpost ON " .
                "(tachythreadpost.threadid = thread.threadid AND tachythreadpost.userid = " . $vbulletin->userinfo['userid'] . ")";
            $datecut = " AND (thread.lastpost >= " . (TIMENOW - ($daysprune * 86400)) . " OR tachythreadpost.lastpost >= " . (TIMENOW - ($daysprune * 86400)) . ")";
        }
        else
        {
            $datecut = "AND lastpost >= " . (TIMENOW - ($daysprune * 86400));
            $tachyjoin = "";
        }
        $show['noposts'] = false;
    }
    else
    {
        $tachyjoin = "";
        $datecut = "";
        $show['noposts'] = true;
    }

Add:
Code:

// Start Filter Threads By Post Icon Code Snippet

    if ($picon > 0 && is_numeric($picon) && $picon < 5000) { //who knows if all this is necessary - better safe than sorry
      $pqr = " AND thread.iconid = '$picon' ";
      $datecut .= $pqr;
      } else
        $picon = "";

 // End Filter Threads By Post Icon Code Snippet

Demo at http://www.gothetahs.com/forum/index.php if anyone's interested.


This solved my problem. Thanks!!

Antivirus 05-25-2007 12:05 PM

hmm... doesn't seem to work on v3.6.7 PL1. Any ideas?


All times are GMT. The time now is 04:53 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.01021 seconds
  • Memory Usage 1,742KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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