Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

column_right.php


mid9tblue

Recommended Posts

my site looks somewhat like this: http://osc.template-help.com/osc_25917/index.php

the template i m using disabled column_right.php from the start

now i think i do need to use it to post some calendar and sale promotions.

so how do i enable right column again?

this is my current column_right.php

and it's quite empty.

 

<?php
/*
 $Id: column_right.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
*/ 
?>

 

Appreciate the help.

Link to comment
Share on other sites

btw since i saw it empty, so i tried copying my entire column_left.php to column_right.php just trying to see what it would look like, but it still didnt show up nothing.

I thought a identical column would show up on the right but it didnt happen.

Link to comment
Share on other sites

it was already like this:

 

  define('BOX_WIDTH_LEFT', 'box_width_left'); // how wide the boxes should be in pixels (default: 125)
 define('BOX_WIDTH_RIGHT', 'box_width_right'); // how wide the boxes should be in pixels (default: 125)
// start the timer for the page parse time log
 define('PAGE_PARSE_START_TIME', microtime());

 

i wonder what they did on this template to make the right part disappear :(

Link to comment
Share on other sites

i put that code in the application_top.php

and i edited column_right.php to this:

<?php
/*
 $Id: column_right.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
*/ 
/*  -------------------------------------------------------  */
  require(DIR_WS_BOXES . 'shopping_cart.php');   	
/*  -------------------------------------------------------  */ 
?>

 

Still didn't show up anything :(

 

i noticed the original coding for left and right column in application_top.php are identical

the left is showing but right not...

Link to comment
Share on other sites

your page source has this

 

<td class="box_width_td_right"><table border="0" class="125" cellspacing="0" cellpadding="0">

 

It should be outputted as

 

<td width="125" valign="top"><table border="0" width="125" cellspacing="0" cellpadding="2">

 

the bottom of your index.php should be like this (RELEVANT CODE)

<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>

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

Nik I was unable to space the right column, do you know what can i do to move it 30p away from the middle?

you can see what i mean if you take a look at it now: www.cloudywool.com

 

 

btw, if the code for adding a image w/link is:

 echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=1') . '">' . tep_image(DIR_WS_IMAGES . 'right.png', 'Recipes') . '</a>';

 

what's the code for adding a image w/o a link?

thx :)

Link to comment
Share on other sites

btw, if the code for adding a image w/link is:

 echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=1') . '">' . tep_image(DIR_WS_IMAGES . 'right.png', 'Recipes') . '</a>';

 

what's the code for adding a image w/o a link?

thx :)

Assuming you're within PHP tags:

 

echo tep_image(DIR_WS_IMAGES . 'myimage.gif', 'mytexthere');

Link to comment
Share on other sites

Assuming you're within PHP tags:

 

echo tep_image(DIR_WS_IMAGES . 'myimage.gif', 'mytexthere');

 

Is there any alignment option to keep the image at the bottom?

cause if i put this code in, the image shows at the top of the column doesn't matter where i insert it in the code :(

Link to comment
Share on other sites

Is there any alignment option to keep the image at the bottom?

cause if i put this code in, the image shows at the top of the column doesn't matter where i insert it in the code :(

I also failed to mention that there are like at least three different ways to insert an image. So I guess you should let us know just where you want your images to show. You said the top of a column (left or right?) is not where you want it. So where is it that you'd like to insert your image?

Link to comment
Share on other sites

I also failed to mention that there are like at least three different ways to insert an image. So I guess you should let us know just where you want your images to show. You said the top of a column (left or right?) is not where you want it. So where is it that you'd like to insert your image?

 

Sorry i didn't know, i just noticed i can't freely arrange the image like the other modules.

Now i need it at the bottom and centered. i am able to center it using html <p align="center"> code, but i don't know how to let it set at the bottom below all other modules. right now the paypal and security seal logo image is above all the modules in the left column, that's just weird.

Thanks a lot for your help.

 

29ncv0g.jpg

Link to comment
Share on other sites

Try this. Copied directly from osCommerce Documentation.

 

Page 68 of 114

 

Copyright © 2005 osCommerce. All rights reserved.

http://www.oscommerce.com

 

Add Image to Columns

 

You may want to add links or html to the left or right column without enclosing it in a

box, such as button advertising, logos, etc. In either column_left.php or

column_right.php

 

If you want your logos or date script at the top of your column you tag it like this and put

at the very top before the <?php tag

<font size=-2><b><?php echo strftime(DATE_FORMAT_LONG); ?></b></font>
<img src="/images/graphic.gif" width="155" height="75">
<img src="/images/graphic2.gif" width="150" height="115" border="1">
<?php

If you want your logo at the bottom of the column you tag it like this:

<td><img src="/images/ban_50off.gif" width="150" height="125" border="1"></td>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...