News:

Wondering if this will always be free?  See why free is better.

Main Menu

Thumbnail on Topic Listing

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

Previous topic - Next topic

Chaos Dragon

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.

berko

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?

SilverKnight

Great mod, but there should be a feature which forces users to upload a picture, and maybe a way to moderate out bad pictures.

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


TDNY

#145
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

vbgamer45

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

qtime


TDNY

#148
Quote from: vbgamer45 on July 28, 2009, 10:29:15 AM
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

TDNY

Quote from: vbgamer45 on July 28, 2009, 10:29:15 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

qtime

Quote from: TDNY on July 29, 2009, 08:33:21 AM
Quote from: vbgamer45 on July 28, 2009, 10:29:15 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.

TDNY

#151
Quote from: qtime on July 29, 2009, 10:27:11 AM
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
$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$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

Harvester

I set my attachment size in ?action=manageattachments  but the thumbnails on the topic list are still huge...

what could be doing this?


Harvester

Quote from: improv on May 15, 2009, 07:06:55 AM
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

iosys

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


add after
// 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]

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

Tanks

Thanks for updating this to 2.0 ;)

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

fmsllc

#157
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.

iosys

#158
Quote from: fmsllc 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.

When you figure it out post how you did it because thats something Id use too
AAF [nofollow]

vbgamer45

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

Advertisement: