Forum breadcrumbs – You are here:Asgaros Support ForumSupportUploaded images
Please or Register to create posts and topics.

Uploaded images

PreviousPage 2 of 3Next

Hello @johnigo

Please add the following css-code to the Forum -> Appearance -> Custom CSS section to adjust the size:

#af-wrapper .uploaded-file img {
    width: 100% !important;
}

Thumbnails are placed automatically by your browser based on the meta-data of your images. This cannot get influenced by me. The reason your photo would appear this way is because the photo was taken vertically and the image file itself is in this orientation.

For example, if you hold the phone upright and take a photo, so the photo is vertical or portrait, then the actual image file is technically horizontal, as all photos are “sideways”, (think of a 4×6 photo coming out of the printer), you would need to turn the photo right side up to view it vertically. This is the same with a digital photo. When you view on a computer, or upload, you may see the image sideways. If so, then would then need to rotate the image using your photo viewing or editing software.

After the image is rotated, then you can upload it and it will appear correctly. This may vary based on your computer software, browser and/or camera.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

@asgaros , i meant to be inserted like this.

Try this. Makes the images show like this https://www.mgbjubilee.com/forum/topic/rlw-7w/?part=2

 

#af-wrapper div.post-message li {
  display: inline-block;
}

 

JohniGo has reacted to this post.
JohniGo

@beezer , thank! This is exactly what im need!

I have another question related to images.
I want to use Lightbox to view images.
I tried to install Simple Lightbox. It works, but shows all the images from the topic. And I want to images are grouped and displayed separately for each message.

 

I’ve thought about doing this before but never got around to it. I might look into it later. I’m not sure we can do this as a plugin or css hack. I think it would need changes to Asgaros source code.

https://www.w3schools.com/howto/howto_js_lightbox.asp

Actually it requires a modification of the lightbox-plugin. The JavaScript-selector has to be adjusted so that the uploaded forum-images are selected. If it uses jQuery, the selector-code could look like this:

$('.uploaded-file img')

But the plugin-developers of those plugins should know how to change the selectors – maybe they even have a setting for this.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Would that make it work per post? Or for all posted images on the page?

In this case it would be for all images in all posts on a page I guess. For a grouping-logic it depends on how the lightbox-plugin handles this internally. If its via a tag-attribute, it would require a post-id in the list-generation which I have to add in a new version.

Just let me know, its not a big deal.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

In the process of experiments, I managed to achieve the desired effect (grouping of images separately for each post). But what settings influenced this I did not remember. And the stand has already been removed … 🙁

What would the jquery selector look like in that case?

PreviousPage 2 of 3Next