MyBB Community Forums

Full Version: Images without thumbnails.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Usefull is you want eliminate thumbnails for some images without deactivate the function "Show Attached Thumbnails in Posts"

Name
Thumbnails full size

Regular Expression
\[attachment_fullsize=(.*?)\]

Replacement
<img src="/attachment.php?aid=$1">

How to use it
[attachment_fullsize=XY]
XY is the attachment number
I don't know why on many site it doesn't work ! Confused
It won't work because your not linking to a valid link. You're making your image /attachment, when there is no board url.

It needs to be <img src="(what eva your site link is)/attachment.php?aid=$1">
(2010-09-23, 08:40 PM)wethegreenpeople Wrote: [ -> ]It won't work because your not linking to a valid link. You're making your image /attachment, when there is no board url.

It needs to be <img src="(what eva your site link is)/attachment.php?aid=$1">

The browser puts the link there automatically.
If you're on forums.blablabla.com that's what will appear in the link (if you're in a directory, it will appear too)
Thanks for yours replies, the problem is that now i have two images Huh

[attachment=19990]
(2010-09-25, 01:32 PM)Pirata Nervo Wrote: [ -> ]
(2010-09-23, 08:40 PM)wethegreenpeople Wrote: [ -> ]It won't work because your not linking to a valid link. You're making your image /attachment, when there is no board url.

It needs to be <img src="(what eva your site link is)/attachment.php?aid=$1">

The browser puts the link there automatically.
If you're on forums.blablabla.com that's what will appear in the link (if you're in a directory, it will appear too)

Didn't do that for me... will that work even on images?
(2010-09-25, 03:27 PM)wethegreenpeople Wrote: [ -> ]
(2010-09-25, 01:32 PM)Pirata Nervo Wrote: [ -> ]
(2010-09-23, 08:40 PM)wethegreenpeople Wrote: [ -> ]It won't work because your not linking to a valid link. You're making your image /attachment, when there is no board url.

It needs to be <img src="(what eva your site link is)/attachment.php?aid=$1">

The browser puts the link there automatically.
If you're on forums.blablabla.com that's what will appear in the link (if you're in a directory, it will appear too)

Didn't do that for me... will that work even on images?

It should - never tried it on a MyCode though but plain HTML works like that
why can't you just use the img tags? what's wrong with them?
Just use this as the replacement

<img src="attachment.php?aid=$1">

I removed the / cause that take you all the way back to the root of the domain but if you have it in a subfolder it won't work.
Why are you getting double images? I have never had that problem before with these forums. I also just use the code [IMG] website/attachment [IMG].