PDA

View Full Version : Forum Display Enhancements - Thread Thumbnail


Pages : [1] 2

jasonmerchant
09-20-2007, 10:00 PM
This plugin is the newest version of the Thread Thumbnail plugin (https://vborg.vbsupport.ru/showthread.php?t=98651)

This plugin will display the first attachment as a thumbnail on forumdisplay.php

New Features:

If there are attachments that are not images, it will skip them and go to the first image attachment.
Optional - you can now display thumbnails on search results.




Installation:

In your AdminCP, go to Plugin System, Download/Upload Plugins and import the xml document.

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

The plugin comes with the Search Thumbnails enabled. If you do not want to have thumbnails show up in the search results, make sure you deactivate it.

If you would like thumbnails to display in the search results, you will need to replace your search.php page with the one in the zip file. Unfortunately vBulletin forgot to include a hook variable where it is necessary for this to work. I have added 1 line to search.php with the hook variable. There is no way around this until vbulletin adds it themselves.

Next you will need to modify your threadbit template:

Find:
<if condition="$show['threadicons']">
<td class="alt2">
<if condition="$show['threadicon']">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
<else />
&nbsp;
</if>
</td>
</if>

Replace With:
<if condition="$show['threadicons']">
<td class="alt2" align="center" valign="middle">
<if condition="$tt_displaythumbs">
<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="$stylevar[imgdir_misc]/nothumb.jpg" alt="" border="0" />
</if>
<else />
<if condition="$show['threadicon']">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</if>
</if>
</td>
</if>
You will also need to upload an image to display if there are no image attachments here: $stylevar[imgdir_misc]/nothumb.jpg(ex: http://www.mysite.com/forums/images/misc/nothumb.jpg). I've made a simple one you can use or you can make your own. By default thumbnails are confined in a 100x100 px area, I found that it looks good to make the "no image" image about 100x83 px.

__________________________________________________ ___

Add-ons (Optional)

UserCP option to turn the thumbnails on/off on a per user basis

Go into your admincp and click User Profile Fields->Add New User Profile Field.

Select "single selection radio buttons", click continue.

For title put "Thread Thumbnails", for description put "This will allow you to turn the thumbnails of threads on and off."

For options, enter "On" and "Off".

Skip down to Display Page and choose "Options: Thread Viewing".

In your threadbit template(assuming you already applied the template changes above):

Find:
<if condition="$tt_displaythumbs">
Replace with:
<if condition="($tt_displaythumbs) AND ($bbuserinfo['field5'] <> 'Off' OR $show['guest'])">
You need to replace field5 with the field name of the profile field you created earlier.

V-T-H
09-21-2007, 07:30 PM
let me be the 1st to thank u

grazianno
09-21-2007, 07:37 PM
wow great :)

nnjj.net
09-21-2007, 07:40 PM
Be sure to change the forum ids in the $thumbsforums array to the forum ids you want to enable thumbnails in

where???

peterpigman
09-21-2007, 07:44 PM
Nice, i will update later ty.

ThomasR
09-21-2007, 07:53 PM
Is this plugin show the first -image- in attachement? I mean, if the first attachemnt is a file and the second an attachement, does it display the thumbnail and not an "no image" icon?

jasonmerchant
09-21-2007, 08:17 PM
nnjj.net:


On the first line:

$tt_thumbsforums = array(2);

Change 2 to the forum id. So if you want to enable thumbnails in forums 3, 7, and 12, it would look like:

$tt_thumbsforums = array(3, 7, 12);

A new version of the plugin is available. You can find the new thread here. (https://vborg.vbsupport.ru/showthread.php?t=158396)


ThomasR:

If the first attachment is a non-image file(ie: zip, txt, etc.), it will be skipped, and it will show the first image attachment.

This is a new feature, just added in this version.

nnjj.net
09-21-2007, 09:00 PM
how I can disaply the image if there is no image attachment instead of showing no thumb?

Spank
09-21-2007, 09:13 PM
This will come in handy in the near future. Thanks.

theOZer
09-22-2007, 12:16 AM
Upgraded from TT V1.0. Works great. Seems a bit perkier, too. Excellent.
May I advise that if updating from TT V1.0, after noting the forums in your current Thread Thumbnail plugin that will need re-inserted, delete your TT V1.0 plugin, then install TT V1.1. Maybe this is just understood when doing plugin updates. I'm a rookie mostly. Whatever...
Also, the V1.0 template changes didn't appear to need massaged. Those changes are already in place. Good.
Great Hack/Mod. This adds so much to displayed art forums. Great idea.
Post Thoughts 9/22/2007:
Thumbnails in New Posts caps this off! Nice touch.

bing11
09-22-2007, 12:20 AM
thank you nice work

b65ran
09-22-2007, 01:17 AM
Thanks a lot. I was waiting for this for a long time. Is there a way to show thumbnails to unregistered users ?

Hornstar
09-22-2007, 05:26 AM
WOW this looks awesome, I will need to have a good look at this one for sure. Thanks.

ThomasR
09-22-2007, 08:14 AM
nnjj.net:
ThomasR:

If the first attachment is a non-image file(ie: zip, txt, etc.), it will be skipped, and it will show the first image attachment.

This is a new feature, just added in this version.
Ok, great !
And in the original hack of the thread thumbnail, if an attached image (I mean an image which is equal or less the size of the thumbnail size) and and attachement which is a full size image, the hack display in the threadlist only the attached image and not the thumbnail of the full size image. If no attached image, then, it's the thumbnail which is display.
It's the exact behavior of the original hack.
Anyway, the current one is better than the previous one, thank you for your update!

PS: if you don't understand what I mean, I can show you some sample on my own forum

rayphua
09-22-2007, 08:30 AM
Im not sure why mine isn't working. Using vb 3.6.7pl1.

peterpigman
09-22-2007, 11:08 AM
The only problem with the search thumbs is if you don't use thumbs in all forums you get a load of no thumb available. Could you not make it so it would only work if someone is searching a section that has it active?

Snake
09-22-2007, 11:19 AM
I'll definitely install this when I have the time. Thanks anyway!

Mecho
09-22-2007, 11:43 AM
is there anyway that it uses the image that users posted via [img] tag ??

jasonmerchant
09-22-2007, 11:31 PM
nnjj.net:

I'm not sure what you mean. Do you just want to show an empty space instead of the "no thumbnail" image?

theOzer:

Yes you will need to delete the old plugin first. If there is an alternative standard with other plugins, please let me know.

I will look into the new posts page. It should not be difficult.

b65ran:

Unregistered users see the thumbnails by default.

ThomasR:

Please send me a link, and I will take a look at it.

rayphua:

If you installed the plugin correctly, be sure that you inserted your forum ids into the 1st line of the plugin.

Peterpigman:

I will look into it, possibly by next weekend.

Mecho:

Unfortunately that would require a larger plugin. As the images would need to be searched for and resized on the fly.

I have a few projects at the moment, so I don't know how soon I can start working on it. I will let you if any progress is made.

Trana
09-23-2007, 02:00 AM
Will this work without globally enabling image thumbnailing? I want to view the full sized image attachments within threads but would like to use this mod.

Any ideas how I can do this?

Thanks!

rayphua
09-23-2007, 06:12 AM
I have your previous version installed and working fine, and I need to know what are the steps I need to take to get it upgraded to this current version. Please advice! Thanks.

Mecho
09-23-2007, 08:05 AM
ok thanks Jason . hope u will be free soon and add img tag option too ;)

cheers

InTeNsE-HuMoR
09-23-2007, 09:30 AM
Please can we have the option to allow admins to specify a custom thumbnail? For example; if a thread does not have an attachment but has embeded content like a Youtube video, I want to be able to take a screenshot and then uploaded it as the thumbnail.

snapshotz
09-23-2007, 04:09 PM
is there a way to set a custom size for the thumbs in the threadbit, would like to make the thumbs a bit smaller, rather than using the default thumbnail size.

peterpigman
09-23-2007, 07:12 PM
is there a way to set a custom size for the thumbs in the threadbit, would like to make the thumbs a bit smaller, rather than using the default thumbnail size.

I|t is in the threadbit template

<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="" width=120 height=100 border="0" />
</a>
<else />
<img src="$stylevar[imgdir_misc]/nothumb.jpg" alt="" border="0" />
</if>
<else />
<if condition="$show['threadicon']">

snapshotz
09-24-2007, 12:59 AM
awesome, thanks for the tip

htrshgytrs
09-24-2007, 03:37 AM
The only problem with the search thumbs is if you don't use thumbs in all forums you get a load of no thumb available. Could you not make it so it would only work if someone is searching a section that has it active?

I'd like to add my vote to the above as well, thanks again :)

rolfw1
09-24-2007, 07:27 AM
Thanks, just what I needed, really looks good on this section (http://www.thamesvalleybirds.co.uk/forumdisplay.php?f=16). :)

I've only set it up for one section at the moment, do I change the XML file and re-import it to add new sections, or is there another way?


Sorry scratch that, just edit it in the plugin manager. :)

htrshgytrs
09-24-2007, 11:00 PM
The only problem with the search thumbs is if you don't use thumbs in all forums you get a load of no thumb available. Could you not make it so it would only work if someone is searching a section that has it active?

i think i've worked around this. I wrapped the no thumb section in a thisscript condition, works well enough for me. Thumbs will only be displayed on the search pages if a thumbnail exists.

ie Find -


<img src="$stylevar[imgdir_misc]/nothumb.jpg" alt="" border="0" />


replace with -


<if condition="THIS_SCRIPT != 'search'">
<img src="$stylevar[imgdir_misc]/nothumb.jpg" alt="" border="0" />
</if>

jasonmerchant
09-25-2007, 05:30 AM
Trana:

Did you have any success with the code I posted before?

rayphua:

There isn't a clean upgrade, so you will need to uninstall the previous version and reinstall the new version. The template changes are the same as the previous version, so you don't have to change those, just reinstall the plugin and add your forum id's.

htrshgytrs:

...That script will not work, it will prevent all thumbnails from showing on the search page. Are thumbnails are showing up?

Trana
09-25-2007, 05:37 AM
Trana:
Did you have any success with the code I posted before?


No, I posted a reply stating that I wasn't sure what exactly you wanted me to edit in there.

Please explain.

Thanks!

htrshgytrs
09-25-2007, 05:46 AM
htrshgytrs:

...That script will not work, it will prevent all thumbnails from showing on the search page. Are thumbnails are showing up?

yup, works exactly as i want it to with that above conditional ;

http://img530.imageshack.us/img530/5203/11gj2.png



Images where there are thumbnails and nothing where there is not. Works both on the getnewposts and search results pages.


edit - actually i did change it after i posted earlier so i may have confused the issue.. The above result is achieved with the follow template edit within threadbit ;


<if condition="$show['threadicons']">
<td class="alt2" align="center" valign="middle">
<if condition="($tt_displaythumbs) AND ($bbuserinfo['field11'] <> 'Off' OR $show['guest'])">
<if condition="($thread['attachmentid']) AND ($thread['thumbsize'])">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">



<if condition="THIS_SCRIPT == 'search'">
<img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" alt="" width=70 height=45 border="0" />
</a>
<else />

<img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" alt="" border="0" />
</if>
<if condition="THIS_SCRIPT != 'search'">
<img src="$stylevar[imgdir_misc]/nothumb.jpg" alt="" border="0" />
</if>
</if>

<else />


<if condition="$show['threadicon']">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</if>
</if>

</td>
</if>

htrshgytrs
09-26-2007, 10:28 PM
my above change to your code is still wrong, so i'll wait for someone who knows what they are talking about ;)

This is the code i use now. The above screenshot shows the search pages and thumbs still display on the forumdisplay pages. The no thumb images are never shown though, ie if there is no attachment the field will be blank.

<if condition="$show['threadicons']">
<td class="alt2" align="center" valign="middle">
<if condition="($tt_displaythumbs) AND ($bbuserinfo['field11'] <> 'Off' OR $show['guest'])">
<if condition="($thread['attachmentid']) AND ($thread['thumbsize'])">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">



<if condition="THIS_SCRIPT == 'search'">
<img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" alt="" width=70 height=45 border="0" />
</a>
<else />

<img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" alt="" border="0" />
</if>
</if>

<else />


<if condition="$show['threadicon']">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</if>
</if>

</td>
</if>

bqtstudio
09-29-2007, 08:39 AM
Thx 4 this realea ! installed !

dontcry
09-30-2007, 11:38 AM
Great mod!

I would suggest 2 things:

1. When click on the thumb, the full-size image will be ajaxed-appeared. (HighSlide)

2. Changes the threads display of the specified forum from horizontal to vertical.

Thanks alots for this wonderful mod!

theFAILURE
09-30-2007, 04:13 PM
Does this work on 3.6.7PL1? As soon as I installed it, I got an invalid SQL when searching for "new posts."

I quickly deleted it to resolve the issue.

MySQL Error : Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause

InTeNsE-HuMoR
10-01-2007, 03:32 PM
Can we have the option to specify our own thumbnail for non-attachments like embeded videos?

rolfw1
10-01-2007, 06:06 PM
Love the mod as stated earlier, is it possible to add thumbnails to the search function when opting to show posts?

The Fat Boy
10-02-2007, 02:57 AM
cant get this to work for anything... doesnt display anything. edited the threadbit... no luck

ok... working to some degree, except it will not show a thumbnail for anything, it always shows the no thumbnail image

theFAILURE
10-02-2007, 01:34 PM
Does this work on 3.6.7PL1? As soon as I installed it, I got an invalid SQL when searching for "new posts."

I quickly deleted it to resolve the issue.

Did anyone get this working on 3.6.7PL1 or is this just a local problem with my database?

lasto
10-02-2007, 03:28 PM
just installed on vb3.6.8

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 , attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid , post.pagetext AS previewbbcode
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')) 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
(24907) GROUP BY thread.threadid GROUP BY thread.threadid;

MySQL Error : Not unique table/alias: 'attachment'
Error Number : 1066

i got that error by selecting `get new posts`

lasto
10-02-2007, 03:47 PM
I fixed the above error - well sort of by going to plugin manager and disabling he 2 search boxes for it.Aint found no more errors at moment and the hack is working in the forum i selected.
Does anyone have a fix so i can have pics showing on search as well ?

Principe10
10-03-2007, 03:22 PM
On my 3.6.8 show just the image "nothumb.jpg" no way to show any other image.
What's wrong? I've installed the xml plugin, modified the template, add the id number of tread and disabilited the "Thread Thumbnail - Search" because I don't like.

Any could help me please???

Thank's P.

lasto
10-03-2007, 04:39 PM
im amazed search.php worked for u - gave me a sql error

are u sure the forums u have it set for have a valid attachment pic

Principe10
10-03-2007, 04:54 PM
im amazed search.php worked for u - gave me a sql error

are u sure the forums u have it set for have a valid attachment pic

Now work. In my forum wasn't abilitated the Thambs

Thank's to all.
P.

rapidphim
10-04-2007, 07:57 PM
Wondering if this mod works with any other free hosting image such as imageshack?

PlymWS
10-05-2007, 11:35 AM
Err, no. It parses the attachments in each thread and produces uses the first attachments thumbnail as the thread thumbnail.

PlymWS
10-05-2007, 11:36 AM
What's the line you've added to search.php ? I have already modified my search.php so I would need to modify the file for this hack myself.

lasto
10-05-2007, 07:06 PM
any pics i upload i like to show inside the post but if i do then the thumbnail does not show unless i switch create thumbnail back on = then if i do that then pics are shown in threads/posts as small images which need to be clicked on to get full view.

Is there anyway i can have the thumbnail on forumdisplay while still viewing the full pic inside thread/posts without having to click on the image in the post.

Principe10
10-05-2007, 07:30 PM
any pics i upload i like to show inside the post but if i do then the thumbnail does not show unless i switch create thumbnail back on = then if i do that then pics are shown in threads/posts as small images which need to be clicked on to get full view.

Is there anyway i can have the thumbnail on forumdisplay while still viewing the full pic inside thread/posts without having to click on the image in the post.

Try so:
in option vbulletin switch yes (pic 001 rif pic 002 in english the help of pic 1)
then attachment switch yes pic 003.

Sorry but my forum is in italian!!!

P.

lasto
10-05-2007, 07:40 PM
it all set same as yours m8 but pics in posts still need to be clicked on.
Thanks for your time is appreciated.

If i turn off the show thumbnail in attachments option it just displays a link instead of the pic

Principe10
10-05-2007, 07:49 PM
it all set same as yours m8 but pics in posts still need to be clicked on.
Thanks for your time is appreciated.

If i turn off the show thumbnail in attachments option it just displays a link instead of the pic

Watch here if is like U want: http://www.forumocchisullanatura.it

P.

lasto
10-05-2007, 08:00 PM
that is weird cause its deffo working on your board.Yet my options in admincp are same as yours yet dont work

will pm u an account so u can take a look m8

Principe10
10-05-2007, 08:04 PM
that is weird cause its deffo working on your board.Yet my options in admincp are same as yours yet dont work

will pm u an account so u can take a look m8

send here: info@massimopisettaphotography.com

P.

lasto
10-05-2007, 08:09 PM
sent m8

WEBclay
10-05-2007, 08:45 PM
Hi there

I did all needed changes twice but no thumb is displaying. My other administrator got the sql error too when clicking on "new posts" but not me :/

edit: never mind. Don't forget: Always do the modifications on the right style, lol

lasto
10-06-2007, 10:46 AM
@Principe10

big thanks for sorting out my problem.

Principe10
10-06-2007, 11:51 AM
@Principe10

big thanks for sorting out my problem.

You'r welcome!

M.

Defkalion
10-08-2007, 09:10 PM
@lasto and @principe10: Can you guys please share how you accomplished this? I've been trying to do it myself, following principe10's instructions and screenshots but I haven't been able to get it to work.

Can you please assist?

Spank
10-08-2007, 09:49 PM
Is it possible to take a thumbnail from the first youtube video posted in a thread?

rolfw1
10-09-2007, 06:55 AM
Does anyone have this running where VBSEO is installed, works fine on my little forum, but when my colleague installed it on our bigger forum with VBSEO installed, it didn't work and I would like to install VBSEO in the near future.

Not sure whether it just didn't work, or it created errors, but will try and find out. :)

Principe10
10-09-2007, 04:45 PM
@lasto and @principe10: Can you guys please share how you accomplished this? I've been trying to do it myself, following principe10's instructions and screenshots but I haven't been able to get it to work.

Can you please assist?

What's your problem? Could U explaine please?

M.

Principe10
10-09-2007, 04:47 PM
Does anyone have this running where VBSEO is installed, works fine on my little forum, but when my colleague installed it on our bigger forum with VBSEO installed, it didn't work and I would like to install VBSEO in the near future.

Not sure whether it just didn't work, or it created errors, but will try and find out. :)

Sorry for the question, but what's VBSEO?

M.

rapidphim
10-09-2007, 07:28 PM
Thanks, just what I needed, really looks good on this section (http://www.thamesvalleybirds.co.uk/forumdisplay.php?f=16). :)

I've only set it up for one section at the moment, do I change the XML file and re-import it to add new sections, or is there another way?


Sorry scratch that, just edit it in the plugin manager. :)

Hello, how did you intergrate the highslide JS into the attachment thumbnail?

Defkalion
10-09-2007, 09:11 PM
What's your problem? Could U explaine please?

M.

I want to be able to have the image thumbnail as the thread prefix, but the full size image inside the topic. I understand you guys managed that.

rolfw1
10-09-2007, 09:41 PM
Hello, how did you intergrate the highslide JS into the attachment thumbnail?

It's a mod from here (https://vborg.vbsupport.ru/showthread.php?t=139167&highlight=highslide)

rolfw1
10-09-2007, 09:43 PM
Sorry for the question, but what's VBSEO?

M.

vBulletin Search Engine Optimisation, a paid package which helps to lift your search engine optimisation.

delphi77
10-09-2007, 11:01 PM
Thank you ! nice work. Installed :)

