Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

MediaHound

Archived
  • Posts

    58
  • Joined

  • Last visited

Posts posted by MediaHound

  1. I searched the thread but couldn't unearth how to do what I need. Unless I'm overlooking some setting or post somewhere.

    My problem is this:

    My site has HUGE images that I'm scaling down with this contribution.

    And the contribution works great, it creates the thumbnail that people can click to make larger.

    The problem stems when they make it larger.

    The large images are 1700 x 1280 and are still a bit big at that size for the "Click to enlarge" version.

    I need an intermediate size that would show up when clicked to be enlarged, that can still be clicked one step further to become the massive size if one wishes to see the detail that much more.

    Then clicked again to become intermediate, clicked again to become massive, so on and so forth, or x'd to close the popup.

     

    Would someone be kind enough to help me out or point me in the right direction?

    Thanks in advance.

     

    bump

  2. I searched the thread but couldn't unearth how to do what I need. Unless I'm overlooking some setting or post somewhere.

    My problem is this:

    My site has HUGE images that I'm scaling down with this contribution.

    And the contribution works great, it creates the thumbnail that people can click to make larger.

    The problem stems when they make it larger.

    The large images are 1700 x 1280 and are still a bit big at that size for the "Click to enlarge" version.

    I need an intermediate size that would show up when clicked to be enlarged, that can still be clicked one step further to become the massive size if one wishes to see the detail that much more.

    Then clicked again to become intermediate, clicked again to become massive, so on and so forth, or x'd to close the popup.

     

    Would someone be kind enough to help me out or point me in the right direction?

    Thanks in advance.

  3. well I have done all the file edits aside from the /admin/index.php file I describe above

    I didnt touch admin/index.php and the mod seems to be working oddly enough

    Is it safe to guess that all the code that goes in that file has been phased out of it's useful life anyway?

  4. Me again

    SO I've re-uploaded all my backed-up admin files and am doing the admin changed files edits all by hand and with a file compare utility.

    Uploading my backups got the errors to go away, but now I need to do my admin mods to install MVS.

    In the Admin_Install readme its telling me to open /admin/index.php

     

    ========================

    Find Lines 26 thru 30

    ========================

     

    array('title' => BOX_HEADING_CATALOG,

    'image' => 'catalog.gif',

    'href' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'),

    'children' => array(array('title' => CATALOG_CONTENTS, 'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog')),

    array('title' => BOX_CATALOG_MANUFACTURERS, 'link' => tep_href_link(FILENAME_MANUFACTURERS, 'selected_box=catalog')))),

     

    ===================

    Add after:

    ===================

     

    //MVS start

    array('title' => BOX_HEADING_VENDOR_MODULES,

    'image' => 'vendors.ico',

    'href' => tep_href_link(FILENAME_VENDORS, 'selected_box=vendors'),

    'children' => array(array('title' => BOX_HEADING_VENDORS, 'link' => tep_href_link(FILENAME_VENDORS, 'selected_box=vendors')),

    array('title' => BOX_VENDORS_REPORTS_PROD, 'link' => tep_href_link(FILENAME_PRODS_VENDORS, 'selected_box=vendors')),

    array('title' => BOX_VENDORS_ORDERS, 'link' => tep_href_link(FILENAME_ORDERS_VENDORS, 'selected_box=vendors'))

    )), //MVS end

     

     

     

     

    HOWEVER

     

    In the modded file there's this instead

      $cat = array(array('title' => BOX_HEADING_CONFIGURATION,
    				 'image' => 'configuration.gif',
    				 'href' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1'),
    				 'children' => array(array('title' => BOX_CONFIGURATION_MYSTORE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1')),
    									 array('title' => BOX_CONFIGURATION_LOGGING, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=10')),
    									 array('title' => BOX_CONFIGURATION_CACHE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=11')))),
    		   array('title' => BOX_HEADING_MODULES,
    				 'image' => 'modules.gif',
    				 'href' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment'),
    				 'children' => array(array('title' => BOX_MODULES_PAYMENT, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment')),
    									 array('title' => BOX_MODULES_SHIPPING, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=shipping')))),
    		   array('title' => BOX_HEADING_CATALOG,
    				 'image' => 'catalog.gif',
    				 'href' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'),
    				 'children' => array(array('title' => CATALOG_CONTENTS, 'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog')),
    									 array('title' => BOX_CATALOG_MANUFACTURERS, 'link' => tep_href_link(FILENAME_MANUFACTURERS, 'selected_box=catalog')))),
    						 //MVS start
    		   array('title' => BOX_HEADING_VENDOR_MODULES,
    				 'image' => 'vendors.ico',
    				 'href' => tep_href_link(FILENAME_VENDORS, 'selected_box=vendors'),
    				 'children' => array(array('title' => BOX_HEADING_VENDORS, 'link' => tep_href_link(FILENAME_VENDORS, 'selected_box=vendors')),
    									 array('title' => BOX_VENDORS_REPORTS_PROD, 'link' => tep_href_link(FILENAME_PRODS_VENDORS, 'selected_box=vendors')),
    									 array('title' => BOX_VENDORS_ORDERS, 'link' => tep_href_link(FILENAME_ORDERS_VENDORS, 'selected_box=vendors'))
    									 )), //MVS end
    		   array('title' => BOX_HEADING_LOCATION_AND_TAXES,
    				 'image' => 'location.gif',
    				 'href' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes'),
    				 'children' => array(array('title' => BOX_TAXES_COUNTRIES, 'link' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes')),
    									 array('title' => BOX_TAXES_GEO_ZONES, 'link' => tep_href_link(FILENAME_GEO_ZONES, 'selected_box=taxes')))),
    		   array('title' => BOX_HEADING_CUSTOMERS,
    				 'image' => 'customers.gif',
    				 'href' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers'),
    				 'children' => array(array('title' => BOX_CUSTOMERS_CUSTOMERS, 'link' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers')),
    									 array('title' => BOX_CUSTOMERS_ORDERS, 'link' => tep_href_link(FILENAME_ORDERS, 'selected_box=customers')))),
    		   array('title' => BOX_HEADING_LOCALIZATION,
    				 'image' => 'localization.gif',
    				 'href' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization'),
    				 'children' => array(array('title' => BOX_LOCALIZATION_CURRENCIES, 'link' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization')),
    									 array('title' => BOX_LOCALIZATION_LANGUAGES, 'link' => tep_href_link(FILENAME_LANGUAGES, 'selected_box=localization')))),
    		   array('title' => BOX_HEADING_REPORTS,
    				 'image' => 'reports.gif',
    				 'href' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports'),
    				 'children' => array(array('title' => REPORTS_PRODUCTS, 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports')),
    									 array('title' => REPORTS_ORDERS, 'link' => tep_href_link(FILENAME_STATS_CUSTOMERS, 'selected_box=reports')))),
    		   array('title' => BOX_HEADING_TOOLS,
    				 'image' => 'tools.gif',
    				 'href' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools'),
    				 'children' => array(array('title' => TOOLS_BACKUP, 'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools')),
    									 array('title' => TOOLS_BANNERS, 'link' => tep_href_link(FILENAME_BANNER_MANAGER, 'selected_box=tools')),
    									 array('title' => TOOLS_FILES, 'link' => tep_href_link(FILENAME_FILE_MANAGER, 'selected_box=tools')))));

    and my /admin/index.php nowhere has the find from lines 26 thru 30

    ========================

    			   array('title' => BOX_HEADING_CATALOG,
    				 'image' => 'catalog.gif',
    				 'href' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'),
    				 'children' => array(array('title' => CATALOG_CONTENTS, 'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog')),
    									 array('title' => BOX_CATALOG_MANUFACTURERS, 'link' => tep_href_link(FILENAME_MANUFACTURERS, 'selected_box=catalog')))),

    SO

     

    I'm wondering if I'm only supposed to put in the

    ===================
    Add after:
    ===================
    
    						 //MVS start
    		   array('title' => BOX_HEADING_VENDOR_MODULES,
    				 'image' => 'vendors.ico',
    				 'href' => tep_href_link(FILENAME_VENDORS, 'selected_box=vendors'),
    				 'children' => array(array('title' => BOX_HEADING_VENDORS, 'link' => tep_href_link(FILENAME_VENDORS, 'selected_box=vendors')),
    									 array('title' => BOX_VENDORS_REPORTS_PROD, 'link' => tep_href_link(FILENAME_PRODS_VENDORS, 'selected_box=vendors')),
    									 array('title' => BOX_VENDORS_ORDERS, 'link' => tep_href_link(FILENAME_ORDERS_VENDORS, 'selected_box=vendors'))
    									 )), //MVS end

     

    OR

    if I should put in the entire

     $cat = array(array('title' => BOX_HEADING_CONFIGURATION,
    				 'image' => 'configuration.gif',
    				 'href' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1'),
    				 'children' => array(array('title' => BOX_CONFIGURATION_MYSTORE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1')),
    									 array('title' => BOX_CONFIGURATION_LOGGING, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=10')),
    									 array('title' => BOX_CONFIGURATION_CACHE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=11')))),
    		   array('title' => BOX_HEADING_MODULES,
    				 'image' => 'modules.gif',
    				 'href' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment'),
    				 'children' => array(array('title' => BOX_MODULES_PAYMENT, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment')),
    									 array('title' => BOX_MODULES_SHIPPING, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=shipping')))),
    		   array('title' => BOX_HEADING_CATALOG,
    				 'image' => 'catalog.gif',
    				 'href' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'),
    				 'children' => array(array('title' => CATALOG_CONTENTS, 'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog')),
    									 array('title' => BOX_CATALOG_MANUFACTURERS, 'link' => tep_href_link(FILENAME_MANUFACTURERS, 'selected_box=catalog')))),
    						 //MVS start
    		   array('title' => BOX_HEADING_VENDOR_MODULES,
    				 'image' => 'vendors.ico',
    				 'href' => tep_href_link(FILENAME_VENDORS, 'selected_box=vendors'),
    				 'children' => array(array('title' => BOX_HEADING_VENDORS, 'link' => tep_href_link(FILENAME_VENDORS, 'selected_box=vendors')),
    									 array('title' => BOX_VENDORS_REPORTS_PROD, 'link' => tep_href_link(FILENAME_PRODS_VENDORS, 'selected_box=vendors')),
    									 array('title' => BOX_VENDORS_ORDERS, 'link' => tep_href_link(FILENAME_ORDERS_VENDORS, 'selected_box=vendors'))
    									 )), //MVS end
    		   array('title' => BOX_HEADING_LOCATION_AND_TAXES,
    				 'image' => 'location.gif',
    				 'href' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes'),
    				 'children' => array(array('title' => BOX_TAXES_COUNTRIES, 'link' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes')),
    									 array('title' => BOX_TAXES_GEO_ZONES, 'link' => tep_href_link(FILENAME_GEO_ZONES, 'selected_box=taxes')))),
    		   array('title' => BOX_HEADING_CUSTOMERS,
    				 'image' => 'customers.gif',
    				 'href' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers'),
    				 'children' => array(array('title' => BOX_CUSTOMERS_CUSTOMERS, 'link' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers')),
    									 array('title' => BOX_CUSTOMERS_ORDERS, 'link' => tep_href_link(FILENAME_ORDERS, 'selected_box=customers')))),
    		   array('title' => BOX_HEADING_LOCALIZATION,
    				 'image' => 'localization.gif',
    				 'href' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization'),
    				 'children' => array(array('title' => BOX_LOCALIZATION_CURRENCIES, 'link' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization')),
    									 array('title' => BOX_LOCALIZATION_LANGUAGES, 'link' => tep_href_link(FILENAME_LANGUAGES, 'selected_box=localization')))),
    		   array('title' => BOX_HEADING_REPORTS,
    				 'image' => 'reports.gif',
    				 'href' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports'),
    				 'children' => array(array('title' => REPORTS_PRODUCTS, 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports')),
    									 array('title' => REPORTS_ORDERS, 'link' => tep_href_link(FILENAME_STATS_CUSTOMERS, 'selected_box=reports')))),
    		   array('title' => BOX_HEADING_TOOLS,
    				 'image' => 'tools.gif',
    				 'href' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools'),
    				 'children' => array(array('title' => TOOLS_BACKUP, 'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools')),
    									 array('title' => TOOLS_BANNERS, 'link' => tep_href_link(FILENAME_BANNER_MANAGER, 'selected_box=tools')),
    									 array('title' => TOOLS_FILES, 'link' => tep_href_link(FILENAME_FILE_MANAGER, 'selected_box=tools')))));

     

    basically what I'm saying is that my /admin/index.php and the one in the mod distro are VERY different

    The mod /admin/index.php is this:

    <?php
    /*
     $Id: index.php,v 1.19 2003/06/27 09:38:31 dgw_ Exp $
    
     Modified for MVS V1.0 2006/03/25 JCK/CWG
     osCommerce, Open Source E-Commerce Solutions
     http://www.oscommerce.com
    
     Copyright (c) 2006 osCommerce
    */
    
     require('includes/application_top.php');
    
     $cat = array(array('title' => BOX_HEADING_CONFIGURATION,
    				 'image' => 'configuration.gif',
    				 'href' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1'),
    				 'children' => array(array('title' => BOX_CONFIGURATION_MYSTORE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1')),
    									 array('title' => BOX_CONFIGURATION_LOGGING, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=10')),
    									 array('title' => BOX_CONFIGURATION_CACHE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=11')))),
    		   array('title' => BOX_HEADING_MODULES,
    				 'image' => 'modules.gif',
    				 'href' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment'),
    				 'children' => array(array('title' => BOX_MODULES_PAYMENT, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment')),
    									 array('title' => BOX_MODULES_SHIPPING, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=shipping')))),
    		   array('title' => BOX_HEADING_CATALOG,
    				 'image' => 'catalog.gif',
    				 'href' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'),
    				 'children' => array(array('title' => CATALOG_CONTENTS, 'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog')),
    									 array('title' => BOX_CATALOG_MANUFACTURERS, 'link' => tep_href_link(FILENAME_MANUFACTURERS, 'selected_box=catalog')))),
    						 //MVS start
    		   array('title' => BOX_HEADING_VENDOR_MODULES,
    				 'image' => 'vendors.ico',
    				 'href' => tep_href_link(FILENAME_VENDORS, 'selected_box=vendors'),
    				 'children' => array(array('title' => BOX_HEADING_VENDORS, 'link' => tep_href_link(FILENAME_VENDORS, 'selected_box=vendors')),
    									 array('title' => BOX_VENDORS_REPORTS_PROD, 'link' => tep_href_link(FILENAME_PRODS_VENDORS, 'selected_box=vendors')),
    									 array('title' => BOX_VENDORS_ORDERS, 'link' => tep_href_link(FILENAME_ORDERS_VENDORS, 'selected_box=vendors'))
    									 )), //MVS end
    		   array('title' => BOX_HEADING_LOCATION_AND_TAXES,
    				 'image' => 'location.gif',
    				 'href' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes'),
    				 'children' => array(array('title' => BOX_TAXES_COUNTRIES, 'link' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes')),
    									 array('title' => BOX_TAXES_GEO_ZONES, 'link' => tep_href_link(FILENAME_GEO_ZONES, 'selected_box=taxes')))),
    		   array('title' => BOX_HEADING_CUSTOMERS,
    				 'image' => 'customers.gif',
    				 'href' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers'),
    				 'children' => array(array('title' => BOX_CUSTOMERS_CUSTOMERS, 'link' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers')),
    									 array('title' => BOX_CUSTOMERS_ORDERS, 'link' => tep_href_link(FILENAME_ORDERS, 'selected_box=customers')))),
    		   array('title' => BOX_HEADING_LOCALIZATION,
    				 'image' => 'localization.gif',
    				 'href' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization'),
    				 'children' => array(array('title' => BOX_LOCALIZATION_CURRENCIES, 'link' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization')),
    									 array('title' => BOX_LOCALIZATION_LANGUAGES, 'link' => tep_href_link(FILENAME_LANGUAGES, 'selected_box=localization')))),
    		   array('title' => BOX_HEADING_REPORTS,
    				 'image' => 'reports.gif',
    				 'href' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports'),
    				 'children' => array(array('title' => REPORTS_PRODUCTS, 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports')),
    									 array('title' => REPORTS_ORDERS, 'link' => tep_href_link(FILENAME_STATS_CUSTOMERS, 'selected_box=reports')))),
    		   array('title' => BOX_HEADING_TOOLS,
    				 'image' => 'tools.gif',
    				 'href' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools'),
    				 'children' => array(array('title' => TOOLS_BACKUP, 'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools')),
    									 array('title' => TOOLS_BANNERS, 'link' => tep_href_link(FILENAME_BANNER_MANAGER, 'selected_box=tools')),
    									 array('title' => TOOLS_FILES, 'link' => tep_href_link(FILENAME_FILE_MANAGER, 'selected_box=tools')))));
    
     $languages = tep_get_languages();
     $languages_array = array();
     $languages_selected = DEFAULT_LANGUAGE;
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
    $languages_array[] = array('id' => $languages[$i]['code'],
    						   'text' => $languages[$i]['name']);
    if ($languages[$i]['directory'] == $language) {
      $languages_selected = $languages[$i]['code'];
    }
     }
    ?>
    <!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>
    <style type="text/css"><!--
    a { color:#080381; text-decoration:none; }
    a:hover { color:#aabbdd; text-decoration:underline; }
    a.text:link, a.text:visited { color: #000000; text-decoration: none; }
    a:text:hover { color: #000000; text-decoration: underline; }
    a.main:link, a.main:visited { color: #ffffff; text-decoration: none; }
    A.main:hover { color: #ffffff; text-decoration: underline; }
    a.sub:link, a.sub:visited { color: #dddddd; text-decoration: none; }
    A.sub:hover { color: #dddddd; text-decoration: underline; }
    .heading { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; line-height: 1.5; color: #D3DBFF; }
    .main { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 17px; font-weight: bold; line-height: 1.5; color: #ffffff; }
    .sub { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; line-height: 1.5; color: #dddddd; }
    .text { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; line-height: 1.5; color: #000000; }
    .menuBoxHeading { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #ffffff; font-weight: bold; background-color: #7187bb; border-color: #7187bb; border-style: solid; border-width: 1px; }
    .infoBox { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #080381; background-color: #f2f4ff; border-color: #7187bb; border-style: solid; border-width: 1px; }
    .smallText { font-family: Verdana, Arial, sans-serif; font-size: 10px; }
    //--></style>
    </head>
    <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
    
    <table border="0" width="600" height="100%" cellspacing="0" cellpadding="0" align="center" valign="middle">
     <tr>
    <td><table border="0" width="600" height="440" cellspacing="0" cellpadding="1" align="center" valign="middle">
      <tr bgcolor="#000000">
    	<td><table border="0" width="600" height="440" cellspacing="0" cellpadding="0">
    	  <tr bgcolor="#ffffff" height="50">
    		<td height="50"><?php echo tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce', '204', '50'); ?></td>
    		<td align="right" class="text" nowrap><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . HEADER_TITLE_ADMINISTRATION . '</a>  |  <a href="' . tep_catalog_href_link() . '">' . HEADER_TITLE_ONLINE_CATALOG . '</a>  |  <a href="http://www.oscommerce.com" target="_blank">' . HEADER_TITLE_SUPPORT_SITE . '</a>'; ?>  </td>
    	  </tr>
    	  <tr bgcolor="#080381">
    		<td colspan="2"><table border="0" width="460" height="390" cellspacing="0" cellpadding="2">
    		  <tr valign="top">
    			<td width="140" valign="top"><table border="0" width="140" height="390" cellspacing="0" cellpadding="2">
    			  <tr>
    				<td valign="top"><br>
    <?php
     $heading = array();
     $contents = array();
    
     $heading[] = array('params' => 'class="menuBoxHeading"',
    				 'text'  => 'osCommerce');
    
     $contents[] = array('params' => 'class="infoBox"',
    				  'text'  => '<a href="http://www.oscommerce.com" target="_blank">' . BOX_ENTRY_SUPPORT_SITE . '</a><br>' .
    							 '<a href="http://www.oscommerce.com/community.php/forum" target="_blank">' . BOX_ENTRY_SUPPORT_FORUMS . '</a><br>' .
    							 '<a href="http://www.oscommerce.com/community.php/mlists" target="_blank">' . BOX_ENTRY_MAILING_LISTS . '</a><br>' .
    							 '<a href="http://www.oscommerce.com/community.php/bugs" target="_blank">' . BOX_ENTRY_BUG_REPORTS . '</a><br>' .
    							 '<a href="http://www.oscommerce.com/community.php/faq" target="_blank">' . BOX_ENTRY_FAQ . '</a><br>' .
    							 '<a href="http://www.oscommerce.com/community.php/irc" target="_blank">' . BOX_ENTRY_LIVE_DISCUSSIONS . '</a><br>' .
    							 '<a href="http://www.oscommerce.com/community.php/cvs" target="_blank">' . BOX_ENTRY_CVS_REPOSITORY . '</a><br>' .
    							 '<a href="http://www.oscommerce.com/about.php/portal" target="_blank">' . BOX_ENTRY_INFORMATION_PORTAL . '</a>');
    
     $box = new box;
     echo $box->menuBox($heading, $contents);
    
     echo '<br>';
    
     $orders_contents = '';
     $orders_status_query = tep_db_query("select orders_status_name, orders_status_id from " . TABLE_ORDERS_STATUS . " where language_id = '" . $languages_id . "'");
     while ($orders_status = tep_db_fetch_array($orders_status_query)) {
    $orders_pending_query = tep_db_query("select count(*) as count from " . TABLE_ORDERS . " where orders_status = '" . $orders_status['orders_status_id'] . "'");
    $orders_pending = tep_db_fetch_array($orders_pending_query);
    $orders_contents .= '<a href="' . tep_href_link(FILENAME_ORDERS, 'selected_box=customers&status=' . $orders_status['orders_status_id']) . '">' . $orders_status['orders_status_name'] . '</a>: ' . $orders_pending['count'] . '<br>';
     }
     $orders_contents = substr($orders_contents, 0, -4);
    
     $heading = array();
     $contents = array();
    
     $heading[] = array('params' => 'class="menuBoxHeading"',
    				 'text'  => BOX_TITLE_ORDERS);
    
     $contents[] = array('params' => 'class="infoBox"',
    				  'text'  => $orders_contents);
    
     $box = new box;
     echo $box->menuBox($heading, $contents);
    
     echo '<br>';
    
     $customers_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS);
     $customers = tep_db_fetch_array($customers_query);
     $products_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS . " where products_status = '1'");
     $products = tep_db_fetch_array($products_query);
     $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS);
     $reviews = tep_db_fetch_array($reviews_query);
    
     $heading = array();
     $contents = array();
    
     $heading[] = array('params' => 'class="menuBoxHeading"',
    				 'text'  => BOX_TITLE_STATISTICS);
    
     $contents[] = array('params' => 'class="infoBox"',
    				  'text'  => BOX_ENTRY_CUSTOMERS . ' ' . $customers['count'] . '<br>' .
    							 BOX_ENTRY_PRODUCTS . ' ' . $products['count'] . '<br>' .
    							 BOX_ENTRY_REVIEWS . ' ' . $reviews['count']);
    
     $box = new box;
     echo $box->menuBox($heading, $contents);
    
     echo '<br>';
    
     $contents = array();
    
     if (getenv('HTTPS') == 'on') {
    $size = ((getenv('SSL_CIPHER_ALGKEYSIZE')) ? getenv('SSL_CIPHER_ALGKEYSIZE') . '-bit' : '<i>' . BOX_CONNECTION_UNKNOWN . '</i>');
    $contents[] = array('params' => 'class="infoBox"',
    					'text' => tep_image(DIR_WS_ICONS . 'locked.gif', ICON_LOCKED, '', '', 'align="right"') . sprintf(BOX_CONNECTION_PROTECTED, $size));
     } else {
    $contents[] = array('params' => 'class="infoBox"',
    					'text' => tep_image(DIR_WS_ICONS . 'unlocked.gif', ICON_UNLOCKED, '', '', 'align="right"') . BOX_CONNECTION_UNPROTECTED);
     }
    
     $box = new box;
     echo $box->tableBlock($contents);
    ?>
    				</td>
    			  </tr>
    			</table></td>
    			<td width="460"><table border="0" width="460" height="390" cellspacing="0" cellpadding="2">
    			  <tr>
    				<td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
    				  <tr><?php echo tep_draw_form('languages', 'index.php', '', 'get'); ?>
    					<td class="heading"><?php echo HEADING_TITLE; ?></td>
    					<td align="right"><?php echo tep_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onChange="this.form.submit();"'); ?></td>
    				  </form></tr>
    				</table></td>
    			  </tr>
    <?php
     $col = 2;
     $counter = 0;
     for ($i = 0, $n = sizeof($cat); $i < $n; $i++) {
    $counter++;
    if ($counter < $col) {
      echo '				  <tr>' . "\n";
    }
    
    echo '					<td><table border="0" cellspacing="0" cellpadding="2">' . "\n" .
    	 '					  <tr>' . "\n" .
    	 '						<td><a href="' . $cat[$i]['href'] . '">' . tep_image(DIR_WS_IMAGES . 'categories/' . $cat[$i]['image'], $cat[$i]['title'], '32', '32') . '</a></td>' . "\n" .
    	 '						<td><table border="0" cellspacing="0" cellpadding="2">' . "\n" .
    	 '						  <tr>' . "\n" .
    	 '							<td class="main"><a href="' . $cat[$i]['href'] . '" class="main">' . $cat[$i]['title'] . '</a></td>' . "\n" .
    	 '						  </tr>' . "\n" .
    	 '						  <tr>' . "\n" .
    	 '							<td class="sub">';
    
    $children = '';
    for ($j = 0, $k = sizeof($cat[$i]['children']); $j < $k; $j++) {
      $children .= '<a href="' . $cat[$i]['children'][$j]['link'] . '" class="sub">' . $cat[$i]['children'][$j]['title'] . '</a>, ';
    }
    echo substr($children, 0, -2);
    
    echo '</td> ' . "\n" .
    	 '						  </tr>' . "\n" .
    	 '						</table></td>' . "\n" .
    	 '					  </tr>' . "\n" .
    	 '					</table></td>' . "\n";
    
    if ($counter >= $col) {
      echo '				  </tr>' . "\n";
      $counter = 0;
    }
     }
    ?>
    			</table></td>
    		  </tr>
    		</table></td>
    	  </tr>
    	</table></td>
      </tr>
      <tr>
    	<td><?php require(DIR_WS_INCLUDES . 'footer.php'); ?></td>
      </tr>
    </table></td>
     </tr>
    </table>
    
    </body>
    
    </html>

     

    and my unmodded /admin/index.php is this:

    <?php
    /*
     $Id: $
    
     osCommerce, Open Source E-Commerce Solutions
     http://www.oscommerce.com
    
     Copyright (c) 2007 osCommerce
    
     Released under the GNU General Public License
    */
    
     require('includes/application_top.php');
    
     $languages = tep_get_languages();
     $languages_array = array();
     $languages_selected = DEFAULT_LANGUAGE;
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
    $languages_array[] = array('id' => $languages[$i]['code'],
    						   'text' => $languages[$i]['name']);
    if ($languages[$i]['directory'] == $language) {
      $languages_selected = $languages[$i]['code'];
    }
     }
    ?>
    <!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; ?>">
    <meta name="robots" content="noindex,nofollow">
    <title><?php echo TITLE; ?></title>
    <link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
    <script language="javascript" src="includes/general.js"></script>
    </head>
    <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="SetFocus();">
    <!-- header //-->
    <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
    <!-- header_eof //-->
    
    <!-- body //-->
    <table border="0" width="100%" cellspacing="2" cellpadding="2">
     <tr>
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
    <!-- 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="2">
      <tr>
    	<td><table border="0" width="100%" cellspacing="0" cellpadding="2" height="40">
    	  <tr>
    		<td class="pageHeading"><?php echo STORE_NAME; ?></td>
    		<td class="pageHeading" align="right"><?php echo tep_draw_form('adminlanguage', FILENAME_DEFAULT, '', 'get') . tep_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onChange="this.form.submit();"') . tep_hide_session_id() . '</form>'; ?></td>
    	  </tr>
    	</table></td>
      </tr>
      <tr>
    	<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
    <?php
     $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
     $files = array();
     if ($dir = @dir(DIR_FS_ADMIN . 'includes/modules/index')) {
    while ($file = $dir->read()) {
      if (!is_dir($module_directory . $file)) {
    	if (substr($file, strrpos($file, '.')) == $file_extension) {
    	  $files[] = $file;
    	}
      }
    }
    sort($files);
    $dir->close();
     }
    
     $col = 0;
    
     for ($i=0, $n=sizeof($files); $i<$n; $i++) {
    if (file_exists(DIR_WS_LANGUAGES . $language . '/modules/index/' . $files[$i])) {
      include(DIR_WS_LANGUAGES . $language . '/modules/index/' . $files[$i]);
    }
    
    if ($col < 1) {
      echo '		  <tr>' . "\n";
    }
    
    $col++;
    
    if ($col <= 2) {
      echo '			<td width="50%" valign="top">' . "\n";
    }
    
    include('includes/modules/index/' . $files[$i]);
    
    if ($col <= 2) {
      echo '			</td>' . "\n";
    }
    
    if ( !isset($files[$i+1]) || ($col == 2) ) {
      if ( !isset($files[$i+1]) && ($col == 1) ) {
    	echo '			<td width="50%" valign="top"> </td>' . "\n";
      }
    
      $col = 0;
    
      echo '  </tr>' . "\n";
    }
     }
    ?>
    	</table></td>
      </tr>
    </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'); ?>

     

    man, if you compare those two files with a compare utility, it's a nightmare!

    Seems we have a really bad version mismatch because the readme is not covering all the file edits that would need to be done to make them match

     

    what should I do to make the proper edits to get this mod hacked in?

    thanks

    and sorry for the extra long post lol

  5. Well I've gone in and done the file changes for this mod, but I can't get it to work.

     

    My admin panel was littered with errors and now my session has expired and I cannot log in.

    This is the error now that I cannot login

    Fatal error: Call to undefined function tep_get_languages() in /home/site/public_html/admin/login.php on line 79

     

    These were the errors that were littering my admin panel before my session expired, I grabbed them from my error log

    Call to undefined function tep_get_languages() in /home/site/public_html/admin/index.php on line 65

    Call to undefined function tep_call_function() in /home/site/public_html/admin/configuration.php on line 88

    Call to undefined function tep_get_category_tree() in /home/site/public_html/admin/categories.php on line 822

     

    Apparently I messed something up when doing my file edits.

    Anyone know where I should start? I've been going through all my changes one by one but have not located what I did wrong as of yet.

    Thanks

  6. Is there a way to specify available shipping options for a set of products? For instance, I have a set of products that are dropshipped, and the dropshipper only ships USPS Parcel Post. How can I ensure that's the only shipping option available to my customer that purchases these products?

     

    additionally, if the customer should purchase other items as well, can there be Two Shipping costs configured? One for the dropship items, and separate for the other items purchased...

     

    Thank you for any assistance.

     

    Hi Merideth,

    I'm having a similar situation, my thread is here:

    http://www.oscommerce.com/forums/index.php?showtopic=270953

     

    What did you end up doing?

  7. Hi,

    I had posted this in the general help forum, reposting here for more targeted exposure...

    I need help configuring my shipping charges!

    This is for a store selling dry aquarium goods, as well as livestock.

    And that's where it gets tricky. :blink:

     

    Dry goods should go by a pricing table (see below).

    Livestock should cost $55 to ship up to 3 livestock items.

    And we want to offer the ability to overnight livestock if the destination is Florida for $17 instead of $55. (but that's the least of my problems right now)

    Our shipping fees for dry goods are as follows:

    Order totals Shipping Charge

    0-$30.00 $7.25

    $30.01-$60.00 $8.25

    $60.01-$100.00 $9.99

    $100.01-$175.00 $11.99

    Over $175 $13.99

     

    so I created the "Table Rate" array:

     30:7.25,60:8.25,100:9.99,175:11.99:175:13.99

     

    I have created a tax class under Locations / Taxes -> Tax Classes and called it "Livestock"

    And I've gone in the database and updated all the livestock items with this new tax class, all livestock products_tax_class_id went from 0 to 2

    However, at checkout, it's not forcing livestock with the $55 and the dry goods to use the table of rates,

    rather, the site is giving the buyer the choice to pay $7.25 or $55 when he wants to checkout with some livestock in the cart

     

    So my question is:

    How can I set this shop up to force the livestock surcharge WHILE STILL charging the table rate for the drygoods?

     

    Should I create a new tax class for "DryGoods" and update all the dry products to be in this new tax class?

    And then assign the table rate to that class?

    I have already setup a flat rate that assigns a $55 for tax class: Livestock

     

    If someone can shed some light on this for, that would be fantastic and greatly appreciated.

    I hope someone who's familiar with setting up challenging shipping rates will be able to suggest the proper way I should set my shop, or what contrib I should install, etc.

    I have a feeling I might need to mod my installation to honor these out of the ordinary shipping rules. But what mod is best?

     

    Thank you so much!

     

    ... and ps I'm not sure if I should be doing this in Tax Classes, if that's where I should be messing around with this to begin with...

  8. Thanks for this mod, works great!

     

    In the readme, might want to change

     

    FIND:

     

    $breadcrumb->add(NAVBAR_TITLE1, tep_href_link(FILENAME_ADVANCED_SEARCH));

     

    to

     

    FIND:

     

    $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_ADVANCED_SEARCH));

     

     

    notice the missing underscore

     

    2.2 MS2 here, btw

     

    anyway, thanks again!

     

    /clicks install :)

×
×
  • Create New...