Attachments, images and file hosting services

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
View more smilies
Smilies
:sn-1: :sn-2: :sn-3: :sn-4: :sn-5: :sn-6: :sn-7: :sn-8: :sn-9: :sn-10: :sn-11: :sn-12: :sn-13: :sn-14: :sn-15: :sn-16: :sn-17: :sn-18: :sn-19: :sn-20: :sn-21: :sn-22: :sn-23: :sn-24: :sn-25: :sn-26: :sn-27: :sn-28: :sn-29: :sn-30: :sn-31: :sn-32: :sn-33: :sn-34: :sn-35: :sn-36: :sn-37: :D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
View more smilies

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review

I accept the Privacy policy.

   
  • Saved at

Expand view Topic review: Attachments, images and file hosting services

Re: Attachments, images and file hosting services

by Selene310187 » Wed Sep 27, 2023 5:17 pm

How to insert images into a post
(updated guide)


Variant 1: Using imgc BBCode

If you have uploaded the image to the Spectrum's gallery for example, you can use the direct link from the first field (see second paragraph of variant 2) with the imgc BBCode.

Example this image from the public Starfield gallery
Sample BBCode:

Code: Select all

[imgc=1000]https://modding-on-the-spectrum.com/app.php/gallery/image/74/medium[/imgc]
The number after "imgc=" stands for the maximum image width in pixels.

If you want to display the larger version of the image, replace "medium" with "source"

Code: Select all

[imgc=1000]https://modding-on-the-spectrum.com/app.php/gallery/image/74/source[/imgc]
The sample BBCode displays as (the source version):


The imgc BBCode works with image direct links from other servers like Nexus Mods or any image hosting service (more information).


Variant 2: Uploading as post attachment
Switch to the Attachments tab below the Preview and Submit buttons, click on the Add files button (max. file size: 1MB*), select your screenshot and click on open. After the upload is completed, click on Place Inline, which will insert the screenshot as thumbnail.

Example screenshot uploaded as attachment
Photo_2023-09-12-013003.jpg
* If your screenshot is too large, you can reduce the file size with RIOT (Radical Image Optimization Tool) for example