Trana
10-10-2007, 01:07 AM
I want to be able to have the image thumbnail as the thread prefix, but the full size image inside the topic. I understand you guys managed that.

Yes, I have been looking to get this working as well. Can you explain what you did to fix it? I want to view the full size images within the threads but still use this mod (which requires the thumbnail function enabled in admincp).

Thanks!

Principe10
10-11-2007, 11:12 AM
vBulletin Search Engine Optimisation, a paid package which helps to lift your search engine optimisation.

Sorry, I dont' have it.

See U.

M.

Principe10
10-11-2007, 11:20 AM
I want to be able to have the image thumbnail as the thread prefix, but the full size image inside the topic. I understand you guys managed that.

Have U installed the Plug-in correctly? What do U see now in your forum? Give me the addess so I can see it.

My forum is here and U can see an example: http://www.forumocchisullanatura.it/forumdisplay.php?f=40

M.

rapidphim
10-11-2007, 03:49 PM
did anyone find out a correct way to eliminate the thumbnail if the thread doens't have thumbnail in it?

Principe10
10-11-2007, 04:04 PM
did anyone find out a correct way to eliminate the thumbnail if the thread doens't have thumbnail in it?

Yes, easy.


Here:
<if condition="$show['threadicons']">
<td class="alt2" align="center" valign="middle">
<if condition="$tt_displaythumbs">
<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="$stylevar[imgdir_misc]/nothumb.jpg" alt="" border="0" />
</if>
<else />
<if condition="$show['threadicon']">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</if>
</if>
Put:
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />

