04 July 2026 · 10 min read
How to Insert Images in Forums Using BBCode
Learn how to correctly insert images in a forum using BBCode. A step-by-step guide, plus how to get a direct link for [img] with no errors.
If you've ever tried to post a photo on a forum and the image didn't show up - you saw just a text link, a broken icon, or nothing at all - the problem is most likely the type of link you used, not the forum itself. Forums can't display just any link: they need a direct link to the image file, inserted in the correct BBCode tag.
In this complete guide we explain exactly what BBCode is, how the [img] tag works, all the useful variants you can use, why images sometimes don't display, and how to quickly get a direct link compatible with any forum - through PixHub.ro's online image hosting service.
Get a Direct Link for Your Forum
What is BBCode?
BBCode (short for Bulletin Board Code) is a simple text formatting system used on forums. It was created as an alternative to HTML - safer and easier for regular users to work with, no technical knowledge required.
It works similarly to HTML, but uses square brackets instead of angle brackets. The basic structure is always the same:
[tag]content[/tag]For example, for bold text: [b]text[/b]. For italic text: [i]text[/i]. The same principle applies to images, with the [img] tag.
BBCode is supported by the major forum platforms - phpBB, MyBB, vBulletin, XenForo, SMF, Invision Power Board - and by most Romanian forums. Each forum's administrator decides which tags are allowed, but [img] is available on almost every platform that supports formatting.
The [img] tag - basic syntax
The standard tag for inserting an image in BBCode is:
[img]DIRECT_IMAGE_LINK[/img]When you submit your post, the forum automatically converts this code into the HTML tag <img src=""> and the image appears visible in the thread, with no need for readers to click a link or download anything.
Concrete example:
[img]https://s.pixhub.ro/example.jpg[/img]The key condition: the link between the tags must be a direct link to the image file - a URL that ends in the image extension (.jpg, .png, .webp, .gif, etc.) and that, when opened directly in a browser, shows only the image, with no web page around it.
A page link - something like https://pixhub.ro/image/photo-123 - won't work inside the [img] tag. The forum will either display a broken icon or ignore the tag entirely.
Advanced BBCode variants for images
Besides the basic syntax, there are a few useful variants available on most forum platforms:
Clickable image (clicking the image opens a URL)
You can turn an image into a clickable link by combining the [url] and [img] tags:
[url=https://pixhub.ro][img]https://s.pixhub.ro/example.jpg[/img][/url]When someone clicks the image, they'll be redirected to the URL specified in the [url] tag. Useful for banners, product links, or reference images.
Image with specific dimensions
Some platforms (vBulletin and XenForo in particular) let you specify dimensions directly in the tag:
[img width=640 height=480]https://s.pixhub.ro/example.jpg[/img]Or in an alternative format:
[img=640x480]https://s.pixhub.ro/example.jpg[/img]Check your forum's documentation for the exact accepted syntax - not every platform supports this format.
Clickable thumbnail image
On forums with photo galleries, a thumbnail is often used that, when clicked, opens the full-resolution image:
[url=https://s.pixhub.ro/large-image.jpg][img]https://s.pixhub.ro/thumbnail.jpg[/img][/url]This method is popular on car, photography, or tech forums where many images get posted - it reduces the space taken up in the thread and improves the reading experience.
Multiple images in the same post
You can insert as many images as you want in a single post by repeating the tag for each one:
[img]https://s.pixhub.ro/photo1.jpg[/img]
[img]https://s.pixhub.ro/photo2.jpg[/img]
[img]https://s.pixhub.ro/photo3.jpg[/img]The images will appear stacked in the post, in the order you added them.
Why isn't the image showing up on the forum? Causes and fixes
This is the most common problem forum users run into. There are a few distinct causes, each with its own fix:
Cause 1: You used a page link instead of a direct link
Example of a wrong link: https://platform.ro/image/vacation-photo-2024
Example of a correct link: https://s.pixhub.ro/vacation-photo.jpg
Fix: replace the link with a direct one pointing to the file. If you're not sure how to get a direct link, read our guide on what a direct image link is, or just use PixHub's image hosting service, which generates one automatically.
Cause 2: The image requires authentication to access
If you uploaded the image to a platform that restricts access (a private album, a shared folder with limited permissions), the forum can't fetch the file even though you can see it in your own account. The forum makes an anonymous request to the URL - if that URL requires login, the request fails.
Fix: use an image hosting platform with a public link, no authentication required.
Cause 3: The hosting platform applies hotlink protection
Some storage services block images from displaying on external domains - a practice called hotlink protection. The server refuses to serve the file if the request comes from a domain other than its own.
Fix: choose an image hosting platform that explicitly allows hotlinking - this is a core feature of any dedicated image hosting service, including PixHub.ro.
Cause 4: The link expired or the image was deleted
Some free services delete images after 30-90 days of inactivity. If your post is older than that, the images may already have been removed from the server.
Fix: re-upload the image and update the link in your post, or choose a platform with long-term storage from the start.
Cause 5: The forum doesn't allow displaying external images
Some forums disable the [img] tag for security reasons or to reduce external traffic. In that case, you'll see the text link but not the image.
Fix: check the forum's rules and settings. If [img] is disabled, there's no fix on the user's side - contact the forum administrator.
Cause 6: The BBCode syntax is wrong
Common mistakes: spaces inside the tags ([ img ]), a missing closing tag ([img]link with no [/img]), quotation marks around the link ([img]"link"[/img]), or special characters in the URL.
Fix: check the syntax - [img], the full URL, [/img], with no spaces or extra characters.
How to get a direct link for BBCode - step by step
The easiest way to get a direct link compatible with any forum is to use a dedicated online image hosting platform. PixHub.ro automatically generates the complete BBCode after every upload - you don't have to build anything by hand.
Go to pixhub.ro from any browser, on desktop or mobile.
Upload the image via drag & drop or the select button. The platform accepts JPG, PNG, GIF, WebP, and other common formats.
Wait for processing - 2-5 seconds for typical files.
Copy the automatically generated BBCode - it looks like this:
[img]https://s.pixhub.ro/unique-id.jpg[/img]Paste the code directly into the forum's message field and submit your post.
The image will automatically appear in the thread, visible to all members, with no attachments or visible external links.
Tips for posting images on forums
Optimize the image size before uploading
An 8-20 megapixel photo from a modern phone can easily exceed 5-10 MB. On a forum, an image 1200-1600 pixels wide is more than enough and will load much faster for other members. Compress the image before uploading if the original size is very large.
Don't delete images from the hosting platform
If you delete the file from the hosting platform, every post using that link will show a broken image. Once you've posted an image on a forum and want to keep it visible, don't delete the original file.
Test the link before posting
Open the direct link in a new browser tab. If the browser shows only the image on a plain background, with no page or interface around it, the link is correct and will work in BBCode. If anything else shows up, the link isn't direct.
Use thumbnails for threads with many images
If you're posting 10-20 photos (an event, a photo tutorial, a DIY project), inserting them at full resolution makes the thread hard to navigate. Use the clickable thumbnail variant for a better experience.
Follow the forum's rules about images
Many forums have rules about maximum image size, the number of images per post, or the type of content allowed. Check the rules before posting long series of photos.
Frequently asked questions about images and BBCode on forums
Why does my image show up as a text link instead of displaying?
You most likely used a page link instead of a direct link. Check whether the URL ends in the image extension (.jpg, .png, .webp, etc.) and open it in a new tab - it should show only the image, with no web interface. If not, replace it with a direct link from an image hosting platform.
Does BBCode [img] work on every forum?
On the vast majority, yes. The [img] tag is supported by phpBB, MyBB, vBulletin, XenForo, SMF, and most Romanian forums. Some administrators may disable external images for security reasons - in that case, the tag won't work regardless of the link.
Can I resize the image directly from BBCode?
It depends on the forum platform. vBulletin and some XenForo versions support [img width=X height=Y]. Standard phpBB doesn't support size attributes in the [img] tag. Check your forum's documentation or help section.
Can I insert several images in the same post?
Yes, BBCode itself has no limit - you can repeat the [img]...[/img] tag for each image. The forum may impose a maximum number of images per post through admin settings, but that's a forum-level restriction, not a BBCode one.
How do I make an image clickable in BBCode?
Wrap the [img] tag inside the [url] tag: [url=https://destination-address.ro][img]image-link.jpg[/img][/url]. When someone clicks the image, they'll be redirected to the URL in [url].
How long does an image stay visible on the forum after I post it?
The image stays visible as long as the file exists on the hosting platform and the link is active. If you delete the file, or the platform removes it automatically after a period of inactivity, the image will disappear from the post. Choose a platform with long-term storage for posts you want to keep intact.
Why does the image show up for me but not for other members?
If you can see the image but other users can't, the hosting platform probably requires authentication to access it - you're logged into your account and can see it, but the forum makes anonymous requests. Make sure the link is public, accessible without an account or login.
Can I use PixHub for any Romanian forum?
Yes. PixHub.ro generates direct links and BBCode compatible with all the major forum platforms - phpBB, MyBB, vBulletin, XenForo - and with Romanian forums that support the [img] tag. The code generated automatically after upload can be copied and pasted straight into the message field.
Post images to a forum in seconds
PixHub.ro automatically generates the complete BBCode after upload - copy it, paste it into your post, done. No mandatory account, no compression, no expiring links.
Upload an Image for Your Forum