• Welcome to Simple Machines Community Forum. Please login or sign up.
November 29, 2021, 06:13:28 AM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


Thumbnail on Topic Listing

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

Previous topic - Next topic

mikeymx5

Is it possible to make the first image show up in the calendar is it is linked to a post as an event? O:)

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

sinnedobi

Hello,
I have install this mod but it don't work on my site, i have a buy and sell site and using smf. I want to make some cahnges to my site and if you can help me tell me how much is the damage,  and my e-mail sinnedobi@yahoo.it thank you

Dennis

sinnedobi

Hello

I need a modification for my site ******blerje.info, if you can t see the link search on google Gazeta ******blerje all i need is a modification to display thumbnail on board where topics are listed, Can any one help me, my e-mail is sinnedobi@yahoo.it and i can pay something for this mod.

Thank you

Ps I have try all modifications on modifications section but they don t workon my site

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

carajo

SMF 2.0 RC3

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

Quote from: Constantin Os on March 29, 2010, 06:59:00 AM
is there possibility to fix thumbnail size, as example 80*80? may be change some thing in code ?

It will output the same thumbnail size as you the attachment thumbnails that are shown below a post.

Best thing is to set a fixed width and leave the height alone. this will look best in your design.

You can change the thumbnail size under #  Administration Center »  Attachments and Avatars » Attachment Settings

madman71

March 29, 2010, 11:06:56 AM #248 Last Edit: March 29, 2010, 02:30:39 PM by madman71
Can anyone give me some assistance?

Im running SMF 2.0 RC3 with a custom theme (BlackRain2)

This theme has it's own Messageindex.Template  file.  I can not locate the code in it to replace.

Can i have a second set of eyes look at mine (attached) to verify that im not going blind?

thanks


flashsteam

I need some help with this mod,

