vb.org Archive

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

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

Quote:

Originally Posted by Trana (Post 1356595)
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

Quote:

Originally Posted by winkm (Post 1494689)
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

Quote:

Originally Posted by NeverBored (Post 1494753)
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

Quote:

Originally Posted by winkm (Post 1496035)
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

Quote:

Originally Posted by mahsazn (Post 1498508)
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?

PHP Code:

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

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

PHP Code:

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

Immediately BELOW add this:

PHP Code:

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

Quote:

Originally Posted by Defkalion (Post 1514834)
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

Quote:

Originally Posted by NeverBored (Post 1496162)
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

Quote:

Originally Posted by mwink (Post 1518600)
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

Quote:

Originally Posted by nando99 (Post 1526276)
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

Quote:

Originally Posted by NeverBored (Post 1526339)
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

Quote:

Originally Posted by NeverBored (Post 1518712)
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

Quote:

Originally Posted by mwink (Post 1528251)
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

Quote:

Originally Posted by Defkalion (Post 1516843)
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

Quote:

Originally Posted by NeverBored (Post 1496162)
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

Quote:

Originally Posted by Trana (Post 1551327)
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

Quote:

Originally Posted by Defkalion (Post 1543566)
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


All times are GMT. The time now is 03:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01593 seconds
  • Memory Usage 1,840KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete