vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Thread Thumbnail (https://vborg.vbsupport.ru/showthread.php?t=158396)

jhcarrell 11-30-2007 12:57 AM

Thanks!!

theOZer 12-18-2007 08:06 PM

Works in vB3.7.0 Beta 2 after upgrading from vB3.6.8 PL2. After reverting my templates to 3.7.0 I needed to re-add the threadbit template code change, then it worked.

Adam21 12-19-2007 01:03 PM

Note: If you are using 3.7 Beta2 and have a quick search template edit in a custom template,you must disable the "search_results_query_threads" hook in your plug-ins manager

VADOS 12-19-2007 02:55 PM

Important: you need to enable icons for each forum where you use this mod, otherwise it will not work!
-------------------
I have a question: is it possible to make a small thumbnail (with CSS or something else) for forumdisplay?
I have all thumbnails 132px and they're too big when I view forumdisplay, can you make a solution for me please?

P.S. - thanks for the great mod!

theOZer 12-30-2007 04:06 PM

Yes, as Adam21 noted in post #83, disable the "search_results_query_threads" plugin in vB3.7.0 Beta versions.
Thread thumbnails DO show up in a vB3.7.0 forum page. You must have the "forumdisplay_query" plugin active and the TTv1.1 code in the threadbits template.
Unfortunately, it NOW appears that with this hack installed the new vB3.7.0 "Attachment Lightbox" view feature does NOT now work.
P.S. Yes, I have "Use Image Lightbox" turned on.

NemoTech 01-01-2008 09:49 PM

Quote:

Be sure to change the forum ids in the $thumbsforums array to the forum ids you want to enable thumbnails in.
^^ Didn't understand this bit of instructions. :(

LilSniper 01-02-2008 04:26 AM

Wow awesome idea...this is just what I needed.

Does it work for 3.6.7?

se_p800 01-04-2008 12:56 AM

Cool mod, i will definetly use this if the answer to this question is positive:

I only want to use this mod in one section of my forum. Would it be possible, if so how?

Thanks

se_p800 01-04-2008 12:30 PM

Ok this is what I have:

$tt_thumbsforums = array(32);
$tt_displaythumbs = false;

And thumbnails arent showing up in that category? Should I set it to true?

OneDesignTalk 01-05-2008 08:45 PM

I like this mod, but am having problems getting it to work (perhaphs a confick with my other icon mods) here's what a put in the plug-in:

$tt_thumbsforums = array(2,3,4,5);
$tt_displaythumbs = false;

this is what I put-in the threadbit template:

<if condition="$show['threadicons']">
<td class="alt2" align="center" valign="middle">
<if condition="($tt_displaythumbs) AND ($bbuserinfo['field5'] <> 'Off' OR $show['guest'])">
<if condition="($thread['attachmentid']) AND ($thread['thumbsize'])">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" alt="" border="0" />
</a>
<else />
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</if>
<else />
<if condition="$show['threadicon']">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</if>
</if>
</td>
</if>

this is the site its on http://OneDesignTalk.com , maybe there are other conficks you can see.

siliconfinance 01-25-2008 01:00 AM

Get this error for new posts:


Quote:

Database error in vBulletin 3.6.8:
Invalid SQL:
SELECT post.pagetext AS preview,
thread.threadid, thread.threadid AS postid, thread.title AS threadtitle, thread.iconid AS threadiconid, thread.dateline, thread.forumid,
thread.replycount, IF(thread.views=0, thread.replycount+1, thread.views) as views, thread.sticky,
thread.pollid, thread.open, thread.lastpost AS postdateline, thread.visible, thread.hiddencount, thread.deletedcount,
thread.lastpost, thread.lastposter, thread.lastpostid, thread.attach, thread.postusername, thread.forumid,

deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason,
user.userid AS postuserid
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed

, attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid
FROM thread AS thread
LEFT JOIN user AS user ON(user.userid = thread.postuserid)
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 = 17508 AND canview = 1)
LEFT JOIN post AS post ON(post.postid = thread.firstpostid)

LEFT JOIN attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png'))
WHERE thread.threadid IN
(74160, 74080, 68654, 74097, 64105, 57850, 74166, 74172, 74171, 74162, 74170, 74169, 49164, 74072, 74141, 74163, 74092, 14029, 74168, 74167);
MySQL Error : Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
Error Number : 1140
Date : Thursday, January 24th 2008 @ 06:58:04 PM
Script : http://www.mydomain.com/forums/searc...earchid=506222
Referrer : http://www.mydomain.com/forums/showthread.phpp=1282479#post1282479
IP Address :
Username : sfguy
Classname : vb_database