so U have the normal icon.

M.

Majest
10-12-2007, 10:58 PM
Is it at all possible this would work on 3.6.5?

Spank
10-12-2007, 11:57 PM
Is it possible to take a thumbnail from the first youtube video posted in a thread?
As youtube has the thumbnails from the videos.
http://img.youtube.com/vi/videoid/default.jpg

Stefano Virgill
10-16-2007, 02:48 AM
Hi guys,
instelled on 3.6.7
VBSEO installed as well.

A few issues:

1- this features:
* If there are attachments that are not images, it will skip them and go to the first image attachment.
* Optional - you can now display thumbnails on search results.
Are not working.

2- the search doesn't show any thumbnail. I mean when the search result it's a thread with thumbnail.

3- a thumbnail created from other images as [IMG] links or Youtube videos, could be very very very very great!

4- Doesn't show the No Thumbs Available picture, even if correctly uploaded in the server.

Thanks in advance.

Steve

Defkalion
10-23-2007, 10:13 AM
This is working fine for me in 3.6.8. :)

Does anyone have any idea how to get the thumbnail to appear in the news module in vbadvanced as well?

Sandy-XXX
11-03-2007, 01:49 AM
Working fine for me to in 3.6.8 but I have a problem.

I want to disable the download attachments for unregistered users, but they get this:


71867

Its possible to show icons only for unregistered user?

Ok, I found the solution here and works:

https://vborg.vbsupport.ru/showpost.php?p=1064212&postcount=113

jhcarrell
11-29-2007, 03:22 PM
Where do I find the "threadbit template"??

Pathfinder
11-29-2007, 08:05 PM
Works perfectly on a 3.68 testforum, I am very glad about this plugin, thank you!

Where do I find the "threadbit template"??
Style & Templates, search in Templates and then just search for "threadbit" and click customize.

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
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:



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/search.php?searchid=506222
Referrer : http://www.mydomain.com/forums/showthread.phpp=1282479#post1282479 (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
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
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!
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.
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
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
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
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
do you know what hack have been use on the link i gave please? :)

There's that one :

https://vborg.vbsupport.ru/showthread.php?t=166968&highlight=forum+icon

or

https://vborg.vbsupport.ru/showthread.php?t=143098&highlight=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.

// 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.
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/zoekplaatjes/forumdisplay.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/zoekplaatjes/forumdisplay.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

theOZer
04-15-2008, 02:17 PM
winkm,
One more guess.
Is Thumbnail Creation turned ON?
AdminCP > vBulletin Options > Message Attachment Options > Thumbnail Creation
I have mine set to 'Yes, with border and dimensions' (which just may be the default, I don't know).
Also, in Attachment Manager gif, jpg, jpeg Thumb column all read Yes (Yes?).
~OZ

winkm
04-15-2008, 05:45 PM
OZ, I changed your account so you should be able to post in the Test forum, would appreciate if you could check!

thanks a lot again!

theOZer
04-15-2008, 09:42 PM
winkm,
I posted in your Test forum.
Do you have Thumbnail Creation turned ON? It should have created a thumbnail when I posted; or, at least, that's how it 'happens' when anyone posts on the OMAC forum.
Hmmmmm.
~OZ
P.S. Click on my signature; have a look at OMAC; click on New Posts, or, say the Critique forum to see the thumbnails.

winkm
04-19-2008, 07:27 PM
Yes, I have been looking to get this working as well. Can you explain what you did to fix it? I want to view the full size images within the threads but still use this mod (which requires the thumbnail function enabled in admincp).

Thanks!


Is there a solution for this (full size images in threads with thumbnail enabled) ?
thanks!

NeverBored
04-19-2008, 09:21 PM
Is there a solution for this (full size images in threads with thumbnail enabled) ?
thanks!
I think you can accomplish what you want by editing the postbit_attachmentthumbnail template

theOZer
04-21-2008, 04:33 PM
This is a dead, unsupported hack that hasn't been touched by JasonMerchant since 21 SEP 2007. It's meant to display the thumbnail in posts that have Thumbnail Creation turned ON, period. This hack does NOT display full sized images, just only thumbnails.
See my post #121 above concerning how to turn on Thumbnail Creation. Note that if you had Thumbnail Creation turned off and /or change the setting you will need to go to Maintenance -> Update Counters -> Rebuild Attachment Thumbnails after changing this setting and rebuild your thumbnails.

winkm
04-21-2008, 06:46 PM
I think you can accomplish what you want by editing the postbit_attachmentthumbnail template

Neverbored: what should I change in this template ?? (complicated code!)

NeverBored
04-21-2008, 10:05 PM
Neverbored: what should I change in this template ?? (complicated code!)

Copy and paste the postbit_attachmentimage template contents into the postbit_attachmentthumbnail template (delete the current contents in postbit_attachmentthumbnail)

Make sure you have thumbnail creation on. This will display the thumbnails for use with this hack, and in the thread will display the fullsize image (what you would normally see if you clicked on the thumbnail of an attached image), which is what I understood you were asking to accomplish...

It's a quick fix and shouldn't pose any problems other than the fact potentially a lot of thumbnails are created that aren't used if you have a lot of image uploads.

mahsazn
04-24-2008, 07:54 PM
can we enable it only for some of the forums/categories?

NeverBored
04-24-2008, 08:26 PM
can we enable it only for some of the forums/categories?
You have to enable it for each forum you want to use it on (so to your question, yes)

Kanustep
04-27-2008, 12:10 AM
It work on 3.7.0 RC4

theOZer
04-27-2008, 05:19 PM
If that's a question the answer is, "Yes."
Install the plugins, update the threadbit template as mentioned in JasonMerchant's Installation instructions.
Add the forums you want thumbnailed in the Thread Thumbnail plugin.
AND, you must update the vB370RC4 Search.php file, adding JasonMarchant's code. (I know. I know. But that's the only way I got it to work in vB370RCwhatever.)
See post #112, previous page.
~OZ

Kanustep
04-27-2008, 08:14 PM
<a href="https://vborg.vbsupport.ru/member.php?u=190937" target="_blank">theOZer</a>, thank you, but wasn't a question. Yes it work on vb 3.7.0 RC4

theOZer
04-29-2008, 12:20 AM
I've got to ask, Kanustep, did you turn OFF the Thread Thumbnail - Search plugin or did you add JM's code to search.php? Without JM's search.php code and with the Thread Thumbnail - Search plugin turned ON I got db errors when I tried a navbar New Posts search.
Just curious, here. ~OZ

Kanustep
04-29-2008, 12:42 AM
Hello theOZer,

Right now I have it turned off, but when I have it ON it was working fine. Is this the code you inserted into the search.php?

//edited by jason
$dataQuery .= " " . $hook_query_where;

This is the only thing you need to add to your search.php. Look for:

