Results 1 to 10 of 5054

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Simple SEO URL [support thread]

    Quote Originally Posted by neboztik View Post
    Hi, I need help with editing code for my products xml feed. I have alreday posted sm simillar post to this long time ago but it is still unanswered. There is function I made to get URL:
    PHP Code:
      function zen_seo_href_link($page ''$parameters ''$connection 'NONSSL'$add_session_id true$search_engine_safe true$static false$use_dir_ws_catalog true) {
        global 
    $request_type$session_started$http_domain$https_domain;
        global 
    $ssu;
        if(
    is_object($ssu) && ($link $ssu->ssu_link($page$parameters$connection$add_session_id$search_engine_safe$static$use_dir_ws_catalog))!= false) return $link;
        } 
    and its for link itself:
    PHP Code:
    $link zen_seo_href_link(zen_get_info_page($products->fields['products_id']), 'products_id=' $products->fields['products_id'], 'NONSSL'false); 
    I am not very familiar with PHP and this cause that url is blank. I will be very happy for every assist. There is code which works with Ultimate Seo URLs:
    PHP Code:
    function zen_seo_href_link($page ''$parameters ''$connection 'NONSSL'$add_session_id true$search_engine_safe true$static false$use_dir_ws_catalog true) {
    if (
    defined('SEO_ENABLED') && SEO_ENABLED == '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);
    } else {
    return 
    zen_href_link($page$parameters$connection$add_session_id);
    }

    Not sure why you post Ultimate SEO URL code here?

    Also, xml feeder should use the catalog's zen_href_link function not the admin's one. Most xml feeders written that way work with SSU right out of the box without any modification needed.
    Last edited by yellow1912; 28 Nov 2009 at 02:04 PM.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  2. #2
    Join Date
    Jan 2009
    Location
    Czech Republic
    Posts
    59
    Plugin Contributions
    0

    Default Re: Simple SEO URL [support thread]

    Quote Originally Posted by yellow1912 View Post
    Not sure why you post Ultimate SEO URL code here?

    Also, xml feeder should use the catalog's zen_href_link function not the admin's one. Most xml feeders written that way work with SSU right out of the box without any modification needed.
    Not for mine, it is generating default zencart url instead of seo urls. It is not very sofisticated feed generator (only one file). I posted code of function which works fine with Ultimate SEO URLs but for SSU you need another function with SSU parametrs which I actualy dont know.

 

 

Similar Threads

  1. v151 Simple SEO URLs for ZC 1.5.x [Support Thread]
    By cvhainb in forum All Other Contributions/Addons
    Replies: 46
    Last Post: 8 Jun 2022, 09:42 AM
  2. Simple SEO URL, Ultimate SEO URLs, Ceon URI Mapping SEO
    By pizza392 in forum All Other Contributions/Addons
    Replies: 13
    Last Post: 21 Jan 2015, 10:49 AM
  3. How do I tell what version my Simple SEO URL addon mod, and others, are?
    By kevinmc3 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 6 May 2010, 01:32 AM
  4. Can't create new thread in Simple SEO URL forum
    By gseiber in forum General Questions
    Replies: 1
    Last Post: 3 Apr 2010, 01:56 PM
  5. Re: Simple SEO URL [support thread]
    By creamcrackers in forum General Questions
    Replies: 2
    Last Post: 16 Aug 2009, 03:02 PM

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