Advertisement:

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

Offline Chaos Dragon

  • Jr. Member
  • **
  • Posts: 177
  • Gender: Male
Re: Thumbnail on Topic Listing
« Reply #140 on: June 25, 2009, 04:14:07 PM »
I am using the default theme. It will be the only theme I will be using.
"Never stop exploring new ideas, concepts and techniques, but never forget the old ones, they just may come in handy someday!"
"Don't give up! Otherwise you do not win and nothing gets accomplished!"
Einstein "Insanity is doing the same thing over and over again, and expecting different results..."
Do Not PM me for Support. They will be Ignored. Use the Threads the have been provided.

Offline berko

  • Newbie
  • *
  • Posts: 1
Re: Thumbnail on Topic Listing
« Reply #141 on: July 07, 2009, 08:08:58 PM »
Hello
I have a couple of questions regarding this mode:

Is it possible to use as thumbnail something other then attached image?
Because I will want to use forum for commenting images in site-s gallery, and I will want to make it something like this:
Topic listing:
hxxp:forums.cgsociety.org/forumdisplay.php?f=121 [nonactive]

Single topic:
hxxp:forums.cgsociety.org/showthread.php?f=121&t=771681 [nonactive]

When user will upload image to his gallery, automatically will be created new topic for that image, and in first post will be scaled down image (witch will be also link for full preview) and description. I don't want to put image as attachment, becouse that way I will have to upload original image twice on my site. I want to use already made thumbnail (by site-s gallery) and scale down version of image in post (not as attachment).
So basically, I just need to know if is possible to change witch image will be shown as topic thumbnail.

And second question; I'm using custom theme on forum... is this a problem?

Offline SilverKnight

  • Jr. Member
  • **
  • Posts: 238
Re: Thumbnail on Topic Listing
« Reply #142 on: July 12, 2009, 09:27:39 AM »
Great mod, but there should be a feature which forces users to upload a picture, and maybe a way to moderate out bad pictures.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,232
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #143 on: July 19, 2009, 12:05:05 PM »
Updated!

Added support for SMF 2.0
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 Garry1953

  • Jr. Member
  • **
  • Posts: 118
    • Artists Online Australia Art Forum
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #144 on: July 19, 2009, 03:25:54 PM »
Updated!

Added support for SMF 2.0

Thanks  :D

Offline TDNY

  • Jr. Member
  • **
  • Posts: 330
Thumbnail on topic problem
« Reply #145 on: July 28, 2009, 09:38:51 AM »
Hi,
Thanks for looking I hope you can help.

  I have your mod 1.1.1 and the default theme with vers. 1.1.10 and the problem is when the sticky post has an image.
  If the sticky post has an image the color on the right in the "last post" section is gray. you can see that example on my site here:
http://treasuredigging.com/welcome/
The element that is affected is titlebg, it looks like a windowbg2 element is created on sticky posts with an image.

  If the sticky topic has no image all is well as seen on my site here:
http://treasuredigging.com/site-feedback/

TDNY
« Last Edit: July 29, 2009, 08:34:04 AM by TDNY »

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,232
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #146 on: July 28, 2009, 10:29:15 AM »
I don't think you posted in the right topic.
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 qtime

  • Full Member
  • ***
  • Posts: 501
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #147 on: July 28, 2009, 11:07:46 AM »
Updated!

Added support for SMF 2.0
thanks, nice work!!!

Offline TDNY

  • Jr. Member
  • **
  • Posts: 330
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #148 on: July 28, 2009, 12:40:37 PM »
I don't think you posted in the right topic.

I'm pretty sure I posted in the right spot, your mod works fine except when the topic is a sticky with an image. Did you look at the 2 links I posted? If I need to post somewhere else I'm all ears. I appreciate the help 8)
TDNY
« Last Edit: July 29, 2009, 08:34:23 AM by TDNY »

Offline TDNY

  • Jr. Member
  • **
  • Posts: 330
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #149 on: July 29, 2009, 08:33:21 AM »
I don't think you posted in the right topic.

You're right, this has been fixed.

  It was a problem with another mod that we installed manually and wasn't added to the list.

Sorry for the trouble but it did look like a problem when an image was posted in a topic and it was stickied.

TDNY

