• Welcome to Simple Machines Community Forum. Please login or sign up.
January 27, 2022, 04:32:10 AM

News:

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


Thumbnail on Topic Listing

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

Previous topic - Next topic

vdubbia

does this need an image physically uploaded as an attachment?  Or if someone posts an image using photobucket or imageshack, will a thumb also be created?

madman71

yep! physically attached is the only way it works.

I only wished it could detect free hosting site links like Imagevenue, photobucket, etc.

I know Vbulliten has a mod that does that.

HR

December 01, 2008, 03:37:51 PM #83 Last Edit: December 01, 2008, 06:43:37 PM by HR
I posted in vb's inspirational thread to see if it could be altered to reflect avatar height/width rather than attachment but for the time being in messages index Ive simply altered:


'width' => $row['thnWidth']/3,
'height' => $row['thnHeight']/3


so it scales it to 1/3 of the attachment size on display. Makes it a lil more conforming... I did get it humming but the posts where zips are loaded before the images are still not showing in topics.. trying to trace down the code for that aspect and going cross-eyed

I can explain this as simply as possible.. If I do it & implement I guarantee it.
If I do it and you implement it its a crap shoot.

nzmacro

 ;) HR, a HUGE thanks and now I'm on the right track. Wonderful and can't thank you enough  ;D

Danny.

nzmacro

I would love to get this to scale correctly for both horizontal and vertical images. If we take a scale for a photograph at 640 x 480 in the horizontal, to get a thumb at 64 x 48 is easy and it shows correctly, but when we go to a vertical shot it seems to squash it into an almost square and the scale is way off for a vertical thumb of 48 x 64. To find a fix for this would be perfect.

Similar to what VB has for the SMF gallery (yes bought and paid for  :) ) would be ideal if that could be adapted for this mod.

Anyway, thanks for your time HR, I'm looking deeper into it now.

Danny.   

HR

December 02, 2008, 07:28:47 AM #86 Last Edit: December 02, 2008, 08:31:49 AM by HR
Quote from: nzmacro on December 02, 2008, 05:00:56 AM
;) HR, a HUGE thanks and now I'm on the right track. Wonderful and can't thank you enough  ;D

Danny.
Welcome, now if we just had the thing look at all the attachments and show only the first jpg it'd be gold OR.. a lil plugin like the buddy mod where you can move an attachment up or down the list..

So so.. this is me rambling but I get the ID.ATTACH reference and what not (for the most part) perhaps it should be tweaked (if I knew how I would) so that its looking in height & width for anything that is not null.. zips and the like record a value of '0' in the database so perhaps if it hits the first attachment and its height or width in the database (attachments table) in not '0' then stop and display the thing else go on to the next and compare.

I know.. this might seem pointless to you but I will most likely look back at this later and figure a way to bandaid it and make it work

I can explain this as simply as possible.. If I do it & implement I guarantee it.
If I do it and you implement it its a crap shoot.

kassie

I have a new forum installed only weeks old. With a few other mods installed. This mod is working in the SMF default theme but not in a custom theme I'm using.
I tried to manually code my themed MessageIndex.template.php but the codes I need to find just aren't in there.
If I attach the MessageIndex.template.php here could someone fix it for me please?

vbgamer45

Might but if it is too different then it may be difficiult
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

kassie

January 18, 2009, 04:52:49 PM #89 Last Edit: January 22, 2009, 09:28:01 PM by kassie
Quote from: vbgamer45 on January 18, 2009, 03:21:02 PM
Might but if it is too different then it may be difficiult

I have attached it. ..... thank you for giving it a go :)


EDIT: never mind I got it to work YAY!

aw06

Few question ..

Can the thumbnail size be adjusted?
Does it Show a thumbnail if and external image is linked and not attached?
Do you get a admin panel?
can you specify which boards to use this mod?
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

vbgamer45

Quote from: aw06 on January 22, 2009, 03:19:21 PM
Few question ..

Can the thumbnail size be adjusted?
Does it Show a thumbnail if and external image is linked and not attached?
Do you get a admin panel?
can you specify which boards to use this mod?

None of the above are built in.
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

aw06

ok, so how can i change thumbnail size .. and also how do i make it see external images.
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

madman71

It's not coded to grab external images unfortunately :(

Im hoping one day it will

aw06

Quote from: madman71 on January 22, 2009, 10:47:55 PM
It's not coded to grab external images unfortunately :(

Im hoping one day it will

bummer .. all my images are external .. so this mod wont work ...

Any other mods that may get this done ??
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

madman71

no, there's no mod for SMF that will do this.  There is one for VB forums though.

vbgamer45

Quote from: aw06 on January 22, 2009, 11:09:07 PM
Quote from: madman71 on January 22, 2009, 10:47:55 PM
It's not coded to grab external images unfortunately :(

Im hoping one day it will

bummer .. all my images are external .. so this mod wont work ...

Any other mods that may get this done ??
How would that work for external images?
Since they have no thumbnails plus the mod would have to scan the post for valid image links
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

aw06

can it not display a pic of the first image found in a img tag ...  :-\
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

vbgamer45

Could but the image could really be really really big
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

madman71

Most of the free image hosts that use the IMG tag are for displaying thumbnails.

such as this link:
[URL=http://img127.imagevenue.com/img.php?image=86608_P1010360_5Large6_122_806lo.JPG][IMG]http://img127.imagevenue.com/loc806/th_86608_P1010360_5Large6_122_806lo.JPG[/IMG][/URL]

The first part of the link leads to the full size image, the second part will display the thumb

Advertisement: