Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

box style, need help


Mortenjan

Recommended Posts

Posted

Hi,

I have activated the information box.

Now i got a question.

How do i get the box's text to be same as the categories box text. If you understand? could take a look at jansrud.co.cc :)

 

 

Regards Morten

Posted

The HTML formatting needs to look like this:

 

<ul>
<li class="bg_list"><a href="http://jansrud.co.cc/oss.php">BOX_INFORMATION_OSS</a></li>
<li class="bg_list"><a href="http://jansrud.co.cc/shipping.php">Shipping & Returns</a></li>
<li class="bg_list"><a href="http://jansrud.co.cc/privacy.php">Privacy Notice</a></li>
<li class="bg_list"><a href="http://jansrud.co.cc/conditions.php">Conditions of Use</a></li>
<li class="bg_list"><a href="http://jansrud.co.cc/contact_us.php">Contact Us</a></li>
</ul>

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 >

Posted

thanks alot, but in what file?

 

* ok, i pasted the html code into the information.php. Much better now, but not exactly how i expected. A part of the style did not "transfer" from categories to information:) As you'll see on the webpage(jansrud.co.cc)

 

I want the line under the text and colour on the text to change:)

How do i fix this?

 

 

Regards Morten

Posted

Ummmm......

 

Most likely /includes/boxes/information.php

 

When you find it, if you want help fixing it, just post it's contents (preferrably in a CODE box to preserve formatting).

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 >

Posted

did you see my edit?:)

 

oh, hold on:O never mind my edit, i manually fixed the "stylesheet" some minutes ago. Think it was the reason

 

So, i have now backed up my original stylesheet.

 

Think i used your html code wrong..cause nothing have changed

Posted

Number 1: Pasting the HTML into the file was not my intention. It need to be done using PHP.

 

Number 2: The code is still coming out like this:

 

<a href="http://jansrud.co.cc/oss.php">BOX_INFORMATION_OSS</a><br>
<a href="http://jansrud.co.cc/shipping.php">Shipping & Returns</a><br>
<a href="http://jansrud.co.cc/privacy.php">Privacy Notice</a><br>
<a href="http://jansrud.co.cc/conditions.php">Conditions of Use</a><br>
<a href="http://jansrud.co.cc/contact_us.php">Contact Us</a><br>

Not exactly what I posted.

:blush:

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 >

Posted

Now it looks like this... well, something i have experienced, is that whatever i change in this php file, nothing changes.. think it can be blank without doing any damage at all! to say it with other words: im kinda frustrated right now.

<?php
 /*
 $Id: information.php,v 1.6 2002/11/22 18:56:08 dgw_ Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2002 osCommerce

 Released under the GNU General Public License
 */
?>
<!-- information //-->
         <tr>
           <td>

<ul>
<li class="bg_list"><a href="http://jansrud.co.cc/oss.php">BOX_INFORMATION_OSS</a></li>
<li class="bg_list"><a href="http://jansrud.co.cc/shipping.php">Shipping & Returns</a></li>
<li class="bg_list"><a href="http://jansrud.co.cc/privacy.php">Privacy Notice</a></li>
<li class="bg_list"><a href="http://jansrud.co.cc/conditions.php">Conditions of Use</a></li>
<li class="bg_list"><a href="http://jansrud.co.cc/contact_us.php">Contact Us</a></li>
</ul>

<?php


 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('text' => '<ul>
 										  <li class="bg_list"><a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a></li>' .
                                        '<li class="bg_list"><a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a></li>' .
                                        '<li class="bg_list"><a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a></li>' .
									 '<li class="bg_list"><a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a></li>' .
                                        '</ul>');

 new infoBox($info_box_contents);
?>
           </td>
         </tr>
<!-- information_eof //-->

Posted

Remove this code from the file:

 

<ul>
<li class="bg_list"><a href="http://jansrud.co.cc/oss.php">BOX_INFORMATION_OSS</a></li>
<li class="bg_list"><a href="http://jansrud.co.cc/shipping.php">Shipping & Returns</a></li>
<li class="bg_list"><a href="http://jansrud.co.cc/privacy.php">Privacy Notice</a></li>
<li class="bg_list"><a href="http://jansrud.co.cc/conditions.php">Conditions of Use</a></li>
<li class="bg_list"><a href="http://jansrud.co.cc/contact_us.php">Contact Us</a></li>
</ul>

Then post the contents of /includes/column_left.php in a CODE box.

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 >

Posted

Here you go:) thanks alot for helping

<?php
/*
 $Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2003 osCommerce

 Released under the GNU General Public License
*/
?>
<table border="0"cellspacing="0" cellpadding="0" class="box_width_left">
<tr><td width="100%">
	<table border="0" cellspacing="0" cellpadding="0">
<?php
 if ((USE_CACHE == 'true') && empty($SID)) {
   echo tep_cache_categories_box();
 } else {
   include(DIR_WS_BOXES . 'categories.php');
 }
// ------------------------------------------------- 
 if (isset($HTTP_GET_VARS['products_id'])) {
   if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');
 } else {
   include(DIR_WS_BOXES . 'specials.php');
 }
// -------------------------------------------------  
// require(DIR_WS_BOXES . 'information.php');  
// -------------------------------------------------
// if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');
// -------------------------------------------------
// require(DIR_WS_BOXES . 'whats_new.php');  
// -------------------------------------------------
 if (isset($HTTP_GET_VARS['products_id'])) {
   if (tep_session_is_registered('customer_id')) {
     $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");
     $check = tep_db_fetch_array($check_query);
     if ($check['count'] > 0) {
//       include(DIR_WS_BOXES . 'best_sellers.php');
     } else {
//       include(DIR_WS_BOXES . 'product_notifications.php');
     }
   } else {
//     include(DIR_WS_BOXES . 'product_notifications.php');
   }
 } else {
//    include(DIR_WS_BOXES . 'best_sellers.php');
 }
