SimpleDesk

Community => General Discussion => Topic started by: Gruffen on April 08, 2010, 06:05:14 PM

Title: [Feedback] Attachments
Post by: Gruffen on April 08, 2010, 06:05:14 PM
One of the things we realised a little bit late in the 1.0 development cycle is that attachments, while functional, "isn't very pretty". I've even heard one person call them "downright ugly".

Personally I don't see the problem, it's functional, lean and more than in keeping with SD's style and structure, but I'd like to open the question up.

If you don't like it, what don't you like? How would you have it instead?

Do you like it as it is?


All comments are welcome and we'll do what we can about enhancing it going into 1.1 for you :)
Title: Re: [Feedback] Attachments
Post by: ~DS~ on April 08, 2010, 06:48:55 PM
I would like the same way SMF does with thumbnail preview either popup or not.
Title: Re: [Feedback] Attachments
Post by: tfs on April 08, 2010, 06:50:00 PM
I like lean and mean, though a very small graphical icon indicating file-type might not be a bad idea.  No bigger than a standard smiley, and it would give some context to where the name of one file attachment ends and the next begins... for attached to individual replies mode.

For attached to ticket mode, it already looks pretty good, but it wouldn't hurt I think to also put a small icon on those as well.
Title: Re: [Feedback] Attachments
Post by: Gruffen on April 08, 2010, 07:13:36 PM
DS: For 'in ticket' mode, 'in replies' mode, or both? How big should thumbnails be?

tfs: I think that's workable without too much effort. I think we can even be generous and have a nice variety of images too, not just paperclip type stuff.
Title: Re: [Feedback] Attachments
Post by: ~DS~ on April 08, 2010, 07:36:40 PM
Quote from: Arantor on April 08, 2010, 07:13:36 PM
DS: For 'in ticket' mode, 'in replies' mode, or both? How big should thumbnails be?

tfs: I think that's workable without too much effort. I think we can even be generous and have a nice variety of images too, not just paperclip type stuff.
For ticket mode, it should remain as it is but it can detect image and popup like smileys does but I doubt anyone have popup blocker(or embed image with mouse over on it if it's image, if it's not image nothing happen.) For replies mode it be simliar to SMF build in which detect image as well and should be standard size if click on image to zoom it.
Title: Re: [Feedback] Attachments
Post by: Gruffen on April 08, 2010, 07:44:08 PM
Would you have that in addition to or in place of a small icon to represent what it was?
Title: Re: [Feedback] Attachments
Post by: ~DS~ on April 08, 2010, 07:50:11 PM
Quote from: Arantor on April 08, 2010, 07:44:08 PM
Would you have that in addition to or in place of a small icon to represent what it was?
Whatever you see is best, would like to see what others think about this as well.
Title: Re: [Feedback] Attachments
Post by: Gruffen on April 08, 2010, 07:55:42 PM
That's what I'm asking. I don't really have much of a preference here.
Title: Re: [Feedback] Attachments
Post by: cσσкιє мσηѕтєя on April 09, 2010, 01:52:45 AM
Having small icons for the file types sounds like a good idea - Never thought of it my self.
And I do want to include thumbnails as soon as possible (We wanted to have them in 1.0 but it turned out to be more work than we thought).
Title: Re: [Feedback] Attachments
Post by: Gruffen on April 09, 2010, 04:26:23 AM
For those wondering why it's a lot of work, SMF creates the thumbnail when you upload the file - but it ALSO does have a manual create option if you have subsequently altered or deleted the thumbnail and you load the ticket again. It's certainly something we can implement but before I add the hundreds of lines of code I want to be sure we're doing it because it's actually a good idea.

FWIW what I'd probably do is have the thumbnail pop out into the master one using Highslide or similar assuming we go down that route.

Small icons is something we can definitely squeeze in and see how it turns out.
Title: Re: [Feedback] Attachments
Post by: Gruffen on April 09, 2010, 09:48:40 AM
OK, here's what I've got for images by attachments. 'with replies' mode now looks a little cluttered, but that's something we can work on soon enough.
Title: Re: [Feedback] Attachments
Post by: tfs on April 09, 2010, 01:03:08 PM
Those look just fine to me.  Both modes.  Improvements would likely involve changing the whole arrangement, and that would be hit and miss as to whether or not you're going to get it to look better than what it is.
Title: Re: [Feedback] Attachments
Post by: Gruffen on April 09, 2010, 01:04:21 PM
Well, replies mode needs a little more spacing in the replies IMO, but that's it from me for now.
Title: Re: [Feedback] Attachments
Post by: Yagiz on April 09, 2010, 01:26:18 PM
Making attachments on replies horizantaly and 4 attachments in a row should be better :)
Title: Re: [Feedback] Attachments
Post by: MultiformeIngegno on April 11, 2010, 07:14:47 PM
Looks really really cool!!!! 8) :D
Title: Re: [Feedback] Attachments
Post by: Gruffen on April 21, 2010, 09:05:42 AM
Bump.

People are still saying it doesn't look as good as it might... how would you make it look better?
Title: Re: [Feedback] Attachments
Post by: Yagiz on April 21, 2010, 09:23:38 AM
Quote from: Yagiz on April 09, 2010, 01:26:18 PM
Making attachments on replies horizantaly and 4 attachments in a row should be better :)

+ if the attachment has a thumbnail, add an icon next to it and when hovering, show the attachment.
Title: Re: [Feedback] Attachments
Post by: Gruffen on April 21, 2010, 09:36:01 AM
Showing the attachment thumbnail or fullsize?
Title: Re: [Feedback] Attachments
Post by: Yagiz on April 21, 2010, 11:40:04 AM
Hmmm, fullsize. If we show thumbnails, how can they see fullsizes? :)
Title: Re: [Feedback] Attachments
Post by: feline on April 21, 2010, 12:52:20 PM
I like it, to put a small icon and the link in the ticket or the comment. So it's clear who have upload the attach.
And if the icon (or the text) have a link to the full size image, then it's not problem to open this in a popup or (better) with HighSlide ...

Fel
Title: Re: [Feedback] Attachments
Post by: Gruffen on April 21, 2010, 05:40:51 PM
Well, the small icon as I mentioned earlier in this thread is already there, it went in almost 30 revisions ago.

Thumbnails seems to be a big thing, so I'll definitely look into that when I'm back.
Title: Re: [Feedback] Attachments
Post by: feline on April 21, 2010, 08:46:25 PM
I have tested that with a smal icon and a HighSlide link ..

foreach ($context['ticket_attach']['ticket'] as $attachment)
echo '
<div class="description shd_attachment" id="attach', $attachment['id'], '">
<a href="', $attachment['href'], '" id="link_', $attachment['id'], '" onclick="return hs.expand(this, {align: \'center\', captionText: \''. $attachment['name'] .'\'})">
<img src="', $settings['default_images_url'], '/simpledesk/preview.png" alt="x" title="', $txt['pmx_hs_expand'] ,'" />
</a>
<strong>', $attachment['link'], '</strong>
<span class="smalltext">
(', $attachment['size'], ')
</span>
</div>';

Works great  ;)

Fel
Title: Re: [Feedback] Attachments
Post by: Gruffen on April 21, 2010, 08:49:05 PM
/me wonders how much reverting of r542 will be required to remove the icons already there.

Note that that still doesn't remove the overhead of hundreds of lines of code from Display.php being ported to SimpleDesk-Display.php