Version: 2.20, by Null Parameter
Developer Last Online: Apr 2014
Category: New Posting Features -
Version: 3.8.x
Rating:
Released: 05-27-2009
Last Update: 04-08-2010
Installs: 258
DB Changes Uses Plugins Auto-Templates
Re-useable Code Translations
No support by the author.
Thread Thumbnails --------------------------------------
Created By: Null Parameter
This mod is officially tested with 3.8.1, but has been reported to work with many other versions.
Please leave any comments, suggestions or bugs.
Description
This mod allows a user, when creating or editing a thread, to specify a Thumbnail image to be used for display next to the thread in the Thread Listing.
With this mod you can define a set of forums that have thumbnails enabled, then in those forums whenever a user creates or edits their thread they can change their thumbnail, based on the method that you choose to allow.
This image is then shown in the Forum Display, in place of the Thread Icon.
The image also appears in Search & Tag Search, and I can add it to the regular Search if somebody requests it. And possibly have options for displaying in each area.
I've installed this and it works great for the most part, except I get the same problem as gantonr. The template edits have worked fine and there's no issue with the thumbnails showing, except when I have it set to use the first attachment. I get the following database error
Code:
Database error in vBulletin 3.8.4:
Invalid SQL:
SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS preview,
thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, postusername, postuserid, thread.iconid AS threadiconid,
thread.dateline, notes, thread.visible, sticky, votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views,
thread.prefixid, thread.taglist, hiddencount, deletedcount
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
, threadread.readtime AS threadread
, threadredirect.expires
, attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid , MIN(attachment.attachmentid) AS attachmentid
FROM thread AS thread
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 2 AND canview = 1)
LEFT JOIN threadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = 2)
LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
LEFT JOIN threadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)
LEFT JOIN attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png')) LEFT JOIN attachment AS attachment ON (attachment.postid = thread.firstpostid AND attachment.extension IN('jpg', 'gif', 'png', 'jpeg', 'bmp'))
WHERE thread.threadid IN (0,840,433,889,814,895,900,880,890,808,897,876,835,887,877,733,879,806,874,732,883,483) GROUP BY thread.threadid
ORDER BY sticky DESC, lastpost DESC;
MySQL Error : Not unique table/alias: 'attachment'
Error Number : 1066
Request Date : Friday, January 15th 2010 @ 04:58:03 AM
Error Date : Friday, January 15th 2010 @ 04:58:04 AM
Script : http://www.lightspeed-art.com/community/3d-wips-f13.html
Referrer : http://www.lightspeed-art.com/community/battleship-thirty-twevle-t840.html
IP Address : 90.210.63.183
Username : Scorpius
Classname : vB_Database
MySQL Version : 5.1.42
Ditto. Sounds like several people in this thread have reported this problem, but I haven't seen a solution posted.
I don't have vB 4.0 and I actually don't even have admin access to the forum I had used to develop it on. So basically, I have no way to do it, even if I wanted to.
The attachments is a known problem, and because I didn't have a working development server that supported attachments, I could never debug the issue.
Sorry for the lack of support lately, but my computer took a dive and I retired from admin on the vB forum that I had been running.