// do data query
if (!empty($itemids))
{
$ids = implode(', ', array_keys($itemids));
$dataQuery .= '(' . $ids . ')';

Immediately BELOW add this:

//edited by jason
$dataQuery .= " " . $hook_query_where;

It should work.

Defkalion
05-10-2008, 11:38 AM
Guys, does anyone know where to put this extra line of code in TAGS.php so that the thumbnails come up also when doing a tag search?

Nikoo
05-10-2008, 12:22 PM
Do you know if this will work whit 3.7 ? or do we have to wait for a update?

theOZer
05-10-2008, 01:02 PM
Hey, Nikoo, since post #100 or so this entire discussion has been how to make this work with 37x. As stands, the Thread Thumbnail plugin works in 37x. The Thread Thumbnail - Search plugin works if you tweak search.php, adding TT's code. AND, if you have the Thread Thumbnail - Search plugin turned ON but you did NOT tweak search.php you WILL get database errors when you/anyone does a search. So, Watch Out!

MissKalunji
05-10-2008, 01:03 PM
Guys, does anyone know where to put this extra line of code in TAGS.php so that the thumbnails come up also when doing a tag search?

i wonder too

Nikoo
05-11-2008, 09:37 PM
thanks.

NeverBored
05-12-2008, 12:04 AM
As far as tags, I think another plugin needs to be created in addition to adding the code to tags.php. I tried looking at the file myself, but I just have no idea where it'd go. It would seem it'd be a pretty easy thing to do for someone that knows what they're doing to adapt it to tags. It's too bad someone with the knowledge hasn't taken over this mod for 3.7, since the author is gone.

Defkalion
05-12-2008, 05:59 AM
Well this mod is working fine in my 3.7 installation, and with the addition of that little piece of code I also get the thumbnails in search. But as you say, we just need someone that know what they're doing to tell us where to put this line of code to TAGS.PHP so that we can have thumbs there too.

Anyone?

viper007
05-13-2008, 05:56 AM
cant see the attachemnt as thumbnail

mwink
05-13-2008, 06:49 PM
Copy and paste the postbit_attachmentimage template contents into the postbit_attachmentthumbnail template (delete the current contents in postbit_attachmentthumbnail)

Make sure you have thumbnail creation on. This will display the thumbnails for use with this hack, and in the thread will display the fullsize image (what you would normally see if you clicked on the thumbnail of an attached image), which is what I understood you were asking to accomplish...

It's a quick fix and shouldn't pose any problems other than the fact potentially a lot of thumbnails are created that aren't used if you have a lot of image uploads.

Hi neverbored,

thanks for explaining this. This is what happens:

if we have thumbnail creation on, when we post a message with attachment, it shows a (correct) thumbnail before the post. Inside the post however, it still shows a thumbnail instead of the full size photo.

When, after creating this post, I switch thumbnail creation off again, than the situation is how we would like to have it: thumbnail before the post and fullsize inside..

Of course we can not have thumbnail creation switched to off..

Any suggestion?

Thanks a lot!!

NeverBored
05-13-2008, 08:16 PM
Hi neverbored,

thanks for explaining this. This is what happens:

if we have thumbnail creation on, when we post a message with attachment, it shows a (correct) thumbnail before the post. Inside the post however, it still shows a thumbnail instead of the full size photo.

When, after creating this post, I switch thumbnail creation off again, than the situation is how we would like to have it: thumbnail before the post and fullsize inside..

Of course we can not have thumbnail creation switched to off..

Any suggestion?

Thanks a lot!!
If you do what I wrote, you'll have what you want.

Copy and paste the postbit_attachmentimage template contents into the postbit_attachmentthumbnail template (overwrite the current postbit_attachmentthumbnail contents). And leave thumbnail creation on.

nando99
05-20-2008, 11:34 PM
This is a great mod! Love it. One question though, would it be possible to set a nothumb image per forum?

Thanks in advance...

NeverBored
05-21-2008, 01:10 AM
This is a great mod! Love it. One question though, would it be possible to set a nothumb image per forum?

Thanks in advance...

Easy. Replace the nothumb image with this, <img src="$stylevar[imgdir_misc]/nothumb$thread[forumid].jpg" alt="" border="0" />

Then save your seperate nothumb images with the forum id in the file name.

nando99
05-21-2008, 01:23 AM
Easy. Replace the nothumb image with this, <img src="$stylevar[imgdir_misc]/nothumb$thread[forumid].jpg" alt="" border="0" />

Then save your seperate nothumb images with the forum id in the file name.

Well then - that sounds easy enough... lol thanks

mwink
05-22-2008, 07:21 PM
If you do what I wrote, you'll have what you want.

Copy and paste the postbit_attachmentimage template contents into the postbit_attachmentthumbnail template (overwrite the current postbit_attachmentthumbnail contents). And leave thumbnail creation on.

That's exactly what we did. Thumbnails in front of the thread titles are perfect, but the image inside the post is still a thumbnail instead of fullsize. This is very frustrating. Thanks for any futher suggestions you may have.

PS we tested it now using the vbulletin default template and have this problem there as well..

thanks again,

Paul

NeverBored
05-22-2008, 07:36 PM
That's exactly what we did. Thumbnails in front of the thread titles are perfect, but the image inside the post is still a thumbnail instead of fullsize. This is very frustrating. Thanks for any futher suggestions you may have.

PS we tested it now using the vbulletin default template and have this problem there as well..

thanks again,

Paul
I don't see how that's possible. The thumbnails in posts are displayed using the thumbnail template, so if the template isn't calling the thumbnail and are instead calling the full size image - which is what the change I posted does, it shouldn't even be possible for it to display the thumbnail.

To make sure, I just tested on my board again, and it works as it should. All uploaded images in posts are displayed at their full size.

The only thing I can think of is you reversed the templates (copied postbit_attachmentthumbnail to postbit_attachmentimage instead of the opposit). If that's not the case I really have no idea what the problem could be. Like I said I've tested it twice on my board and it worked instantly, and based on the simplicity of what it's doing I can't think of why it's not working for you.

The D
05-22-2008, 10:46 PM
Exactly what I was looking for, thank you so much!

Defkalion
06-07-2008, 10:28 PM
Well this mod is working fine in my 3.7 installation, and with the addition of that little piece of code I also get the thumbnails in search. But as you say, we just need someone that know what they're doing to tell us where to put this line of code to TAGS.PHP so that we can have thumbs there too.

Anyone?

Can someone please help to have thumbnails also in the tags search as we have in the search.php?

rel
06-15-2008, 01:45 AM
I installed it on 3.7.1 and it works great! Thank you, it's a very nice feature.

http://www.resinilluminati.com/forumdisplay.php?f=36

FileEdit
06-16-2008, 02:21 PM
Thank You

Trana
06-17-2008, 04:33 AM
Copy and paste the postbit_attachmentimage template contents into the postbit_attachmentthumbnail template (delete the current contents in postbit_attachmentthumbnail)

Make sure you have thumbnail creation on. This will display the thumbnails for use with this hack, and in the thread will display the fullsize image (what you would normally see if you clicked on the thumbnail of an attached image), which is what I understood you were asking to accomplish...


I tried to do this but it doesn't seem to be working. As soon as I turn on thumbnail creation I see links to the attachments (with the attachment icon) and not the photos themselves.

Any idea what I should check first?

bobster65
06-17-2008, 04:45 AM
I tried to do this but it doesn't seem to be working. As soon as I turn on thumbnail creation I see links to the attachments (with the attachment icon) and not the photos themselves.

Any idea what I should check first?

Hey Bud, I got this working with AJAX Tabs/Recent threads now :cool:

tako
06-19-2008, 06:27 AM
Can someone help me make this work with tag page of 3.7.1?? I tried to put them in "tags_list_query_xxxx" hooks but didn't work well....

tako
06-19-2008, 06:49 AM
Can someone please help to have thumbnails also in the tags search as we have in the search.php?

Oops... you want the same thing as me...

Defkalion
06-19-2008, 07:53 AM
Everybody wants this but there seems to be no answer, maybe we could assign this to a developer to make it for us?

berrada
06-26-2008, 12:51 AM
Welcome, thank you very much indeed wonderful Hak
Carry-le evolution of the latest version 3.7.2

usmansabir
06-27-2008, 10:33 PM
3.6.8 .. installed . showed NO THUMBNAIL in the forums i defined in array .. and SQL error while going for New post .. so didnt have any option .. uninstalled :( but i like this thingi..

theOZer
06-27-2008, 11:29 PM
usmansabir,
This mod/hack is priceless if you have an art forum. This hack has worked for me from vB3.6.5 through vB3.7.2, but, since vB3.6.8 came out you have to tweak the search.php so new post search works (see page 8, post #112, 114). Also, don't forget you need to turn on thread thumb creation (see page 9, post #121). If you have linked and/or full image (non-thumbnailed) images in a new thread's 1st post then a thumbnail is NOT available, thusly, it won't show up as a thumbnail, regardless.

Defkalion
06-28-2008, 05:55 PM
@theOZer: have you found a way to make this work also in tag search?

theOZer
06-29-2008, 05:08 PM
FYI: This mod and the search.php tweak work in vB3.7.2.
We're fortunate, once again, this works by bastardizing search.php. Yes, there has got to be a better way.
No, Defkalion, I have not worked with adding this to Tags. I'm not a coder but this does intrique me. I would like to, first and foremost, use vB's hooks in the search.php, to "properly" incorporate ThreadThumbnails into New Posts search. Then, maybe, after learning how to do that I can also do this in Tags; it may just fall all into place. There's a vB SDK (I believe) that I can download, read, then take it from there. We will see.
P.S. NeverBored also offers good help (page 8 - 10) on how to display 'full page' threads.

rolfw1
07-01-2008, 03:46 PM
All I did when I upgraded to 3.7.2, was upload the old modified search.php file (after I found that the new 3.7.2 version was generating an SQL error), did you modify your new 3.7.2 version, or just replace it with the old modified one, if you modified it, I'd like to see what you did, as I think I may be missing some features by using the old modified one.

Also, has anyone got it to work when searching for individual posts and not threads? As my main section is photo based and it would look a lot better.

theOZer
07-01-2008, 05:17 PM
rolfw1,
You HAVE TO MODIFY the vB3.7.2 search.php, adding the Thread Thumbnail 'hook' (see page 8, post #112, 114).
I believe that this mod, as it's currently written, only checks for an image attachment on the 1st post of a thread.

theOZer
07-02-2008, 12:29 PM
Yay! I got Thread Thumbnails to so show up in a TAG Search!!!

I created a Thread Thumbnail Tag Search plugin, copying thread-thumbnail-plugins.xml then tweaking it.
I had to make minor changes to Tag.php.
I had to add an additonal If statement to the threadbit template to get Tag search thumbnails to display.
I need to put together a 'How I Did This' write-up. I'll get this done today.
P.S. I plan to post my write-up, soon.

Defkalion
07-02-2008, 02:14 PM
COOL!!!! Can't wait to implement this! :)

theOZer
07-02-2008, 02:38 PM
Adding Thread Thumbnails to Tag Search

Salute to Jason Merchant the original coder of this excellent Thread Thumbnails mod. Salute to vB.org for hosting this mod's thread.

This is a 'How I Did It.' I hope this is ethically correct that I can post this tweak, seeing how I stole the plugin from Jason and tags.php needs to be modified. I have this up-and-running on my forum; it works for me, okay?

tags.php needs to be slightly tweaked to make this all happen.
You will need to install a plugin.
You will need to modify your threadbit template(s).

[Note: Before changing your current tags.php file make a backup copy named tags_original.php, for example.]

A) Tweak the tags.php file:

Change tags.php

>>Find:

$hook_query_fields = $hook_query_joins = '';
($hook = vBulletinHook::fetch_hook('tags_list_query_data')) ? eval($hook) : false;

>>Change the 1st line to:

$hook_query_fields = $hook_query_joins = $hook_query_where = '';
($hook = vBulletinHook::fetch_hook('tags_list_query_data')) ? eval($hook) : false;

At the bottom of the following select statement -

>>Find:

$hook_query_joins
WHERE thread.threadid IN (" . implode(',', $threadids) . ")

>>Change the 2nd line to:

$hook_query_joins
WHERE thread.threadid IN (" . implode(',', $threadids) . ") $hook_query_where

B1) Create the plugin .xml file:

Copy the following xml code, pasting it into Wordpad or Notepad. Save the file as a .xml. For example, I named mine: thread-thumbnail-plugins-tags.xml


<?xml version="1.0" encoding="ISO-8859-1"?>

<plugins>
<plugin active="1" executionorder="5" product="vbulletin">
<title>Thread Thumbnail - Tag Search</title>
<hookname>tags_list_query_data</hookname>
<phpcode><![CDATA[$tt_displaythumbs_tags = true;
$hook_query_fields .= ", attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid ";
$hook_query_joins .= "LEFT JOIN " . TABLE_PREFIX . "attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png')) ";
$hook_query_where .= "GROUP BY thread.threadid ";]]></phpcode>
</plugin>
</plugins>


B2) Import the plugin:

In Admin Control Panel > Plugins & Products > Download/Upload Plugins > Import Plugin Definitions XML File window, Import the .xml file you just created.

C) threadbit template changes:

