Page 23 of 146 FirstFirst ... 1321222324253373123 ... LastLast
Results 221 to 230 of 1456
  1. #221
    Join Date
    May 2006
    Posts
    17
    Plugin Contributions
    0

    Default Re: Chemo's Ultimate URL's

    Quote Originally Posted by mafiasam
    That did not work for me...
    I have not been able to get it to work at all. ANY HELP
    same here, what am i doing wrong?

  2. #222
    kelvyn Guest

    Default Re: Chemo's Ultimate URL's

    Quote Originally Posted by MorganKhalil
    same here, what am i doing wrong?
    Got a link?

  3. #223
    Join Date
    Mar 2006
    Posts
    131
    Plugin Contributions
    0

    Default Re: Chemo's Ultimate URL's

    how do i stop some of the files from being renamed to .html?
    for some reason i get the googlefroogle.php renamed to googlefroogle.php.html

    Can someone give me an example of the code to put on .htaccess for
    lets say a file "/shop/somefile.php" and i need it to stay the same way/ excluded from re-write or any other solution ?

  4. #224
    Join Date
    May 2006
    Posts
    17
    Plugin Contributions
    0

    Default Re: Chemo's Ultimate URL's

    Quote Originally Posted by kelvyn
    Got a link?
    i have turned it off for now until i switch from cube cart to zen on the site root. i have the zen shop set up at http://www.samariad.com/zen

  5. #225
    Join Date
    Dec 2005
    Location
    Cincinnati Ohio
    Posts
    1,030
    Plugin Contributions
    13

    Default Re: Chemo's Ultimate URL's

    ok back to the drawing board, I am not sure what is causing this but this has happened before, and I had a lengthy conversation with doctor byte once before as well, however that remedy is not working.

    the code below is what I get when I install image handler but when I hit uninstall the seo urls work.

    Code:
    Warning: Variable passed to each() is not an array or object in /home/norman/public_html/includes/classes/db/mysql/query_factory.php on line 114
    
    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/norman/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/norman/public_html/includes/functions/sessions.php on line 102
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/norman/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/norman/public_html/includes/init_includes/init_templates.php on line 78
    Code:
    1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'EXPECTED_PRODUCTS_SORT limit MAX_DISPLAY
    in:
    [select p.products_id, pd.products_name, products_date_available as date_expected from norman_products p, norman_products_description pd where p.products_id = pd.products_id and p.products_status = 1 and pd.language_id = '1' and p.products_date_available >=20061005 order by EXPECTED_PRODUCTS_FIELD EXPECTED_PRODUCTS_SORT limit MAX_DISPLAY_UPCOMING_PRODUCTS]
    Now I am pretty sure its within afile because I have the same EXACT databse on a test server and it works perfectly.

    I redid the html_output as it shows below.
    Code:
    <?php
    /**
     * html_output.php
     * HTML-generating functions used throughout the core
     *
     * @package functions
     * @copyright Copyright 2005-2006 breakmyzencart.com 
     * @copyright Portions Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: html_output.php,v 1.6 2006/04/11 22:00:55 tim Exp $
     */
    
    ////
    // Ultimate SEO URLs v2.100
    // The HTML href link wrapper function
      function zen_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true, $static = false, $use_dir_ws_catalog = true) {
    		if (!isset($GLOBALS['seo_urls']) && !is_object($GLOBALS['seo_urls'])) {
    			include_once(DIR_WS_CLASSES . 'seo.url.php');
    
    			$GLOBALS['seo_urls'] = &new SEO_URL($_SESSION['languages_id']);
    		}
    
    		return $GLOBALS['seo_urls']->href_link($page, $parameters, $connection, $add_session_id, $static, $use_dir_ws_catalog);
      }
    
    /*
     * The HTML image wrapper function for non-proportional images
     * used when "proportional images" is turned off or if calling from a template directory
     */
      function zen_image_OLD($src, $alt = '', $width = '', $height = '', $parameters = '') {
        global $template_dir;
    
    //auto replace with defined missing image
        if ($src == DIR_WS_IMAGES and PRODUCTS_IMAGE_NO_IMAGE_STATUS == '1') {
          $src = DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE;
        }
    
        if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {
          return false;
        }
    
        // if not in current template switch to template_default
        if (!file_exists($src)) {
          $src = str_replace(DIR_WS_TEMPLATES . $template_dir, DIR_WS_TEMPLATES . 'template_default', $src);
        }
    
    // alt is added to the img tag even if it is null to prevent browsers from outputting
    // the image filename as default
        $image = '<img src="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';
    
        if (zen_not_null($alt)) {
          $image .= ' title=" ' . zen_output_string($alt) . ' "';
        }
    
        if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) {
          if ($image_size = @getimagesize($src)) {
            if (empty($width) && zen_not_null($height)) {
              $ratio = $height / $image_size[1];
              $width = $image_size[0] * $ratio;
            } elseif (zen_not_null($width) && empty($height)) {
              $ratio = $width / $image_size[0];
              $height = $image_size[1] * $ratio;
            } elseif (empty($width) && empty($height)) {
              $width = $image_size[0];
              $height = $image_size[1];
            }
          } elseif (IMAGE_REQUIRED == 'false') {
            return false;
          }
        }
    
        if (zen_not_null($width) && zen_not_null($height)) {
          $image .= ' width="' . zen_output_string($width) . '" height="' . zen_output_string($height) . '"';
        }
    
        if (zen_not_null($parameters)) $image .= ' ' . $parameters;
    
        $image .= ' />';
    
        return $image;
      }
    
    
    /*
     * The HTML image wrapper function
     */
      function zen_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
        global $template_dir;
    
        // soft clean the alt tag
        $alt = zen_clean_html($alt);
    
        // use old method on template images
        if (strstr($src, 'includes/templates') or strstr($src, 'includes/languages') or PROPORTIONAL_IMAGES_STATUS == '0') {
          return zen_image_OLD($src, $alt, $width, $height, $parameters);
        }
    
    //auto replace with defined missing image
        if ($src == DIR_WS_IMAGES and PRODUCTS_IMAGE_NO_IMAGE_STATUS == '1') {
          $src = DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE;
        }
    
        if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {
          return false;
        }
    
        // if not in current template switch to template_default
        if (!file_exists($src)) {
          $src = str_replace(DIR_WS_TEMPLATES . $template_dir, DIR_WS_TEMPLATES . 'template_default', $src);
        }
    
        // BMZ IH2: hook for image handler or any other handle_image() function.
        if (function_exists('handle_image')) {
          $newimg = handle_image($src, $alt, $width, $height, $parameters);
          list($src, $alt, $width, $height, $parameters) = $newimg; 
        }
    
        // Since you can set strings like 150! to force a fixed canvas, we need
        // to convert to int from now on. This should generally be a good thing.
        // IH2 needs the additional info though so no conversion beforehand.
        $width = empty($width) ? $width : intval($width);
        $height = empty($height) ? $height : intval($height);
    	
    // alt is added to the img tag even if it is null to prevent browsers from outputting
    // the image filename as default
        $image = '<img src="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';
    
        if (zen_not_null($alt)) {
          $image .= ' title=" ' . zen_output_string($alt) . ' "';
        }
    
        if ( ((CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height))) ) {
          if ($image_size = @getimagesize($src)) {
            if (empty($width) && zen_not_null($height)) {
              $ratio = $height / $image_size[1];
              $width = $image_size[0] * $ratio;
            } elseif (zen_not_null($width) && empty($height)) {
              $ratio = $width / $image_size[0];
              $height = $image_size[1] * $ratio;
            } elseif (empty($width) && empty($height)) {
              $width = $image_size[0];
              $height = $image_size[1];
            }
          } elseif (IMAGE_REQUIRED == 'false') {
            return false;
          }
        }
    
    
        if (zen_not_null($width) && zen_not_null($height) and file_exists($src)) {
    //      $image .= ' width="' . zen_output_string($width) . '" height="' . zen_output_string($height) . '"';
    // proportional images
          $image_size = @getimagesize($src);
          // fix division by zero error
          $ratio = ($image_size[0] != 0 ? $width / $image_size[0] : 1);
          if ($image_size[1]*$ratio > $height) {
            $ratio = $height / $image_size[1];
            $width = $image_size[0] * $ratio;
          } else {
            $height = $image_size[1] * $ratio;
          }
    
          // BMZ IH2: intval for width and height since proportional images
          // calculate float. int is needed for the code to validate
          if ($image_size[0] < $width and $image_size[1] < $height) {
            $image .= ' width="' . $image_size[0] . '" height="' . intval($image_size[1]) . '"';
          } else {
            $image .= ' width="' . round($width) . '" height="' . round($height) . '"';
          }
        } else {
           // override on missing image to allow for proportional and required/not required
          if (IMAGE_REQUIRED == 'false') {
            return false;
          } else {
            // BMZ IH2: Again intval for width and height
            $image .= ' width="' . intval(SMALL_IMAGE_WIDTH) . '" height="' . intval(SMALL_IMAGE_HEIGHT) . '"';
          }
        }
    
        if (zen_not_null($parameters)) $image .= ' ' . $parameters;
    
        $image .= ' />';
    
        return $image;
      }
    
    /*
     * The HTML form submit button wrapper function
     * Outputs a "submit" button in the selected language
     */
      function zen_image_submit($image, $alt = '', $parameters = '', $sec_class = '') {
        global $template, $current_page_base, $zco_notifier;
        if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strlen($alt)<30) return zenCssButton($image, $alt, 'submit', $sec_class /*, $parameters = ''*/ );
        $zco_notifier->notify('PAGE_OUTPUT_IMAGE_SUBMIT');
    
        $image_submit = '<input type="image" src="' . zen_output_string($template->get_template_dir($image, DIR_WS_TEMPLATE, $current_page_base, 'buttons/' . $_SESSION['language'] . '/') . $image) . '" alt="' . zen_output_string($alt) . '"';
    
        if (zen_not_null($alt)) $image_submit .= ' title=" ' . zen_output_string($alt) . ' "';
    
        if (zen_not_null($parameters)) $image_submit .= ' ' . $parameters;
    
        $image_submit .= ' />';
    
        return $image_submit;
      }
    
    /*
     * Output a function button in the selected language
     */
      function zen_image_button($image, $alt = '', $parameters = '', $sec_class = '') {
        global $template, $current_page_base, $zco_notifier;
        $zco_notifier->notify('PAGE_OUTPUT_IMAGE_BUTTON');
        if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') return zenCssButton($image, $alt, 'button', $sec_class, $parameters = '');
        return zen_image($template->get_template_dir($image, DIR_WS_TEMPLATE, $current_page_base, 'buttons/' . $_SESSION['language'] . '/') . $image, $alt, '', '', $parameters);
      }
    
    
    /**
     * generate CSS buttons in the current language
     * concept from contributions by Seb Rouleau and paulm, subsequently adapted to Zen Cart
     * note: any hard-coded buttons will not be able to use this function
    **/
      function zenCssButton($image = '', $text, $type, $sec_class = '', $parameters = '') {
    
        // automatic width setting depending on the number of characters
        $min_width = 80; // this is the minimum button width, change the value as you like
        $character_width = 6.5; // change this value depending on font size!
        // end settings
        // added html_entity_decode function to prevent html special chars to be counted as multiple characters (like &amp;)
        $width = strlen(html_entity_decode($text)) * $character_width;
        $width = (int)$width;
        if ($width < $min_width) $width = $min_width;
        $style = ' style="width: ' . $width . 'px;"';
        // if no secondary class is set use the image name for the sec_class
        if (empty($sec_class)) $sec_class = basename($image, '.gif');
        if(!empty($sec_class))$sec_class = ' ' . $sec_class;
        if(!empty($parameters))$parameters = ' ' . $parameters;
        $mouse_out_class  = 'cssButton' . $sec_class;
        $mouse_over_class = 'cssButtonHover' . $sec_class . $sec_class . 'Hover';
        // javascript to set different classes on mouseover and mouseout: enables hover effect on the buttons
        // (pure css hovers on non link elements do work work in every browser)
        $css_button_js .=  'onmouseover="this.className=\''. $mouse_over_class . '\'" onmouseout="this.className=\'' . $mouse_out_class . '\'"';
    
        if ($type == 'submit'){
    // form input button
       $css_button = '<input class="' . $mouse_out_class . '" ' . $css_button_js . ' type="submit" value="' .$text . '"' . $parameters . $style . ' />';
        }
    
        if ($type=='button'){
    // link button
       $css_button = '<span class="' . $mouse_out_class . '" ' . $css_button_js . $style . ' >&nbsp;' . $text . '&nbsp;</span>'; // add $parameters ???
        }
        return $css_button;
      }
    
    
    /*
     *  Output a separator either through whitespace, or with an image
     */
      function zen_draw_separator($image = 'true', $width = '100%', $height = '1') {
    
        // set default to use from template - zen_image will translate if not found in current template
        if ($image == 'true') {
          $image = DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_BLACK_SEPARATOR;
        } else {
          if (!strstr($image, DIR_WS_TEMPLATE_IMAGES)) {
            $image = DIR_WS_TEMPLATE_IMAGES . $image;
          }
        }
        return zen_image($image, '', $width, $height);
      }
    
    /*
     *  Output a form
     */
      function zen_draw_form($name, $action, $method = 'post', $parameters = '') {
        $form = '<form name="' . zen_output_string($name) . '" action="' . zen_output_string($action) . '" method="' . zen_output_string($method) . '"';
    
        if (zen_not_null($parameters)) $form .= ' ' . $parameters;
    
        $form .= '>';
    
        return $form;
      }
    
    /*
     *  Output a form input field
     */
      function zen_draw_input_field($name, $value = '', $parameters = '', $type = 'text', $reinsert_value = true) {
        $field = '<input type="' . zen_output_string($type) . '" name="' . zen_output_string($name) . '"';
    
        if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) {
          $field .= ' value="' . zen_output_string(stripslashes($GLOBALS[$name])) . '"';
        } elseif (zen_not_null($value)) {
          $field .= ' value="' . zen_output_string($value) . '"';
        }
    
        if (zen_not_null($parameters)) $field .= ' ' . $parameters;
    
        $field .= ' />';
    
        return $field;
      }
    
    /*
     *  Output a form password field
     */
      function zen_draw_password_field($name, $value = '', $parameters = 'maxlength="40"') {
        return zen_draw_input_field($name, $value, $parameters, 'password', true);
      }
    
    /*
     *  Output a selection field - alias function for zen_draw_checkbox_field() and zen_draw_radio_field()
     */
      function zen_draw_selection_field($name, $type, $value = '', $checked = false, $parameters = '') {
        $selection = '<input type="' . zen_output_string($type) . '" name="' . zen_output_string($name) . '"';
    
        if (zen_not_null($value)) $selection .= ' value="' . zen_output_string($value) . '"';
    
        if ( ($checked == true) || ( isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) && ( ($GLOBALS[$name] == 'on') || (isset($value) && (stripslashes($GLOBALS[$name]) == $value)) ) ) ) {
          $selection .= ' checked="checked"';
        }
    
        if (zen_not_null($parameters)) $selection .= ' ' . $parameters;
    
        $selection .= ' />';
    
        return $selection;
      }
    
    /*
     *  Output a form checkbox field
     */
      function zen_draw_checkbox_field($name, $value = '', $checked = false, $parameters = '') {
        return zen_draw_selection_field($name, 'checkbox', $value, $checked, $parameters);
      }
    
    /*
     * Output a form radio field
     */
      function zen_draw_radio_field($name, $value = '', $checked = false, $parameters = '') {
        return zen_draw_selection_field($name, 'radio', $value, $checked, $parameters);
      }
    
    /*
     *  Output a form textarea field
     */
      function zen_draw_textarea_field($name, $width, $height, $text = '', $parameters = '', $reinsert_value = true) {
        $field = '<textarea name="' . zen_output_string($name) . '" cols="' . zen_output_string($width) . '" rows="' . zen_output_string($height) . '"';
    
        if (zen_not_null($parameters)) $field .= ' ' . $parameters;
    
        $field .= '>';
    
        if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) {
          $field .= stripslashes($GLOBALS[$name]);
        } elseif (zen_not_null($text)) {
          $field .= $text;
        }
    
        $field .= '</textarea>';
    
        return $field;
      }
    
    /*
     *  Output a form hidden field
     */
      function zen_draw_hidden_field($name, $value = '', $parameters = '') {
        $field = '<input type="hidden" name="' . zen_output_string($name) . '"';
    
        if (zen_not_null($value)) {
          $field .= ' value="' . zen_output_string($value) . '"';
        } elseif (isset($GLOBALS[$name])) {
          $field .= ' value="' . zen_output_string(stripslashes($GLOBALS[$name])) . '"';
        }
    
        if (zen_not_null($parameters)) $field .= ' ' . $parameters;
    
        $field .= ' />';
    
        return $field;
      }
    
    /*
     * Output a form file-field
     */
      function zen_draw_file_field($name, $required = false) {
        $field = zen_draw_input_field($name, '', ' size="50" ', 'file');
    
        return $field;
      }
    
    
    /*
     *  Hide form elements while including session id info
     *  IMPORTANT: This should be used in every FORM that has an OnSubmit() function tied to it, to prevent unexpected logouts
     */
      function zen_hide_session_id() {
        global $session_started;
    
        if ( ($session_started == true) && defined('SID') && zen_not_null(SID) ) {
          return zen_draw_hidden_field(zen_session_name(), zen_session_id());
        }
      }
    
    /*
     *  Output a form pull down menu
     *  Pulls values from a passed array, ,with the indicated option pre-selected
     */
      function zen_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) {
        $field = '<select name="' . zen_output_string($name) . '"';
    
        if (zen_not_null($parameters)) $field .= ' ' . $parameters;
    
        $field .= '>' . "\n";
    
        if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]);
    
        for ($i=0, $n=sizeof($values); $i<$n; $i++) {
          $field .= '  <option value="' . zen_output_string($values[$i]['id']) . '"';
          if ($default == $values[$i]['id']) {
            $field .= ' selected="selected"';
          }
    
          $field .= '>' . zen_output_string($values[$i]['text'], array('"' => '&quot;', '\'' => ''', '<' => '&lt;', '>' => '&gt;')) . '</option>' . "\n";
        }
        $field .= '</select>' . "\n";
    
        if ($required == true) $field .= TEXT_FIELD_REQUIRED;
    
        return $field;
      }
    
    /*
     * Creates a pull-down list of countries
     */
      function zen_get_country_list($name, $selected = '', $parameters = '') {
        $countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));
        $countries = zen_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 zen_draw_pull_down_menu($name, $countries_array, $selected, $parameters);
      }
    ?>
    Now if anyone can figure this out and maybe a permnant fix it would really be appreciated. I have searched and redid and reconfigure and actually deleted and reinstalled the server this account sits on.

    Your thoughts and suggestions are really appreciated
    PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
    Business Class Web Hosting - Linux and cPanel Powered

  6. #226
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    1,410
    Plugin Contributions
    1

    Default Re: Chemo's Ultimate URL's

    Here is a unique error I am experiencing. I am literally on the eve of going live with my new 1.3 site. I was checking internet explorer, fixing some css problems, and then I noticed that urls are not being displayed correctly. Oddly enough, the urls are displayed appropriately in the code and for the search engine, but when you click on the link with ie, it cuts everything off but the root (i.e. "-c-55.html").

    Has anyone experienced this or have ANY idea where to start looking? It was working but I'm not sure when or how it got broke. Any suggestions would be helpful.

    Thanks!

    http://www.moissaniteco.com/13

  7. #227
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    1,410
    Plugin Contributions
    1

    Default Re: Chemo's Ultimate URL's

    Ha! Check out this weirdness (same problem).

    Here is a link to a product: http://www.moissaniteco.com/13/-prd-2579.html (you can see how part of it is cutoff).

    Now when you go to the product, click on the next, button. It takes you to the next item with the url cutoff. Now, hit next and before the page changes hit again, and the url is correctly created!!!!

    (again, this is only with your i.e. browser)

  8. #228
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    1,410
    Plugin Contributions
    1

    Default Re: Chemo's Ultimate URL's

    AND if you copy and paste a full url into the IE browser, it collapes it.

  9. #229
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    1,410
    Plugin Contributions
    1

    Default Re: Chemo's Ultimate URL's

    Reinstalled the files. Reset the SEO cache. it seems to now be working.

  10. #230
    Join Date
    Sep 2006
    Posts
    28
    Plugin Contributions
    0

    Default Re: Chemo's Ultimate URL's

    I just installed this mod on my v1.3.5 site and the catalog works great. I can get to categories and products without issue.

    However when I attempt to view any of the pages in my Information box (e.g. Conditions, etc) I receive a 404.

    I also noticed that I do not have a SEO URLs option in my Configuration menu within my admin.

    Has anyone else experienced this and more importantly know how to resolve the issue?
    Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a person does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses their intelligence.

 

 

Similar Threads

  1. v151 with ultimate seo Url,how to change the ez-page url ?
    By whywell in forum General Questions
    Replies: 1
    Last Post: 17 Jan 2013, 09:12 AM
  2. Chemo's Ultimate SEO URL's and EZPages?
    By Doodlebuckets in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 5 Aug 2008, 08:36 PM
  3. Fix for Easy Populate Froogle with Chemo's Ultimate URL's
    By mccord42 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 8 Feb 2007, 04:06 PM
  4. Can NOT access Admin after installing Chemo's Ultimate URL's
    By hankliu in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 12 Dec 2006, 10:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR