Resize image in embedded BB code

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Ideas Centre
Post Reply
N7AS
Registered User
Posts: 3
Joined: Wed Mar 10, 2021 11:54 pm

Resize image in embedded BB code

Post by N7AS »

I would like to resize the image in this BB code
This is an image of SpeedTest results that when inserted in a forum the image is way too large.

Image

How can I resize the image smaller?

HTML is really easy but in BB code it's not.
User avatar
Onnozel Manneke
Registered User
Posts: 145
Joined: Mon Feb 01, 2021 8:37 pm
Location: Walhalla
Name: Loki Heimdall
Contact:

Re: Resize image in embedded BB code

Post by Onnozel Manneke »

phpBB NL Extension translations on request.
Visit: https://www.phpbbnl.be

Image
N7AS
Registered User
Posts: 3
Joined: Wed Mar 10, 2021 11:54 pm

Re: Resize image in embedded BB code

Post by N7AS »

That is for someone who operates a Php BB.

I only want to reduce the image in my signature as a poster.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Resize image in embedded BB code

Post by Lumpy Burgertushie »

I don't believe you can do that at all.
as a non owner of the board you are visiting you have no permissions or access to be able to make any changes to any part of the code.


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
N7AS
Registered User
Posts: 3
Joined: Wed Mar 10, 2021 11:54 pm

Re: Resize image in embedded BB code

Post by N7AS »

I thought there was a BB code that I am not aware of. You can resize text and change its color.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Resize image in embedded BB code

Post by Lumpy Burgertushie »

there is but you cant create it if you are not the board admin.
you can ask the admin of that board to create a bbcode for you to use..
however, unless you are getting complaints about your image sizes when you post, why are you worried about it.

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
PlanetStyles.net
Former Team Member
Posts: 4809
Joined: Wed Nov 04, 2009 11:16 pm
Location: Way up in the sky close to the stars
Name: Christian
Contact:

Re: Resize image in embedded BB code

Post by PlanetStyles.net »

Best option is:

1) Download the image
2) Resize it using software on an online tool
3) Re-upload the smaller version to an image host such as https://imgbb.com/
4) Use the image path to the smaller version inside of the img BBCode :)
User avatar
Onnozel Manneke
Registered User
Posts: 145
Joined: Mon Feb 01, 2021 8:37 pm
Location: Walhalla
Name: Loki Heimdall
Contact:

Re: Resize image in embedded BB code

Post by Onnozel Manneke »

Well I guess the hard way is to create a bbcode like:

Code: Select all

[imageresized]{URL}[/imageresized]

Code: Select all

<img src="{URL}" alt="image" width="350" height="187" />
Image
phpBB NL Extension translations on request.
Visit: https://www.phpbbnl.be

Image
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Resize image in embedded BB code

Post by Lumpy Burgertushie »

you must have missed the part where the OP said it is not his board. he is a user and wants to somehow do this without access to create a bbcode or anything else. ;)

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: Resize image in embedded BB code

Post by 3Di »

Ditto. ^^
Onnozel Manneke wrote: Fri Mar 12, 2021 11:37 pm

Code: Select all

<img src="{URL}" alt="image" width="350" height="187" />
Moreover, the HTML tag IMG has not a closing tag. https://www.w3schools.com/tags/tag_img.asp

If you want to add a BBCode like that using the phpBB text formatter facilities you should add it from the repository
following the docs here: https://s9etextformatter.readthedocs.io ... epository/ (search for IMG)

BBCode usage

Code: Select all

[IMG src={URL;useContent} title={TEXT?} alt={TEXT?} height={UINT?}  width={UINT?} ]
HTML replacement

Code: Select all

<img src="{@src}" title="{@title}" alt="{@alt}">
    <xsl:copy-of select="@height"/>
    <xsl:copy-of select="@width"/>
</img>
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
Onnozel Manneke
Registered User
Posts: 145
Joined: Mon Feb 01, 2021 8:37 pm
Location: Walhalla
Name: Loki Heimdall
Contact:

Re: Resize image in embedded BB code

Post by Onnozel Manneke »

Ooooh that's a bigger problem 😂
phpBB NL Extension translations on request.
Visit: https://www.phpbbnl.be

Image
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Resize image in embedded BB code

Post by Lumpy Burgertushie »

and you still can not do that unless you can access the admin panel of the board that you want to use it on.
if you are not admin, there is nothing you can do on any board that you are not an admin of.


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Post Reply

Return to “phpBB Discussion”