soundsavers Posted April 25, 2009 Posted April 25, 2009 I've created a script which is very similar to the new_products feature which gets 10 products and puts them on the frontpage in a featured list. Although I'm having troble with some blank space of about 5 lines above the displayed output. The 2 things I thought it might be is - The splitPageResults class creating space to tell you which page of the results you're looking at. - Whenever there is a query error it appears at the top and takes up about as much space as the blank space I'm having trouble with. Does anyone know anything of these problems, has it happened to anyone else and is there a possible solution? I've done my best to explain it and hope it makes sense to someone :P Thanks
germ Posted April 25, 2009 Posted April 25, 2009 Oh, I know! It's.....? Or it could be ....? And if not it's....? Oh crap you're just going to have to give a URL. No one can say without looking at the HTML source. :huh: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
soundsavers Posted April 25, 2009 Author Posted April 25, 2009 http://www.soundsavers.com/catalog/index_new.php I'm referring to the white space at the top of the page. I've studied the HTML and can't see anything to indicate why it's doing that.
germ Posted April 25, 2009 Posted April 25, 2009 From your source: <style type="text/css"> img { -ms-interpolation-mode: bicubic; } </style> <br> <br> <br> <br> <br><table valign="top"> Get rid of the <br>'s :huh: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
soundsavers Posted April 25, 2009 Author Posted April 25, 2009 From your source: <style type="text/css"> img { -ms-interpolation-mode: bicubic; } </style> <br> <br> <br> <br> <br><table valign="top"> Get rid of the <br>'s :huh: I've viewed the source as the browser see's it in firefox and IE and haven't found those 5 <br> in either. Could you tell me how you're getting that, and which line number if you can? I might just be missing it. Thanks
germ Posted April 25, 2009 Posted April 25, 2009 If I look at the source in IE I see: <style type="text/css"> img { -ms-interpolation-mode: bicubic; } </style> </head> The </head> shouldn't be there. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
soundsavers Posted April 25, 2009 Author Posted April 25, 2009 If I look at the source in IE I see: <style type="text/css"> img { -ms-interpolation-mode: bicubic; } </style> </head> The </head> shouldn't be there. I don't think that's important though, the problem lies elsewhere, for example if you look at this, http://www.soundsavers.com/catalog/fpd.php you can see that it is something else causing it.
germ Posted April 25, 2009 Posted April 25, 2009 Take out the funky style and see what happens. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
soundsavers Posted April 25, 2009 Author Posted April 25, 2009 Take out the funky style and see what happens. By funky style if you mean that line of css, all that does is set how IE resizes the image because bicubic isn't set to default. It won't be anything to do with that. I'm sure the problem is with one of oscommerce' php functions that is for some reason adding lines for a different, unused purpose.
germ Posted April 25, 2009 Posted April 25, 2009 By funky style if you mean that line of css, all that does is set how IE resizes the image because bicubic isn't set to default. It won't be anything to do with that. I'm sure the problem is with one of oscommerce' php functions that is for some reason adding lines for a different, unused purpose. Highly unlikely as no one else has this problem in all the tens of thousands of stores on the net. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
soundsavers Posted April 25, 2009 Author Posted April 25, 2009 Highly unlikely as no one else has this problem in all the tens of thousands of stores on the net. Apologies, I'm not explaining myself very well. http://pastebin.com/m375dda5a That is what is running behind the previous link. I'm fairly certain that it is one of those tep_ functions, or, something to do with the splitProductsQuery object that would normally act correctly, but I've edited in such a way that it creates the blank space for a purpose, but fills it with nothing causing the apparent gap. Thanks for your continued efforts.
germ Posted April 25, 2009 Posted April 25, 2009 Play ball with me and take out the funky style, just as a test. <_< That's the only thing I see in the code that is not "standard". I know what it's for, I just want to find out if it's the cause. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
soundsavers Posted April 25, 2009 Author Posted April 25, 2009 Play ball with me and take out the funky style, just as a test. <_< That's the only thing I see in the code that is not "standard". I know what it's for, I just want to find out if it's the cause. http://www.soundsavers.com/catalog/forGerm.php Sorry to disappoint! I have nightmares about trying to solve this :(
germ Posted April 25, 2009 Posted April 25, 2009 In the test page you made for me: Change all the </td><br> to just </td> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
h2oHOH Posted April 25, 2009 Posted April 25, 2009 no DOCTYPE, makes it hard to debug...you could try this and see if it would work??? <style type="text/css"> <!-- img { -ms-interpolation-mode: bicubic } --> </style> hoping this may help....???? _sM
soundsavers Posted April 25, 2009 Author Posted April 25, 2009 Thanks h2oHOH, I already tried getting rid of that CSS though. Got rid of one instance of the <br>, Seems like no difference to me :/ What's also confusing me is why the blank space appears before anything else. It would be easier to trace the cause if it was in the middle. Thanks for the continued help guys, appreciate it.
germ Posted April 25, 2009 Posted April 25, 2009 Change all the: <tr><br> to <tr> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
soundsavers Posted April 25, 2009 Author Posted April 25, 2009 I got rid of all <br> thinking it would result in a huge mess of cells and rows but to my suprise and joy it's kinda fixed it. http://www.soundsavers.com/catalog/forGerm.php Just need to put back in the ones that align everything :) Thanks Germ, you've been a star
germ Posted April 25, 2009 Posted April 25, 2009 You're welcome. :) Ad astra per aspera ;) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
h2oHOH Posted April 25, 2009 Posted April 25, 2009 Germ, you've been a star Indeed! Interesting fix Jim! ... not sure why those <tr><br>'s put space at the top of the table though..? _seanMichael
germ Posted April 25, 2009 Posted April 25, 2009 My theory is: <table> <tr> <td> <br> </td> </tr> </table> Is correct syntax. The <br> lies correctly placed within the table element. While: <table> <tr><br> <td> </td> </tr> </table> or <table> <tr> <td> </td><br> </tr> </table> Is "incorrect" syntax because the <br> isn't properly placed inside the table so the browser lumped them together OUTSIDE the table. At least that's my story and I'm sticking to it! :lol: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
h2oHOH Posted April 25, 2009 Posted April 25, 2009 yes, that makes perfect sense, think i learnt something important with this one. thanks_sM
Recommended Posts
Archived
This topic is now archived and is closed to further replies.