Advertisement:

Author Topic: Thumbnail on Topic Listing  (Read 180898 times)

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,516
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #220 on: November 24, 2009, 09:43:08 PM »
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

Offline SilverKnight

  • Jr. Member
  • **
  • Posts: 238
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #221 on: December 10, 2009, 05:06:56 AM »
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)

Offline TDNY

  • Jr. Member
  • **
  • Posts: 330
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #222 on: December 10, 2009, 01:22:56 PM »
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

Offline pequepsp

  • Semi-Newbie
  • *
  • Posts: 32
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #223 on: December 13, 2009, 05:52:40 AM »
Hello,

how can i put your mod here?
http://i50.tinypic.com/2q0nlsw.png

thanks you

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,516
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #224 on: December 13, 2009, 11:35:27 AM »
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

Offline diontoradan

  • Semi-Newbie
  • *
  • Posts: 73
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #225 on: December 15, 2009, 10:54:56 AM »
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

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,516
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #226 on: December 15, 2009, 03:25:37 PM »
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

Offline blokey

  • Jr. Member
  • **
  • Posts: 143
  • Gender: Male
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #227 on: December 15, 2009, 05:35:51 PM »
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



« Last Edit: December 15, 2009, 06:11:06 PM by 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

Offline blokey

  • Jr. Member
  • **
  • Posts: 143
  • Gender: Male
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #228 on: December 17, 2009, 06:14:59 AM »
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

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,516
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #229 on: December 17, 2009, 09:17:45 AM »
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

Offline blokey

  • Jr. Member
  • **
  • Posts: 143
  • Gender: Male
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #230 on: December 17, 2009, 11:38:25 AM »
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.



« Last Edit: December 17, 2009, 12:06:27 PM by 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

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,516
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #231 on: December 17, 2009, 08:45:36 PM »
Glad you got it!
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

Offline ScopeXL

  • Jr. Member
  • **
  • Posts: 130
  • Gender: Male
  • In a box on an island...with broadband.
    • BnetWeb
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #232 on: December 22, 2009, 06:21:47 PM »
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!

Offline mikeymx5

  • Semi-Newbie
  • *
  • Posts: 63
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #233 on: January 03, 2010, 01:53:14 PM »
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
Code: [Select]
<th width="9%" colspan="2" class="catbg3 headerpadding">&nbsp;</th>replace with
Code: [Select]
<th width="9%" colspan="', $context['show_thumbnails'] ? 3 : 2, '" class="catbg3 headerpadding">&nbsp;</th>
Find
Code: [Select]
<td class="', $alternate_class, ' icon2">
<img src="', $topic['first_post']['icon_url'], '" alt="" />
</td>
Replace with
Code: [Select]
<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

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,516
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #234 on: January 03, 2010, 01:59:24 PM »
What does it do?
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

Offline mikeymx5

  • Semi-Newbie
  • *
  • Posts: 63
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #235 on: January 03, 2010, 09:53:54 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.

Offline blokey

  • Jr. Member
  • **
  • Posts: 143
  • Gender: Male
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #236 on: January 06, 2010, 10:47:40 AM »
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

Offline Smoki1988

  • Semi-Newbie
  • *
  • Posts: 16
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #237 on: January 06, 2010, 12:12:01 PM »
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??

Offline blokey

  • Jr. Member
  • **
  • Posts: 143
  • Gender: Male
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #238 on: January 06, 2010, 12:18:55 PM »
bet if you create a new topic it works
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

Offline Smoki1988

  • Semi-Newbie
  • *
  • Posts: 16
Re: Thumbnail on Topic Listing (SMF 2 RC2 Support Added!)
« Reply #239 on: January 06, 2010, 12:22:43 PM »
Nop i tried to create a new topic but still it doesn't show still..