Here's my New & Improved threadbit template change to thread thumbnail both regular searches and Tag searches. Your current TT code may differ from mine, for sure.


<!-- Thread Thumbnails -->
<if condition="$show['threadicons']">
<td class="alt2" align="center" valign="middle">
<!-- TAG Search Thread Thumbnails -->
<if condition="($tt_displaythumbs_tags)">
<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 />
<if condition="$show['threadicon']">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
<else />
&nbsp;
</if>
</if>
<else />
<!-- Thread Thumbnails in Forums & Search -->
<if condition="($tt_displaythumbs)">
<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="$stylevar[imgdir_misc]/nothumb.jpg" alt="" border="0" />
</if>
<else />
<if condition="$show['threadicon']">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
<else />
&nbsp;
</if>
</if>
</if>
</td>
</if>
<!-- end of Thread Thumbnails -->


Enjoy!

Regards, theOZer

Defkalion
07-02-2008, 03:20 PM
Aaarrrgh!! It works!! :)

I just have to figure out why it's leaving such a big space for the thumbs column now. :P

Many thanks man. Any ideas for the thumbs column width?

Edit: Don't worry about it, already fixed it, it was an extra </td> making the damage.

It's working GREAT!

Thankyou so much for your effort theOZer :)

theOZer
07-02-2008, 03:26 PM
I'm not experiencing 'a big space for the thumbs column.' My Tag Search screen looks like the current Search Forums/New Posts screen on my forum. Hmmm?

Defkalion
07-02-2008, 03:40 PM
No thanks man, see my edit above, it works great.

Just a typo in your template code:

<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
<else />
nbsp&;
</if>


need to change to

<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
<else />
&nbsp;
</if>

theOZer
07-02-2008, 03:46 PM
Done; I corrected that typo in my code above. And, thank you, Defkalion, for catching that code glitch. Keep me honest, please.

NeverBored
07-02-2008, 08:54 PM
Hell yes. Thanks a lot theOZer for working that out with the tags. Much appreciated.

FYI, you can simplify the threadbit by using this conditional instead, <if condition="$tt_displaythumbs OR $tt_displaythumbs_tags">

theOZer
07-02-2008, 09:08 PM
I segregated the 2 IF statements because Tag Searches that don't have a thumbnail then display the 'default' thread icon and Forum & regular searches that don't have a thumbnail display the 'No Image' gif.
And, for what it's worth, you can tweak the Thread Thumbnail Search plugin, have it use a different temp true/false variable, e.g., $tt_displaythumbs_search, and add an additional IF statement to handle regular searches like I'm handling Tag Search. I've already done this on my forum. Regular searches now display the thumbnail if it exists otherwise it just displays the default thread icon.
Also, like the original Thread Thumbnail mod, you can set up a User Profile Field to Display or Not Display thumbnails for Tag Searches.
Now that I've cracked this, so to speak, there's a lot that can be done with this mod.
I'm now going to see if I can get the mod to also display thumbnails when doing post searches. We will see.
~OZ

NeverBored
07-02-2008, 09:46 PM
I see what you mean now after looking at the code. I designed my threadbit differently so the OR conditional works best for me. Anyways, thanks again, happy to have this in tags finally.

unforgotten
07-03-2008, 04:11 PM
Is this working on 3.6.5? I installed it but it doesn't seem to be working, should I update to the latest version of Vb 3.7.2 to make it work?

theOZer
07-03-2008, 04:29 PM
Do you have thumbnail creation turned on?
Have you added the forums you want thumbnailed to the Thread Thumbnail plugin array?
This mod was written as of vB3.6.8 and the "supplied" search.php may not work in vB3.6.5. You may need to edit and add the thread thumbnail code to your vB3.6.5 search.php.
P.S. Of course, you should be running the most current version of vB, regardless.

rolfw1
07-04-2008, 09:02 AM
rolfw1,
You HAVE TO MODIFY the vB3.7.2 search.php, adding the Thread Thumbnail 'hook' (see page 8, post #112, 114).
I believe that this mod, as it's currently written, only checks for an image attachment on the 1st post of a thread.

Thanks very much theOZer, an easy update, now shows the full search functions. :)

theOZer
07-04-2008, 11:43 AM
Hello rolfw1,
Glad I could help.
Since your last visit here I figured out to add thumbnails to tags.php. See post # 169.
~OZ

unforgotten
07-04-2008, 07:39 PM
I got it working, thanks bud!! but now I have this problem, in FF I can see the images just fine but under IE I get the no image with a red cross symbol when the image is not working, how can I fix that?

Thanks!!
John.

unforgotten
07-04-2008, 07:46 PM
ok I just noticed that it only happens when I am not logged in but it only happens in IE, any idea how can I fix this?

unforgotten
07-04-2008, 07:56 PM
I got it!! It had to do with the forum permissions for unregistered/not logged in users. Thanks anyway!! :)

rolfw1
07-08-2008, 09:32 AM
Hello rolfw1,
Glad I could help.
Since your last visit here I figured out to add thumbnails to tags.php. See post # 169.
~OZ

Thanks very much, will have a play with that later. :)

bing11
07-08-2008, 05:30 PM
attachment.php?attachmentid=&stc=1&thumb=1

attachmentid not work help

theOZer
07-09-2008, 02:07 AM
bing11,
Help us here. Is this happening in a Tag Search or a New Post/regular search or in one of your forums you've thread thumbnailed?

bing11
07-10-2008, 01:26 AM
theOzer thank you help me.

"<if condition="($thread['attachmentid'])" it's not work . could you tell me what is this?

when I remove it attachmentid cannot work, but I active any attachment option