viper007 01-25-2008 02:25 AM

can give ..breif expaltion .. where can i upload php file in to ftp server ....plzzz urgent am waiting to u r reply..

viper007 01-25-2008 02:37 AM

Quote:

Be sure to change the forum ids in the $thumbsforums array to the forum ids you want to enable thumbnails in.

wheer can i change the forum ids . thumbnails enabled .. plzzzz tell me dudes.. am waiting ur reply

theOZer 01-26-2008 10:05 PM

Quote:

Originally Posted by Adam21 (Post 1404584)
Note: If you are using 3.7 Beta2 and have a quick search template edit in a custom template,you must disable the "search_results_query_threads" hook in your plug-ins manager

Without the thread thumbnail showing up in, say, New Posts, I've got to ask, "when will this search feature work in 3.7.0 Beta4?"

Love this mod/hack. Without it an art forum's impact is greatly reduced when viewing just the forum post listing and/or 'New Posts.'
Regards,
theOZer

SpreadingLight 02-06-2008 12:51 AM

How can this be changed so it's enabled for only specified forums,
and so it will auto-sort by the number of thread replies/comments (sorted in reverse; least comments first) ?

Thank You

siliconfinance 02-11-2008 03:29 AM

Does anybody know why my safari and firefox members can't see the thumbs?

sp0okz 02-14-2008 06:15 PM

can we get this for 3.70

MrGoodbyte 02-17-2008 12:32 PM

@ siliconfinance: How did You get the database-error fixxed? I have the same problem! :eek:

https://vborg.vbsupport.ru/

superthang 02-17-2008 09:29 PM

update for 3.7 please
thanks!

MrGoodbyte 02-18-2008 06:51 AM

