Jump to content

rizzy

Members
  • Content count

    36
  • Joined

  • Last visited

  1. rizzy

    [Contribution] SEO-G

    I am still have an issue with this addon. I sent you a pm enigma with my test site address so you can see what it is doing. Thanks for any help you can give me.
  2. rizzy

    [Contribution] SEO-G

    I don't have that error anymore that part now works with the change to the root.php file.
  3. rizzy

    [Contribution] SEO-G

    The rewrite base is consistent with the location of the store. This store I am working on is a subdomain, osc.domain.com I did not have this problem until I switched over to php5 so there is something some where that is not working with php5 I just can't figure out what part it is.
  4. rizzy

    [Contribution] SEO-G

    I figured out what is causing the problem. Everything was working and then I changed to php 5 and that is what is causing the problems. I was able to get the product to show up by changing line 136 in the root.php file from: $tmp_array = array_merge($HTTP_GET_VARS,$tmp_array); to $tmp_array = array_merge($_GET,$tmp_array); Now when I click add to cart it comes back with the page: Product not found!
  5. rizzy

    [Contribution] SEO-G

    # $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $ # # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # # <Directory "/usr/local/apache/htdocs"> # AllowOverride Options # </Directory> # # 'All' with also work. (This configuration is in the # apache/conf/httpd.conf file) # The following makes adjustments to the SSL protocol for Internet # Explorer browsers <IfModule mod_setenvif.c> <IfDefine SSL> SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </IfDefine> </IfModule> # If Search Engine Friendly URLs do not work, try enabling the # following Apache configuration parameter # # AcceptPathInfo On # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) # #<IfModule mod_php4.c> # php_value session.use_trans_sid 0 # php_value register_globals 1 #</IfModule> #-MS- SEO-G Added Options +FollowSymLinks RewriteEngine On # Next line must be changed to match your osCommerce folder - the relative path RewriteBase / RewriteRule ^(.*).html$ root.php?$1.html&%{QUERY_STRING} #-MS- SEO-G Added EOM <?php /* //---------------------------------------------------------------------------- // Copyright (c) 2006-2007 Asymmetric Software - Innovation & Excellence // Author: Mark Samios // http://www.asymmetrics.com // SEO-G Root page // Main handler script // Includes part of the includes/application_top.php from osCommerce to // initialize the database. //---------------------------------------------------------------------------- // Script is intended to be used with: // osCommerce, Open Source E-Commerce Solutions // http://www.oscommerce.com // Copyright (c) 2003 osCommerce //---------------------------------------------------------------------------- // Released under the GNU General Public License //---------------------------------------------------------------------------- // MAKE SURE THE FOLLOWING SECTION IS COPIED DIRECTLY FROM YOUR OWN // catalog\includes\application_top.php and then set the $g_relpath, $g_server // variables in this file such that: //---------------------------------------------------------------------------- if ($request_type == 'NONSSL') { define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG); $g_relpath = HTTP_SERVER . DIR_WS_CATALOG; $g_server = HTTP_SERVER; } else { define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG); $g_relpath = HTTPS_SERVER . DIR_WS_CATALOG; $g_server = HTTPS_SERVER; } //---------------------------------------------------------------------------- // Also note the $request_type has to be determined accurately between // SSL and NON-SSL pages. // See also documentation for details for this line: // $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; //---------------------------------------------------------------------------- */ //---------------------------------------------------------------------------- //-MS- Beginning of application_top.php section //---------------------------------------------------------------------------- // start the timer for the page parse time log define('PAGE_PARSE_START_TIME', microtime()); // set the level of error reporting error_reporting(E_ALL & ~E_NOTICE); // check if register_globals is enabled. // since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized. // >>> BEGIN REGISTER_GLOBALS // if (function_exists('ini_get')) { // ini_get('register_globals') or exit('Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.'); // } // <<< END REGISTER_GLOBALS // Set the local configuration parameters - mainly for developers if (file_exists('includes/local/configure.php')) include('includes/local/configure.php'); // include server parameters require('includes/configure.php'); if (strlen(DB_SERVER) < 1) { if (is_dir('install')) { header('Location: install/index.php'); } } // define the project version define('PROJECT_VERSION', 'osCommerce 2.2-MS2'); // set the type of request (secure or not) $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; // set php_self in the local scope if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; if ($request_type == 'NONSSL') { define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG); $g_relpath = HTTP_SERVER . DIR_WS_CATALOG; $g_server = HTTP_SERVER; } else { define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG); $g_relpath = HTTPS_SERVER . DIR_WS_CATALOG; $g_server = HTTPS_SERVER; } // include the list of project filenames require(DIR_WS_INCLUDES . 'filenames.php'); // include the list of project database tables require(DIR_WS_INCLUDES . 'database_tables.php'); // customization for the design layout define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125) // include the database functions require(DIR_WS_FUNCTIONS . 'database.php'); // make a connection to the database... now tep_db_connect() or die('Unable to connect to database server!'); // set the application parameters $configuration_query = tep_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION); while ($configuration = tep_db_fetch_array($configuration_query)) { define($configuration['cfgKey'], $configuration['cfgValue']); } //---------------------------------------------------------------------------- //-MS- End of application_top.php section //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- // SEO-G Section starts here. This part is required for proper operation // Do not override the code below //---------------------------------------------------------------------------- require(DIR_WS_CLASSES . 'seo_url.php'); $g_seo_url = new seoURL; $osc_url = $osc_params = $osc_parse = ''; if( $g_seo_url->get_osc_url($g_server . $_SERVER['REQUEST_URI'], $osc_url, $osc_params, $osc_parse) ) { $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'] = $_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME'] = $osc_parse['path']; if(basename($_SERVER['PHP_SELF']) == 'root.php' ) { echo '<b>SEO-G Error</b>: Invalid Self-Request - Check recorded URLs'; exit(); } $tmp_array = array(); for($i=0, $j=count($osc_params); $i<$j; $i++ ) { $array_equal = explode('=', $osc_params[$i]); if( is_array($array_equal) ) { if( isset($array_equal[1]) ) { $tmp_array[$array_equal[0]] = $array_equal[1]; } else { $tmp_array[$array_equal[0]] = ''; } } } $tmp_array = array_merge($HTTP_GET_VARS,$tmp_array); // Synchronize global arrays. $HTTP_GET_VARS = $_GET = $tmp_array; unset($tmp_array); // Synchronize query string variables $HTTP_SERVER_VARS['QUERY_STRING'] = $_SERVER['QUERY_STRING'] = implode('&',$osc_params); $g_script = basename($PHP_SELF); // Signal SEO-G translation. $g_seo_flag = true; require(basename($PHP_SELF)); } elseif( file_exists(basename($osc_parse['path']))) { $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'] = $_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME'] = $osc_parse['path']; if(basename($_SERVER['PHP_SELF']) == 'root.php' ) { echo '<b>SEO-G Error</b>: Invalid Self-Request, passed URI Request: ' . $_SERVER['REQUEST_URI']; exit(); } $g_script = basename($PHP_SELF); $g_seo_flag = true; require(basename($osc_parse['path'])); } else { // Script not found. Initiate redirection header("HTTP/1.1 " . SEO_DEFAULT_ERROR_HEADER); header('Location: ' . $g_relpath . SEO_DEFAULT_ERROR_REDIRECT); //echo STORE_NAME . ' - Page was moved'; } exit(); ?>
  6. rizzy

    [Contribution] SEO-G

    Ok I installed this and here is the error I am getting. Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/.../.../osc/root.php on line 136 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/.../.../osc/root.php:136) in /home/.../.../osc/includes/functions/sessions.php on line 98 Thanks for any help you can give.
  7. rizzy

    [Contribution] SEO-G

    I am sure it is something simple and stupid, but I just installed this and I am getting this: The tables is in the database so I don't know why it is saying this? Any general ideas thoughts?
  8. rizzy

    Multi-Stores Multiple Shops Support

    Ok I figured out what I was doing wrong. Make you have the default config table selected and make sure you put something in the field for: Stores Config Table: This has to be filled out because this name will be the new database table. This should solve your problem sacotechnology.
  9. rizzy

    Multi-Stores Multiple Shops Support

    I am getting that exact same message. I am working on it now to see if I can figure out what is going on.
  10. i got it working thanks for the help i have a new problem now if i update the manufacturers info and hit save it saves everything, but if a picture existed it deletes it
  11. That still gives me this: 1109 - Unknown table 'mi' in field list select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image, m.date_added, m.last_modified, mi.manufacturers_htc_title_tag from manufacturers m order by m.manufacturers_name limit 0, 20 [TEP STOP] I don't know why it is saying an unknown table because it does exist and the rest of the code works that I integrated in, just not this part.
  12. Thanks for responding so quick Jack. That is what I did before and I get this error when I do that: 1109 - Unknown table 'mi' in field list select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image, m.date_added, m.last_modified, mi.manufacturers_htc_title_tag from manufacturers m order by m.manufacturers_name limit 0, 20 [TEP STOP] Any other ideas?
  13. If anyone could help me with this I would appreciate it. I have everything working, but this is the only part that I am having trouble with and can't figure out how to combine this. I have the Multi-Shops contribution running and it changes the manufactures page in the admin. This is for this part of the install: admin/manufacturers.php This is the code I have now: $manufacturers_query_raw = "select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image, m.date_added, m.last_modified from " . TABLE_MANUFACTURERS . " m " . ($admin_allowed_stores[0] == '*' ? " " : " LEFT JOIN " . TABLE_MANUFACTURERS_TO_STORES . " m2s ON m.manufacturers_id = m2s.manufacturers_id where m2s.stores_id in(" . implode(',' , $admin_allowed_stores) . ") ") . " order by m.manufacturers_name"; I have integrated the code for this contrib without problems until this part. I am not sure how to integrate this part into the above code: $manufacturers_query_raw = "select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image, m.date_added, m.last_modified, mi.manufacturers_htc_title_tag from " . TABLE_MANUFACTURERS . " m LEFT JOIN " . TABLE_MANUFACTURERS_INFO . " mi on m.manufacturers_id = mi.manufacturers_id where mi.languages_id = '".$languages_id ."' order by m.manufacturers_name"; Thanks for any help.
  14. rizzy

    Multi-Stores Multiple Shops Support

    For those that are having the admin login issue with this contribution I have a fix. The only file you need to edit is the application_top.php file. (admin/includes/application_top.php) Look for this block of code on that page: //rmh M-S_multi-stores require( DIR_WS_INCLUDES . 'functions/administrators.php' ); RequireLoginValidForPage( $REQUEST_URI ); Replace that with this: //rmh M-S_multi-stores require( DIR_WS_INCLUDES . 'functions/administrators.php' ); $in_login = $_REQUEST[in_login]; if($in_login == 'yes'){ // do nothing, must show login page } else { RequireLoginValidForPage($_SERVER['REQUEST_URI']); } This will stop you from the endless loop and get you logged in.
  15. rizzy

    Multi-Stores Multiple Shops Support

    i think everyone is looking for this answer right now
×