In trying to find (from comment #6) in the script

QuoteFor that you'll need to go here /index.php?action=manageattachments and change the
Maximum width of thumbnails:     
Maximum height of thumbnails:

That should do it.

Where exactly do I look for this. Im trying to control the size of the images in the topic list, to 50 pixels height and 60 width. Ive made this type of change before, but I just cant seem to locate /index.php?action=manageattachments  My forum version is 1.1.11


iosys

To change the maximum size of posted images:
As an Administrator » Configuration » Features and Options » Basic Features

To change the maximum size of attached images:
As an Administrator » Forum » Attachments and Avatars Manager » Attachment Settings

I remember I had to have a tradeoff with the attached images mod but cant remember which of these I had to set.  Anyway try them and you should be right.

The online manual for smf is here:
http://docs.simplemachines.org/index.php?board=7.0
AAF [nofollow]

flashsteam

Hi iosys,

Thanks for the reply. Ya, last night I was all over the ACP. Before I go any further I should mention that I had to install a mod a while back, in order to use inline attachments. The link to my topic in 1.x support is here-

http://www.simplemachines.org/community/index.php?topic=364410.0

After the mod was installed, there was a problem with the images mirroring under the post's. So inturn I had to change the script a little. Actually the change was very minor. It was changing this- if ($attachment['is_image'])  to this- if ($attachment['is_image'] && 1 != 1) pretty simple, I used ftp to do it.

However I do not believe this is causing my problem. But it could be related.

I must keep the box checked "Display image attachments as pictures under post: "  in "Attachment Settings" in order to see the inline attachments at all, or they will disppear without that box checked.

Here's whats acting weird, in "attachment settings" if I check the box for "Resize images when showing under posts: " Then if I click on those images with that box checked, in the topic list, both the inline attachments and the images will be set to what I have set in "Attachment Settings" under max height and width of thumbnails. Then once I veiw both images (from topic list and inline, then uncheck that box [resize under posts]) the topic list images will stay at my thumbnail setting, and the inline attachments will be full size as they should be. Im other words, everything looks how I would like, after I do that. like I said, weird.

For what is worth I would still like to find the script that-

QuoteFor that you'll need to go here /index.php?action=manageattachments and change the
Maximum width of thumbnails:     
Maximum height of thumbnails:

That should do it.

I just need to be able to find it with ftp, which directory its in, etc.

Best

Jeremy

 

Snogmarr

April 20, 2010, 09:07:59 PM #253 Last Edit: April 21, 2010, 11:22:47 AM by xnathansxdadx
Can somebody alter my php file attached it causes errors in my forum because i have different code and when I edit it; it will not work.

Never mind I have done it!

Snogmarr

April 20, 2010, 09:22:57 PM #254 Last Edit: April 21, 2010, 07:48:56 AM by xnathansxdadx
Quote from: iosys on April 20, 2010, 06:03:54 PM
To change the maximum size of posted images:
As an Administrator » Configuration » Features and Options » Basic Features

To change the maximum size of attached images:
As an Administrator » Forum » Attachments and Avatars Manager » Attachment Settings

I remember I had to have a tradeoff with the attached images mod but cant remember which of these I had to set.  Anyway try them and you should be right.

The online manual for smf is here:
http://docs.simplemachines.org/index.php?board=7.0





this  is fine but if you wish to enlarge the size of the posted image then the image in the topic enlarges as well

the best way is to open the message index template php in themes your theme  and find this

echo '<a href="', $topic['first_post']['href'], '"><img src="', $image['url'], '" width="', $image['width'], '" height="', $image['height'], '" alt="" /></a>';



and simply replace to the size you wish,, this way it stays fixed

so replace with this

echo '<a href="', $topic['first_post']['href'], '"><img src="', $image['url'], '" width=20"', $image['width'], '" height=20"', $image['height'], '" alt="" /></a>';




flashsteam

April 20, 2010, 10:23:37 PM #255 Last Edit: April 20, 2010, 10:35:14 PM by flashsteam
Ahhh, not to sure about that.

Im looking for

Quote/index.php?action=manageattachments and change the
Maximum width of thumbnails:     
Maximum height of thumbnails:

Also I am using a custom theme, never the less, im looking in the "default" theme for this code, a simple confermation that its there would be nice. I plan on going thru the whole file/script tommorrow, looking for it. After that im not sure where to look.

In doing what I mentioned above, I am getting the result I want, so I may just do nothing, I checked my forum on a remote/different computer and the forum looks good/ sofar the change seems to stick.. So, I do have a work-around at this time. Just being nitpicky I guess. I had a guy make my custom theme as a gift, for my forum, he has both Admin and ftp access, nice fellow, can't thank him enough. He's also been helping me with a gif animation control slider, and possibly a flash animation fer my main site.

Best

Jeremy

iosys

Yeah Id leave it alone for two reasons.  1. If it aint broke dont try to fix it and 2. I have done a number of different smf sites now in 1.1.x and 2.0 and Ive come to the conclusion that custom coding isnt the way to go unless youre fully committed to the extra time and headaches.  The first site I did I custom coded everything but then any mod I wanted to install after that came up with errors cause the code had changed lines.  Anyway if you can achieve the result without touching the back end thats ideal.  :)  happy days
AAF [nofollow]

Snogmarr

April 21, 2010, 04:24:07 AM #257 Last Edit: April 21, 2010, 11:27:10 AM by xnathansxdadx
QuoteIm looking for

index.php?action=manageattachments and change the
Maximum width of thumbnails:     
Maximum height of thumbnails:

Also I am using a custom theme, never the less, im looking in the "default" theme for this code,

This is not a piece of code and in relation to this mod it exists nowhere apart from inside somebody's head.

this is a link into the admin panel.
Ie admin manage attachments change size.

If you really want to find this then look in manageattachments.php
heaven knows what you are going to do when you find it,,,, have fun!

ajrl

I agree with a comment above.  This is a good mod, but it would be so much better if you could choose which boards get the thumbnails.

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

Advertisement: