Levertine

Levertine Gallery => Questions and Discussion => Topic started by: TomW on January 12, 2015, 10:40:52 PM

Title: thumbnails in posts ?
Post by: TomW on January 12, 2015, 10:40:52 PM
When I use the bbcode to place the levgal media image into a post, it shows a thumbnail.  I would prefer a full-size image or an image with a height/width limit embedded in the post, per the way smf handles attachments, or maybe a lightbox effect from the post, instead of clicking twice to view the full-size image.  Is this possible ?

Thanks, this mods is very promising !  I really like the bulk upload; I hammered it and it executed flawlessly !
Title: Re: thumbnails in posts ?
Post by: Arantor on January 12, 2015, 10:55:15 PM
The main problem with doing all of the above is that getting to actually play nicely in themes is surprisingly difficult. The amount of issues I encountered with Aeva doing that... it's why I was determined to try and avoid that.

Certainly exposing the preview image isn't significantly difficult to do, since there's a preview image for most items (max 500px), but lightbox is much more troublesome to make happen. But it is on the list for 1.1 to review and see if I can do something with it.
Title: Re: thumbnails in posts ?
Post by: TomW on January 12, 2015, 11:00:00 PM
Thanks; that would help.  My forum members are used to seeing larger images.
Title: Re: thumbnails in posts ?
Post by: Steve on January 13, 2015, 01:24:59 AM
I would prefer a full-size image ...

Same here. I don't know what the lightbox stuff means but I was hoping that the bbcode it was showing me was to the full size image. I must admit to being surprised that this is not the case.

At any rate, if that's something that can be done for a future version that would be great. :)
Title: Re: thumbnails in posts ?
Post by: Arantor on January 13, 2015, 02:26:22 AM
Whereas including a full size image most of the time is a bad idea, seeing how cameras invariably take photos well into the 4000x3000 pixel size, which is far beyond what SMF themes will cope with ;)

Though I guess I can include a bbcode option for 'display full size anyway and if it breaks my layout, so what?' I will admit I do plan to have a button in the editor where you can go select an item out of your gallery and include it nicely into the post. How feasible that is remains to be seen.
Title: Re: thumbnails in posts ?
Post by: lurk on January 13, 2015, 08:12:46 AM

Though I guess I can include a bbcode option for 'display full size anyway and if it breaks my layout, so what?'

That would be a suitable work around imo.


I will admit I do plan to have a button in the editor where you can go select an item out of your gallery and include it nicely into the post. How feasible that is remains to be seen.

Also liking that idea.  8)

Title: Re: thumbnails in posts ?
Post by: Steve on January 13, 2015, 11:31:57 AM
I'm confused then (nothing unusual) ... what are the quota restrictions for? And what does that even mean?
Title: Re: thumbnails in posts ?
Post by: lurk on January 13, 2015, 11:49:47 AM
I'm confused then (nothing unusual) ... what are the quota restrictions for? And what does that even mean?

You mean in "Media Quotas and File Types"

Basically you have a setting for space taken up for all media item on your server. "The maximum server space that is allowed to be used by all your gallery files"  This is everyone's files combined Total space allocated on your server.

Then you have quota's for each type of file, so for example you can set jpg images to be a maximum file size each, say 4mb or 6mb etc.  You can set this for each file type.

File size has nothing to do with image size though.  File size and image size are two separate things.  Example below. ;)

Ile size 273KB Image size 800 x 533 pixels
(http://cctestsite.info/gallery/albums/userpics/10001/testimage1.jpg)

File size 36KB Image size the same 800 x 533 pixels
(http://cctestsite.info/gallery/albums/userpics/10001/testimage2.jpg)

Note:  Both the images above have been optimised for web use, the original is, File size 2.66 MB Image size 3904 x 2336 pixels Which is far too big for normal web use.
Title: Re: thumbnails in posts ?
Post by: Steve on January 13, 2015, 12:30:45 PM
I knew most of that but thanks for the clarification. :)

Am I correct in that a quota has to be defined for any membergroup in order for them to be able to upload?

Edit: Also, don't the limits I set in "Media Quotas and File Types" prevent someone from trying to upload something greater than those limits?
Title: Re: thumbnails in posts ?
Post by: lurk on January 13, 2015, 12:44:01 PM
I knew most of that but thanks for the clarification. :)