Sorry, but I think there are several mistakes in the description of this hack!
  1. Nowhere is mentioned that one hast to upload the search.php to the forum-path, too, that's the reason for the database errors mentioned in my last post.
  2. The explanation of the forum-array is unclear:
    [CDATA[$tt_thumbsforums = array(76 80 81); causes this error-message: Parse error: syntax error, unexpected T_LNUMBER, expecting ')' in /forumpath/forumdisplay.php(812) : eval()'d code on line 9
    [CDATA[$tt_thumbsforums = array(76,80,81); causes this error-message: Parse error: syntax error, unexpected ';', expecting ')' in /forumpath/forumdisplay.php(812) : eval()'d code on line 27
    [CDATA[$tt_thumbsforums = array(76, 80, 81); causes this error-message: Parse error: syntax error, unexpected ';', expecting ')' in /forumpath/forumdisplay.php(812) : eval()'d code on line 36
    [CDATA[$tt_thumbsforums = array(76; 80; 81); causes this error-message: Parse error: syntax error, unexpected ';', expecting ')' in /forumpath/forumdisplay.php(812) : eval()'d code on line 9
    [CDATA[$tt_thumbsforums = array(76;80;81); causes this error-message: Parse error: syntax error, unexpected ';', expecting ')' in /forumpath/forumdisplay.php(812) : eval()'d code on line 9
    [CDATA[$tt_thumbsforums = array(76) (80) (81); causes this error-message: Parse error: syntax error, unexpected '(' in /forumpath/forumdisplay.php(812) : eval()'d code on line 36
    [CDATA[$tt_thumbsforums = array(76)(80)(81); causes this error-message: Parse error: syntax error, unexpected '(' in /forumpath/forumdisplay.php(812) : eval()'d code on line 36
    So, how shall it be possible to create thumbs for more than one forum? :eek:

Really nice is, that with all the testing now the thread-overview doesn't work even if I only wanna add thumbs to one forum and that I don't find any possibility to deactivate or deinstall the whole hack! So: What can I do now? My hole board doesn't work correctly!


https://vborg.vbsupport.ru/

kiwivc 02-27-2008 06:05 PM

I have managed to get this mod working in one forum only. I'm running 3.6.8. It works great in the ONE forum however every variation that I attempt to include another forum does not work. This mod only works in forum ID 81 so far

[CDATA[$tt_thumbsforums = array(78, 79, 81); <-- only forum ID 81 is affected
[CDATA[$tt_thumbsforums = array(78,79,81); <---only forum ID 81 is affected

EDIT: The above problem is caused by editing the thread-thumbnail-plugins with further forum ID numbers and re-installing it without first deleting the initial install of the plugin. I noticed duplicate installations of this plugin which alerted me to the problem. It works where I want it to now :D

NB: If you don't want threads displaying the thumbnail (No Thumbnail Available) when there isn't one attached to that particular thread simply create another transparent image 100 x 20 or something similar and overwrite images/misc/nothumb.jpg with misc/nothumb.gif. It was the easiest solution for me. A thumbnail does show up but it's transparent & smaller and so isn't noticeable to the viewer. You will need to edit the threadbit template from nothumb.jpg to nothumb.gif for this to work.

The instructions could do with some editing. If clearer installation instructions were provided then that might cut down on duplicating the necessity to answer peoples questions to do with the basic install. Clear uninstall instructions would be great too.

I'd love for this mod to work for me in more than just one forum. If anyone could provide help with that I would appreciate it. EDIT: fixed :D

MissKalunji 03-04-2008 11:42 PM

Quote:

Originally Posted by siliconfinance (Post 1428395)
Get this error for new posts:

i'm getting the same as well

Goodman_2020 03-07-2008 10:04 AM

Hi!

Can somebody tell me if it's this hack (thread thumbnail) that have been used to obtain this result on the following website? http://www.virusphoto.com/forum-photo.php

thank you

All i want is just to have icon with my forums (like on the website) i don't want thumbnail or a "no image" thumbnail front of threads

peterpigman 03-07-2008 10:41 AM

Quote:

Originally Posted by Goodman_2020 (Post 1459170)
Hi!

Can somebody tell me if it's this hack (thread thumbnail) that have been used to obtain this result on the following website? http://www.virusphoto.com/forum-photo.php

thank you

All i want is just to have icon with my forums (like on the website) i don't want thumbnail or a "no image" thumbnail front of threads

No, that is a different hack.

Goodman_2020 03-07-2008 11:47 AM

Quote:

Originally Posted by peterpigman (Post 1459186)
No, that is a different hack.

do you know what hack have been use on the link i gave please? :)

MissKalunji 03-07-2008 08:55 PM

Quote:

Originally Posted by Goodman_2020 (Post 1459231)
do you know what hack have been use on the link i gave please? :)

There's that one :

https://vborg.vbsupport.ru/showthrea...ght=forum+icon

or

https://vborg.vbsupport.ru/showthrea...ght=forum+icon
(u can play around with this one to accomplished what u want)

Goodman_2020 03-07-2008 09:59 PM

thank you, im gonna check that :)

johnpmaster 03-11-2008 07:24 PM

is this working with vb 3.7 beta 6 ?

winkm 03-28-2008 09:01 AM

Hi, I installed this mod which is great, but it only shows "No Thumbnail Available" also if there is an image attachment. I'm running 3.6.8 patch level 2.
Any suggestions how to solve this ?
thanks!

NeverBored 03-30-2008 05:51 AM

Can someone post the extra code that goes in search.php, so I can add it to the newest search file... Or it'd be great if someone could completely update this for 3.7. It works for me on 3.7, even search if I use the file included, but it's out of date now. It'd be great for this to work with tags, too.

theOZer 04-02-2008 03:55 PM

NeverBored,
I did a file compare using TOAD: vB369 search.php versus Thread Thumbnails search.php.
There's very little difference between these two search.phps.
There's quite a difference between vB370RC2 search.php versus Thread Thumbnails search.php, though.
I put together a cluge-bag screen capture of the search.php differences, put into a Word document, that I can PM to you.
~OZ

theOZer 04-02-2008 05:11 PM

If you add JasonMerchant's code, a comment line and code line, to the vB370RC2 search.php it APPEARS to work; now shows the thumbnails when doing a New Posts search.
Code:

        // do data query
        if (!empty($itemids))
        {
                $ids = implode(', ', array_keys($itemids));
                $dataQuery .= '(' . $ids . ')';
                //edited by jason
                $dataQuery .= " " . $hook_query_where;
                $items = $db->query_read_slave($dataQuery);
                $itemidname = iif($search['showposts'], 'postid', 'threadid');

                $dotthreads = fetch_dot_threads_array($ids);
        }

[Note: I bolded Jason's code for clarity.]

Give this a try. This truly is a wonderful hack and it's a priceless addition to any art forum that has people posting their art work.
~OZ

NeverBored 04-02-2008 07:00 PM

Great, that got the thumbnails working for search, thanks.

Though, a small problem, it displays thumbnails (the no thumbnail available image) for threads not in the specified forums. It did this using the search.php included in the download too, so I don't know if this is how it works or just a bug using it as is on 3.7.

theOZer 04-02-2008 07:19 PM

True enough. It appears any 'new posts,' be it from whichever forum, either shows the 'No Image' icon or, if there's an attachment, it shows the thumbnail.
If the forum itself is not included in the TT plugin's list of forums to display,
example, $tt_thumbsforums = array(4, 5, 17, 46, 50, 53);
then that specific forum's threads list do not then show thumbnails when viewed.
This 'feature'/not-necessarily-a-bug appears to have been 'in place' since day one the hack has been around. (I also see this glitch occurs in vB3.6.x.)

lauxanh 04-04-2008 04:29 AM

I got mysql error after upgrade to 3.6.9 when search for thread started by member.
Quote:

Database error in vBulletin 3.6.9:
Invalid SQL:
SELECT post.pagetext AS preview,
thread.threadid, thread.threadid AS postid, thread.title AS threadtitle, thread.iconid AS threadiconid, thread.dateline, thread.forumid,
thread.replycount, IF(thread.views=0, thread.replycount+1, thread.views) as views, thread.sticky,
thread.pollid, thread.open, thread.lastpost AS postdateline, thread.visible, thread.hiddencount, thread.deletedcount,
thread.lastpost, thread.lastposter, thread.lastpostid, thread.attach, thread.postusername, thread.forumid,

deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason,
user.userid AS postuserid
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed

, attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid
FROM thread AS thread
LEFT JOIN user AS user ON(user.userid = thread.postuserid)
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 = 1 AND canview = 1)
LEFT JOIN post AS post ON(post.postid = thread.firstpostid)

LEFT JOIN attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png'))
WHERE thread.threadid IN
(31818, 31485, 26032, 30791, 30777, 12626, 31813, 17504, 30916, 14352, 30784, 30778, 30802, 30768, 31388, 28247, 30765, 31152, 15399, 30806, 27583, 15294, 20513, 30131, 30793);
MySQL Error : Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
Error Number : 1140
Date : Friday, April 4th 2008 @ 12:26:57 AM
Script : http://www.xxxxxxxxxx/search.php?searchid=222763
Referrer : http://www.xxxxxxxxxx/member.php?u=67920
Classname : vb_database
Any idea how to fix it?

theOZer 04-04-2008 01:45 PM

You need to turn off the Thread Thumbnail - Search plugin.
-OR-
Add Jason's code to the vB369 search.php, as mentioned in my Post #112, above.
~OZ

winkm 04-06-2008 09:17 AM

Hi, I installed this mod which is great, but it only shows "No Thumbnail Available" also if there is an image attachment. I'm running 3.6.8 patch level 2.

See:
http://www.inoudeansichten.nl/zoekpl...splay.php?f=40

I used: Thread_Thumbnail_v1-1.zip
- imported the XML
- activated plugin
- updated threadbit

Any suggestions how to solve this ?
thanks!

theOZer 04-06-2008 01:46 PM

I'm looking at your web site...

Are you dead certain that you've updated threadbits correctly? Most likely, yes.

Did you update the Thread Thumbnail plugin, adding your test forums ID number (bolded below)?

http://www.inoudeansichten.nl/zoekpl...display.php?f=40

(I'd also try adding forum ID 42 (the main forum), to test it out.)

In the Thread Thumbnail plugin, is forum 40 been added?:
example, $tt_thumbsforums = array(40, 42);

Did you set up a member option User Profile field for Thumbnails On/Off? If not then do NOT include the code to check for the user profile field in your threadbits. (I have this option added.)

Have you replaced your vB368PL2 search.php with Jason's search.php? (It works for vB368 but vB369 a/o vB370x requires modding the search.php adding Jason's code. See my post # 112 , above, concerning this.)

Jason's TT works and has always worked for me. Good luck getting this to work. It's a great hack.

[Note: only an image posted as an attachment will/should show as a thumbnail pic; the test image INSERTS, e.g., your test3 post, won't show as thumbnails.]

Later, ~OZ

winkm 04-13-2008 08:31 AM

OZ, thanks for your reply !

I upgraded my vBulletin to 3.6.9
- installed xml file
- updated threadsbit
- changed forum to #40
- update search.php (incl. your 112 post)
- plugins are both activated

but ... attachments still not displayed ....

any other suggestions I can try ???

thanks!:confused:

theOZer 04-13-2008 05:42 PM

winkm,
Joined your forum. Couldn't post in TEST forum to see if my hunch is right, but...
the test threads' pictures are full sized. It appears that the images were inserted into the post code, not added as attachments through Manage Attachment at the bottom of an Advanced screen post.
Images inserted directly into the code/the post don't have thumbnails; they're shown full sized, with no need to click on them to see them larger.
That's my guess.
~OZ


All times are GMT. The time now is 04:39 PM.

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.01752 seconds
  • Memory Usage 1,849KB
  • 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
  • (1)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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