1
jpboss
Re: RSS news bug
  • 2003/11/12 11:41

  • jpboss

  • Just popping in

  • Posts: 5

  • Since: 2003/7/7 2


I'm not sure, because I have the same problem with this RSS

http://www.vg.no/export/Alle/rdf.hbs

And this one is encoded in iso-8859-1


Quote:

onokazu wrote:
It might be possible that their encoding produces that error you are getting. The XOOPS headline module currently supports iso-8859-1 or utf8 encoded RSS news feeds, officially.



2
jpboss
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/7/8 1:17

  • jpboss

  • Just popping in

  • Posts: 5

  • Since: 2003/7/7 2


The thumbnails was all "wierdo" with this hack (I didn't notice if it was before the hack). If the image was in "portrait" aspectratio and not "landscape" the thumbnail was zoomed up and got pixelated.

I modded my own "modules/xoopsgallery/blocks/xoopsgallery_blocks.php" with the following code:
if( $hw[0] > $hw[1]) {  
                                if (
intval($options[1]) < $hw[0]) {
                                        
$image['width'] = intval($options[1]);
                                        
$image['height'] = $hw[1] * ($image['width'] / $hw[0]);
                                } else {
                                        
$image['width'] = $hw[0];
                                        
$image['height'] = $hw[1];
                                }
                        } else {
                                if (
intval($options[1]) < $hw[1]) {
                                        
$image['height'] = intval($options[1]);
                                        
$image['width'] = $hw[0] * ($image['height'] / $hw[1]);
                                } else {
                                        
$image['width'] = $hw[0];
                                        
$image['height'] = $hw[1];
                                }
                        }


This was the code before I changed it:
if (intval($options[1]) < $hw[0]) {
                                
$image['width'] = intval($options[1]);
                                
$image['height'] = $hw[1] * ($image['width'] / $hw[0]);
                        } else {
                                
$image['width'] = $hw[0];
                                
$image['height'] = $hw[1];
                        }


I'm sure my conditional block might be improved, but it's 3am in the morning here, and I'm too tired to bother. With four glasses of red wine those lines of code took me two hours to get right *lol*



3
jpboss
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/7/8 0:06

  • jpboss

  • Just popping in

  • Posts: 5

  • Since: 2003/7/7 2


I have the same problem, and the hack from Sir ThanksALot didn't help me :(

Still have the index array out of bounds error :(

Can you email me the comments file that u're using, because I have a "fresh" install and no 2.0.2 files



4
jpboss
Re: Xoops Gallery
  • 2003/7/7 23:15

  • jpboss

  • Just popping in

  • Posts: 5

  • Since: 2003/7/7 2


The comment problem is really anoying. What needs to be fixed with gallery to get it working. Where should I look. I'm okay at coding, but new to Xoops




TopTop



Login

Who's Online

157 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 157


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