Am I correct in that a quota has to be defined for any membergroup in order for them to be able to upload?

Providing the group has upload permissions set on the "Media Permissions" page first.  Then each group can be assigned a quota for each file type in "Media Quotas and File Types".

If that's what you're asking.
Title: Re: thumbnails in posts ?
Post by: Steve on January 13, 2015, 01:49:24 PM
I did do the upload permissions first but hadn't done the quotas and my members couldn't add an item. Now that I've set the quotas, they should be able to, right?
Title: Re: thumbnails in posts ?
Post by: lurk on January 13, 2015, 02:07:35 PM
I did do the upload permissions first but hadn't done the quotas and my members couldn't add an item. Now that I've set the quotas, they should be able to, right?

Yes.  Providing the type of file they are uploading is enabled in  "Media Quotas and File Types"
Title: Re: thumbnails in posts ?
Post by: Arantor on January 13, 2015, 02:24:36 PM
Yup. That part is not the most effective UI I've ever done, but yes, that's how it works.

Permission to upload is merely permission to upload *something*. You do then have to configure what people can upload. For example on this site, there is no quota enabled for zip files so no-one (except me) can upload zip files even though they are actually enabled and members have permissions to upload.

The idea is that you might want to let trusted members upload larger files, or let premium members upload certain types of files, which is quota controlled, more finely set up than just 'can upload files' or 'cannot upload files'.
Title: Re: thumbnails in posts ?
Post by: Steve on January 13, 2015, 02:56:48 PM
Cool beans.

Sorry for all the questions but I have a couple more.

If I set a quota to a max of say 800x800 and the member tries to add an item larger, they'll get some kind of error message (same with file size obviously)?

Also, specifically for Arantor ... I've read through this thread and I can't decipher if you've decided to add a bbcode to the full-size image or not.
Title: Re: thumbnails in posts ?
Post by: Arantor on January 13, 2015, 03:11:37 PM
Yes, they will get a warning if you try to do that.

As for the bbcode, I haven't decided how to handle it yet. I'm still very reticent about adding a bbcode that just links to a full size image when the image will break the theme. Linking to the preview is all good, linking to the full size has issues, especially when you start factoring in things like non-images bbcode items, and using the lightbox (the shiny thing that darkens the background to show the picture itself) inside posts, and all the places this can come up... this is complicated, because it has to work seamlessly in all those places, including RSS feeds and SSI and portals, and there's already a lot of juggling going on to do that and keep it efficient, since I spent several hours just on that piece alone.

You see, looking up an item in bbcode requires multiple DB queries (potentially), and doing those per bbcode instance on the page is extremely expensive, so I came up with a way to batch them up to the end of the page and do them all at once, which limits what can be done.
Title: Re: thumbnails in posts ?
Post by: Steve on January 13, 2015, 03:23:18 PM
I see.

Maybe an option to show full-size images in 'Media Settings'? Just throwing things out there.
Title: Re: thumbnails in posts ?
Post by: Steve on January 13, 2015, 03:34:07 PM
Man, I am sorry to keep bothering you but without a manual I don't have much choice. :(

A member tried to upload a 1289 × 1061 image and apparently was given the error message you mentioned but the image still uploaded. Is that because the preview limits are less than what I set in "Media Quotas and File Types"? Or why would it upload?
Title: Re: thumbnails in posts ?
Post by: Arantor on January 13, 2015, 04:15:17 PM
The problem with having full size images is that it can't just be a simple toggle - because you just know users will add huge pictures breaking the site layout (and fixing that with CSS is doable but in most cases you'll end up with something the size of the preview picture anyway). Needs more thought whatever I end up doing.