theOZer
07-10-2008, 05:34 PM
bing11,
I don't have a clue what you're talking about?
Did you already have this hack installed and it worked and now it doesn't?
Is this the first time you've tried to install this hack?
Did you follow Jason's installation instructions. They are pretty straight-forward, easy to understand and follow?
Is this problem you're having because you tried to add thumbnails to Tag Searches (see 02 JUN 2008 Post # 169)?
Did you add the forum numbers to the Thread Thumbnail plugin array (see 02 APR 2008 Post # 114)?
If you are using the Thread Thumbnail Search plugin did you tweak Search.php (see 02 APR 2008 Post # 112)?
Is Thumbnail Creation turned ON?
AdminCP > vBulletin Options > Message Attachment Options > Thumbnail Creation
I have mine set to 'Yes, with border and dimensions' (which just may be the default, I don't know).
Also, in Attachment Manager gif, jpg, jpeg Thumb column all read Yes (Yes?).

If you need help you need to ask better questions, detail what your problem is, be a bit more specific. Okay?

Trana
07-10-2008, 09:39 PM
Can someone post a copy of what it looks like in the tag search?

theOZer
07-11-2008, 01:45 PM
Here's a Tag Search that shows both possible situations.
1) Thumbnails are displayed for threads with a thumbnail attachment in the 1st post.
2) Default Thread Icon displays for threads without a thumbnail in the 1st post.

As I also note in 02 JUL 2008 Post # 175
"And, for what it's worth, you can tweak the Thread Thumbnail Search plugin, have it use a different temp true/false variable, e.g., $tt_displaythumbs_search, and add an additional IF statement to handle regular searches like I'm handling Tag Search."

Now my New Posts and regular searches also are displayed this way, and only my thumbnailed forums show the 'No Image' icon if there's no thumbnail pic.
~OZ

Trana
07-16-2008, 03:59 AM
Pretty cool, does it do that in the normal search results as well?

Can you point me to the post describing how to install it that way? It seems like there are a lot of them.

iamthemoz
07-16-2008, 02:16 PM
Thank you so much for this plugin. Works great! I was just wondering though, if there is a way to display images as a thumbnail for a thread that are not attachments, but are displayed in the 1st post of a thread?

theOZer
07-17-2008, 05:56 PM
Trana,

In AdminCP > Plugins & Products > Plugin Manager
Edit the plugin 'Thread Thumbnail - Search'
Change $tt_displaythumbs to $tt_displaythumbs_search

$tt_displaythumbs_search = true;
$hook_query_fields .= ", attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid ";
$hook_query_joins .= "LEFT JOIN " . TABLE_PREFIX . "attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png')) ";
$hook_query_where .= "GROUP BY thread.threadid ";


In threadbit template add an additonal IF statement like you added for the Tag Search changing the IF stmt to check for $tt_displaythumbs_search (versus the Tag Search checking for $tt_displaythumbs_tag).

This is the code I'm using. Yes, this is a monster IF statement. It works. It handles displaying thumbnails for Tag Searches, New Posts & regular Searches, Forums that have been added to the Thread Thumbnail plugin. I have also set up User Profile fields to allow the user to turn On/Off thread thumbnail display and have those checks also in the code.
Note: And, for poops-N-grins, I wrapped all the img code in href tags so you can click on thread thumbnails or the default thread icon to go to the thread.

<!-- OMAC Thread Thumbnails -->
<if condition="$show['threadicons']">
<td class="alt2" align="center" valign="middle">
<!-- Tag Search -->
<if condition="($tt_displaythumbs_tags) AND $bbuserinfo['field9'] <> 'Off'">
<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 />
<if condition="$show['threadicon']">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</a>
<else />
&nbsp;
</if>
</if>
<else />
<!-- New Posts & regular Search -->
<if condition="($tt_displaythumbs_search) AND ($bbuserinfo['field8'] <> '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 />
<if condition="$show['threadicon']">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</a>
<else />
&nbsp;
</if>
</if>
<else />
<!-- Check for Thread Thumbnailed Forums -->
<if condition="($tt_displaythumbs) AND ($bbuserinfo['field8'] <> '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 />
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="$stylevar[imgdir_misc]/nothumb.jpg" alt="" border="0" />
</a>
</if>
<else />
<!-- the original vB code -->
<if condition="$show['threadicon']">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</a>
<else />
&nbsp;
</if>
</if>
</if>
</if>
</td>
</if>
<!-- end of OMAC Thread Thumbnails -->

Chow, ~OZ

theOZer
07-17-2008, 06:01 PM
iamthemoz,
Check a few posts here submitted by NeverBored.
Page 9, post #128
follow-up
Page 10, posts #144, #145.
Later, ~OZ

mrxclusive
07-28-2008, 02:16 PM
this is to hard to install can someone help me

viper007
07-28-2008, 05:05 PM
Be sure to change the forum ids in the $thumbsforums array to the forum ids you want to enable thumbnails in.

where it is??

theOZer
07-28-2008, 09:33 PM
AdminCP > Plugins & Products > Plugin Manager, then edit Thread Thumbnails, adding your forums that you want thread thumbnailed.
example, $tt_thumbsforums = array(4, 5, 17, 46, 50, 53);

viper007
07-29-2008, 01:32 AM
i had installed everything told by u in the installation..but cant view the thumbnails...whatswrong??my website is www.sportivestudents.com and i want to put in telugu hiquality dvdrips

Trana
07-29-2008, 05:45 AM
iamthemoz,
Check a few posts here submitted by NeverBored.
Page 9, post #128
follow-up
Page 10, posts #144, #145.
Later, ~OZ

I don't think thats what he wanted.

What he was trying to was to display linked images as thumbnails too when there are no attachments in the thread. That would be killer.

Trana
07-29-2008, 05:52 AM
I don't understand, where do I put this? In threadbit? If it is to display thumbnails in search results is it the same template?

Thanks.

Trana,

In AdminCP > Plugins & Products > Plugin Manager
Edit the plugin 'Thread Thumbnail - Search'
Change $tt_displaythumbs to $tt_displaythumbs_search

$tt_displaythumbs_search = true;
$hook_query_fields .= ", attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid ";
$hook_query_joins .= "LEFT JOIN " . TABLE_PREFIX . "attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png')) ";
$hook_query_where .= "GROUP BY thread.threadid ";


In threadbit template add an additonal IF statement like you added for the Tag Search changing the IF stmt to check for $tt_displaythumbs_search (versus the Tag Search checking for $tt_displaythumbs_tag).

This is the code I'm using. Yes, this is a monster IF statement. It works. It handles displaying thumbnails for Tag Searches, New Posts & regular Searches, Forums that have been added to the Thread Thumbnail plugin. I have also set up User Profile fields to allow the user to turn On/Off thread thumbnail display and have those checks also in the code.
Note: And, for poops-N-grins, I wrapped all the img code in href tags so you can click on thread thumbnails or the default thread icon to go to the thread.

<!-- OMAC Thread Thumbnails -->
<if condition="$show['threadicons']">
<td class="alt2" align="center" valign="middle">
<!-- Tag Search -->
<if condition="($tt_displaythumbs_tags) AND $bbuserinfo['field9'] <> 'Off'">
<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 />
<if condition="$show['threadicon']">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</a>
<else />
&nbsp;
</if>
</if>
<else />
<!-- New Posts & regular Search -->
<if condition="($tt_displaythumbs_search) AND ($bbuserinfo['field8'] <> '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 />
<if condition="$show['threadicon']">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</a>
<else />
&nbsp;
</if>
</if>
<else />
<!-- Check for Thread Thumbnailed Forums -->
<if condition="($tt_displaythumbs) AND ($bbuserinfo['field8'] <> '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 />
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="$stylevar[imgdir_misc]/nothumb.jpg" alt="" border="0" />
</a>
</if>
<else />
<!-- the original vB code -->
<if condition="$show['threadicon']">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</a>
<else />
&nbsp;
</if>
</if>
</if>
</if>
</td>
</if>
<!-- end of OMAC Thread Thumbnails -->

Chow, ~OZ

theOZer
07-29-2008, 03:17 PM
"In threadbit template add an additonal IF statement like you added for the Tag Search changing the IF stmt to check for $tt_displaythumbs_search (versus the Tag Search checking for $tt_displaythumbs_tag)."
I can't explain it any better than I have already tried. Sorry.

mrxclusive
07-30-2008, 01:31 PM
how do i upload a differen thumbnail for each thread?

klower
08-06-2008, 08:50 PM
Hi theOZer

Great mod ! works with my 3.7.2 as well.

I've just wondering how to change code a little bit so that modification you've created could search in second post in thread (if first post does not have any attached images) ..
any suggestions ?

cheerz :)

theOZer
08-06-2008, 10:56 PM
Hello klower,
I will see if I can come up with code that will do that. I guess I've kinda taken over supporting this mod, but, to be honest, I don't fully understand how it works, how it is determining if or if not there's a thumbnail/pic included in the first post of a thread. I'll work on it this weekend and if I have any success trying to add your code tweak I'll PM you.
Thanks for the kudos. I really mean that; that's all I want is to help other vBers so that they can use this mod in their forum. This mod is priceless if you support an art forum.
~OZ
Post thought: First and foremost a salute to Jason Merchant for writing this mod.
And, I wish not to sound pompous. Any and all of us here at vB.org support our fellow members. That's a gimme.

oz_girl
08-16-2008, 07:54 AM
reserved :D

klower
08-19-2008, 05:41 PM
hello theOzer, did you make some progres in this mod?
I'm not sure your connection with Jason or why he's not supporting this fantastic mod.. anyway I'm still waiting for any kind of info about my question.

theOZer
08-20-2008, 02:04 AM
reserved :D

