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)

Trana 09-25-2007 05:37 AM

Quote:

Originally Posted by jasonmerchant (Post 1346565)
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

Quote:

Originally Posted by jasonmerchant (Post 1346565)

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 ;

Quote:

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

Quote:

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

Quote:

Originally Posted by SQL
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

Quote:

Originally Posted by theFAILURE (Post 1350262)
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?


All times are GMT. The time now is 12:49 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.01341 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)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