As for the limits... what limit did they hit exactly? It shouldn't upload if it's too big, it should be kicked back before that. :( Though I will note that the algorithm applied is a little interesting, and possibly not ideal but it made sense at the time - it doesn't say x*y are hard limits for both x and y in the conventional sense. It takes x*y and calculates the maximum number of pixels an image can contain, and compares *that*. It's not intuitive but at the time I seem to recall thinking it would work better for certain types of cameras where the image was just on the boundary of what would be acceptable without the admin having to keep messing around with the figures. Probably should be changed though to be more as expected.
Title: Re: thumbnails in posts ?
Post by: Steve on January 13, 2015, 04:42:00 PM
I had set 800 x 800 in Media Quotas and File Types for her membergroup.
Title: Re: thumbnails in posts ?
Post by: Arantor on January 13, 2015, 04:43:58 PM
And she's not in any other membergroups?

(I should probably split this topic if I can figure out where to split it)
Title: Re: thumbnails in posts ?
Post by: Steve on January 13, 2015, 06:02:15 PM
Nope, just the one (I checked to be sure.)

Oh, it's not a post count based group if that means anything.
Title: Re: thumbnails in posts ?
Post by: Arantor on January 13, 2015, 06:16:54 PM
Post count groups are all excluded anyway for the purposes of quotas. Hmm, guess I will have to review that code then.

Oh and rerailing this a moment, I added something to the media bbcode, so for complex form [media id=1]description[/media], there's now [media id=1 type=preview]description[/media] which covers showing the preview image where one is available.

Of course if an image is non-existent, or is off limits, it still won't be shown, and if it's mature (and the user's preference is to leave those hidden) it'll be replaced with the mature icon. (All part of why it's scary complicated to do and why it needs to be batched together for performance reasons)
Title: Re: thumbnails in posts ?
Post by: TomW on January 14, 2015, 07:01:48 PM
I'm ok with showing the preview image as opposed to the thumbnail image.  Maybe make this an option ? 

Also adding an image resizer, optionally, would be very nice.  My members typically attach large files.  I've told them over and over how to resize files, but many have become accustomed to using FaceBook and just don't understand the problem.

Mind you, I really like this mod as a gallery.   I've tried the others and this is the easiest to use, and the most robust as far as file-handling goes.   It's the use of the images from the gallery into forum posts that is my concern.  Thanks.
Title: Re: thumbnails in posts ?
Post by: Arantor on January 14, 2015, 07:58:00 PM
In the upcoming 1.1, there is already a bbcode option for preview as outlined.

An image resizer... well, there's already handling for thumbnail, preview, full size - and display something in lightboxes on the main item page. Users need never know they're dealing with massive images (we were testing it with 6000x9000 pixel images and they appeared on screen normally) because for the most part it's simply hidden from them unless they press the download button.

I get your concern about embedding into posts, and I'm still trying to figure out what exactly is the best thing to do - bearing in mind I have the usability concerns you have, plus a series of technical concerns that are my job to deal with and explicitly not to push onto other people. I just know how much hassle I had fighting with Aeva over its use of Highslide on non-Aeva pages and I'm eager not to have to push that on to anyone else with a 'sorry, I can't do it any better'.

Right now, 1.1 offers the thumbnail and preview as bbcode options. I'm getting the impression your preference would be for the lightbox on the bbcode view with a link to the item page... off hand I don't know if I can pull that off reliably - but I have an idea or two on how it might be tackled. It's just doing it in a way that balances all the other issues around performance and not hurting your server in the process, because that would suck to have to do.
Title: Re: thumbnails in posts ?
Post by: TomW on January 14, 2015, 10:58:44 PM
I think that 1.1 would work fine with previews in the posts.  Once that is released I will have some of my users try it out for feedback.  Thanks.
Title: Re: thumbnails in posts ?
Post by: Arantor on January 14, 2015, 11:15:06 PM
Well, I have a few things I still want to do for 1.1, but I'm definitely finding that I'd rather do more frequent smaller releases than larger ones; my original plan for 1.1 was 2-3 weeks' work but I get the feeling having maybe weekly releases with 1-2 bigger features or 3-5 smaller features would be preferable.

I don't mind... trying to figure out what would work best for people. Certainly this is going to be an iterative process where I figure out what people want and try to build it for their needs and a more rapid iteration cycle would help that.
Title: Re: thumbnails in posts ?
Post by: Steve on January 15, 2015, 12:12:56 AM
I'm good with frequent releases. Whatever works for you but I'm all for this:

... maybe weekly releases with 1-2 bigger features or 3-5 smaller features would be preferable.

:)
Title: Re: thumbnails in posts ?
Post by: Arantor on January 19, 2015, 09:28:28 AM
So, now that 1.1.x is out including the [media id=1 type=preview] feature, what do people think? More? In what ways?

Don't worry about the technical stuff, that's my job even if I sound pessimistic about it because I'll figure something out, I always do :P Tell me how you think it should work, what you need, what works for you, and I'll do what I can to make it happen.
Title: Re: thumbnails in posts ?
Post by: Steve on January 19, 2015, 01:43:34 PM
Where exactly is that bbcode shown? All I see after installing 1.1.1 is the attached.
Title: Re: thumbnails in posts ?
Post by: Arantor on January 19, 2015, 03:06:23 PM
I didn't link to it, didn't want to make that section significantly more bit than it already is. But if folks are OK with that being even taller, it can be added without any hardship.

But just because it's not ready printed for you doesn't mean it isn't a thing ;)
Title: Re: thumbnails in posts ?
Post by: Steve on January 19, 2015, 03:12:29 PM
I wouldn't mind it being a bit taller since I already have to scroll anyway. I misunderstood what was being done here. I can do it the way you made it available ... if I can remember ... :P
Title: Re: thumbnails in posts ?
Post by: Arantor on January 19, 2015, 03:28:38 PM
Code: [Select]
[media id=33 type=preview]Neat graffiti I found in Brighton[/media]
Title: Re: thumbnails in posts ?
Post by: TomW on February 08, 2015, 01:16:39 AM
I downloaed 1.1.1 and cannot seem to find the show-preview-image option.  I looked thru the admin pages and couldn't find a setting.  On the 'Viewing item' page the only options I see under 'Share Item' are  'Share Page', 'BB Code', and 'BB Code with desc'.  Am I missing something ?  It looks like I installed it properly as Package Manager shows 1.1.1 as installed.  I previously installed 1.0.4; is there a chance that I am still running the older version ? 
Title: Re: thumbnails in posts ?
Post by: Steve on February 08, 2015, 02:04:06 AM
You're not missing anything. Look 4 posts up from this one. You just have to type it in.

Some of us are still trying to convince Arantor that a bbcode link to the full size image is a good thing, despite his reservations of the page being whacked out if someone uploads a massive picture. :P
Title: Re: thumbnails in posts ?
Post by: Arantor on February 08, 2015, 12:31:32 PM
Here's the deal: 1.2 (not released yet) does have a copy/pastable bbcode for the preview image.

There are two problems with embedding the full item in a post.

1. Image size. Your average digital photo weighs in at 3000px or wider. Even smart phones typically take into that region these days. Curve starts breaking beyond 2300px wide, so letting it expand the page it a bad idea. I can force it to resize downwards but in reality on a *lot* of themes, the preview size is actually about as much as you're going to get anyway (and you might as well have a few hundred KB of preview rather than multiple MB of image when you're showing practically the same size for a lot of cases, nor is there any way I can magically determine this)

2. Things that aren't images. LevGal supports video and audio natively, embedding these into posts requires a bunch of stuff to make it work, just as embedding the lightbox does. I'm not keen on fighting with the eldritch gods about this one but I think I'm going to have to give it another try.

I have been delayed on working on 1.2 due to RL stuff but I really should push this out even if I don't have all the shiny things I wanted in it, simply because there's bug fixes that are worth having in it.
Title: Re: thumbnails in posts ?
Post by: Steve on February 08, 2015, 01:41:13 PM
Yea, you've posted those reasons before ... you also said:

Though I guess I can include a bbcode option for 'display full size anyway and if it breaks my layout, so what?'

Maybe make that an option in the settings to show or not? Of course, that would mean being able to select which membergroups that shows to so I don't if that's getting complicated or not ...

What about a selectable preview size? Is that an option? Could I make it say, 800 x 800 vs. 500 x 500?
Title: Re: thumbnails in posts ?
Post by: Arantor on February 08, 2015, 06:14:14 PM
Yes but there is one huge problem: when it breaks under that circumstance - and it will - you will then ask me to fix it. And I won't be able to beyond the points already raised. I firmly do not like giving out things that I know ahead of time will break just to wait for them to break and to have to 'fix' it again. It is a waste of both my time and your time to go through that process ;)

I really do not want to get into selectable preview size because there are plenty of times it simply isn't going to be of any use to configure, not nearly as much as people actually think (having spent years observing how people use the likes of Aeva where this is an option). Invariably what happens is that admins configure it for what looks right 'to them', and if they have a non-fixed width setup, there's a reasonable chance it'll be broken for their users. Even 500px is too big in some cases (think phones). For the amount of effort required, it's actually really not worth it to implement that.

500px was not chosen 'because it's a nice round number', I did a whole bunch of experiments on a bunch of different themes and resolutions to find the size that looks approximately right for the bulk of cases, while balancing not being too huge, while balancing the fact that not all preview images come from the same place ;) In an ideal world I'd actually have had 542px which I found was the ideal value to balance all of these things but that is definitely not a nice round number ;)
Title: Re: thumbnails in posts ?
Post by: Steve on February 08, 2015, 10:16:37 PM
Okay then. (http://i1262.photobucket.com/albums/ii614/OPStuph/newboard/smilies/ourplace/thumbsup14.gif)
Title: Re: thumbnails in posts ?
Post by: TomW on February 09, 2015, 05:39:02 PM
You're not missing anything. Look 4 posts up from this one. You just have to type it in.

Thanks.  I just committed the mortal sin - not reading prior posts before posting :-[

Informing my members to manually type it in will lead to confusion; I'd much rather it be displayed along with the others.  Maybe it could be configurable so that the admin can decide which options to display ?   
Title: Re: thumbnails in posts ?
Post by: lurk on February 09, 2015, 07:30:57 PM
In Coppermine we have.

Thumbnails. Size set in config.
Intermediate.  (Normal) This is the equivalent of the preview images. Size for these is also set in config,
Full size. This isn't actually the full size image straight from camera, it's a full size as set by admin in the config.  Set at a size which in my mind would suite most monitors.

The thing I can't understand is why anyone would want to upload full size images tbh.  I hate having to scroll around trying to view images in four parts  lol..  Not to mention the image is downloaded to your computer each time you view one, this takes up a huge amount of space, and some who still have slow connections the images take ages to load.

Unless submitting to a image library (Those files are huge) , members of your site should learn to optimise their images for web use.

Title: Re: thumbnails in posts ?
Post by: Steve on February 09, 2015, 08:57:15 PM
Thumbnails. Size set in config.
Intermediate.  (Normal) This is the equivalent of the preview images. Size for these is also set in config,
Full size. This isn't actually the full size image straight from camera, it's a full size as set by admin in the config.  Set at a size which in my mind would suite most monitors.

That's kinda what I was hoping for but if it's not doable as Arantor explained above, that's fine. The benefits outweigh the wishful thinking. :P
Title: Re: thumbnails in posts ?
Post by: lurk on February 09, 2015, 10:03:31 PM

That's kinda what I was hoping for but if it's not doable as Arantor explained above, that's fine. The benefits outweigh the wishful thinking. :P

Well it is doable, but not of any use for posting in the forum, if you have to scroll around to see it.  It would make the forum look a mess tbh

OK, on my site I have BBCode for the full size image.  But what it actually does is add the Intermediate image to the post, but it's clickable to the full size image.  Like this,

(http://cameracraniums.com/gallery/albums/userpics/normal_DakotaCos1.jpg) (http://cameracraniums.com/gallery/displayimage.php?pid=2955&fullsize=1)

Or, this one which is clickable takes you to the Intermediate image in the gallery itself.

(http://cameracraniums.com/gallery/albums/userpics/normal_DakotaCos1.jpg) (http://cameracraniums.com/gallery/displayimage.php?pid=2955)
Title: Re: thumbnails in posts ?
Post by: Arantor on February 09, 2015, 10:18:55 PM
Quote
I just committed the mortal sin - not reading prior posts before posting

Especially as 1.2 contains the preview bbcode as a handy copy/paste item. As has been mentioned at least once already, I'm sure.

Quote
Maybe it could be configurable so that the admin can decide which options to display ? 

I'm really reluctant to spend time on this more than necessary... especially as I just started a new job which is taking a lot of my time up right now. I have a *massive* list of things I'd rather be adding than this, to be quite honest, especially as I can see (as explained) how come this is going to cause trouble long before it's actually useful.
Title: Re: thumbnails in posts ?
Post by: Steve on February 10, 2015, 12:19:37 AM
Well it is doable, but not of any use for posting in the forum, if you have to scroll around to see it.  It would make the forum look a mess tbh

You misquoted me. I quoted the three things you mentioned in CPG and said what I did. I wouldn't want a an image I'd have to scroll around to look at either.

At any rate, this is all moot. As far as I'm concerned, this could be put to rest. 8)
Title: Re: thumbnails in posts ?
Post by: BerniceHolland on March 24, 2015, 06:24:00 AM
There are lots of image hosting sites. But try using this http://picuploaders.com. It has direct image links, BBCode and HTML thumbnails.
Title: Re: thumbnails in posts ?
Post by: Steve on March 24, 2015, 01:05:40 PM
Why would you post that here? If you don't want to use Levgal you shouldn't even be here.
Title: Re: thumbnails in posts ?
Post by: ARG on March 24, 2015, 02:34:37 PM
There are lots of image hosting sites. But try using this http://picuploaders.com. It has direct image links, BBCode and HTML thumbnails.

Why would you post that here? If you don't want to use Levgal you shouldn't even be here.

Because he is a spammer. I just blocked him from posting at Dziner Studio for repeatedly posting the same thing, under a different name (KurtFitzgerald) of course.  ???
Title: Re: thumbnails in posts ?
Post by: Steve on March 24, 2015, 06:32:33 PM
I'm not surprised. He's got two posts and both say the same thing here too.
Title: Re: thumbnails in posts ?
Post by: testing123 on March 25, 2015, 07:56:03 AM
Firstly, feel free to remove this as and when appropriate but I thought I'd share an easy fix for now until 1.2 is released:

Outcome: your item's BB code will show the "preview" image size, rather than the thumbnail.

Steps:
Find and open: LevGal-Item.template.php
(forum/Themes/default/levgal_tpl in my case)

Code: (Find) [Select]
<dl class="album_details">
<dt>', $txt['lgal_share_page'], '</dt>
<dd id="lgal_share_page_container" class="lgal_share">
<input type="text" class="input_text" id="lgal_share_page" value="', $context['item_details']['item_url'], '" readonly="readonly" />
<span class="lgalicon copy" title="', $txt['lgal_copy_to_clipboard'], '"></span>
</dd>
<dt>', $txt['lgal_share_simple_bbc'], '</dt>
<dd id="lgal_share_simple_bbc_container" class="lgal_share">
<input type="text" class="input_text" id="lgal_share_simple_bbc" value="[media]', $context['item_details']['id_item'], '[/media]" readonly="readonly" />
<span class="lgalicon copy" title="', $txt['lgal_copy_to_clipboard'], '"></span>
</dd>
<dt>', $txt['lgal_share_complex_bbc'], '</dt>
<dd id="lgal_share_complex_bbc_container" class="lgal_share">
<input type="text" class="input_text" id="lgal_share_complex_bbc" value="', sprintf($txt['lgal_share_complex_bbc_entry'], $context['item_details']['id_item'], $context['item_details']['item_name'], $poster_name, $context['item_details']['time_added_format']), '" readonly="readonly" />
<span class="lgalicon copy" title="', $txt['lgal_copy_to_clipboard'], '"></span>
</dd>';




Code: (Replace) [Select]
<dl class="album_details">
<dt>', $txt['lgal_share_page'], '</dt>
<dd id="lgal_share_page_container" class="lgal_share">
<input type="text" class="input_text" id="lgal_share_page" value="', $context['item_details']['item_url'], '" readonly="readonly" />
<span class="lgalicon copy" title="', $txt['lgal_copy_to_clipboard'], '"></span>
</dd>
<dt>', $txt['lgal_share_simple_bbc'], '</dt>
<dd id="lgal_share_simple_bbc_container" class="lgal_share">
<input type="text" class="input_text" id="lgal_share_simple_bbc" value="[media id=', $context['item_details']['id_item'], ' type=preview][/media]" readonly="readonly" />
<span class="lgalicon copy" title="', $txt['lgal_copy_to_clipboard'], '"></span>
</dd>
<dt>', $txt['lgal_share_complex_bbc'], '</dt>
<dd id="lgal_share_complex_bbc_container" class="lgal_share">
<input type="text" class="input_text" id="lgal_share_complex_bbc" value="', sprintf($txt['lgal_share_complex_bbc_entry'], $context['item_details']['id_item'], $context['item_details']['item_name'], $poster_name, $context['item_details']['time_added_format']), '" readonly="readonly" />
<span class="lgalicon copy" title="', $txt['lgal_copy_to_clipboard'], '"></span>
</dd>';

 :) Enjoy!
Title: Re: thumbnails in posts ?
Post by: Josh on March 25, 2015, 02:33:26 PM
You could just take the direct image link and add the [img] tags couldn't you? Right click on image and click copy image location and add [img] tags to that link. The only problem I notice is that I can't copy image location for the zoomed in image as the option isn't there. It's only there for the smaller version that is displayed on the items page. You have to right click -> view image and then remove /preview from the link to get the fullsize image.

I agree with Arantor that the preview is the best. What I was wondering is if it's possible that clicking the thumbnail in a forum post zooms in just as clicking the image on the item's page does. If this is possible it would solve the issue of stretching the page
Title: Re: thumbnails in posts ?
Post by: Arantor on March 30, 2015, 04:54:44 AM
A solution which has already been mentioned multiple times and which I have outlined multiple times as being very awkward to do reliably since it requires injecting jQuery into a page without knowing if jQuery is already available and if so which version.
Title: Re: thumbnails in posts ?
Post by: testing123 on April 04, 2015, 02:29:52 PM
Sort of the same subject;

Could anyone point me in the right place  to remove the name of the item that is displayed under the item, when you use the BB code?

(I would like the item shown without it's name when you use BB code)
((and possibly remove the auto-centered-ness))


Thanks
Title: Re: thumbnails in posts ?
Post by: Steve on April 04, 2015, 04:19:00 PM
Um ... why not use the bbcode that's right above the one you're using?
Title: Re: thumbnails in posts ?
Post by: testing123 on April 04, 2015, 04:32:09 PM
Um ... why not use the bbcode that's right above the one you're using?


Ahh..

on further testing, I see using the 'normal' bbc - it displays it without the title, but if like me, you've changed the default bbc to the "preview" size, it displays with the title also...

Normal levgal bbc:
image (thumbnail)
normal levgal bbc(desc):
image (thumnail)
name / description

my modded levgal:
image (preview size)
name
normal levgal bbc(desc):
image (thumnail)
name / description


Hmmmm!


update:
whilst having a look around, I've not discovered what is causing the title to appear but I did stumble upon how to also make my BBC with description, show in "preview" size too if anyone's interested..

In the file: /Themes/default/languages/levgal_lng/LevGal.english.php
Code: (find) [Select]
$txt['lgal_share_complex_bbc_entry'] = '[media id=%1$s]%2$s by %3$s posted %4$s[/media]';
Code: (replace) [Select]
$txt['lgal_share_complex_bbc_entry'] = '[media id=%1$s type=preview]%2$s by %3$s posted %4$s[/media]';