oz girl,
(32 posts with (at least) 12 but a "reserved." Okay, TT's been reserved.)
I wish I could help your true need (https://vborg.vbsupport.ru/showthread.php?t=176911). I'm weak here, but, maybe get a portal with multiple forum licenses, cross accessed.

klower,
This intrinsic Thread Thumbnail mod/hack Jason Merchant wrote, that to this minute I don't understand why vB just doesn't just have this as part of 'the package,' only works on the first post of a thread.
2 (obvious) work arounds:
1) Merge 1st post with 2nd post.
2) Change (https://vborg.vbsupport.ru/showthread.php?t=178208) the 2nd post's date to before the 1st post's date.
I love this thread thumbnail mod/hack. I am going to learn how to code a mod that shows all photo attachments in a thread. I hope I can; I want to be a part of supporting open source code; php is The Boss open source code; vB uses it. End of chat.
~OZ

steveninstl
08-22-2008, 12:18 AM
I am getting this error (After I upgraded to VB 3.7.2 PL 2) I was using this plugin on PL 1 and did not have an issue..unti tonite.

Database error in vBulletin 3.7.2:
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.sticky, thread.prefixid, thread.taglist, thread.pollid, thread.open, thread.lastpost AS postdateline, thread.visible,
thread.hiddencount, thread.deletedcount, thread.attach, thread.postusername, thread.forumid,

replycount, IF(views<=replycount, replycount+1, views) AS views,
thread.lastpost, thread.lastposter, thread.lastpostid
,
deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason,
user.userid AS postuserid


, 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 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
(94);

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
Request Date : Thursday, August 21st 2008 @ 08:52:45 PM
Error Date : Thursday, August 21st 2008 @ 08:52:45 PM
Script : http://www.pimpmyberry.com/search.php?searchid=2243
Referrer : http://www.pimpmyberry.com/
IP Address : **************
Username : StevenInSTL
Classname : vB_Database
MySQL Version : 5.0.51a-community


I disabled your plugin and I do not get an error (of course I don't get the thumbs either!)

Can you fix this most awesome plugin?

Thanks!

Spank
08-22-2008, 01:14 AM
I've just installed on 3.7.2 PL2 and it's working great.

steveninstl
08-22-2008, 05:28 AM
Really... It worked for me too, until I went to NEW POSTS or TODAY's Posts...thats when I received the SQL errors.

Spank
08-22-2008, 05:40 AM
are you using the thumbnails in search results? If you go into into your plugin manager and disable the Thread Thumbnail Search - Search plugin, this should fix your error.

theOZer
08-22-2008, 12:02 PM
steveninstl,
To correct the search problem:
See Page 8 02 APR 2008 Post # 112
~OZ

steveninstl
08-22-2008, 12:11 PM
are you using the thumbnails in search results? If you go into into your plugin manager and disable the Thread Thumbnail Search - Search plugin, this should fix your error.

It fixes the error..but also turns off the thumbnail preview...I want that preview..LOL

steveninstl
08-22-2008, 12:20 PM
AWESOME! It works again! Thanks!

theOZer
08-22-2008, 02:44 PM
steveninstl,
I'm running vB3.7.2PL2. Thumbnails show in my forums, in Tag searches, and New Posts/regular Searches. To add thumbnails to Tag searches see page 12, post #169.
To get further confused (hopefully not) see page 13, posts #190, #193.
~OZ

Shmaba
08-22-2008, 06:44 PM
Sorry I dont know much about this coding stuff but what does this mean?
How do I do it?
Be sure to change the forum ids in the $thumbsforums array to the forum ids you want to enable thumbnails in.

theOZer
08-22-2008, 07:59 PM
Shmaba,
Click on a forum you want thumbnailed(, or look it up in AdminCP > Forums.)
In the browser window you should see something like this:
yourforum.com/forums/forumdisplay.php?f=36
IN THIS EXAMPLE, 36 is your forum's forum ID. This goes in the array.
In AdminCP edit your Thread Thumbnail plugin, adding forum 36 to the array:
example, $tt_thumbsforums = array(36);
Separate multiple forums you want thumbnailed with a comma (,):
example, $tt_thumbsforums = array(36, 37);

Shmaba
08-23-2008, 06:55 PM
Well I want the whole forum to do it so I put the number 1. Im not getting anything though.

Shmaba
08-23-2008, 07:02 PM
Ok, its working but I have alot of forums so do I have to enter every number forum? What if there is over 100? Is there a universal fix?

NeverBored
08-23-2008, 10:10 PM
If you want thumbnails to apply to all forums copy over the thread thumbnail plugin with this

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

if (!in_array($forumid, $tt_thumbsforums)) {
$tt_displaythumbs = true;
$hook_query_fields .= ", attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid ";
$hook_query_joins .= "LEFT JOIN " . TABLE_PREFIX . "attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png' OR attachment.extension = 'jpeg')) ";
$hook_query_where .= "GROUP BY thread.threadid ";
}

FYI, with this any forum you set in the array line will not use thumbnails

theOZer
08-24-2008, 05:44 AM
NeverBored, Nice approach.

The forum exclusion logic NeverBored wrote could also be incorporated into this plugin tweak of mine, making it at that point a fairly comprehensive as well as solid mod/hack that covers all the bases.

First & Foremost do this/test this in your testvb forum before actually doing this in your forrealzie vB forum.

This Thread Thumbnail tweak:


Keeps Jason's original 'your selected forum IDs' thread thumbnail logic in place, which shows NO THUMBNAIL AVAILABLE if no thread 1st post thumbnail.
Adds thread thumbnail display to all other forums. If there's no thread 1st post thumbnail then the vB default thread icon is displayed.
All img lines of code have been wrapped in href tags, not just the thumbnailed threads. [If this adds "Server Issues" then delete the href open/close a tag code wrap.]
Installation instructions:

1) Temp Disable, with eventual intent to delete, the Thread Thumbnail plugin.

2) Save the following code as an XML file, naming it whatever you want, e.g., thread-thumbnail-plugins-all-forums.xml. Then load this XML file through your Admin Control Panel > Plugins & Products > Download/Upload Plugins > Import Plugin Definitions XML File window, Import the .xml file you just created. This creates plugin 'Thread Thumbnails - All Forums'.

<?xml version="1.0" encoding="ISO-8859-1"?>
<plugins>
<plugin active="1" executionorder="5" product="vbulletin">
<title>Thread Thumbnail - All Forums</title>
<hookname>forumdisplay_query</hookname>
<phpcode><![CDATA[$tt_thumbsforums = array(2);
$tt_displaythumbs = false;
if (in_array($forumid, $tt_thumbsforums)) {
$tt_displaythumbs = true;
}
$tt_displaythumbs_all = true;
$hook_query_fields .= ", attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid ";
$hook_query_joins .= "LEFT JOIN " . TABLE_PREFIX . "attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png')) ";
$hook_query_where .= "GROUP BY thread.threadid ";
]]></phpcode>
</plugin>
</plugins>

Add the forum IDs you want thumbnailed, the ones where you definitely expect art post attachments, to the $tt_thumbsforums array.

Click on a forum you want thumbnailed(, or look it up in AdminCP > Forums & Moderators > Forum Manager).
In the browser window you should see something like this:
yourforum.com/forums/forumdisplay.php?f=36
IN THIS EXAMPLE, 36 is your forum's forum ID. This goes in the array.
In AdminCP edit your Thread Thumbnail plugin, adding forum 36 to the array:
example, $tt_thumbsforums = array(36);
Separate multiple forums you want thumbnailed with a comma (,):
example, $tt_thumbsforums = array(36, 37);

3) In all your threadbit templates add this code tweaking it to your liking.

