how to limit image width in posts?

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Anti-Spam Guide
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
market
Registered User
Posts: 56
Joined: Sun Jun 22, 2008 9:52 am

Re: how to limit image width in posts?

Post by market »

There's no downloading anything.

go to your admin section (acp)
click the "Posting" tab
click the "Add new BBCode button"

for usage put: [imgsize]{TEXT}[/imgsize]
for html replacement put: <img src="{TEXT}" height="600" width="600" />
my helpline says: wrap url to image in tags
check the "display on postings page.


Now when you do a post, just do
[imgsize]http://www.domain.com/theimagetoshow.jpg[/imgsize]

This'll make all images that use this bbcode be 600px, but if I need another size I'll just make another bbcode for it.

avillabon
Registered User
Posts: 68
Joined: Mon Jul 14, 2008 3:51 am
Location: Venezuela
Contact:

Re: how to limit image width in posts?

Post by avillabon »

hey the code seems to be working but it is only scaling the image's width not the height. How can it scale it on both height and width the same amount?

and one more thing (look at the attachment) the imagesize button is the last in the list and i would like to move it to where i show on the attachment or even better replace "Img" with the new imgsize one. How can i do this?

Alex
Attachments
imgsize.jpg
imgsize.jpg (35.14 KiB) Viewed 39 times

avillabon
Registered User
Posts: 68
Joined: Mon Jul 14, 2008 3:51 am
Location: Venezuela
Contact:

Re: how to limit image width in posts?

Post by avillabon »

anyone? how can i scale both height and width proportionally?

Alex

picdome
Registered User
Posts: 55
Joined: Fri Apr 04, 2008 12:48 pm

Re: how to limit image width in posts?

Post by picdome »

width and height set to 600 then it s sure it will re-size both



#########################################
hello in some forums i saw tht .. the forum width is increasing according to image width ... how it is done?? .. :?:
MalluYouTube.comDesi Youtube For Desi People

avillabon
Registered User
Posts: 68
Joined: Mon Jul 14, 2008 3:51 am
Location: Venezuela
Contact:

Re: how to limit image width in posts?

Post by avillabon »

if i set both to 600 but then a rectangular picture will be scaled to 600x600 and become square therefore loose the way its supposed to look. am i making any sense?

Alex

Locked

Return to “[3.0.x] Support Forum”