![]() |
Filter threads by post icon
I couldn't understand why nobody had created this hack yet, so I made it myself.
This allows users to filter the threads by the icon. They do this by clicking on the icon in the forum thread listing. It then only shows threads with that same post icon. Switching between pages works, as well as using the column sort functions. It is not designed to work properly with any other sort options but it might. When posts are filtered, a "Unfilter" link is shown in the column header for thread post icons which, when clicked, removes the filter and returns the view to page 1. Only 1 file needs to be modified, and 2 templates. In forumdisplay.php, find PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
Ok, for the templates, in threadbit, find: Code:
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /> Code:
<a href="$sorturl&picon=$thread[threadiconid]"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /></a> Code:
<if condition="$show['threadicons']"> Code:
<if condition="$show['threadicons']"> |
I've wanted this for a bit, but couldn't figure it out. Thanks, this works perfectly.
|
This is great :)
|
where you have:
PHP Code:
PHP Code:
Parse error: parse error, unexpected T_ELSE in /home/parapla/public_html/forums/forumdisplay.php on line 514 where line 514 is PHP Code:
|
Quote:
You may want to update to 3.0.7 first. |
Quote:
I have updated, I thought. Is that code from the older version or something? See: www.forums.paraplanet.com it is 3.07 Edit: Hehe I hadn't updated my profile, sorry about that! Any thoughts on what I can do? |
Quote:
|
Quote:
|
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.
|
Quote:
edit: it works perfectly now :) |
All times are GMT. The time now is 01:44 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|