// -------------------------------------------------  
//  if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');  
// -------------------------------------------------
 if ((USE_CACHE == 'true') && empty($SID)) {
   echo tep_cache_manufacturers_box();
 } else {
//    include(DIR_WS_BOXES . 'manufacturers.php');
 }
// -------------------------------------------------  
//  require(DIR_WS_BOXES . 'search.php');
// -------------------------------------------------
// require(DIR_WS_BOXES . 'reviews.php');  
// -------------------------------------------------
 if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
//    include(DIR_WS_BOXES . 'languages.php');
//    include(DIR_WS_BOXES . 'currencies.php');
 }
//  require(DIR_WS_BOXES . 'shopping_cart.php');  

?>
	</table>
</td>
<td><?php echo tep_draw_separator('spacer.gif', '5', '1'); ?></td></tr>
<!-- information //-->
         <tr>
           <td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('text' => '<a href="' . tep_href_link('oss.php') . '">' . BOX_INFORMATION_OSS . '</a><br>' .
                                        '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .
                                        '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .
                                        '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
                                        '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>');

 new infoBox($info_box_contents);
?>
           </td>
         </tr>
<!-- information_eof //-->



</table>

Posted

MAKE A BACKUP OF THE FILE.

 

PUT IT IN A SAFE PLACE FOR NOW.

 

Then replace the contents of the original with this code:

 

<?php
/*
$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

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

Copyright © 2003 osCommerce

Released under the GNU General Public License
*/
?>
<table border="0"cellspacing="0" cellpadding="0" class="box_width_left">
<tr><td width="100%">
<table border="0" cellspacing="0" cellpadding="0">
<?php
if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_categories_box();
} else {
include(DIR_WS_BOXES . 'categories.php');
}
// ------------------------------------------------- 
if (isset($HTTP_GET_VARS['products_id'])) {
if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');
} else {
include(DIR_WS_BOXES . 'specials.php');
}
// ------------------------------------------------- 
// require(DIR_WS_BOXES . 'information.php'); 
// -------------------------------------------------
// if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');
// -------------------------------------------------
// require(DIR_WS_BOXES . 'whats_new.php'); 
// -------------------------------------------------
if (isset($HTTP_GET_VARS['products_id'])) {
if (tep_session_is_registered('customer_id')) {
$check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");
$check = tep_db_fetch_array($check_query);
if ($check['count'] > 0) {
// include(DIR_WS_BOXES . 'best_sellers.php');
} else {
// include(DIR_WS_BOXES . 'product_notifications.php');
}
} else {
// include(DIR_WS_BOXES . 'product_notifications.php');
}
} else {
// include(DIR_WS_BOXES . 'best_sellers.php');
}
// ------------------------------------------------- 
// if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); 
// -------------------------------------------------
if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_manufacturers_box();
} else {
// include(DIR_WS_BOXES . 'manufacturers.php');
}
// ------------------------------------------------- 
// require(DIR_WS_BOXES . 'search.php');
// -------------------------------------------------
// require(DIR_WS_BOXES . 'reviews.php'); 
// -------------------------------------------------
if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
// include(DIR_WS_BOXES . 'languages.php');
// include(DIR_WS_BOXES . 'currencies.php');
}
// require(DIR_WS_BOXES . 'shopping_cart.php'); 

?>
</table>
</td>
<td><?php echo tep_draw_separator('spacer.gif', '5', '1'); ?></td></tr>
<!-- information //-->
<tr>
<td>

<?php

$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

new infoBoxHeading($info_box_contents, false, false);

$info_box_contents = array();
$info_box_contents[] = array('text' => '<ul>
<li class="bg_list"><a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a></li>' .
'<li class="bg_list"><a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a></li>' .
'<li class="bg_list"><a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a></li>' .
'<li class="bg_list"><a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a></li>' .
'</ul>');

new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- information_eof //-->

</table>

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 >

Posted

oh you fixed it! Thanks ALOT! im so gratful!:)

 

Just, not to be pricky, but one page went away:S My "homemade" one..

 

Got a clue?

 

Regards Morten

Posted

Ya, I kinda noticed that:

 

<li class="bg_list"><a href="http://jansrud.co.cc/oss.php">BOX_INFORMATION_OSS</a></li>

What's the name of the "homemade" PHP file and I'll help you get it back in there.

:unsure:

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 >

Posted

NEVERMIND!!!

 

I'll post the code in a sec...

 

Brainfart here...

:blush:

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 >

Posted

BACKUP THE FILE AGAIN.

 

We don't want to lose what we've gained.

;)

 

Replace this code:

 

<li class="bg_list"><a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a></li>' .
'<li class="bg_list"><a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a></li>' .
'<li class="bg_list"><a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a></li>' .
'<li class="bg_list"><a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a></li>' .

With:

 

<li class="bg_list"><a href="' . tep_href_link('oss.php') . '">' . BOX_INFORMATION_OSS . '</a></li>' .
'<li class="bg_list"><a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a></li>' .
'<li class="bg_list"><a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a></li>' .
'<li class="bg_list"><a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a></li>' .
'<li class="bg_list"><a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a></li>' .

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 >

Posted
Damn, i love you, hah:p

:blush:

 

Well, gee.....

 

I'm flattered, but I'm "taken" and, although I'm not positive on your gender, if you're not female "the wind doesn't blow that way".

 

If you get my drift.

;)

 

Just glad to help.

 

And I'll offer a few words of advice.

 

Always backup before editing anything.

 

You have a custom template so be careful when installing any contributions.

 

They are written for "stock" osC code.

 

Your code will be different.

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 >

Archived

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

×
×
  • Create New...