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)

theOZer 05-30-2010 04:34 PM

Thank you, Null Parameter. This is a priceless mod that greatly enhances any and all forums that have attachments tied to threads. I'm running vB4.0.3 and the mod install went effortlessly, smoothly, and IT WORKS! I set this mod up to display ALL forums, First Attachment, and, from the get go, it started displaying the thumbnails.
Thank you, thank you, thank you, Null Parameter.

RedFoxy 05-30-2010 07:52 PM

1 Attachment(s)
I fixed the install file to go with lastes vb 4.x

Globe 06-02-2010 07:42 PM

hmm there are still the forum icons is there anyway to remove that?

Globe 06-03-2010 08:28 PM

whe i post a thread with a image it doesnt show so i have to edit the post and after that (create new post>create>edit) it show up why?

Dark_Wizard 06-07-2010 01:55 PM

There is a problem with your preg_match selecting "First Image In Post", some pic's don't show and this is the properties of the blank images:

http://www.imagebanana.com/img/54s2q80t/blah.png[/IMG][/URL]%20[URL=

This is based on how the poster adds the image.

Aceman 06-08-2010 11:38 AM

The addon is working fine on my site. However, I really need a way to turn OFF Threadicons when the thumbnails are used. It would reallly make the layout of my site look alot nicer. I updated my site to the latest version today and all well.. however that option isn't available.

Null mentioned a "Replace threadicon" which would be ideal!!

Thanks

Dark_Wizard 06-08-2010 11:59 AM

Quote:

Originally Posted by Aceman (Post 2050400)
The addon is working fine on my site. However, I really need a way to turn OFF Threadicons when the thumbnails are used. It would reallly make the layout of my site look alot nicer. I updated my site to the latest version today and all well.. however that option isn't available.

Null mentioned a "Replace threadicon" which would be ideal!!

Thanks

Working fine? How are you using this, url or first post? Just went to your site and I see no images in "3D Gallery" just a box with the x in it.....turning off thread icons is simple and I will post a quick way to do it very shortly.

Dark_Wizard 06-08-2010 12:18 PM

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.

Aceman 06-08-2010 01:26 PM

1 Attachment(s)
You must be registered to see the images.

Dark_Wizard 06-08-2010 01:28 PM

Quote:

Originally Posted by Aceman (Post 2050446)
You must be registered to see the images.

Then this hack needs more work, nothing should show if the user isn't registered....

Aceman 06-08-2010 01:46 PM

You know.. I think the icon I need to hide is the thread status icon.. the one that shows if it's a new or old thread. I'm to figure out if it's possible to remove that.

Additionally, I may try and add a conditional that if you are unregistered, then threadthumbnails don't display.

Winter Sonata 06-08-2010 02:34 PM

will this take effect to the older threads ? or only will apply to the new ones ?

Dark_Wizard 06-08-2010 02:54 PM

Quote:

Originally Posted by Winter Sonata (Post 2050485)
will this take effect to the older threads ? or only will apply to the new ones ?

Can you be more specific? Are you asking about the threadicons I added above?

Dark_Wizard 06-08-2010 02:55 PM

Quote:

Originally Posted by Aceman (Post 2050463)
You know.. I think the icon I need to hide is the thread status icon.. the one that shows if it's a new or old thread. I'm to figure out if it's possible to remove that.

Additionally, I may try and add a conditional that if you are unregistered, then threadthumbnails don't display.

I'll post working code as soon as my damn server is backup... :mad:

Dark_Wizard 06-08-2010 07:38 PM

Quote:

Originally Posted by Aceman (Post 2050463)
You know.. I think the icon I need to hide is the thread status icon.. the one that shows if it's a new or old thread. I'm to figure out if it's possible to remove that.

Additionally, I may try and add a conditional that if you are unregistered, then threadthumbnails don't display.

Here you go...in threadbit do the following:

find:
Code:

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

change to this:
Code:

<vb:if condition="!$thread['thumbnail']"><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>


james shadle 06-08-2010 09:23 PM

Hello,
I'm new at this.
How do I run the script to repopulate the thumbnails after switching to "first image in post"?
Thanks!!!

Dark_Wizard 06-08-2010 11:25 PM

There is a script that is posted to do this for you otherwise you need to edit every first post to get it to work....

james shadle 06-09-2010 01:37 AM

Thanks.
I saw the script. I just don't know how to run it.
James

martin1 06-11-2010 03:09 PM

After upgrade from vbulletin 4.0.2 to 4.0.3 pl1 , hack showed only thumbnails, on thread edit there were no edit link to the picture line, so I unninstalled it and import it again, but now nothing happening!

On 4.0.2 I used 3.0.0. version that worked fine.

Daniel_HBK 06-13-2010 04:22 PM

WOW great hack !! , Installed + 5 Stars + nominated MOTM

can you make it for vbadvanced news module ?

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

lionelng 07-01-2010 08:44 AM

Does it work for 4.04? Because after I installed, I can't see any thumbnails at all. The template edits didn't work for me too because I can't find those lines I'm supposed to locate in the default template. Any help would be deeply appreciated. Thanks!

rolfw1 07-01-2010 04:05 PM

I have it running in 4.0.4, works well, there is a script you need to run which is mentioned on a previous page, which will update all of the existing threads.

lionelng 07-02-2010 05:20 AM

Quote:

Originally Posted by rolfw1 (Post 2062840)
I have it running in 4.0.4, works well, there is a script you need to run which is mentioned on a previous page, which will update all of the existing threads.

I've executed the script but i'm still seeing no thumbnails... wondering what's wrong here.

Daniel_HBK 07-06-2010 04:16 AM

hi , i made edits to use it in recent threads module in vBadvanced but images not shown , i thing i must make a hook , any help ?

http://img85.imageshack.us/img85/8479/ddddddddm.jpg

ZomgStuff 07-09-2010 02:40 AM

Awesome mod, this is perfect!

Is there a way to change which attachment is the first one? I'd like to re-arrange some attachments from old threads to have the thumbnail be the one I want.

dr.tawy 07-10-2010 10:03 AM

Quote:

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



same here

there is a problem

even newly created threads have to be edited

i am working on 4.0.3


Thanks

Xtrigit 07-15-2010 04:59 PM

Could anyone update it for 4.0.5 please?

Thanks

123_y_321 07-27-2010 03:35 AM

Great mod.
Is there anyway you can add 1 more options which is combine all 3 "thumbnail source"?
My members enter images in all 3 ways. This make me headache; I cant decide which option should I use.

ps: if you need vbb 4.0.5 to test, lets me know.

GONUMBER6 07-29-2010 12:39 PM

Great mod, is exactly what I needed for our board "Bulldogs in need of rescue or adoption". Now there is a bulldog picture in front of each thread, and we can start doing more in this area and save some bulldogs! Thank you for this mod!!! We only added one today, but now we can focus more on this. Check it out if you want. The install was a piece of cake!

http://www.englishbulldognews.com/fo...ogs-for-Rescue!

cavebox 08-01-2010 12:15 PM

Unfortunately i also have to edit the post first before the thumbs are showing


All times are GMT. The time now is 10:59 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.01704 seconds
  • Memory Usage 1,838KB
  • 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
  • (11)bbcode_code_printable
  • (12)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