The Arcive of vBulletin Modifications Site. |
|
Filter Threads By Post Icon Details »»
|
|||||||||||||||||||||||||
The 3.5.x version of this hack can be found here.
This hack allows you to click on a post icon, and it will show only the threads with this particular post icon. Once this happens an unfilter button will appear, allowing the user to once again view all threads. As for WHY someone would want this, here's an answer to that question: Some forums use the forum icons to convey if a thread has been sufficiently answered or not, or to convey some other meaning. If a poster wants to look for unanswered threads, they could sort by the icon used for the thread. Think of this as a poor man's thread prefix hack # of php page edits: 1 # of template edits: 2 Should take less than 5 min to install. Don't forget to hit INSTALL! ------------------ 9-27-06: updated version number, clarified instructions, no actual code change Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
thanks alot for this will be using
|
|
#3
|
||||
|
||||
|
No problemo.
|
|
#4
|
||||
|
||||
|
anyway of having a vba block that only shows new threads with a certain post icon .... just a thought
|
|
#5
|
|||
|
|||
|
How server intensive is this?
|
|
#6
|
||||
|
||||
|
Quote:
Quote:
|
|
#7
|
|||
|
|||
|
Hi, nice hack, but i would like to sort "picon = 0" too, please.
Regards, Stoebi |
|
#8
|
||||
|
||||
|
Quote:
|
|
#9
|
|||
|
|||
|
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;
}
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
|
|
#10
|
||||
|
||||
|
thanks. Clarified the instructions to be more vague
|
![]() |
|
|