vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Display Enhancements - Thread Thumbnails (https://vborg.vbsupport.ru/showthread.php?t=237404)

alexm 06-15-2010 06:20 AM

I really like this mod and have been using it for a while, but I was wondering if it was possible to display either attachment or, if no attachment, then an [img]

e.g. if attachments are present then it uses the first one of them, but if no attachments are present it uses the first [img] if present?

That would be a really handy addition!

Alex

martin1 06-21-2010 08:47 PM

Well now really official -- version 3.1 of thread thumbnails don't works -- it's tested on clear vbulletin 4.0.3.

I used clean installation since it don't know why it don't works in my forum since I upgrade it.

Those are the problems (I just installed the hack from acp as it says in readme):

a) once you define link in thread thumbnail , row is not visible anymore on edit post action!
b) when you set link to thumbnail, nothing is showed
c) all what is visible is the default thumbnail on each thread ( if it's set in admin panel)

rolfw1 06-24-2010 07:11 PM

Quote:

Originally Posted by Dark_Wizard (Post 2050418)
To turn off Thread Icons do the following in threadbit template:

find:
Code:

<vb:if condition="$show['threadicon']">
change to this:
Code:

<vb:if condition="$show['threadicon'] && !$thread['thumbnail']">
Tested and working fine.

That doesn't work for me, still showing the thread icons, any ideas why?

Example

http://www.thamesvalleybirds.co.uk/bird-photos-general/

Dark_Wizard 06-26-2010 10:32 PM

Quote:

Originally Posted by rolfw1 (Post 2058982)
That doesn't work for me, still showing the thread icons, any ideas why?

Example

http://www.thamesvalleybirds.co.uk/bird-photos-general/

Sorry for the delay, been busy with my own mods. I will look at it and get back to you.

alexm 06-27-2010 10:39 AM

Quote:

Originally Posted by rolfw1 (Post 2058982)
That doesn't work for me, still showing the thread icons, any ideas why?

Example

http://www.thamesvalleybirds.co.uk/bird-photos-general/

Do you mean the actual thread status icons?

On my forum I have it so that if there is a thumbnailurl set then it shows the thumbnail, otherwise it shows the standard thread status icon.

See here:

http://www.thestalkingdirectory.co.u...21-Classifieds


To do this, edit threadbit template and change:
Code:

                        <!--  status icon block -->
                        <a class="threadstatus" rel="vB::AJAX" title="
                        <vb:if condition="$show['threadcount']">
                                {vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}
                        </vb:if>
                        "></a>

to:
Code:

                        <!--  status icon block -->
                        <vb:if condition="!$thread['thumbnailurl']">
                                <a class="threadstatus" rel="vB::AJAX" title="
                                <vb:if condition="$show['threadcount']">
                                        {vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}
                                </vb:if>
                                "></a>
                        </vb:if>



Alex

Daniel_HBK 06-27-2010 08:23 PM

i need to edit thread to appear :( this is after installization

rolfw1 06-28-2010 04:32 PM

Thanks Dark Wizard, I appreciate people have their own forums to run.:)
Thanks Alex, tried that, but thumnails then disappeared, what I have at the moment is:

Code:

<!--  status icon block -->
                        <a class="threadstatus" rel="vB::AJAX"
                                <vb:if condition="$show['threadcount']">title="{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}"</vb:if>></a>


alexm 06-28-2010 06:20 PM

1 Attachment(s)
Quote:

Originally Posted by rolfw1 (Post 2061197)
Thanks Alex, tried that, but thumnails then disappeared

Looking at your source it should work... basically you need to put the tags around the part of the template that you want to disappear if a thumbnail is specified.

<vb:if condition="!$thread['thumbnailurl']">
----bit that makes the status icon show----
</vb:if>

Deleting the <a class="threadstatus"..... part on your site using firebug works, so it should work in theory...

e.g. here I have tested by removing the top two status icons, the third is highlighting the part of the source responsible for displaying the status icon...

rolfw1 06-28-2010 07:10 PM

Nope, if I add the
Code:

<vb:if condition="!$thread['thumbnailurl']">
before and the
Code:

</vb:if>
after the block, I keep the thread icons, but lose the thumbnails.

I'm obviously doing something wrong, but have to say that I'd sort of got used to the old style code and this new code is confusing.

Daniel_HBK 06-29-2010 02:09 PM

Quote:

Originally Posted by Daniel_HBK (Post 2060670)
i need to edit thread to appear :( this is after installization

please help


All times are GMT. The time now is 02:31 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.01262 seconds
  • Memory Usage 1,749KB
  • 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
  • (7)bbcode_code_printable
  • (5)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