Jump to content
Sign in to follow this  
toyicebear

Basic Design Pack Support

Recommended Posts

Thanks a lot for the quick answer, however this did not solve the problem. I should have clarified, the problem was never the top margin. The problem is instead that Firefox will still show the website as centered. In Explorer the website is aligned to the left which is the way I want to have it.

Share this post


Link to post
Share on other sites
Thanks a lot for the quick answer, however this did not solve the problem. I should have clarified, the problem was never the top margin. The problem is instead that Firefox will still show the website as centered. In Explorer the website is aligned to the left which is the way I want to have it.

 

 

Take not of the removal of:

 

 

margin: auto;

 

 

This should make your site stay on the left side

 

 

Rember to press CTRL + F5 awhen vieing site after having done stylesheet changes

Share this post


Link to post
Share on other sites

Thanks.

Now there are problems with some of the buttons, they are too short for some of the text fields. But I won't waste your time unless it is necessary. I think I have seen similar questions in your support thread.

 

Thanks again for your time

Share this post


Link to post
Share on other sites

A stupid question before I install -

 

In the zip file, the path is:

 

Basic_Design_Pack_2-5\Basic_Design_Pack_2-5\Basic Design Pack\

Basic_Design_Pack_2-5\Basic_Design_Pack_2-5\Basic Design Pack\catalog

Basic_Design_Pack_2-5\Basic_Design_Pack_2-5\Basic Design Pack\catalog\images

 

etc

 

To install, it says: "just drop over a default oscommerce shop"

 

I am presuming that means that the above folders - such as Catalog and Catalog\images etc - correspond to the OSCommerce shop site, and that the Basic Design Pack\Basic Design Pack\ folders aren't needed.

 

For example -if my store is in mydomain/shop - on the above folders

 

Basic_Design_Pack_2-5\Basic_Design_Pack_2-5\Basic Design Pack\

 

as indicated in the path of the above, would go into the mydomain/shop folder

 

Basic_Design_Pack_2-5\Basic_Design_Pack_2-5\Basic Design Pack\catalog

 

would go in the mydomain\shop\catalog folder

 

Basic_Design_Pack_2-5\Basic_Design_Pack_2-5\Basic Design Pack\catalog\images

 

would go in the mydomain\shop\catalog\images folder

 

correct? Or is the Basic_Design_Pack_2-5 path required to be part of my shop as well?

 

I hope it's a stupid question, but I'd like to confirm what I think is correct before goofing up my install.

Share this post


Link to post
Share on other sites
A stupid question before I install -

 

In the zip file, the path is:

 

Basic_Design_Pack_2-5\Basic_Design_Pack_2-5\Basic Design Pack\

Basic_Design_Pack_2-5\Basic_Design_Pack_2-5\Basic Design Pack\catalog

Basic_Design_Pack_2-5\Basic_Design_Pack_2-5\Basic Design Pack\catalog\images

 

etc

 

To install, it says: "just drop over a default oscommerce shop"

 

 

No you don't include all the folders.

 

You basically just take all the content from inside the /catalog/ folder in the BDP pack and drop it over the folder where you have your shop files on your hosting.

Share this post


Link to post
Share on other sites
No you don't include all the folders.

 

You basically just take all the content from inside the /catalog/ folder in the BDP pack and drop it over the folder where you have your shop files on your hosting.

 

 

I installed everything, but now can't log in as the administrator of the store.

 

The message I get is:

 

riverhousegiftandgourmet.comdir_ws_http_cataloglogin.php' does not exist or is not available.

 

and it redirects me to a website:

 

http://wwww23.entry-not-found.com/search?q...ngBdxSb&rg=

 

I didn't think it did anything to the store administrator account.

 

The store itself though, appears to function.

 

Any idea as to what I need to edit & change to get my administration ability back?

 

SC

Share this post


Link to post
Share on other sites
I installed everything, but now can't log in as the administrator of the store.

 

The message I get is:

 

riverhousegiftandgourmet.comdir_ws_http_cataloglogin.php' does not exist or is not available.

 

and it redirects me to a website:

 

http://wwww23.entry-not-found.com/search?q...ngBdxSb&rg=

 

