Only Show Posts With Attachments On Showthread
This modification is in the archives.
Author: NTLDR
Version: 1.0.0 vB Compatibility: vB3 Gamma, RC1, RC2 Description: This hack will allow you to only show posts which contain attachments on showthread.php. Usage: showthread.php?threadid=1&attachments=1 (i.e add &attachments=1 onto the URL). File Edits: In showthread.php find: PHP Code:
if ($threadedmode == 0)
PHP Code:
// show only threads with attachments
PHP Code:
WHERE threadid = $threadid AND visible = 1 $delthreadlimit
PHP Code:
$attachsql
Find (just after the last edit): PHP Code:
WHERE threadid = $threadid AND visible = 1
PHP Code:
$attachsql
PHP Code:
$postids = "post.postid IN (0" . $ids . ")";
PHP Code:
if (empty($ids) && $attachwhere) {
Varname: sorry_no_attachments Text: Code:
Sorry, this thread doesn't contain any attachments. Download No files for download. |