vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Filter threads by post icon (https://vborg.vbsupport.ru/showthread.php?t=80570)

JMPZ 05-03-2005 04:55 PM

Quote:

Originally Posted by Lynne
Where is "$noiconurl" defined? I'm just wondering because mine won't 'unfilter' and since I don't see that defined, I'm thinking that may be the culprit.

My good sir, you have found a bug, and a BIG one at that. It's missing. Here's the missing part. I'll add it to the first post obviously.

In forumdisplay.php, find:
PHP Code:

    $sorturl "forumdisplay.php?$session[sessionurl]f=$forumid&daysprune=$daysprune"

And add immediately after it:
PHP Code:

//Post icon filter hack
    
if ($pqr) {
      
$noiconurl $sorturl;
      
$sorturl .= "&picon=$picon";
      }
//*post icon filter hack 

Thanks for pointing it out. Sorry I missed that part.

Lord Brar 05-05-2005 12:22 PM

Woah! I've been looking for something like this.... can't wait for you to make it stable :)

Fry 08-19-2005 08:10 PM

Will this work with 3.5?

hobbes747 08-22-2005 02:21 AM

I got it to work on RC2, but I had to change the variables a wee bit.

Beware, I'm a vBulletin novice, so I don't know if this compromises security or anything. If someone could verify that it's okay, that would be awesome.

The very first step, look for this instead
PHP Code:

$perpage =  $vbulletin->input->clean_gpc('r''perpage'TYPE_UINT);
$pagenumber $vbulletin->input->clean_gpc('r''pagenumber'TYPE_UINT);
$daysprune $vbulletin->input->clean_gpc('r''daysprune'TYPE_INT);
$sortfield $vbulletin->input->clean_gpc('r''sortfield'TYPE_STR); 

Immediately after, add this
PHP Code:

$picon $vbulletin->input->clean_gpc('r''picon'TYPE_INT); 

The second step is okay, but you have to be sure you are at the right $daysprune or it just won't work.

The third step, look for this instead
PHP Code:

$pagenav construct_page_nav($pagenumber$perpage$totalthreads'forumdisplay.php?' $vbulletin->session->vars['sessionurl'] . "f=$forumid"""
            
. (!empty($vbulletin->GPC['perpage']) ? "&pp=$perpage"")
            . (!empty(
$vbulletin->GPC['sortfield']) ? "&sort=$sortfield"")
            . (!empty(
$vbulletin->GPC['sortorder']) ? "&order=" $vbulletin->GPC['sortorder'] : "")
            . (!empty(
$vbulletin->GPC['daysprune']) ? "&daysprune=$daysprune""

Immediately after, add this
PHP Code:

. (!empty($vbulletin->GPC['picon']) ? "&picon=$picon""

Everything else was the same I think. :nervous:

thenetbox 09-18-2005 10:14 PM

thank you!! Installed

thenetbox 09-18-2005 10:26 PM

Also... do you know if choosing a category/thread/post icon can be made mandatory?

thenetbox 10-04-2005 04:16 PM

Also.. how do you remove "No Icon" from the list?

Wasim 10-20-2005 08:46 AM

Is there any plan to make a Vb 3.5 version of this hack?

I'd really like one.

Wired1 10-21-2005 10:54 PM

Ok, 3.5.0 version is up:

https://vborg.vbsupport.ru/showthread.php?t=98978

AGAIN, THIS IS UNTESTED SO FAR. Shouldn't crash or anything though, too simple.


All times are GMT. The time now is 01:46 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.01079 seconds
  • Memory Usage 1,754KB
  • 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
  • (6)bbcode_php_printable
  • (1)bbcode_quote_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
  • (9)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