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)

kyokushin4life 05-26-2007 11:48 PM

Hi there. Anyway to show it to guests as well? for some reason it's not showing for guests...

Thanks for this plugin :)

kyokushin4life 05-27-2007 12:59 AM

iv been playing with the code with usegroupid but no success so far... could someone help so that the thumbnails are shown to guests(not logged in) as well? thanks.

kyokushin4life 05-27-2007 07:08 AM

I got it!

A user "Dismounted" helped me out on this.

Find
Code:

<if condition="($tt_displaythumbs) AND ($bbuserinfo['field7'] <> 'Off' OR $show['guest'])">
and repalce with
Code:

<if condition="$tt_displaythumbs AND ($bbuserinfo['field7'] != 'Off' OR $show['guest'])">

kafi 05-27-2007 08:28 AM

there is one add-on that enable you to control showing thumbnail to guests, otherwise you can do it by allowing them to see attachments in admincp

Greek76 05-28-2007 07:23 PM

How do you resize the image to something smaller? The images come out huge. Where do I edit the settings.

Adam21 05-29-2007 05:10 PM

Quote:

Originally Posted by Greek76 (Post 1256396)
How do you resize the image to something smaller? The images come out huge. Where do I edit the settings.

You can add in the required sizes in here i supposed.:rolleyes:
Code:

            <img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" alt="" border="0" />

Whiteyez 07-07-2007 12:00 AM

Works great on vBulletin Version 3.6.7PL1

Trana 07-11-2007 04:43 AM

Quote:

Originally Posted by peterpigman (Post 1152178)
I just thought of something about that, i'll get back if it works.

Did anyone ever figure out how to display the thumbnails without turning on thumbnailing for the entire forum? I don't want photos attached to posts to be thumbnailed within the post itself.

Thanks!

casa 07-13-2007 04:47 AM

Quote:

Originally Posted by kyokushin4life (Post 1255386)
I got it!

A user "Dismounted" helped me out on this.

Find
Code:

<if condition="($tt_displaythumbs) AND ($bbuserinfo['field7'] <> 'Off' OR $show['guest'])">
and repalce with
Code:

<if condition="$tt_displaythumbs AND ($bbuserinfo['field7'] != 'Off' OR $show['guest'])">


hmm, doesnt work. this code would only be in the Threadbit IF someone had the radio button option in the userCP allowing users to turn off thumbnail viewing.


What I would like to see in this mod, and I cant imagine why this is so tough (though I am no coder, lol) is to simply allow these thumbnails next to the thread title to display to guests/non-registered. Go to my forum and you'll see how LAME it is without this:
http://www.fordmuscle.com/forums/tech-exchange/

xcingix 07-13-2007 08:57 PM

Quote:

Originally Posted by jasonmerchant (Post 807099)
Display the avatar of the thread instead of the attachment? I didn't know threads had avatars, I'll check it out.

Has anyone helped you yet?
I want to display the LAST poster's avatar instead of a status icon on forumhome, but noone seems to want to help me out here.
I figures this thread was close enough.

If ANYONE has any ideas of how I would achieve this PLEASE let me know. I really want to work thi sout.

NextLuxury 07-19-2007 02:54 AM

