Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Right Side Column Infoboxes are too Small


raVen2tt

Recommended Posts

Posted

Hi there, I'm having a little problem, I changed the Box_Width to 215, so that my categories would fit, but I'm using the Loginbox contribution, and whenever I'm unlogged and as long as the loginbox is on the page, the right side info boxes are the apropriate size, but whenever I'm logged on or if the loginbox ain't on the page, my right side column infoboxes get really small.

 

Does anybody have a clue why is this?

Posted

Can you post a link so we can see it?

Posted

This is kinda of a professional project so, I can't give the link out yet, sorry, but I can post screenshots.

 

Logged Off (Loginbox Active)

Logged On (Loginbox Turn into My Account Box)

 

Thanks in advance for helping bktrain.

When you said you changed the width, did you make that change in includes/application_top.php? That code looks like this

// customization for the design layout
 define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125)

Can pm me the link?

With out seeing the source code it's hard to say what is going on.

Be careful if you post any source code here. It will probably contain your website address.

Posted

Sorry I really can't give out the store link until it is fully functional, but if you think that any source code would be helpful I'll post it without problem.

About the width change, yes i changed it in includes/application_top.php, and on that line, so that's why I have no idea why the right column only is the size I defined when the liginbox infobox is there.

 

BTW I have more two problems with my store and maybe you can help me, one is that there's a huge space between the header bar (the bar on top, under the store banner) and the header_title (the text that is by default "What's New Here"), and I have no clue why, the other problem is on this thread:

http://www.oscommerce.com/forums/topic/359094-problem-unable-to-confirm-order/

 

Thanks once again

 

 

P.S. - Another thing, I have STS Installed too.

Posted

About the width change, yes i changed it in includes/application_top.php, and on that line, so that's why I have no idea why the right column only is the size I defined when the liginbox infobox is there.

Hard to say with out seeing it. Is it not wrong only during the check out process?

 

BTW I have more two problems with my store and maybe you can help me, one is that there's a huge space between the header bar (the bar on top, under the store banner) and the header_title (the text that is by default "What's New Here"), and I have no clue why

Again, hard to say with out seeing it. Post the code from your includes/header.php. Maybe I can see something.

 

In checout_process.php you should see this part towards the top

 if ( (tep_not_null(MODULE_PAYMENT_INSTALLED)) && (!tep_session_is_registered('payment')) ) {
   tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
}

Either your payment module is not installed or installed correctly, or you made some modifications to checkout_payment.php, checkout_confirmation.php that is not registering your payment module.

If you have made any mods to these pages it could be part of your problem with width issue.

Posted
Hard to say with out seeing it. Is it not wrong only during the check out process?

 

No it's always wrong as long as the loginbox infobox isn't there.

 

 

Again, hard to say with out seeing it. Post the code from your includes/header.php. Maybe I can see something.

 

Here it is:

<?php
/*
 $Id: header.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// check if the 'install' directory exists, and warn of its existence
 if (WARN_INSTALL_EXISTENCE == 'true') {
   if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
     $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');
   }
 }

// check if the configure.php file is writeable
 if (WARN_CONFIG_WRITEABLE == 'true') {
   if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
     $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
   }
 }

// check if the session folder is writeable
 if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
   if (STORE_SESSIONS == '') {
     if (!is_dir(tep_session_save_path())) {
       $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');
     } elseif (!is_writeable(tep_session_save_path())) {
       $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');
     }
   }
 }

// check session.auto_start is disabled
 if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
   if (ini_get('session.auto_start') == '1') {
     $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');
   }
 }

 if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
   if (!is_dir(DIR_FS_DOWNLOAD)) {
     $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');
   }
 }

 if ($messageStack->size('header') > 0) {
   echo $messageStack->output('header');
 }
?>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
 <tr class="headerNavigation">
   <td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>
   <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>
 </tr>
</table>
<?php
 if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerError">
   <td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>
 </tr>
</table>
<?php
 }

 if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerInfo">
   <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>
 </tr>
</table>
<?php
 }
?>

 

 

In checout_process.php you should see this part towards the top

if ( (tep_not_null(MODULE_PAYMENT_INSTALLED)) && (!tep_session_is_registered('payment')) ) {
   tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
}

Either your payment module is not installed or installed correctly, or you made some modifications to checkout_payment.php, checkout_confirmation.php that is not registering your payment module.

If you have made any mods to these pages it could be part of your problem with width issue.

 

I don't recall making any changes to the files, but I'll check the code you gave me, and if i don't find nothing I'll check the whole source again.

Edit: That code was indeed there I'll keep looking on the source for anything strange but I ain't finding anything, but if you think any code from this pages would helpful, I'll post it.

 

 

Once again, a million thanks for helping, I really apreciate.

Posted

 

I don't recall making any changes to the files, but I'll check the code you gave me, and if i don't find nothing I'll check the whole source again.

Edit: That code was indeed there I'll keep looking on the source for anything strange but I ain't finding anything, but if you think any code from this pages would helpful, I'll post it.

EDIT 2: Problem Solved, I really most have changed anything in those files a long time ago, I replaced them with the original ones and everything seems to be working.

 

 

Once again, a million thanks for helping, I really apreciate.

 

 

 

Problem Solved, I really most have changed anything in those files a long time ago, I replaced them with the original ones and everything seems to be working.

Posted

Problem Solved, I really most have changed anything in those files a long time ago, I replaced them with the original ones and everything seems to be working.

Is the problem the space under header solved too? I did not see anything with your code above.

Posted

Is the problem the space under header solved too? I did not see anything with your code above.

 

 

Yup just solved it and was going to post it right now, it was so stupid you won't believe it, when I modified my STS template I put some line breaker before (I have no idea why I did that), and that was the prblem.

 

 

My only problem right now is the infoboxes size, and I really can't figure it out.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...