Ddarek Posted August 5, 2005 Share Posted August 5, 2005 I tried to force my shop not to show right column in specific situation. First when Manufacturer is call and second when clients navigate through category. Pleaese find my piece of code from catalog/index.php <?php if ( !(isset($_GET['cPath']) or isset($_GET['manufacturers_id'])) ) { ?> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <?php } else { ?> <!-- body_text_eof //--> <td width="0" valign="top"><table border="0" width="0" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <?php } ?> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> It works fine but the problem is when I turn the SafeURL mode on. Than right column is visible all the time. Any suggestions ? Help Link to comment Share on other sites More sharing options...
Guest Posted August 5, 2005 Share Posted August 5, 2005 I believe you are refering to friendly urls what happens is once you enable it the address path/variables change. Cuz you're testing for cpath and manufacturer_id. Do you have friendly url contribution installed? Link to comment Share on other sites More sharing options...
Ddarek Posted August 5, 2005 Author Share Posted August 5, 2005 I believe you are refering to friendly urls what happens is once you enable it the address path/variables change. Cuz you're testing for cpath and manufacturer_id. Do you have friendly url contribution installed? <{POST_SNAPBACK}> I just mention standard safe url path alredy instaleed in oscommerce like this www.shop.com/index.php/cpath/5 instead of www.shop.com/index.php?cpath=5 Link to comment Share on other sites More sharing options...
Guest Posted August 5, 2005 Share Posted August 5, 2005 Can you check with $HTTP_GET_VARS instead of the $_GET I dont know how you manipulate the arrays elsewhere in your site but it could be the problem as cPath and manufacturer_id are manipulated through $HTTP_GET_VARS - at least in my case. So you could try this: if ( !(isset($HTTP_GET_VARS['cPath']) or isset($HTTP_GET_VARS['manufacturers_id'])) ) { ?> Link to comment Share on other sites More sharing options...
Ddarek Posted August 5, 2005 Author Share Posted August 5, 2005 I suspected it from very beginning but my knowledge about php is very little Thnx for help. It works Now I can make step ahead to Ultimate SEO URL :) or at least part of it :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.