News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Thumbnail on Topic Listing

Started by SMFHacks.com Team, April 04, 2008, 01:05:48 PM

Previous topic - Next topic

vbgamer45

Probably a couple months away before adding more features.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

SilverKnight

Quote from: vbgamer45 on November 24, 2009, 09:43:08 PM
Probably a couple months away before adding more features.

Aww... I was kinda hoping you would do it by at least January :P

Features id like to see:
-Option to enforce uploading image (from thread, not attachment)
-Option to place a template over the image (watermarks)

TDNY

I have smf default core vers. 1.1.11, Here is a link to a problem I had when I changed permissions. When I made it so guests can't view attachments, there were problems logging in on any board that had thumbnails on the topic. I removed the mod and do not have the problem anymore. Here is the thread.
http://www.simplemachines.org/community/index.php?topic=351366.0
TDNY


vbgamer45

You would have to modify the MessageIndex.template.php and change the order of the columns
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

diontoradan

this mod is what i need...

i just want it to have some function like selecting particular boards and the ability to set thumbnail size in topic listing.

please update thanks

vbgamer45

Size is controlled by your attachment and avatars settings
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

blokey

#227
i am having a similar prob put 20 by 20 in attachments settings yet still 100 by 100

just checked my server and my gif  has become a binary file as attached is this right



SMF Version 2.0 RC2     Server Info Apache version 2.0.63 PHP version 5.2.9 MySQL version 5.0.81-community Architecture x86_64 Operating system Linux

blokey

Quote from: vbgamer45 on December 15, 2009, 03:25:37 PM
Size is controlled by your attachment and avatars settings


ok I will ask the question again,,,,,,,,,,,


whatever size attachment i upload it does not resize it, is it this mod or something else,,,,

If it is this then please explain how I overcome these issues.


If not then where do I go?
SMF Version 2.0 RC2     Server Info Apache version 2.0.63 PHP version 5.2.9 MySQL version 5.0.81-community Architecture x86_64 Operating system Linux

vbgamer45

That's the only place for settings. This mod does not add any settings to control sizes. You might have to edit the source of MessageIndex.template or MessageIndex.php to get the size needed
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

blokey

#230
Thanks

Foubd This

'width' => $row['thn_width'],            
'height' => $row['thn_height']

Do not understand syntax THn


Akhhhh Think I have found it

Sorry to be a pain but just trying to sort it,,, I know you are all busy, but hey it teaches me????

                     echo '<a href="', $topic['first_post']['href'], '"><img src="', $image['url'], '" width=20"', $image['width'], '" height=20"', $image['height'], '" alt="" /></a>';



Ha haaaaaaa found it and done it thanks


Its in the message index template.



SMF Version 2.0 RC2     Server Info Apache version 2.0.63 PHP version 5.2.9 MySQL version 5.0.81-community Architecture x86_64 Operating system Linux

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

ScopeXL

Cool mod, thing to make it work better is selecting which boards to show a thumbnail and the others remain the same. Otherwise great mod!

mikeymx5

Any chance on adding the core into your code, I dont like doing manual editing of files and I have no intention of using the crappy curve theme.

its very easy to do.

in themes/core/MessageIndex.template.php

Find
<th width="9%" colspan="2" class="catbg3 headerpadding">&nbsp;</th>
replace with
<th width="9%" colspan="', $context['show_thumbnails'] ? 3 : 2, '" class="catbg3 headerpadding">&nbsp;</th>

Find
<td class="', $alternate_class, ' icon2">
<img src="', $topic['first_post']['icon_url'], '" alt="" />
</td>

Replace with
<td class="', $alternate_class, ' icon2">
<img src="', $topic['first_post']['icon_url'], '" alt="" />
</td>';
// Thumbnail Topic Mod
if ($context['show_thumbnails'])
{
echo '<td class="windowbg2" valign="middle" align="center">';

$imagefound = false;

foreach ($topic['image'] as $image)
{
if ($imagefound == true)
break;

if (isset($image['id']))
{

echo '<a href="', $topic['first_post']['href'], '"><img src="', $image['url'], '" width="', $image['width'], '" height="', $image['height'], '" alt="" /></a>';
$imagefound = true;
}
}

echo '</td>';
}

// End Thumbnail Topic Mod

echo '
</td>



Please add this to your install file
Thanks

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

mikeymx5

Quote from: vbgamer45 on January 03, 2010, 01:59:24 PM
What does it do?

This is just what needs to be replaced so that the CORE theme in RC2 will show previews just like the CURVE theme does.

blokey

Have just noticed something,,,,
When you create a new topic pictures work fine.
When it is an old topic before install of this mod and you add a pic it does not show?
SMF Version 2.0 RC2     Server Info Apache version 2.0.63 PHP version 5.2.9 MySQL version 5.0.81-community Architecture x86_64 Operating system Linux

Smoki1988

i installed the mod and went to a topic and added a attachment but it doesn't show in the forum that the topic exists..but is shows in the topic itself..any idea??

blokey

SMF Version 2.0 RC2     Server Info Apache version 2.0.63 PHP version 5.2.9 MySQL version 5.0.81-community Architecture x86_64 Operating system Linux

Smoki1988

Nop i tried to create a new topic but still it doesn't show still..

Advertisement: