1
pmcnamara
Controlling Image Size..
  • 2005/11/10 16:17

  • pmcnamara

  • Friend of XOOPS

  • Posts: 147

  • Since: 2004/12/3


If I upload a file which is 400x400 pixels, but I want it displayed at 150x150 pixels...

Is there a way to write the tag so it resizes the image ?

Example:

[ img align=right ]http://www.footballfoundation.com/images/NFFLogo.jpg[/img]

Resized Image
How can I write the tag so it isn't displayed full size ?

Thanks

Patrick

2
Jack404
Re: Controlling Image Size..
  • 2005/11/10 16:43

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


http://www.bigbaer.com/css_tutorials/css.scale.image.html.tutorial.htm

An option for this would be to create a special css line for any [ img ] tags with a class that defines a set width. The link above shows you how to do the CSS, but you'll have to delve into the text sanitizer and such to figure out just where XOOPS changes the img tag over to an html tag and add a class="" to it.
Jack
Maker of useless code

3
pmcnamara
Re: Controlling Image Size..
  • 2005/11/11 13:41

  • pmcnamara

  • Friend of XOOPS

  • Posts: 147

  • Since: 2004/12/3


Jack.. I tried that, but didn't have a lot of luck. Might be over my head.

4
Shine
Re: Controlling Image Size..
  • 2005/11/13 18:47

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


Yes yes there is a hack made by happy linux (ohwada).
Haven't tried it and don't know if it is XOOPS 2.0.13.2 and/or 2.2.x compatible. For that compare the files!

This is the article:http://linux2.ohwada.net/modules/xfsection/article.php?articleid=25

You'll find the files within his download area.
http://linux2.ohwada.net/modules/mydownloads/

Grtz., Shine

Login

Who's Online

207 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 207


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits