vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Thread Thumbnail (https://vborg.vbsupport.ru/showthread.php?t=98651)

jasonmerchant 10-18-2005 08:17 PM

Quote:

Originally Posted by trancetopia
Interesting and useful mod but i've found a couple of problems.

I had the modify the template change to this:

HTML Code:

<if condition="$show['threadicons']">
        <td class="alt2" align="center" valign="middle">
        <if condition="$show['threadicon']">
                        <if condition="$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 />
                                        <img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
                        </if>
        </if>
</td>
</if>

Notice i've moved where the <td class="alt2" align="center" valign="middle"> to after the first condition instead of the second. Having the cell opened after the second condition badly messed up the table structure of the threadbit. I changed the close tag </td> to align with this change also. This happened for me anyway.

The second problem is that when this is activated for a forum, no threads show at all. Not sure why but suspect the query, not had chance to look any further as i'm in work.

Yes thats right, I hadn't really tested it on the default style last night. I've updated the themplate changes and moved the
Code:

<if condition="$show['threadicon']">
inside the else statement to prevent threads without a thread icon from not showing the thumbnail. Is that what you were referring to by "no threads show at all"? or is the entire thread info missing?

trancetopia 10-18-2005 10:23 PM

All the threads are missing from the forum completely. The forum I tested this on had 18 threads in it and one with an attachment just to test things but after I specified the forum id in the plugin, this forum didn't show any of the 18 threads.

jasonmerchant 10-18-2005 11:28 PM

hmm, I just installed it on a fresh default style and it worked. Have you tried it on the default style? I'm guessing this is a template problem, try reinstalling the template or post it here and I'll check it out.

bpn 10-19-2005 12:59 AM

Quote:

Originally Posted by Floris
All threads listed show up with the nothumb image, none of them with attachment shows the thumbnail in the threadlist.

I have the same problem, and I just downloaded and installed your hack, so
I guess I have the latest update.

bpn 10-19-2005 02:06 AM

Quote:

Originally Posted by bpn
I have the same problem, and I just downloaded and installed your hack, so
I guess I have the latest update.

I just found out that if I edit a thread and set it to show 'no icon', I do not get the "no thumb" pic. Now there's just an empty cell.

nokturno 10-19-2005 03:00 AM

thx!!!

bpn 10-19-2005 03:01 AM

For what it's worth I think the problem is that it dont is getting the attachmentid.
I did an output on this before the IF statements and got nothing on $thread['attachmentid'] but I did get the threadID on this $thread[threadid] placed on the same spot outside the IF statements

jasonmerchant 10-19-2005 03:06 AM

Quote:

Originally Posted by bpn
I just found out that if I edit a thread and set it to show 'no icon', I do not get the "no thumb" pic. Now there's just an empty cell.

that is odd, have you tried making the template changes on a fresh default style? I'm almost certain it is a template error, where your template code is signifigantly different(my forum's style requires a slightly different code) or installation error. Please get back to me on your results.

bpn 10-19-2005 03:09 AM

Quote:

Originally Posted by jasonmerchant
that is odd, have you tried making the template changes on a fresh default style? I'm almost certain it is a template error, where your template code is signifigantly different(my forum's style requires a slightly different code) or installation error. Please get back to me on your results.

I tried it on the default style and the one I'm currently using.
The deafult style is almost untouched, but I will try to install a fresh version now to see if it helps :)

jasonmerchant 10-19-2005 03:10 AM

Quote:

Originally Posted by bpn
For what it's worth I think the problem is that it dont is getting the attachmentid.
I did an output on this before the IF statements and got nothing on $thread['attachmentid'] but I did get the threadID on this $thread[threadid] placed on the same spot outside the IF statements

sorry, missed the second page... it looks as if you don't have the latest plugin code.


All times are GMT. The time now is 11:27 AM.

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.01131 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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