Offline qtime

  • Full Member
  • ***
  • Posts: 501
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #150 on: July 29, 2009, 10:27:11 AM »
I don't think you posted in the right topic.

You're right, this has been fixed.

  It was a problem with another mod that we installed manually and wasn't added to the list.

Sorry for the trouble but it did look like a problem when an image was posted in a topic and it was stickied.

TDNY
can you tell me how you fixed it, because I have the same problem.

Offline TDNY

  • Jr. Member
  • **
  • Posts: 330
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #151 on: July 29, 2009, 01:45:49 PM »
can you tell me how you fixed it, because I have the same problem.

Sure,
Open up your themes Messageindex.template.php and find this
Code: [Select]
$stickybar = false;
$normalbar = false;
foreach($context['topics'] as $topic)
{
if($topic['is_sticky'] && !$stickybar)
{
echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '"><b>Important Topics</b></td></tr>';
$stickybar = true;
}
else if(!$topic['is_sticky'] && $stickybar && !$normalbar)
{
echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '"><b>Normal Topics</b></td></tr>';
$normalbar = true;
}


Replace it with this
Code: [Select]
$stickybar = false;
$normalbar = false;
foreach($context['topics'] as $topic)
{
if($topic['is_sticky'] && !$stickybar)
{
echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '8' : '9', '"><b>Important Topics</b></td></tr>';
$stickybar = true;
}
else if(!$topic['is_sticky'] && $stickybar && !$normalbar)
{
echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '8' : '9', '"><b>Normal Topics</b></td></tr>';
$normalbar = true;
}

Good Luck,
TDNY
« Last Edit: July 29, 2009, 05:54:16 PM by TDNY »

Offline Harvester

  • Full Member
  • ***
  • Posts: 692
  • Gender: Male
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #152 on: August 08, 2009, 11:00:29 PM »
I set my attachment size in ?action=manageattachments  but the thumbnails on the topic list are still huge...

what could be doing this?


Offline Harvester

  • Full Member
  • ***
  • Posts: 692
  • Gender: Male
Re: Thumbnail on Topic Listing
« Reply #153 on: August 08, 2009, 11:03:11 PM »
Hmm yes somehow they are,
But if I change the size of the image it needs to be previewed first until the height and width are increased or decreased.

Pretty odd..

I am experiencing same issue... using SMF 1.1.10

Offline iosys

  • Semi-Newbie
  • *
  • Posts: 20
    • AAF
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #154 on: August 13, 2009, 10:16:17 AM »
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
AAF [nofollow]

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,232
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #155 on: August 13, 2009, 11:02:50 AM »
Nice maybe I can add it to next release
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 Tanks

  • Full Member
  • ***
  • Posts: 583
  • Gender: Male
  • Danish Dude
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #156 on: August 14, 2009, 11:27:01 AM »
Thanks for updating this to 2.0 ;)

I might use it on a new board i have planned.

Offline fmsllc

  • Semi-Newbie
  • *
  • Posts: 18
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #157 on: August 30, 2009, 03:18:32 PM »
thanks for that code iosys.

my question is rather simple, but unfortunately, I haven't been able to find a solution. I'd like to give the column a title, where as it is currently blank. On the same top bar as menu, started by, etc... I'd like to put "Thread Preview" on the descriptive column at the top of the thumbnails.

**never mind. I found the code in the messageindextemplate file. I'm just having trouble positioning the text above that column.
« Last Edit: August 30, 2009, 03:24:28 PM by fmsllc »

Offline iosys

  • Semi-Newbie
  • *
  • Posts: 20
    • AAF
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #158 on: August 30, 2009, 10:18:18 PM »
thanks for that code iosys.

my question is rather simple, but unfortunately, I haven't been able to find a solution. I'd like to give the column a title, where as it is currently blank. On the same top bar as menu, started by, etc... I'd like to put "Thread Preview" on the descriptive column at the top of the thumbnails.

**never mind. I found the code in the messageindextemplate file. I'm just having trouble positioning the text above that column.

When you figure it out post how you did it because thats something Id use too
« Last Edit: September 03, 2009, 11:33:54 PM by iosys »
AAF [nofollow]

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,232
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2 Support Added!)
« Reply #159 on: August 30, 2009, 10:21:10 PM »
It would probably be in an empty <td> tag in the main header of the messageindex.template.php
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