Advertisement:

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

Offline iosys

  • Semi-Newbie
  • *
  • Posts: 20
    • AAF
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #160 on: September 03, 2009, 11:29:58 PM »
Yeah there is two different areas I think.  I played around with it for a while but got annoyed.  I want to have the first two columns removed.  I could get the header columns removed but when I tried to do the same with the content columns it screwed up the formatting.  I had other things to do so left it for now.  Would love to know if someone has got this to work
AAF [nofollow]

Offline fmsllc

  • Semi-Newbie
  • *
  • Posts: 18
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #161 on: September 09, 2009, 04:48:54 PM »
i attached a pic of what i did.

in that same messageindextemplate file....I used this

Code: [Select]
<td width="9%" colspan="', $context['show_thumbnails'] ? 3 : 2, '" class="catbg3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thread Preview</td>
if you do not have a thread with an attachment on that page though, it comes out looking weird.

Offline diontoradan

  • Semi-Newbie
  • *
  • Posts: 73
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #162 on: September 17, 2009, 12:58:23 AM »
This mod is very nice. Im using it with SMF 2RC. Something i wanna ask :

1. Can i select particular board to display this mod? i dont want to display it in all boards, just the events page.
2. How can i resize the thumbnail? it would be great if we can select the size. i got the picture in 100% in all of the topics...

there's a good php thumbnailer, if youre interested in using it : http://phpthumb.sourceforge.net/

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,391
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #163 on: September 17, 2009, 01:05:20 AM »
1. Not at this time
2. This is determined by the attachment settings it uses those sizes as its base.
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 the-punisher

  • Jr. Member
  • **
  • Posts: 122
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #164 on: September 17, 2009, 05:48:04 PM »
Thanks Dude Very Very Much  :P
i Just Love SMF!

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,391
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #165 on: September 17, 2009, 06:04:42 PM »
Glad you enjoy the mod
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 Support Added!)
« Reply #166 on: September 25, 2009, 08:40:04 PM »
I like this option, but there needs to be a option to "enforce" it on a board, so people cannot make a thread without a image, so maybe make a seperate box which they have to upload the image to, it's more direct than attachments.

Offline fmsllc

  • Semi-Newbie
  • *
  • Posts: 18
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #167 on: October 08, 2009, 03:16:22 PM »
Default thumbnail where no attachment exists

Ok firstly thanks for this great mod!  I searched around for an extra feature which I couldnt find so I made a small change myself.  What I wanted was for those posts that dont have any attached images to show a default thumbnail in the message index.  Let me just say Im in no way a PHP programmer so this is hardcoded but at least it works!  The defaultthumbnail.jpg I manually sized as 100x100.

In MessageIndex.template.php

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

add after
Code: [Select]
// MOD to show default thumnail image
else
{
echo '<img src="http://www.site.com/defaultthumbnail.jpg">';
$imagefound = true;
}
// END MOD to show default thumbnail image

just want to say thanks for this add on. It makes the forum look a lot cleaner now.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,391
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #168 on: October 13, 2009, 07:39:50 PM »
Looks like a good feature may add an interface for it in the future.
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 javierjp

  • Semi-Newbie
  • *
  • Posts: 81
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #169 on: October 16, 2009, 07:20:13 PM »
Im trying to have a thumb in listing and the original large image inside the topic.



example 1: "Resize images when showing under posts" is OFF in admin panel.

Result: When I attach a image to a topic it show the original large image in listing and inside the topic.



example 2: "Resize images when showing under posts" is ON in admin panel.

Result: When I attach a image to a topic it show the thumb in listing. But inside the topic it show a clickeable thumb to enlarge to the original image size.



All i want its a thumb in listing and the larger image inside the topic without have to click, its that possible?

excuse my english.
grettings and thanks in advance.



Offline samurai-lupin

  • Full Member
  • ***
  • Posts: 522
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #170 on: October 20, 2009, 05:25:57 PM »
Can this mod also be adjusted in order to work with the recent replies / postings pages?

Offline JulesW

  • Jr. Member
  • **
  • Posts: 132
  • Gender: Male
  • We should have shotguns for this kind of deal!
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #171 on: October 25, 2009, 04:09:37 PM »
For my custom theme, I tried editing the messageindex.template.php myself but I get a syntax error.

Could you be so kind to take a look @ the file and see if you could fix it for me?

TIA!

Edit: Success at last! found it myself. Great mod!!
« Last Edit: October 26, 2009, 03:17:34 PM by JulesW »
And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17