[Note: This code includes IF statements that handle thumbnailing 1) Tag Searches (see vB.org, Thread Thumbnails, page 13, Post # 193), 2) New Posts & regular Searches (see vB.org, Thread Thumbnails, page 12, Post # 169), 3) forums (original mod logic). Delete the IF statement section(s) that do NOT apply to you.]

Find in threadbit template:

<if condition="$show['threadicons']">
<td class="alt2"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else />&nbsp;</if></td>
</if>

Replace with:

<!-- OMAC Thread Thumbnails -->
<!-- in this code: -->
<!-- All img lines of code have been wrapped in href tags, not just threads with thumbnails -->
<if condition="$show['threadicons']">
<td class="alt2" align="center" valign="middle">
<!-- Tag Search -->
<if condition="($tt_displaythumbs_tags)">
<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 />
<!-- and, don't forget to close all the If stmts with vB's original If stmt code that we've just bastardized. -->
<if condition="$show['threadicon']">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</a>
<else />
&nbsp;
</if>
</if>
<!-- end_of Tag Search -->
<else />
<!-- New Posts & regular Search -->
<if condition="($tt_displaythumbs_search)">
<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 />
<!-- and, don't forget to close all the If stmts with vB's original If stmt code that we've just bastardized. -->
<if condition="$show['threadicon']">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</a>
<else />
&nbsp;
</if>
</if>
<!-- end_of New Posts & regular Search -->
<else />
<!-- Thread Thumbnails in All Forums -->
<!-- Your forum IDs you added to the $tt_thumbsforums array will show thread 1st post thumbnail or the "NO THUMBNAIL AVAILABLE" icon -->
<if condition="($tt_displaythumbs)">
<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 />
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="$stylevar[imgdir_misc]/nothumb.jpg" alt="" border="0" />
</a>
</if>
<else />
<!-- All Your NON-selected forums will show thread 1st post thumbnail or the vB default thread post icon -->
<if condition="($tt_displaythumbs_all)">
<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 />
<!-- and, don't forget to close all the If stmts with vB's original If stmt code that we've just bastardized. -->
<if condition="$show['threadicon']">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</a>
<else />
&nbsp;
</if>
</if>
<!-- end_of Thread Thumbnails in All Forums -->
<else />
<!-- and, don't forget to close all the If stmts with vB's original If stmt code that we've just bastardized. -->
<if condition="$show['threadicon']">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</a>
<else />
&nbsp;
</if>
</if>
</if>
</if>
</if>
</td>
</if>
<!-- end of OMAC Thread Thumbnails -->


Once you get this to work then go ahead and delete the original Thread Thumbnail plugin -OR- just keeping it disabled works too.

~OZ

Shmaba
08-25-2008, 12:01 AM
OK for some reason the thumbnails dont show up when your viewing as a guest? How do we change it so its viewable for everyone?

Shmaba
08-25-2008, 12:54 PM
Anyone else have a fix for this?

theOZer
08-25-2008, 03:05 PM
OK for some reason the thumbnails dont show up when your viewing as a guest? How do we change it so its viewable for everyone?

Guests (Unregistered/Not Logged in)
Under: Forum Viewing Permission
Parameter: Can Download Attachments must be set to YES.

covertsem
08-28-2008, 01:59 AM
Would love to see this for 3.7 and would donate $5 to make it happen. PM me to claim your $

NeverBored
08-28-2008, 02:31 AM
It's works for 3.7

steveninstl
08-28-2008, 10:57 AM
OK...I'm back...

I upgraded (I'm starting to hate upgrades) to VB 3.7.3 and I get this new SQL..


Database error in vBulletin 3.7.3:

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.sticky, thread.prefixid, thread.taglist, thread.pollid, thread.open, thread.lastpost AS postdateline, thread.visible,
thread.hiddencount, thread.deletedcount, thread.attach, thread.postusername, thread.forumid,

replycount, IF(views<=replycount, replycount+1, views) AS views,
thread.lastpost, thread.lastposter, thread.lastpostid
,
deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason,
user.userid AS postuserid


, 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 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
GROUP BY thread.threadid;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY thread.threadid' at line 24
Error Number : 1064
Request Date : Thursday, August 28th 2008 @ 07:41:56 AM
Error Date : Thursday, August 28th 2008 @ 07:41:56 AM
Script : http://www.pimpmyberry.com/search.php?searchid=2966
Referrer :
IP Address : 1234567890
Username : StevenInSTL
Classname : vB_Database
MySQL Version : 5.0.51a-community




I did all the fixes to the search.php, and I still get the error...

Any idea?

theOZer
08-28-2008, 03:14 PM
If you have the 'Thread Thumbnail - Search' plugin turned ON - Did you change, add the TT code to, the vB3.7.3 search.php file? (see Post # 112 on Page 8)
If you have the 'Thread Thumbnail - Tag Search' plugin turned ON - Did you change, add the TT code to, the vB3.7.3 tags.php file? (see Post # 169 on page 12)
In my testvb instance I successfully upgraded to vB3.7.3, after adding the TT code to both search.php and tags.php, and both plugins work for me.

jacobsen1
08-28-2008, 06:20 PM
does this work with hotlinked images? ie [img]?

I've seen something working here:
http://www.inspiring-photography.com/forum/forumdisplay.php?f=7

and they seem to be linked images, not attachements... Any idea what mod that is if it's not this one?

Thanks

NeverBored
08-28-2008, 06:57 PM
does this work with hotlinked images? ie [img]?

I've seen something working here:
http://www.inspiring-photography.com/forum/forumdisplay.php?f=7

and they seem to be linked images, not attachements... Any idea what mod that is if it's not this one?

Thanks

This mod doesn't work with hotlinked images. You should contact them and ask them to post in this thread how they're doing that.

steveninstl
08-28-2008, 08:03 PM
I dont think this mod has anything to do with the error I am getting...thanks!

Diniska
09-03-2008, 08:36 PM
I have A Problem.

I have install this Hack. And replace the ID.

Now i can see the image "no Thumbnail avaliable" but how can i replatze this image with a picture in a thread?

what musst i do?

theOZer
09-05-2008, 02:01 PM
Diniska,
This plugin will ONLY display a thumbnail for the FIRST post of a thread, and, ONLY an image posted as an attachment, using Manage Attachments, will show as a thumbnail picture. Posts with Image INSERTs and LINKs won't show as thumbnails in the post nor as thumbnails in this plugin. I hope this helps answer your question.
~OZ

Shmaba
09-05-2008, 07:46 PM
Ok after deleting every mod one by one because I was getting a search error link can be found below
https://vborg.vbsupport.ru/showthread.php?t=189322

I deleted this Mod last and guess what everything worked! Now I reinstalled every mod but this one and my search is still working. What is causing this?

theOZer
09-05-2008, 09:09 PM
Shmaba,
If you have the 'Thread Thumbnail - Search' plugin turned on then you HAVE to modify search.php, adding the TT code, or New Posts and/or regular searches will bomb with database errors. End of chat here.

See Post # 228 this page which references other posts that no one seems to read that could possibly have the answer to your question hidden away somewhere in them.

~OZ

Shmaba
09-05-2008, 10:35 PM
How do you turn if off?

Shmaba
09-06-2008, 01:30 PM
If you want thumbnails to apply to all forums copy over the thread thumbnail plugin with this

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

if (!in_array($forumid, $tt_thumbsforums)) {
$tt_displaythumbs = true;
$hook_query_fields .= ", attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid ";
$hook_query_joins .= "LEFT JOIN " . TABLE_PREFIX . "attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png' OR attachment.extension = 'jpeg')) ";
$hook_query_where .= "GROUP BY thread.threadid ";
}

FYI, with this any forum you set in the array line will not use thumbnails

Ok so say I have alot of forums that I want to use but then about 6 I dont want to have appear what coding can you create for that? Thanks!

Shmaba
09-06-2008, 06:19 PM
anyone anyone? Bueller? Anyone.

theOZer
09-06-2008, 06:44 PM
How do you turn if off?

Go to the Plugin Manager screen (AdminCP > Plugins & Products > Plugin Manager):
For the ‘Thread Thumbnail – Search’ plugin:
Disable (uncheck the Active box)
OR
Delete the ‘Thread Thumbnail – Search’ plugin (REQUIRES REINSTALL IF YOU EVENTUALLY DECIDE TO USE THIS PLUGIN!!)
Then, do a Save Active Status.

NeverBored
09-06-2008, 07:09 PM
Ok so say I have alot of forums that I want to use but then about 6 I dont want to have appear what coding can you create for that? Thanks!Put the forum ids of the forums you don't want in the array.

So for example if you want to exclude forum 3 and 5, it'd look like this

$tt_thumbsforums = array(3,5);

luxotic
09-22-2008, 01:59 PM
Hello everyone, I have the pluggin installed however it is only showing up only in one thread but not the others. I have permission for guest and registered usered to allow view, downloading, and uploading of attachements but still no luck.


http://www.hiphopcars.com/forums/hip-hop-models-sexy-video-vixens/
but not at
http://www.hiphopcars.com/forums/40-inch-rims-wild-cars-themed-rides/

I am using the code below to select all forums however the original version gave me the same issue of a thumbnail showing up only once if at all.


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

if (!in_array($forumid, $tt_thumbsforums)) {
$tt_displaythumbs = true;
$hook_query_fields .= ", attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid ";
$hook_query_joins .= "LEFT JOIN " . TABLE_PREFIX . "attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png' OR attachment.extension = 'jpeg')) ";
$hook_query_where .= "GROUP BY thread.threadid ";
}"


Any suggestions are appreciated

theOZer
09-22-2008, 06:44 PM
This plugin will ONLY display a thumbnail for the FIRST post of a thread, and, ONLY an image posted as an attachment, using Manage Attachments, will show as a thumbnail picture. Posts with Image INSERTs and LINKs won't show as thumbnails in the post nor as thumbnails in this plugin. I hope this helps answer your question.
~OZ
P.S. NeverBored has a work around that might work for you. See page 9, posts 125 and 128.

luxotic
09-22-2008, 11:14 PM
Okay I was over looking the fact that this mod works for only the FIRST post of the thread. I was assuming that the mod searched or skipped post until it found the first attachment to use as a thumbnail.

I read somewhere that you were working on editing/tweaking the mod over a weekend so it would at least search in the FIRST and Second post for and attachment. Did you have any luck with that? I really want every post to have a thumbnail without me have to be the first one to create a topic and attach an image for use as a thumbnail.

Thanks a million theOzer!

theOZer
09-23-2008, 03:23 PM
luxotic,
I have yet to 'crack' how to show all thumbnails in a thread and/or display the 1st thumbnail found in a thread, be it in the first post or in any subsequent post in the thread.
Thanks for the kudos. I really mean that. This is an important mod that any and all Art forums just MUST have. I still, to this minute, do NOT understand why vB has NOT incorporated this hack into the mainstream vB code. I mean, WtF, it wouldn't be all that complicated to do for the vB coders to write and install.
~OZ

luxotic
09-24-2008, 01:43 AM
Your absolutely right, it should be apart of the package. I will keep my eyes on this thread and maybe something will eventually happen. Until then I will work with it as is. Take care!

theOZer
09-24-2008, 04:02 PM
luxotic,
In case you missed it, I did crack how to display/show thread thumbnails in Tag Searches. See page 12, post # 169.
I'll PM you if I ever figure out how to show all thumbnails/1st thumbnail in a thread.
~OZ

trigatch4
10-01-2008, 05:27 PM
Something is MISSING.

In many cases, I'm guessing the thread started will be attaching MANY images. Why not allow the user to select WHICH of the attachments is used for the thumbnail with a RADIO BUTTON on the MANAGE ATTACHMENTS screen?

I would install this in 11 seconds if this feature was included. vBadvanced dynamics has this and I think its incredibly useful.

Any way we can incorporate this, PLEAAAAASE?

NeverBored
10-07-2008, 05:10 AM
I contacted the forum that is using a custom mod that displays the first hotlinked image as a thumbnail in forumdisplay (http://www.inspiring-photography.com/forum/forumdisplay.php?f=7) and he provided me with this link, http://icant.co.uk/articles/phpthumbnails/

I don't know what to make of it, but maybe it would help someone solve this issue for all of us with this mod. I didn't press the guy to share his own code...

theOZer
10-09-2008, 06:09 PM
Once again we've dodged the bullet and thread thumbnails still works in another vB upgrade, this one to vB3.8.0 Beta 1.
In vB3.8.0 Beta 1 you will need to add the thread thumbnail code to search.php and/or tags.php if you have either/both plugins active.
Here are both the vB3.8.0 Beta 1 search.php and tags.php updated to work with the plugins 'Thread Thumbnails - Search' regular Search and 'Thread Thumbnails - Tag Search' Tags search (see page 12, post #169).

ricardoNJ
10-27-2008, 05:35 PM
I can't do that! :(
I changed " $thumbsforums array" (2,3,4,5,6 ) but i cant see any change!
I have vB 3.7.3