Attachments, images and file hosting services

Overview of the changes to the forum
Post Reply
User avatar
Selene310187
Site Admin
Joined: Fri Oct 07, 2022 8:34 pm
Contact:

Attachments, images and file hosting services

Post by Selene310187 »

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.
Last edited by Selene310187 on Wed Sep 27, 2023 5:28 pm, edited 3 times in total.
Reason: update
User avatar
Vlad 254
Joined: Thu Nov 03, 2022 11:42 pm
Location: West Coast USA
Contact:

Re: Attachments, images and file hosting services

Post by Vlad 254 »

Figured I give this a test with a Rainbow for good luck on the site.
Image
Great acts are made up of small deeds ~Lao Tzu
User avatar
Selene310187
Site Admin
Joined: Fri Oct 07, 2022 8:34 pm
Contact:

Re: Attachments, images and file hosting services

Post by Selene310187 »

I noticed that guests cannot view attachments. This is fixed now.
User avatar
Selene310187
Site Admin
Joined: Fri Oct 07, 2022 8:34 pm
Contact:

Re: Attachments, images and file hosting services

Post by Selene310187 »

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.
Last edited by Selene310187 on Mon Dec 19, 2022 2:45 pm, edited 1 time in total.
Reason: fixed imgc BBCode regarding larger image thumbnails
User avatar
Altbert
Moderator
Joined: Tue Nov 01, 2022 10:58 pm
Location: Netherlands
Contact:

Re: Attachments, images and file hosting services

Post by Altbert »

Looks good on my side! But, then I'm also using the Opera Browser.
Bis vincit, qui se vincit in victoria - He conquers twice who conquers himself in victory (Publius Syrus)
User avatar
Selene310187
Site Admin
Joined: Fri Oct 07, 2022 8:34 pm
Contact:

Re: Attachments, images and file hosting services

Post by Selene310187 »

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 ;)).
User avatar
Selene310187
Site Admin
Joined: Fri Oct 07, 2022 8:34 pm
Contact:

Re: Attachments, images and file hosting services

Post by Selene310187 »

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.
User avatar
Selene310187
Site Admin
Joined: Fri Oct 07, 2022 8:34 pm
Contact:

Re: Attachments, images and file hosting services

Post by Selene310187 »

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.
Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Information & Announcements”