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)

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.


All times are GMT. The time now is 07:58 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.02512 seconds
  • Memory Usage 1,743KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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