How do you get the IMG Tages to work? Instead of doing the attachment, its killing our space, and server. :(

kafi 07-31-2007 11:52 AM

Quote:

Originally Posted by NextLuxury (Post 1295293)
How do you get the IMG Tages to work? Instead of doing the attachment, its killing our space, and server. :(


I wish to know too

Baku 08-02-2007 01:43 PM

Quote:

Originally Posted by Greek76 (Post 1256396)
How do you resize the image to something smaller? The images come out huge. Where do I edit the settings.

The best way would be to apply the sizes in the template edits like so:

Code:

<if condition="$show['threadicons']">
        <td class="alt2">
                <if condition="$show['threadicon']">
                        <img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" width="80" height="80" border="0" />
                <else />
                        &nbsp;
                </if>
        </td>
</if>

and...

Code:

<if condition="$show['threadicons']">
        <td class="alt2" align="center" valign="middle">
                        <if condition="$tt_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" width="80" height="80" />
                                </a>
                            <else />
                                <img src="$stylevar[imgdir_misc]/nothumb.jpg" alt="" border="0" width="80" height="80" />
                            </if>
                        <else />
                                <if condition="$show['threadicon']">
                            <img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" width="80" height="80" />
                                </if>
                        </if>

Just edit the numeric values that are in red and replace them with a pixel size that suits your forum.

I've not tried this yet, so if someone does, and it doesn't work, let me know. ><

Stefano Virgill 08-15-2007 01:55 AM

excellent!

nnjj.net 08-15-2007 07:45 AM

is there any update for this product to 3.6.8?

theOZer 08-17-2007 04:10 PM

Just installed & set up in V3.6.8. Works great now that I know how to find my forum ids.

nnjj.net 08-17-2007 07:07 PM

your replay not clear, what the connection bettwen this hach and Forum IDs?!!!

baboo 08-18-2007 05:26 PM

I have a problem with this plugin...doesn't work with vBulletin Version 3.6.8

Aery 08-20-2007 07:46 AM

I dont read forumID in my adress bar, but using the number of "forumdisplay.php?f=21" (in this case is 21) and chance the value in this line (open the xlm file):

<phpcode><![CDATA[$tt_thumbsforums = array(1, 21);

everythings works fine

I have only 1 problem : How I can use this plug-in in more forumdisplay ?

Trana 08-21-2007 07:24 PM

Quote:

Originally Posted by peterpigman (Post 1152178)
I just thought of something about that, i'll get back if it works.

Can you please let us know if this is possible?

jasonmerchant 08-21-2007 07:57 PM

Trana:

You can edit this section in the postbit timeplate:

Code:

<if condition="$show['thumbnailattachment']">
        <fieldset class="fieldset">
                <legend>$vbphrase[attached_thumbnails]</legend>
                <div style="padding:$stylevar[formspacer]px">
                        $post[thumbnailattachments]
                </div>
        </fieldset>
</if>
               
<if condition="$show['imageattachment']">
        <fieldset class="fieldset">
                <legend>$vbphrase[attached_images]</legend>
                <div style="padding:$stylevar[formspacer]px">
                        $post[imageattachments]
                </div>
        </fieldset>
</if>



Aery:

You can edit the plugin through the control panel, there is no need to mess around in the xml file.

On the following line you place the forum ids of the forums that will have thumbnails. So if you want to enable thumbnails on forums 6, 11, and 25, the code would look like:

Code:

$tt_thumbsforums = array(6, 11, 25);

Aery 08-22-2007 01:35 PM

Thank you very much.
My dumb about editing XML file :)

theOZer 08-24-2007 02:57 PM

A direct question to jasonmerchant:
Why is OR $show['guest'] part of the if tag that checks for the user chosen thumbnails On or Off option?
(<if condition="($tt_displaythumbs) AND ($bbuserinfo['field5'] <> 'Off' OR $show['guest'])">)
Why is it "necessary" to also check $show['quest'] in the if tag? The issue is whether or not the thread option is On or Off, right(??).

Trana 08-30-2007 03:05 AM

Quote:

Originally Posted by jasonmerchant (Post 1322577)
Trana:

You can edit this section in the postbit timeplate:

Code:

<if condition="$show['thumbnailattachment']">
        <fieldset class="fieldset">
                <legend>$vbphrase[attached_thumbnails]</legend>
                <div style="padding:$stylevar[formspacer]px">
                        $post[thumbnailattachments]
                </div>
        </fieldset>
</if>
               
<if condition="$show['imageattachment']">
        <fieldset class="fieldset">
                <legend>$vbphrase[attached_images]</legend>
                <div style="padding:$stylevar[formspacer]px">
                        $post[imageattachments]
                </div>
        </fieldset>
</if>


Sorry, I'm not following what you want me to do. Can you explain a little further?

nnjj.net 09-18-2007 04:27 PM

is there any update for 3.6.8?

jasonmerchant 09-18-2007 05:03 PM

theOzer:

The $show['guest'] in the if statement turns thumbnails on for all guests. Guests don't have profile options, so they can not choose.

nnjj.net:

This plugin works in 3.6.8, maybe a moderator can move this plugin to the 3.6.8 forum?

Trana:

I believe you said that you don't want to display thumbnails in posts with this plugin, correct?

All you need to do is replace the content of the first if statement with the second one. ie:

Replace:
Code:

<legend>$vbphrase[attached_thumbnails]</legend>
                <div style="padding:$stylevar[formspacer]px">
                        $post[thumbnailattachments]
                </div>

With:
Code:

<legend>$vbphrase[attached_images]</legend>
                <div style="padding:$stylevar[formspacer]px">
                        $post[imageattachments]
                </div>


casa 09-21-2007 03:19 AM

PLEASE - does anyone know how to modify this line to make it show the LAST attachment:
<img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" alt="" border="0" />

jasonmerchant 09-21-2007 04:24 AM

Casa:

I have not tested it yet, but you should be able to just change the MIN sql function to MAX. ie:

Replace the following in the plugin:

Code:

$hook_query_fields .= ", attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid ";

With:
Code:

$hook_query_fields .= ", attachment.thumbnail_filesize AS thumbsize , MAX(attachment.attachmentid) AS attachmentid ";

casa 09-21-2007 04:46 AM

Quote:

Originally Posted by jasonmerchant (Post 1343576)
Casa:

I have not tested it yet, but you should be able to just change the MIN sql function to MAX. ie:
[/CODE]


Jason
You rock, that worked.
PM me if you are interested in other coding work.

thanks

nnjj.net 09-21-2007 07:30 PM

Be sure to change the forum ids in the $thumbsforums array to the forum ids you want to enable thumbnails in

where???

jasonmerchant 09-21-2007 07:57 PM

nnjj.net:

On the first line:

Code:

$tt_thumbsforums = array(2);
Change 2 to the forum id. So if you want to enable thumbnails in forums 3, 7, and 12, it would look like:

Code:

$tt_thumbsforums = array(3, 7, 12);
A new version of the plugin is available. You can find the new thread here.

Trana 11-14-2007 10:21 PM

Quote:

Originally Posted by jasonmerchant (Post 1341842)
Trana:

I believe you said that you don't want to display thumbnails in posts with this plugin, correct?

All you need to do is replace the content of the first if statement with the second one. ie:

Replace:
Code:

<legend>$vbphrase[attached_thumbnails]</legend>
                <div style="padding:$stylevar[formspacer]px">
                        $post[thumbnailattachments]
                </div>

With:
Code:

<legend>$vbphrase[attached_images]</legend>
                <div style="padding:$stylevar[formspacer]px">
                        $post[imageattachments]
                </div>


WHat I meant was I don't want to enable thumbnails globally as it causes ALL image attachments to show as thumbnails.

Ideally, I would like to enable this hack while also maintaining the ability to display the entire full size image in posts.

Please let me know if you have any ideas.

hieronymous 12-07-2007 10:04 AM

man, i could HUG you

er, i WON'T, of course. but this is JUST what i've been searching for

siliconfinance 01-29-2008 01:27 AM

How would one disable thumbnails from showing in search results?

tspore 04-29-2008 07:08 AM

I was wondering - can we update this to work with 3.7?
Code:

<if condition="$show['threadicons']">
                <td class="alt2"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else />&nbsp;</if></td>
        </if>

A bit different than the original code, but I don't want to screw anything up.

Greek76 05-04-2008 02:13 PM

Im curious aswell. Will it work with 3.7?

bijju 01-04-2009 08:26 AM

i just installed for my forum 3.7.4.


All times are GMT. The time now is 04:53 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.01630 seconds
  • Memory Usage 1,836KB
  • 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
  • (19)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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