Variant 3: Uploading to the Gallery and using the corresponding BBCode
Upload the screenshot to the Miscellaneous, the Starfield - Public Gallery (if it's a Starfield screenshot) or your personal user album (go to User Control Panel > "Gallery" tab).

Go to the uploaded image. There are three fields at the bottom. The first one contains the direct link, the second one and the third the image BBCode for inserting the image into the post. It doesn't matter if you choose the second or the third one - clicking on the inserted image will lead to the image's page in the gallery. If you want that the image should open in a lightbox when clicking on it, choose variant 1 or variant 2.

Re: Attachments, images and file hosting services

by Selene310187 » Sat Dec 24, 2022 3:22 pm

Selene310187 wrote: Mon Dec 19, 2022 10:58 am You can now open image thumbnails in a lightbox on devices that have a screen width which is less than 900 pixels. I found out that the "mobileWidth" setting in the resize.js* of the Lightbox extension controls when the image is opened in a lightbox. By default, the screen width must be wider than 900 pixels to open images in a lightbox. I changed the screen width limit to 100 pixels so the lightbox is enabled for images on devices with a screen width that is wider than 100 pixels.
The fix only works to a limited extend. I tested it with my mobile phone this time which has a resolution of 360x640 in portrait mode and 640x360 in landscape mode. If the maximum thumbnail width is set to 400 in the ACP, the embedded images will not open in a lightbox, if I set default image thumbnail width to 300 pixels they will open in a lightbox. I want to keep the 400 pixels setting because I find the other setting too small. But there's another way to see a bigger version of an embedded image: just turn your mobile phone so that's in landscape mode.

Re: Attachments, images and file hosting services

by Selene310187 » Mon Dec 19, 2022 2:48 pm

Altbert wrote: Mon Dec 19, 2022 2:02 pm Looks good on my side! But, then I'm also using the Opera Browser.
Because I fixed it and forgot to mention it in my previous post in this thread that I've fixed it :D (I did that now ;)).

Re: Attachments, images and file hosting services

by Altbert » Mon Dec 19, 2022 2:02 pm

Looks good on my side! But, then I'm also using the Opera Browser.

Re: Attachments, images and file hosting services

by Selene310187 » Mon Dec 19, 2022 10:58 am

You can now open image thumbnails in a lightbox on devices that have a screen width which is less than 900 pixels. I found out that the "mobileWidth" setting in the resize.js* of the Lightbox extension controls when the image is opened in a lightbox. By default, the screen width must be wider than 900 pixels to open images in a lightbox. I changed the screen width limit to 100 pixels so the lightbox is enabled for images on devices with a screen width that is wider than 100 pixels.

* The path to the resize.js is different in the latest version of the extension (version 2.0.4). I found the file under ext\vse\lightbox\styles\all\template\js instead.


Today, I also noticed that image thumbnails only open in a lightbox if they have a width of 400 pixels or more which exactly is the default thumbnail resize setting I have chosen for the board. I don't know how to change the imgc BBCode to enable the lightbox for image thumbnails that have a smaller width than 400 pixels yet and if it's possible at all. You can see the whole code of the imgc BBCode here.

Alternatively, you could the put smaller image thumbnail inside a "url" BBCode and insert the direct link of the image after the "[url=" part.

Edit:
I see that I need to fix the CSS of the larger image thumbnails which are embedded via the imgc BBCode. If you set the width to 1000 pixels, the embedded picture will be displayed a bit smaller in the post because the maximum height is set 400 pixels. I already tested it with the inspection tools of the browser. If I disable the maximum height limit, the embedded picture will have a width of 1000 pixels if the browser window is greater than 1289 pixels (width) according to my testing with the inspection tools in the Opera browser.

Edit 2:
I fixed the imgc BBCode to display the embedded image with the specified image width, provided the browser window is large enough.

Re: Attachments, images and file hosting services

by Selene310187 » Tue Nov 15, 2022 7:29 pm

I noticed that guests cannot view attachments. This is fixed now.

Re: Attachments, images and file hosting services

by Vlad 254 » Mon Nov 14, 2022 3:10 am

Figured I give this a test with a Rainbow for good luck on the site.
Image

Attachments, images and file hosting services

by Selene310187 » Sun Oct 16, 2022 11:12 pm

Update Sept 27, 2023
I added guide for inserting images into a post.



Quantity per post and file size limit

You can attach up to 6 files per post. The maximum file size of each file is 1 MB. Yes, it's pretty small but I don't see any other way. The shared hosting service doesn't allow the operation of a download server. Thats's why I recommend using image and file hosting services instead, see "Alternatives to attachments" section below.


Images

Maximum image dimensions: 1800 x 1800 px suspended
(uploaded images which have a greater image dimension will be resized automatically)

Default maximum thumbnail resolution*: 400 x 400 px

Images which are embedded via attachment or IMG BBCode tag appear as thumbnails in posts. If you click on them, they open in a lightbox.

* Since Dec 11, 2022, it's possible to circumvent the default maximum thumbnail dimension by embedding the direct link of an image via the imc BBCode.




Alternatives to attachments

For images:
You can upload your image to a image hosting service like Imgur, ImgBB or Imgbox. Here's list with 25 free image hosting services: https://rigorousthemes.com/blog/25-best ... ing-sites/

After you have uploaded the image, click in the post editor on the image button and insert the direkt link to your image into the IMG BBCode tags. Example:

Code: Select all

[IMG]https://staticdelivery.nexusmods.com/images/1704/287627-1664559997.jpg[/IMG]
which will be displayed as follows:
Image


Or you just mark the direct link to your image in your post and click on the picture button in the posting actions bar (it's on the left side of the link button).



The amount of images which are inserted via IMG BBCode tag is not limited.


Please note that BBCodes are only available when you reached a certain number of posts. See topic "Newly registered users group" for more information. (the newly registered users group is suspended)



For other file types:
There are several file hosting services out there, for example: Insert a link to your file into the post after you have uploaded your file.


Regarding mods, see the "Mod hosting sites" topic.


Inserting images into a post

Please follow this guide.

Top