1
linuxway
How to force hspace value around every image from the news section?
  • 2004/6/30 3:55

  • linuxway

  • Just popping in

  • Posts: 4

  • Since: 2004/5/2 3


How to force an hspace and vspace of lets say 5px around every image, displayed in the articles of the news section?

Thanks.

2
linuxway
Re: How to force hspace value around every image from the news section?
  • 2004/6/30 12:26

  • linuxway

  • Just popping in

  • Posts: 4

  • Since: 2004/5/2 3


Does someone know where XOOPS generates the image tag of an article (story)?

I want to force a 5px space around any image displayed in the News section. I do not want to alter the images of the other sections of the site.

Thank you.

3
hsalazar
Re: How to force hspace value around every image from the news section?
  • 2004/6/30 14:42

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


linuxway:

This depends on what you call "the image tag of an article". If you mean the topic icon, the one that has a link to the topic index, it's defined within the class newsstory. Look for the file modules/news/class/class.newsstory.php and there look for the function imglink(). I can't give you the lines because I use News 1.2 and you might have News 1.1, but it's around lines 237-244. By default, this function has a 10px space both in the horizontal and the vertical sides.

If you mean the images placed within an article/story, then we're talking of a different subject. For that you'd have to trace the workings of the image manager, assuming you use the image manager to place your images. Personally, I put the code by hand, using floated layers to place images wherever I want. If I want an image in the right side, for instance, I use something like:

<div style="float: right; width: 120px; margin: 6px 0 8px 6px;"><img src="here-the-path-to-the-image" /></div>

This gives me more control about where I place things.

Cheers.

4
linuxway
Re: How to force hspace value around every image from the news section?
  • 2004/6/30 17:17

  • linuxway

  • Just popping in

  • Posts: 4

  • Since: 2004/5/2 3


hsalazar, your second solution - using the div tag with the style attribute - is perfect! Thank you.

5
wcrwcr
Re: How to force hspace value around every image from the news section?
  • 2004/9/17 5:42

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hey hsalazar

Nice solution!
I was looking for It.
Thanks

Login

Who's Online

207 user(s) are online (139 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