Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sorting and a Question


Guest

Recommended Posts

Posted

I have the contribution Attribute Manager installed and working, I was still not able to sorth the arrtibutes like I needed. Seeing that they went alphabetically, I placed a letter of the alphabet in front of the option, thereby placing them in the order I wanted.

 

QUESTION

I have created a NEW infobox, I have it appearing but when I click on the link I get the following message

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /public_html/catalog/includes/functions/database.php:13) in /public_html/catalog/includes/functions/database.php on line 13

Any and all help or guidance would be appreciated.

Posted

post your code for the new infobox...

 

Bobby

Posted
post your code for the new infobox...

 

Bobby

?>

<!-- customerhelp //-->

<tr>

<td>

<?php

$info_box_contents = array();

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

 

new infoBoxHeading($info_box_contents, false, false);

 

 

$info_box_contents = array();

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_FONTSTYLE) . '">' . BOX_CUSTOMERHELP_FONTSTYLE . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_KJV) . '">' . BOX_CUSTOMERHELP_KJV . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_NIV) . '">' . BOX_CUSTOMERHELP_NIV . '</a>');

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- customerhelp_eof //-->

Posted

The problem is in one of the 3 files that are being linked: FILENAME_FONTSTYLE, FILENAME_KJV, or FILENAME_NIV.

 

Which file is the one that you are clicking on and getting that error?

 

Bobby

Posted
The problem is in one of the 3 files that are being linked: FILENAME_FONTSTYLE, FILENAME_KJV, or FILENAME_NIV.

 

Which file is the one that you are clicking on and getting that error?

 

Bobby

 

This one, I have only created one file and then wanted to verify it worked. ONce that was accomplished then I will create the remaining files.

HERE IS the code

<?php

/*

$Id: fontstyle.php,v 1.22 2003/06/05 23:26:23 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_FONTSTYLE);

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_FONTSTYLE));

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

 

<!-- body //-->

<table border="0" width="100%" cellspacing="3" cellpadding="3">

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="main"><FONT SIZE="+2"

COLOR="blue">God's Promises on Jewelry</FONT>strives to make your shopping experience with us as easy and convinent as possible. Therefore we have included links to graphic pages that will show you what the different fonts will look like.<BR>

<a href=

"http://www.scripture-jewelry.com/GPfontpg1.jpg" title="Font examples page one">Font Examples

page 1</a><BR>

<a href=

"http://www.scripture-jewelry.com/GPfontpg2.jpg" title="Font examples page two">Font Examples

page 2</a><BR>

<a href=

"http://www.scripture-jewelry.com/GPfontpg3.jpg" title="Font examples page three">Font Examples

page 3</a><BR>

<a href=

"http://www.scripture-jewelry.com/GPfontpg4.jpg" title="Font examples page four">Font Examples

page 4</a><BR>

<a href=

"http://www.scripture-jewelry.com/GPfontpg5.jpg" title="Font examples page five">Font Examples

page 5</a><BR>

<a href=

"http://www.scripture-jewelry.com/GPfontpg6.jpg" title="Font examples page six">Font Examples

page 6</a><BR>

<a href=

"http://www.scripture-jewelry.com/GPfontpg7.jpg" title="Font examples page seven">Font Examples

page 7</a><BR></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

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

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

<br>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Posted

Check your langugage file...make sure you don't have any other include statements in there. Specifically, an include for application_top.php or database.php

 

Bobby

Posted
Check your langugage file...make sure you don't have any other include statements in there.  Specifically, an include for application_top.php or database.php

 

Bobby

This is what I put into the language file

I copied the information section and then modified it for customer helps

 

// information box text in includes/boxes/information.php

define('BOX_HEADING_INFORMATION', 'Information');

define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');

define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');

define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');

define('BOX_INFORMATION_CONTACT', 'Contact Us');

 

// information box text in includes/boxes/customerhelp.php

define('BOX_HEADING_CUSTOMERHELP', 'Customer Helps');

define('BOX_CUSTOMERHELP_FONTSTYLE', 'Font Style');

define('BOX_CUSTOMERHELP_KJV', 'King James Version');

define('BOX_CUSTOMERHELP_NIV', 'New International Version');

Archived

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

×
×
  • Create New...