I didn't think it did anything to the store administrator account.

 

The store itself though, appears to function.

 

Any idea as to what I need to edit & change to get my administration ability back?

 

SC

 

 

From the looks of it you need to check your configuration files

 

 

includes/configuration.php

 

and

 

admin/includes/configuration.php

Share this post


Link to post
Share on other sites
From the looks of it you need to check your configuration files

 

 

includes/configuration.php

 

and

 

admin/includes/configuration.php

 

Here's the content of the files.

 

First is the one in the includes subfolder - it was configure.php not configuration.php

 

My store is in a folder called shop - www.mydomain.com/shop

the following is in the includes folder underneath that one:

 

define('HTTP_SERVER', 'http://riverhousegiftandgourmet.com');

define('HTTPS_SERVER', 'https://riverhousegiftandgourmet.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'riverhousegiftandgourmet.com');

define('HTTPS_COOKIE_DOMAIN', 'riverhousegiftandgourmet.com');

define('HTTP_COOKIE_PATH', '/shop/');

define('HTTPS_COOKIE_PATH', '/shop/');

define('DIR_WS_HTTP_CATALOG', '/shop/');

define('DIR_WS_HTTPS_CATALOG', '/shop/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/riverhou/public_html/shop/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

 

The one following here comes out of the admin/includes folder - it's also called configure.php

 

define('HTTP_SERVER', 'http://riverhousegiftandgourmet.com');

define('HTTP_CATALOG_SERVER', 'http://riverhousegiftandgourmet.com');

define('HTTPS_CATALOG_SERVER', 'https://riverhousegiftandgourmet.com');

define('ENABLE_SSL_CATALOG', false);

define('DIR_FS_DOCUMENT_ROOT', '/home/riverhou/public_html/shop/');

define('DIR_WS_ADMIN', '/shop/admin/');

define('DIR_FS_ADMIN', '/home/riverhou/public_html/shop/admin/');

define('DIR_WS_CATALOG', '/shop/');

define('DIR_FS_CATALOG', '/home/riverhou/public_html/shop/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

If anyone sees anything, please let me know.

 

Thanks,

 

SC

Share this post


Link to post
Share on other sites

Firstly, thanks to the Contrib authors for their efforts.

 

Trawling this topic has not helped. How are info box borders removed?

 

Colin.

Share this post


Link to post
Share on other sites

I'm still unable to get to my admin function, although the website (store) seems to still function properly.

 

To see what was different, I installed a second version of OSCommerce on my site, and then downloaded & compared the two folders to see what differences are. Outside of the Images folder, there are a few files that exist either only in my shop folder, or are different between the default install and the install with Basic Design Pack.

 

The files that exist in both, but are different are:

 

http://www.riverhousegiftandgourmet.com/shop is the root folder -

 

\stylesheet.css

\admin\includes\configure.php

\admin\includes\footer.php

\admin\includes\header.php

\admin\includes\boxes\catalog.php

\admin\includes\boxes\tools.php

\admin\includes\classes\table_block.php

\admin\includes\functions\html_output.php

\includes\configure.php

\includes\header.php

\includes\languages\english\conditions.php

\includes\languages\english\privacy.php

\includes\languages\english\shipping.php

\includes\languages\english\images\icon.gif

 

Other items exist only in the original store folder, where Basic Design Pack was installed.

 

When I try to go to the URL that was my admin login, it was:

http://www.riverhousegiftandgourmet.com/shop/admin

it now goes to:

 

http://riverhousegiftandgourmet.comdir_ws_...taloglogin.php/

and gives me an Address Not Found error.

 

The last 5 files above, I know are different, because I put conditions, privacy, shipping info into them.

 

Outside of the others, I can tell what the differences are, but I do not know what's required to make OSCommerce's admin feature to work in conjunction with Basic Design Pack. I'm using Textpad to compare the files and here's the output comparing the header.php file in Basic Design Pack to the one in the default installation of the store (my main installation should match the BDP version - I haven't changed it).

 

Compare: (<)E:\test1\Basic_Design_Pack_2-5\Basic_Design_Pack_2-5\Basic Design pack\catalog\includes\header.php (3762 bytes)

with: (>)E:\test1\shop2\includes\header.php (4393 bytes)

 

1,3c1,3

< <?php

< /*

< $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

---

> <?php

> /*

> $Id: header.php 1739 2007-12-20 00:52:16Z hpdl $

55,58c55,58

< <div class="fixcenter">

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

< <tr class="header">

< <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

---

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

> <tr class="header">

> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</a>'; ?></td>

> <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>

72c72

< <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>

---

> <td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>

82c82

< <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>

---

> <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>

 

 

I'd had so much work done on my install that I don't really want to remove it & re-install, I had a bunch of graphics, etc there as well that I'd like to keep with it. Even though it's in testing, I still don't want to have to nuke the installation over what should be a fairly straightforward fix.

 

Any ideas as to what I need to look at, from the files that are different?

 

On

\admin\includes\configure.php

 

the only differences are folder names & database login info, so I think that one could be ruled out.

 

If anyone could help, I would be very appreciative. I'm basically screwed until I can get this worked out.

 

SC

Share this post


Link to post
Share on other sites

I just started renaming the existing files in my store, and replacing them with the default filenames in the second install.

 

When I got to html_output and replaced the existing (BDP) one with the default one, I got a new error:

 

Fatal error: Call to undefined function: size() in /home/riverhou/public_html/shop/admin/includes/header.php on line 51

 

There's a considerable amount of differences in the html_output.php (BDP) and the default html_output.php files:

 

Compare: (<)E:\test1\Basic_Design_Pack_2-5\Basic_Design_Pack_2-5\Basic Design pack\catalog\includes\functions\html_output.php (11842 bytes)

with: (>)E:\test1\shop2\admin\includes\functions\html_output.php (13165 bytes)

 

1,3c1,3

< <?php

< /*

< $Id: html_output.php,v 1.56 2003/07/09 01:15:48 hpdl Exp $

---

> <?php

> /*

> $Id: html_output.php 1739 2007-12-20 00:52:16Z hpdl $

8c8

< Copyright © 2003 osCommerce

---

> Copyright © 2007 osCommerce

15,39c15,33

< function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) {

< global $request_type, $session_started, $SID;

<

< if (!tep_not_null($page)) {

< die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>');

< }

<

< if ($connection == 'NONSSL') {

< $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG;

< } elseif ($connection == 'SSL') {

< if (ENABLE_SSL == true) {

< $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG;

< } else {

< $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG;

< }

< } else {

< die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>');

< }

<

< if (tep_not_null($parameters)) {

< $link .= $page . '?' . tep_output_string($parameters);

< $separator = '&';

< } else {

< $link .= $page;

< $separator = '?';

---

> function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL') {

> if ($page == '') {

> die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');

> }

> if ($connection == 'NONSSL') {

> $link = HTTP_SERVER . DIR_WS_ADMIN;

> } elseif ($connection == 'SSL') {

> if (ENABLE_SSL == 'true') {

> $link = HTTPS_SERVER . DIR_WS_ADMIN;

> } else {

> $link = HTTP_SERVER . DIR_WS_ADMIN;

> }

> } else {

> die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL<br><br>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');

> }

> if ($parameters == '') {

> $link = $link . $page . '?' . SID;

> } else {

> $link = $link . $page . '?' . $parameters . '&' . SID;

44,67c38,59

< // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined

< if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) {

< if (tep_not_null($SID)) {

< $_sid = $SID;

< } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) {

< if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) {

< $_sid = tep_session_name() . '=' . tep_session_id();

< }

< }

< }

<

< if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) {

< while (strstr($link, '&&')) $link = str_replace('&&', '&', $link);

<

< $link = str_replace('?', '/', $link);

< $link = str_replace('&', '/', $link);

< $link = str_replace('=', '/', $link);

<

< $separator = '?';

< }

<

< if (isset($_sid)) {

< $link .= $separator . $_sid;

< }

---

> return $link;

> }

>

> function tep_catalog_href_link($page = '', $parameters = '', $connection = 'NONSSL') {

> if ($connection == 'NONSSL') {

> $link = HTTP_CATALOG_SERVER . DIR_WS_CATALOG;

> } elseif ($connection == 'SSL') {

> if (ENABLE_SSL_CATALOG == 'true') {

> $link = HTTPS_CATALOG_SERVER . DIR_WS_CATALOG;

> } else {

> $link = HTTP_CATALOG_SERVER . DIR_WS_CATALOG;

> }

> } else {

> die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL<br><br>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');

> }

> if ($parameters == '') {

> $link .= $page;

> } else {

> $link .= $page . '?' . $parameters;

> }

>

> while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1);

72,153c64,77

< // "On the Fly" Auto Thumbnailer using GD Library, servercaching and browsercaching

< // Scales product images dynamically, resulting in smaller file sizes, and keeps

< // proper image ratio. Used in conjunction with product_thumb.php t/n generator.

< function tep_image($src, $alt = '', $width = '', $height = '', $params = '') {

<

< // if no file exists display the 'no image' file

< if (!is_file($src)) {

< $src = "images/no_image.jpg";

< }

< // Set default image variable and code

< $image = '<img src="' . $src . '"';

<

< // Don't calculate if the image is set to a "%" width

< if (strstr($width,'%') == false || strstr($height,'%') == false) {

< $dont_calculate = 0;

< } else {

< $dont_calculate = 1;

< }

<

< // Dont calculate if a pixel image is being passed (hope you dont have pixels for sale)

< if (!strstr($image, 'pixel')) {

< $dont_calculate = 0;

< } else {

< $dont_calculate = 1;

< }

<

< // Do we calculate the image size?

< if (CONFIG_CALCULATE_IMAGE_SIZE && !$dont_calculate) {

<

< // Get the image's information

< if ($image_size = @getimagesize($src)) {

<

< $ratio = $image_size[1] / $image_size[0];

<

< // Set the width and height to the proper ratio

< if (!$width && $height) {

< $ratio = $height / $image_size[1];

< $width = intval($image_size[0] * $ratio);

< } elseif ($width && !$height) {

< $ratio = $width / $image_size[0];

< $height = intval($image_size[1] * $ratio);

< } elseif (!$width && !$height) {

< $width = $image_size[0];

< $height = $image_size[1];

< }

<

< // Scale the image if not the original size

< if ($image_size[0] != $width || $image_size[1] != $height) {

< $rx = $image_size[0] / $width;

< $ry = $image_size[1] / $height;

<

< if ($rx < $ry) {

< $width = intval($height / $ratio);

< } else {

< $height = intval($width * $ratio);

< }

<

< $image = '<img src="product_thumb.php?img=' . $src . '&w=' .

< tep_output_string($width) . '&h=' . tep_output_string($height) . '"';

< }

<

< } elseif (IMAGE_REQUIRED == 'false') {

< return '';

< }

< }

<

< // Add remaining image parameters if they exist

< if ($width) {

< $image .= ' width="' . tep_output_string($width) . '"';

< }

<

< if ($height) {

< $image .= ' height="' . tep_output_string($height) . '"';

< }

<

< if (tep_not_null($params)) $image .= ' ' . $params;

<

< $image .= ' border="0" alt="' . tep_output_string($alt) . '"';

<

< if (tep_not_null($alt)) {

< $image .= ' title="' . tep_output_string($alt) . '"';

< }

---

> ////

> // The HTML image wrapper function

> function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {

> $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"';

>

> if (tep_not_null($alt)) {

> $image .= ' title=" ' . tep_output_string($alt) . ' "';

> }

>

> if (tep_not_null($width) && tep_not_null($height)) {

> $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"';

> }

>

> if (tep_not_null($parameters)) $image .= ' ' . $parameters;

158,159c82

< }

<

---

> }

164,182c87,106

< // BEGIN: CSS Buttons Everywhere

< function tep_image_submit($image, $value = '-AltValue-', $parameters = '') {

< global $language;

< $css_submit = '<input type="submit" class="cssButton" value="' . tep_output_string($value) . '" />';

< return $css_submit;

< }

< // END: CSS Buttons Everywhere

<

< ////

< // Output a function button in the selected language

< // BEGIN: CSS Buttons Everywhere

< function tep_image_button($image, $value = '-AltValue-', $parameters = '') {

< global $language;

< $width = round((strlen($value) * 5.8),0) + 38;

< $image = '<div class="cssButton" style="width: '.$width.'px;"> ' . tep_output_string($value) . ' </div>';

< return $image;

< }

< // END: CSS Buttons Everywhere

<

---

> function tep_image_submit($image, $alt = '', $parameters = '') {

> global $language;

>

> $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"';

>

> if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "';

>

> if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;

>

> $image_submit .= '>';

>

> return $image_submit;

> }

>

> ////

> // Draw a 1 pixel black line

> function tep_black_line() {

> return tep_image(DIR_WS_IMAGES . 'pixel_black.gif', '', '100%', '1');

> }

>

190,198c114,118

< // Output a form

< function tep_draw_form($name, $action, $method = 'post', $parameters = '') {

< $form = '<form name="' . tep_output_string($name) . '" action="' . tep_output_string($action) . '" method="' . tep_output_string($method) . '"';

<

< if (tep_not_null($parameters)) $form .= ' ' . $parameters;

<

< $form .= '>';

<

< return $form;

---

> // Output a function button in the selected language

> function tep_image_button($image, $alt = '', $params = '') {

> global $language;

>

> return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $params);

202,216c122,149

< // Output a form input field

< function tep_draw_input_field($name, $value = '', $parameters = '', $type = 'text', $reinsert_value = true) {

< $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"';

<

< if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) {

< $field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"';

< } elseif (tep_not_null($value)) {

< $field .= ' value="' . tep_output_string($value) . '"';

< }

<

< if (tep_not_null($parameters)) $field .= ' ' . $parameters;

<

< $field .= '>';

<

< return $field;

---

> // javascript to dynamically update the states/provinces list when the country is changed

> // TABLES: zones

> function tep_js_zone_list($country, $form, $field) {

> $countries_query = tep_db_query("select distinct zone_country_id from " . TABLE_ZONES . " order by zone_country_id");

> $num_country = 1;

> $output_string = '';

> while ($countries = tep_db_fetch_array($countries_query)) {

> if ($num_country == 1) {

> $output_string .= ' if (' . $country . ' == "' . $countries['zone_country_id'] . '") {' . "\n";

> } else {

> $output_string .= ' } else if (' . $country . ' == "' . $countries['zone_country_id'] . '") {' . "\n";

> }

>

> $states_query = tep_db_query("select zone_name, zone_id from " . TABLE_ZONES . " where zone_country_id = '" . $countries['zone_country_id'] . "' order by zone_name");

>

> $num_state = 1;

> while ($states = tep_db_fetch_array($states_query)) {

> if ($num_state == '1') $output_string .= ' ' . $form . '.' . $field . '.options[0] = new Option("' . PLEASE_SELECT . '", "");' . "\n";

> $output_string .= ' ' . $form . '.' . $field . '.options[' . $num_state . '] = new Option("' . $states['zone_name'] . '", "' . $states['zone_id'] . '");' . "\n";

> $num_state++;

> }

> $num_country++;

> }

> $output_string .= ' } else {' . "\n" .

> ' ' . $form . '.' . $field . '.options[0] = new Option("' . TYPE_BELOW . '", "");' . "\n" .

> ' }' . "\n";

>

> return $output_string;

220,222c153,167

< // Output a form password field

< function tep_draw_password_field($name, $value = '', $parameters = 'maxlength="40"') {

< return tep_draw_input_field($name, $value, $parameters, 'password', false);

---

> // Output a form

> function tep_draw_form($name, $action, $parameters = '', $method = 'post', $params = '') {

> $form = '<form name="' . tep_output_string($name) . '" action="';

> if (tep_not_null($parameters)) {

> $form .= tep_href_link($action, $parameters);

> } else {

> $form .= tep_href_link($action);

> }

> $form .= '" method="' . tep_output_string($method) . '"';

> if (tep_not_null($params)) {

> $form .= ' ' . $params;

> }

> $form .= '>';

>

> return $form;

226,258c171,187

< // Output a selection field - alias function for tep_draw_checkbox_field() and tep_draw_radio_field()

< function tep_draw_selection_field($name, $type, $value = '', $checked = false, $parameters = '') {

< $selection = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"';

<

< if (tep_not_null($value)) $selection .= ' value="' . tep_output_string($value) . '"';

<

< if ( ($checked == true) || ( isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) && ( ($GLOBALS[$name] == 'on') || (isset($value) && (stripslashes($GLOBALS[$name]) == $value)) ) ) ) {

< $selection .= ' CHECKED';

< }

<

< if (tep_not_null($parameters)) $selection .= ' ' . $parameters;

<

< $selection .= '>';

<

< return $selection;

< }

<

< ////

< // Output a form checkbox field

< function tep_draw_checkbox_field($name, $value = '', $checked = false, $parameters = '') {

< return tep_draw_selection_field($name, 'checkbox', $value, $checked, $parameters);

< }

<

< ////

< // Output a form radio field

< function tep_draw_radio_field($name, $value = '', $checked = false, $parameters = '') {

< return tep_draw_selection_field($name, 'radio', $value, $checked, $parameters);

< }

<

< ////

< // Output a form textarea field

< function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) {

< $field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"';

---

> // Output a form input field

> function tep_draw_input_field($name, $value = '', $parameters = '', $required = false, $type = 'text', $reinsert_value = true) {

> global $HTTP_GET_VARS, $HTTP_POST_VARS;

>

> $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"';

>

> if ( ($reinsert_value == true) && ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) ) {

> if (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) {

> $value = stripslashes($HTTP_GET_VARS[$name]);

> } elseif (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) {

> $value = stripslashes($HTTP_POST_VARS[$name]);

> }

> }

>

> if (tep_not_null($value)) {

> $field .= ' value="' . tep_output_string($value) . '"';

> }

264,270c193

< if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) {

< $field .= stripslashes($GLOBALS[$name]);

< } elseif (tep_not_null($text)) {

< $field .= $text;

< }

<

< $field .= '</textarea>';

---

> if ($required == true) $field .= TEXT_FIELD_REQUIRED;

276,283c199,284

< // Output a form hidden field

< function tep_draw_hidden_field($name, $value = '', $parameters = '') {

< $field = '<input type="hidden" name="' . tep_output_string($name) . '"';

<

< if (tep_not_null($value)) {

< $field .= ' value="' . tep_output_string($value) . '"';

< } elseif (isset($GLOBALS[$name])) {

< $field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"';

---

> // Output a form password field

> function tep_draw_password_field($name, $value = '', $required = false) {

> $field = tep_draw_input_field($name, $value, 'maxlength="40"', $required, 'password', false);

>

> return $field;

> }

>

> ////

> // Output a form filefield

> function tep_draw_file_field($name, $required = false) {

> $field = tep_draw_input_field($name, '', '', $required, 'file');

>

> return $field;

> }

>

> ////

> // Output a selection field - alias function for tep_draw_checkbox_field() and tep_draw_radio_field()

> function tep_draw_selection_field($name, $type, $value = '', $checked = false, $compare = '') {

> global $HTTP_GET_VARS, $HTTP_POST_VARS;

>

> $selection = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"';

>

> if (tep_not_null($value)) $selection .= ' value="' . tep_output_string($value) . '"';

>

> if ( ($checked == true) || (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name]) && (($HTTP_GET_VARS[$name] == 'on') || (stripslashes($HTTP_GET_VARS[$name]) == $value))) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name]) && (($HTTP_POST_VARS[$name] == 'on') || (stripslashes($HTTP_POST_VARS[$name]) == $value))) || (tep_not_null($compare) && ($value == $compare)) ) {

> $selection .= ' CHECKED';

> }

>

> $selection .= '>';

>

> return $selection;

> }

>

> ////

> // Output a form checkbox field

> function tep_draw_checkbox_field($name, $value = '', $checked = false, $compare = '') {

> return tep_draw_selection_field($name, 'checkbox', $value, $checked, $compare);

> }

>

> ////

> // Output a form radio field

> function tep_draw_radio_field($name, $value = '', $checked = false, $compare = '') {

> return tep_draw_selection_field($name, 'radio', $value, $checked, $compare);

> }

>

> ////

> // Output a form textarea field

> function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) {

> global $HTTP_GET_VARS, $HTTP_POST_VARS;

>

> $field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"';

>

> if (tep_not_null($parameters)) $field .= ' ' . $parameters;

>

> $field .= '>';

>

> if ( ($reinsert_value == true) && ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) ) {

> if (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) {

> $field .= tep_output_string_protected(stripslashes($HTTP_GET_VARS[$name]));

> } elseif (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) {

> $field .= tep_output_string_protected(stripslashes($HTTP_POST_VARS[$name]));

> }

> } elseif (tep_not_null($text)) {

> $field .= tep_output_string_protected($text);

> }

>

> $field .= '</textarea>';

>

> return $field;

> }

>

> ////

> // Output a form hidden field

> function tep_draw_hidden_field($name, $value = '', $parameters = '') {

> global $HTTP_GET_VARS, $HTTP_POST_VARS;

>

> $field = '<input type="hidden" name="' . tep_output_string($name) . '"';

>

> if (tep_not_null($value)) {

> $field .= ' value="' . tep_output_string($value) . '"';

> } elseif ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) {

> if ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) ) {

> $field .= ' value="' . tep_output_string(stripslashes($HTTP_GET_VARS[$name])) . '"';

> } elseif ( (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) {

> $field .= ' value="' . tep_output_string(stripslashes($HTTP_POST_VARS[$name])) . '"';

> }

296,300c297,303

< global $session_started, $SID;

<

< if (($session_started == true) && tep_not_null($SID)) {

< return tep_draw_hidden_field(tep_session_name(), tep_session_id());

< }

---

> $string = '';

>

> if (defined('SID') && tep_not_null(SID)) {

> $string = tep_draw_hidden_field(tep_session_name(), tep_session_id());

> }

>

> return $string;

306a309,310

> global $HTTP_GET_VARS, $HTTP_POST_VARS;

>

312c317,323

< if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]);

---

> if (empty($default) && ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) ) {

> if (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) {

> $default = stripslashes($HTTP_GET_VARS[$name]);

> } elseif (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) {

> $default = stripslashes($HTTP_POST_VARS[$name]);

> }

> }

328,340d339

<

< ////

< // Creates a pull-down list of countries

< function tep_get_country_list($name, $selected = '', $parameters = '') {

< $countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));

< $countries = tep_get_countries();

<

< for ($i=0, $n=sizeof($countries); $i<$n; $i++) {

< $countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']);

< }

<

< return tep_draw_pull_down_menu($name, $countries_array, $selected, $parameters);

< }

 

 

My current OS Commerce install is:

 

2.2 Release Candidate 2a + buySAFE

 

The version of html_output.php I am using is the default one that came in BDP. Should I be using a different one?

Share this post


Link to post
Share on other sites

I dont know which version of BDP you are using, but none of them should have any changes to the admin section at all.

 

 

 

 

I'm still unable to get to my admin function, although the website (store) seems to still function properly.

Share this post


Link to post
Share on other sites
The version of html_output.php I am using is the default one that came in BDP. Should I be using a different one?

 

If you wish to use BDP , you need to use one of the included html_output.php or alternatively merge the changes with your exsisting one.

Share this post


Link to post
Share on other sites

Ok have read most of the last several pages of the Basic Design Pack posts:

here's the problem...

Website on Firefox and Safari looks great... IE 7 yuck.

 

The website = http://70.87.81.162/~bodhitre/catalog/ (I'm working on gettting it running before switching over the dns)

 

Here's what I've done...

1. added the following contributions: Basic Design Pack 2.4, Scrolling Best Sellers, Separate Pricing per Customer (for Wholesalers, Drop Shippers)

2. created a stylesheet separate for IE (for hacks and separate programming stylesheet-ie.css put it in the header.php file)

3. modified the catalog/stylesheet-ie.css to change the .CategoriesBoxHeading & .CategoriesBoxContent

 

Nowhere in the style sheets is there a New Times Roman font yet it continues to come up on the website in IE. I can take out the or add a width of 600px in either the categoriesboxheading or the infobox on the ie stylesheet and it doesn't reflect that change yet if I do it on the "normal" stylesheet.css for the firefox... it reads every bit of it.

 

It is as if IE7 is totally ignoring the entire stylesheet.

 

I have looked at the includes boxes and don't find anything in there that might change it. I am stumped!

Any help would certainly be appreciated.

Share this post


Link to post
Share on other sites
Ok have read most of the last several pages of the Basic Design Pack posts:

here's the problem...

Website on Firefox and Safari looks great... IE 7 yuck.

 

The website = http://70.87.81.162/~bodhitre/catalog/ (I'm working on gettting it running before switching over the dns)

 

Here's what I've done...

1. added the following contributions: Basic Design Pack 2.4, Scrolling Best Sellers, Separate Pricing per Customer (for Wholesalers, Drop Shippers)

2. created a stylesheet separate for IE (for hacks and separate programming stylesheet-ie.css put it in the header.php file)

3. modified the catalog/stylesheet-ie.css to change the .CategoriesBoxHeading & .CategoriesBoxContent

 

Nowhere in the style sheets is there a New Times Roman font yet it continues to come up on the website in IE. I can take out the or add a width of 600px in either the categoriesboxheading or the infobox on the ie stylesheet and it doesn't reflect that change yet if I do it on the "normal" stylesheet.css for the firefox... it reads every bit of it.

 

It is as if IE7 is totally ignoring the entire stylesheet.

 

I have looked at the includes boxes and don't find anything in there that might change it. I am stumped!

Any help would certainly be appreciated.

 

 

There is no need to make a specific for IE stylesheet, especially not for IE7

 

Just use 1 stylesheet for all browser but make sure that you use a styleset which is rendered more or less the same in all

Share this post


Link to post
Share on other sites

Hello

I have a problem with the image in home page (new_products), i want that the images will show with a different dimension, so can i set it manually and not with the admin panel that ridimension all the images in my shop.

 

How i can do it?

Share this post


Link to post
Share on other sites
Yes..

 

The side boxes are located in this folder: includes/boxes/

 

The center boxes are located in this folder: includes/modules/

 

Can't work on the images dimension on the index, how i can do it?

Bye

Share this post


Link to post
Share on other sites
Can't work on the images dimension on the index, how i can do it?

Bye

 

 

includes/modules/new_products.php

Share this post


Link to post
Share on other sites
includes/modules/new_products.php

 

 

It's impossible because i see in the images of the new_products a border that i can't find in the file new_products.

Edited by exhaust

Share this post


Link to post
Share on other sites
It's impossible because i see in the images of the new_products a border that i can't find in the file new_products.

 

 

see this: senzatitolo1mo9.png

Share this post


Link to post
Share on other sites
see this: senzatitolo1mo9.png

 

Then you are not using standard osCommerce with Basic Design Pack added, so you should ask questions in a support tread which is related to the version you are using.

Share this post


Link to post
Share on other sites
Then you are not using standard osCommerce with Basic Design Pack added, so you should ask questions in a support tread which is related to the version you are using.

 

Ok thanks

Share this post


Link to post
Share on other sites

Hey toyicebear,

 

I added several contribs before Basic Design Pack. So ist was some work to change everything manualy.

Now only two things do not work. Maybe you can help me.

 

Box Categories:

1. When I click a category, the arrow_right remains instead of arrow_down.

2. Same click, the text remains "regular" instead of "Bold" (active Category)

 

The Website: www.glaub-an-dich.de/catalog

 

It is not my own shop, it is a shop of a customer of mine, an is test-status yet. !

If you need more Information, please ask!

 

Thanks a lot!

 

Best regards

Michael

Share this post


Link to post
Share on other sites
Hey toyicebear,

 

I added several contribs before Basic Design Pack. So ist was some work to change everything manualy.

Now only two things do not work. Maybe you can help me.

 

Box Categories:

1. When I click a category, the arrow_right remains instead of arrow_down.

2. Same click, the text remains "regular" instead of "Bold" (active Category)

 

The Website: www.glaub-an-dich.de/catalog

 

It is not my own shop, it is a shop of a customer of mine, an is test-status yet. !

If you need more Information, please ask!

 

Thanks a lot!

 

Best regards

Michael

 

 

Check that you have added the relevant entries for the categories menu in the stylesheet.css file

 

You might look at the menus support tread for tips and tricks on how to fix it.

Edited by toyicebear

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×