1
domineaux
News Module - 100x100 jpg and 2 lines of text - screwy looking
  • 2004/4/17 1:39

  • domineaux

  • Quite a regular

  • Posts: 389

  • Since: 2002/9/29


When news item is entered with a graphic. If the text area doesn't in rows cover the height of the graphic, the graphic drops below and out of the news block. The bottom borders of the block do not descend below the graphic.

Strange inconsistent appearance. Is there a fix for this?
==========================top border=================|
------- Now is the first time for all good men
|-----| Now is the second time for all good men
|-jpg-|=================bottom border================|
|-----|
-------

Do you get the picture

I really don't want to be editing news items

I thought it had to do with the user entering text in the second extended text box, when the first box wasn't full.

That's not it. It there isn't enough text in rows to include the graphic size in vertical rows the bottom border moves up and cuts into the graphic. If you have two such situations you have a confusing situation at best.

It can be fixed, but it will require users to not be able to submit directly. The admin will have to enter a text item at or below the bottom of the graphic.

Sooooo is there a fix or hack for this?

2
JackJ
Re: New Module - 100x100 jpg and 2 lines of text - screwy looking
  • 2004/4/17 9:55

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


Yes the default template has the text code enclosed in

tags, rather than divs or table tags etc. This is defined in your system admin/templates/news. Users can enter hard returns to match the picture length, but an ify way to go.

Look for news_item.html in your default clone template or whatever template you have, looks like this:


<{$story.title}>


<{$lang_postedby}> <{$story.poster}> <{$lang_on}> <{$story.posttime}> (<{$story.hits}> <{$lang_reads}>)


<{$story.imglink}>

<{$story.text}>




<{$story.adminlink}> <{$story.morelink}>



You might change it to something like this with tables or divs, and adjust it to your preferences:



<{$story.title}>


<{$lang_postedby}> <{$story.poster}> <{$lang_on}> <{$story.posttime}> (<{$story.hits}> <{$lang_reads}>)






<{$story.imglink}>
<{$story.text}>


<{$story.adminlink}> <{$story.morelink}>




The x2t "tar" template in your extras folder has some very good extra code for the news item display. You would need to change the "classes" to match the classes in your style.css for your theme if not using x2t.

Extra Keywords:

news module image display overlap over-lap size big large

3
domineaux
Re: New Module - 100x100 jpg and 2 lines of text - screwy looking
  • 2004/4/17 21:11

  • domineaux

  • Quite a regular

  • Posts: 389

  • Since: 2002/9/29


Sorry, I even tried the x2t template. Same thing, the image drops below the bottom line.

I appreciate your response.

I wonder what is Xoops.org doing to prevent this sort of thing in the news submittals. I wonder if they're putting in a carriage return at the lower right corner of every graphic put up...

This news mod has been around since day one. I can't imagine something so common would be an issue. LOL


4
JackJ
Re: New Module - 100x100 jpg and 2 lines of text - screwy looking
  • 2004/4/17 21:15

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


Well it does on mine, and the hack I mentioned above works on mine, did you clear out template_c etc.

http://www.macambridge.com

See my site for an example

5
domineaux
Re: New Module - 100x100 jpg and 2 lines of text - screwy looking
  • 2004/4/17 21:39

  • domineaux

  • Quite a regular

  • Posts: 389

  • Since: 2002/9/29


news_item.html

I replaced this:
Quote:


<{$story.imglink}>

<{$story.text}>





with this:
Quote:






<{$story.imglink}>
<{$story.text}>



I then emptied the templates_c folder of the three x2t file entries.

6
JackJ
Re: New Module - 100x100 jpg and 2 lines of text - screwy looking
  • 2004/4/17 21:46

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


What is your default template in general settings? My default clone works fine with this, so I am flummoxed, and you can see the x2t theme working on mine. What theme are you using?

7
domineaux
Re: News Module - 100x100 jpg and 2 lines of text -bad render
  • 2004/4/19 20:08

  • domineaux

  • Quite a regular

  • Posts: 389

  • Since: 2002/9/29


I've been testing it on the x2t theme.

Still no go.

The sad part about this is...I'm using the XOOPS Core and none of the modules that come in the core package. That is, if I can't resolve this issue with the overlapping graphics.

---------------

8
Mithrandir
Re: News Module - 100x100 jpg and 2 lines of text -bad render

It should be fixed in the News v1.2 BETA (And I mean Beta)

Do let me know if it isn't.

9
domineaux
Re: News Module - 100x100 jpg and 2 lines of text -bad render
  • 2004/4/19 21:17

  • domineaux

  • Quite a regular

  • Posts: 389

  • Since: 2002/9/29


[size=x-large]It appears to be fixed[/size]

Thank you very much, I really wanted to use this module.

------------------------

Login

Who's Online

371 user(s) are online (241 user(s) are browsing Support Forums)


Members: 0


Guests: 371


more...

Donat-O-Meter

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

Latest GitHub Commits