Offline NeoXII

  • Semi-Newbie
  • *
  • Posts: 52
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #172 on: October 26, 2009, 07:31:52 AM »
Hi,
great mod but on SMF 2.0 RC1.2 in MessageIndex.php I can't find this code:

LEFT JOIN {db_prefix}members AS meml ON (meml.id_member = ml.id_member)
LEFT JOIN {db_prefix}members AS memf ON (memf.id_member = mf.id_member)

But this:

LEFT JOIN {db_prefix}members AS meml ON (meml.id_member = ml.id_member)
LEFT JOIN {db_prefix}members AS mav ON (mav.id_member = ml.id_member)

If I try to replace with this, I have blank page:

LEFT JOIN {db_prefix}attachments AS big ON (big.id_msg = mf.id_msg AND big.attachment_type = 0)
LEFT JOIN {db_prefix}attachments AS thn ON (thn.id_attach = big.id_thumb)
LEFT JOIN {db_prefix}members AS meml ON (meml.id_member = ml.id_member)
LEFT JOIN {db_prefix}members AS memf ON (memf.id_member = mf.id_member)

Thank You very much!! :)




Offline NeoXII

  • Semi-Newbie
  • *
  • Posts: 52
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #173 on: October 27, 2009, 05:36:30 PM »
For my custom theme, I tried editing the messageindex.template.php myself but I get a syntax error.

Could you be so kind to take a look @ the file and see if you could fix it for me?

TIA!

Edit: Success at last! found it myself. Great mod!!

I think that is my same problem....
How have you fix it?

Thank You!

Offline JulesW

  • Jr. Member
  • **
  • Posts: 132
  • Gender: Male
  • We should have shotguns for this kind of deal!
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #174 on: October 27, 2009, 05:40:28 PM »
I found the error in the code, there was a piece of the code that wasn't in the right spot...

If you attach your messageindex.template.php I can take a look if I can fix it for ya...

Edit: I must add that I use smf 1.1.10 and not 2.0, so I'm not sure I can help!
« Last Edit: October 27, 2009, 05:51:23 PM by JulesW »
And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17

Offline NeoXII

  • Semi-Newbie
  • *
  • Posts: 52
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #175 on: October 27, 2009, 05:57:06 PM »
OK!
Say me what do you have change in the code please...

Thanks....  :)

Offline JulesW

  • Jr. Member
  • **
  • Posts: 132
  • Gender: Male
  • We should have shotguns for this kind of deal!
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #176 on: October 27, 2009, 06:17:19 PM »
I've made all the necessary edits in this file. Was this the file from your server or did you attach a clean copy of the file. In this file there were no edits at all and for the mod to work, the  MessageIndex.php file also needs to be editted.

new file is attached. Hope it works for you!
And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17

Offline NeoXII

  • Semi-Newbie
  • *
  • Posts: 52
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #177 on: October 28, 2009, 08:16:19 AM »
Ok I attack also the messageindex.php..
In this file I can't find this code:

LEFT JOIN {db_prefix}members AS meml ON (meml.id_member = ml.id_member)
LEFT JOIN {db_prefix}members AS memf ON (memf.id_member = mf.id_member)

But this:

LEFT JOIN {db_prefix}members AS meml ON (meml.id_member = ml.id_member)
LEFT JOIN {db_prefix}members AS mav ON (mav.id_member = ml.id_member)

Thanks Very Very Much!




Offline JulesW

  • Jr. Member
  • **
  • Posts: 132
  • Gender: Male
  • We should have shotguns for this kind of deal!
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #178 on: October 28, 2009, 03:17:16 PM »
OK, try this one and let me know if it works. I do not use the smf 2.0 RC2 version, so I cannot test it for you.

If it does not work, I can't help you any further, and you should find someone else or the creator of the mod. The
Code: [Select]
LEFT JOIN {db_prefix}members AS meml ON (meml.id_member = ml.id_member)
LEFT JOIN {db_prefix}members AS memf ON (memf.id_member = mf.id_member)
is part of the SMF 2 rc1 code, and apparently that has changed in the RC2 version.

modified file is attached.
And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17

Offline NeoXII

  • Semi-Newbie
  • *
  • Posts: 52
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #179 on: October 28, 2009, 06:57:51 PM »
Thanks You Julesw for your Help  ;)

In 2.0 RC1.2 this mod don't work also I use Julesw's file :(

Bye!
« Last Edit: October 28, 2009, 07:01:33 PM by NeoXII »