mid9tblue Posted December 27, 2009 Share Posted December 27, 2009 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 More sharing options...
mid9tblue Posted December 27, 2009 Author Share Posted December 27, 2009 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 More sharing options...
FIMBLE Posted December 27, 2009 Share Posted December 27, 2009 check your includes/application_top.php for this (around line 60 i would guess) box_width_right it will be like this define('box_width_right',0); change the 0 to 125 or similar see if shows up then Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
mid9tblue Posted December 27, 2009 Author Share Posted December 27, 2009 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 More sharing options...
FIMBLE Posted December 27, 2009 Share Posted December 27, 2009 not sure what's going on there as the code should be, try it out define('BOX_WIDTH_RIGHT', 125); // how wide the boxes should be in pixels (default: 125) Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
mid9tblue Posted December 28, 2009 Author Share Posted December 28, 2009 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 More sharing options...
FIMBLE Posted December 28, 2009 Share Posted December 28, 2009 Might help if we can see your site, whats the URL? Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
mid9tblue Posted December 28, 2009 Author Share Posted December 28, 2009 it's right here: www.cloudywool.com btw the language is random now, you will need to click the usa logo to view it in english. thx Link to comment Share on other sites More sharing options...
FIMBLE Posted December 28, 2009 Share Posted December 28, 2009 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 More sharing options...
mid9tblue Posted December 28, 2009 Author Share Posted December 28, 2009 omg it showed!!!! thank you Nic!!!! Link to comment Share on other sites More sharing options...
FIMBLE Posted December 28, 2009 Share Posted December 28, 2009 Glad it worked, you need to do this on every top level php page you want to show the column on now. Regards Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
mid9tblue Posted December 28, 2009 Author Share Posted December 28, 2009 i'll be working on it :D Thx~ Link to comment Share on other sites More sharing options...
FIMBLE Posted December 28, 2009 Share Posted December 28, 2009 No Problem Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
mid9tblue Posted December 28, 2009 Author Share Posted December 28, 2009 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 More sharing options...
a.forever Posted December 28, 2009 Share Posted December 28, 2009 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 More sharing options...
mid9tblue Posted December 28, 2009 Author Share Posted December 28, 2009 Assuming you're within PHP tags: echo tep_image(DIR_WS_IMAGES . 'myimage.gif', 'mytexthere'); just what i need, thank you sir :) Link to comment Share on other sites More sharing options...
mid9tblue Posted December 28, 2009 Author Share Posted December 28, 2009 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 More sharing options...
a.forever Posted December 29, 2009 Share Posted December 29, 2009 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 More sharing options...
mid9tblue Posted December 29, 2009 Author Share Posted December 29, 2009 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. Link to comment Share on other sites More sharing options...
a.forever Posted December 29, 2009 Share Posted December 29, 2009 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 More sharing options...
mid9tblue Posted December 29, 2009 Author Share Posted December 29, 2009 worked! thanks for the perfect answer, and the guidance to "what to read" :thumbsup: Link to comment Share on other sites More sharing options...
a.forever Posted December 29, 2009 Share Posted December 29, 2009 worked! thanks for the perfect answer, and the guidance to "what to read" :thumbsup: No problem. Just for sticklers, to be HTML 4.01 compliant you need an alt attribute for all images. Link to comment Share on other sites More sharing options...
mid9tblue Posted December 29, 2009 Author Share Posted December 29, 2009 No problem. Just for sticklers, to be HTML 4.01 compliant you need an alt attribute for all images. no wonder some html codes dont work even it i put them outside <?php?> that make sense now. thx again kev :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.