Jump to content

fguerrache

Members
  • Content count

    19
  • Joined

  • Last visited

Profile Information

  • Real Name
    gamait
  • Gender
    Male
  • Website
  1. thanks Jack for your reply i have used a file compare to compare between what is the diference in STEP #3 - Edit includes/functions/html_output.php for editing the function //// // The HTML href link wrapper function function tep_href_link and the difference that i found is : my mdoified file is having: $link .= $separator . tep_output_string($_sid); and in your code docuentation you have this line: $link .= $separator . $_sid; so what do you adivse me to do.? do i ignore this difference and just out your new function which is ( i have tryied this option but did not work): //// // Ultimate SEO URLs v2.2d // The HTML href link wrapper function function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $seo_urls; if ( !is_object($seo_urls) ){ if ( !class_exists('SEO_URL') ){ include_once(DIR_WS_CLASSES . 'seo.class.php'); } global $languages_id; $seo_urls = new SEO_URL($languages_id); } return $seo_urls->href_link($page, $parameters, $connection, $add_session_id); } or how do I get your addon works in my shop?
  2. please can any one help i am trying to do the addon of Ultimate_SEO_URLSv22d_10 - and in step STEP #3 - Edit includes/functions/html_output.php I dont find the code that i suppose to find in the instruction - so find some similiraties but not exact match , so i replaced any way the code , but I am having a problem in the website it doesnt work at all. this is what I have //// // The HTML href link wrapper function 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 = '?'; } while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1); // 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 . tep_output_string($_sid); } return $link; } //// and this what i should have according to the docuentation //// // The HTML href link wrapper function function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $request_type, $session_started, $SID; $seo = ( defined('SEO_URLS') ? SEO_URLS : false ); $seo_rewrite_type = ( defined('SEO_URLS_TYPE') ? SEO_URLS_TYPE : false ); $seo_pages = array('index.php', 'product_info.php'); if ( !in_array($page, $seo_pages) ) $seo = false; 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 ($page == '/') $page = ''; if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; $seo_link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; $seo_rewrite_link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; $seo_link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; $seo_rewrite_link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; $seo_link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; $seo_rewrite_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 = '&'; # Start exploding the parameters to extract the values # Also, we could use parse_str($parameters) and would probably be more clean if ($seo == 'true'){ $p = explode('&', $parameters); krsort($p); $params = array(); if ( $seo_rewrite_type == 'Rewrite' ){ foreach ($p as $index => $valuepair) { $p2 = explode('=', $valuepair); switch ($p2[0]){ case 'products_id': $rewrite_product = true; if ( defined('PRODUCT_NAME_'.$p2[1]) ){ $rewrite_page_product = short_name(constant('PRODUCT_NAME_'.$p2[1])) . '-p-' . $p2[1] . '.html'; } else { $seo = false; } break; case 'cPath': $rewrite_category = true; if ( defined('CATEGORY_NAME_'.$p2[1]) ){ $rewrite_page_category = short_name(constant('CATEGORY_NAME_'.$p2[1])) . '-c-' . $p2[1] . '.html'; } else { $seo = false; } break; // manufacturer addition by WebPixie case 'manufacturers_id': $rewrite_manufacturer = true; if ( defined('MANUFACTURER_NAME_'.$p2[1]) ){ $rewrite_page_manufacturer = short_name(constant('MANUFACTURER_NAME_'.$p2[1])) . '-m-' . $p2[1] . '.html'; } else { $seo = false; } break; // end manufacturer addition by WebPixie default: $params[$p2[0]] = $p2[1]; break; } # switch } # end foreach $params_stripped = implode_assoc($params); switch (true){ case ( $rewrite_product && $rewrite_category ): case ( $rewrite_product ): $rewrite_page = $rewrite_page_product; $rewrite_category = false; break; case ( $rewrite_category ): $rewrite_page = $rewrite_page_category; break; // manufacturer addition by WebPixie case ( $rewrite_manufacturer ): $rewrite_page = $rewrite_page_manufacturer; break; // end manufacturer addition by WebPixie default: $seo = false; break; } #end switch true $seo_rewrite_link .= $rewrite_page . ( tep_not_null($params_stripped) ? '?'.tep_output_string($params_stripped) : '' ); $separator = ( tep_not_null($params_stripped) ? '&' : '?' ); } else { foreach ($p as $index => $valuepair) { $p2 = explode('=', $valuepair); switch ($p2[0]){ case 'products_id': if ( defined('PRODUCT_NAME_'.$p2[1]) ){ $params['pName'] = constant('PRODUCT_NAME_'.$p2[1]); } else { $seo = false; } break; case 'cPath': if ( defined('CATEGORY_NAME_'.$p2[1]) ){ $params['cName'] = constant('CATEGORY_NAME_'.$p2[1]); } else { $seo = false; } break; // manufacturer addition by WebPixie case 'manufacturers_id': if ( defined('MANUFACTURER_NAME_'.$p2[1]) ){ $params['mName'] = constant('MANUFACTURER_NAME_'.$p2[1]); } else { $seo = false; } break; // end manufacturer addition by WebPixie default: $params[$p2[0]] = $p2[1]; break; } # switch } # end foreach $params_stripped = implode_assoc($params); $seo_link .= $page . '?'.tep_output_string($params_stripped); $separator = '&'; } # end if/else } # end if $seo } else { $link .= $page; $separator = '?'; $seo = false; } # end if(tep_not_null($parameters) while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1); // 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); while (strstr($seo_link, '&&')) $seo_link = str_replace('&&', '&', $seo_link); $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); $seo_link = str_replace('?', '/', $seo_link); $seo_link = str_replace('&', '/', $seo_link); $seo_link = str_replace('=', '/', $seo_link); $seo_rewrite_link = str_replace('?', '/', $seo_rewrite_link); $seo_rewrite_link = str_replace('&', '/', $seo_rewrite_link); $seo_rewrite_link = str_replace('=', '/', $seo_rewrite_link); $separator = '?'; } if (isset($_sid)) { $link .= $separator . $_sid; $seo_link .= $separator . $_sid; $seo_rewrite_link .= $separator . $_sid; } if ($seo == 'true') { return ($seo_rewrite_type == 'Rewrite' ? $seo_rewrite_link : $seo_link); } else { return $link; } }
  3. fguerrache

    Google Base feeds

    thanks for your replay BUT i have a problem in google base it tell me that my products are entred but in google merchent center it tell me that my feed is disapproved - I cant understand why - please help me with this issue
  4. fguerrache

    Google Base feeds

    yes thanks i got the link , but please one question is can i do manual upload because i can not find the gamaitFeed.txt file in my root directory - where can i find the gamaitFeed.txt file? also in this addon it seem that no mention of the FTP login details for google marchent center ftp upload for the data feed
  5. fguerrache

    Google Base feeds

    do you mean that your products are listed in google products or NOT listed - if it is not listed then why do i bother to do the addon of 'the feed machine solution v5.3'
  6. fguerrache

    Google Base feeds

    i am also having problem like bowen who posted his question yesterday - my haccess file is in the root directory and i have the following: RewriteBase / ############################# # Begin Google Base File Rewrite Code RewriteRule gamaitFeed.txt googlebase.php # End Google Base File Rewrite Code ############################# so as you see i addedd the line RewriteBase / because it wasnt there initially. when i go to www.gamait.co.uk/gamaitFeed i get that the page can not be found how can i access the text file so if i want to do manual uplaod i can do it? please tell me what could go worong?
  7. fguerrache

    Need Help adding Google Check-out :Fatal Error Line 43

    any body found the solution for this problem could they please post it , i have the same problem, in my case i dont have the catalog directory that came originally with OSC , now the admin and the includes are stright in my main root, so shall i creat a catalog directory and put inside it the googlecheckout directory or shall i put googlecheckout directory in my main web root??
  8. fguerrache

    Automatically send data feed to Froogle

    Jack I want to instal the new version of google base auto feeder you talked about - do i have to instal the Ultimate SEO in order for your addon to work ?? or is not neccessory. and will it work for the UK based
  9. fguerrache

    Automatically send data feed to Froogle

    is that mean that this addon one ( google base auto feeder 1_2_1) will not work for uk google base, because I want to use it in the UK and I have changed the configiration php file that came with tis add on but when i cheack my google base account the add on has not uploaded my products to google base , any one in the UK could please help how the get this add on works for google base uk
  10. Hi I am new to oscommerce and I liked the contribution of mindsparx admin, I have donloaded the latest version which i think only works for oscommerce version 3 , but at the moment i have version 2.2 , because when I looked to the install instraction which i quote " Mindsparx Admin version 3.0 for OSCommerce v3.0 Alpha created by Janne.kilpio @ mindsparx.org Mindsparx_admin was originally created for oscommerce v2.2 RC 2a, and for those who is used to the look of mindsparx_admin, here is one for v3.0 Alpha The install is easy, just follow the instructions below in admin/index.php look for: require('templates/default.php'); change that to: require('templates/mindsparx_admin.php'); Upload all new files and you are done there is a support forum for mindsparx_admin 2.1 here, http://forums.oscommerce.com/index.php?showtopic=324354 /Janne.K Need a professional oscommerce template? visit mindsparx.org " so I looked for the: require('templates/default.php'); in admin/index.php BUT I cant find it also for the 2nd step I could n't find the required phrace. so I searched for old version of mindsparx Admin and found one , whichnisnunder this link : http://addons.oscommerce.com/info/6440 and the date is 22 Dec 2008 . please advice me if what I am doing is correct or can you tell me where I got it wrong.? if what I am doing is correct then realy I find it very hard to implement this step wich is the last one which is about "ading your own links " " Adding your own links All links is moved to the header and if you need to add your own it has to be rewriten, for examle when you install a new module and it requires a link in for example catalog.php like this (Featured products) '<a href="' . tep_href_link(FILENAME_FEATURED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_F=hange it to this: <a href="<?php echo tep_href_link(FILENAME_FEATURED, 'selected_box=catalog')?>"><?php echo BOX_CATALOG_FEATURED_PRODUCTS ?></a> Note! 'selected_box=catalog' can be what ever the link requires And links that´s going in to the configuration drop needs the id that´s going in to the database for example (Featured products) the database looks like this: ********************** INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) values ('39','Featured', 'Featured Products Display', '339', '1'); ********************** note the value "39" that´s what we are looking for, now create your configuration link for Featured products like this: <a href="<?php echo tep_href_link(FILENAME_CONFIGURATION, 'gID=39&selected_box=configuration')?>"><?php echo BOX_CATALOG_FEATURED_PRODUCTS ?></a> Now add your links in your admin header and in what ever dropdown you need them in as you can see it requires that you have basic understanding in doing this or it wont work. *********************************************************************** Here is some usefull header links for various contributions: Order editor: <a href="<?php echo tep_href_link(FILENAME_CONFIGURATION, 'gID=72&selected_box=configuration')?>"><?php echo BOX_CONFIGURATION_ORDER_EDITOR?></a> Optional related products For config dropdown <a href="<?php echo tep_href_link(FILENAME_CONFIGURATION, 'gID=6125&selected_box=configuration')?>"><?php echo BOX_CATALOG_CATEGORIES_RELATED_PRODUCTS?></a> For other dropdown <a href="<?php echo tep_href_link(FILENAME_RELATED_PRODUCTS, 'selected_box=catalog')?>"><?php echo BOX_CATALOG_CATEGORIES_RELATED_PRODUCTS ?></a> Featured products For config dropdown <a href="<?php echo tep_href_link(FILENAME_CONFIGURATION, 'gID=39&selected_box=configuration')?>"><?php echo BOX_CATALOG_FEATURED_PRODUCTS ?></a> For other dropdown <a href="<?php echo tep_href_link(FILENAME_FEATURED, 'selected_box=catalog')?>"><?php echo BOX_CATALOG_FEATURED_PRODUCTS ?></a> Star product <a href="<?php echo tep_href_link(FILENAME_STAR_PRODUCT, 'selected_box=catalog')?>"> <?php echo STAR_PRODUCT ?> </a> Products extra categories <a href="<?php echo tep_href_link(FILENAME_CATEGORIES_EXTRA, 'selected_box=tools')?>"><?php echo BOX_CATALOG_CATEGORIES_EXTRA_DESCRIPTION ?></a> Extra infopages <a href="<?php echo tep_href_link(FILENAME_PAGE_MANAGER, 'selected_box=tools')?>"><?php echo BOX_TOOLS_PAGE_MANAGER ?></a> I think that´s all your admin´s been officially pimped! " please help me with some hints how to implements the above step because is not clear for me how to implement it
  11. fguerrache

    [Contribution] Mindsparx admin

    Hi I am new to oscommerce and I liked the contribution of mindsparx admin, I have donloaded the latest version which i think only works for oscommerce version 3 , but at the moment i have version 2.2 , because when I looked to the install instraction which i quote " Mindsparx Admin version 3.0 for OSCommerce v3.0 Alpha created by Janne.kilpio @ mindsparx.org Mindsparx_admin was originally created for oscommerce v2.2 RC 2a, and for those who is used to the look of mindsparx_admin, here is one for v3.0 Alpha The install is easy, just follow the instructions below in admin/index.php look for: require('templates/default.php'); change that to: require('templates/mindsparx_admin.php'); Upload all new files and you are done ;) there is a support forum for mindsparx_admin 2.1 here, http://forums.oscommerce.com/index.php?showtopic=324354 /Janne.K Need a professional oscommerce template? visit mindsparx.org " so I looked for the: require('templates/default.php'); in admin/index.php BUT I cant find it also for the 2nd step I could n't find the required phrace. so I searched for old version of mindsparx Admin and found one , whichnisnunder this link : http://addons.oscommerce.com/info/6440 and the date is 22 Dec 2008 . please advice me if what I am doing is correct or can you tell me where I got it wrong.? if what I am doing is correct then realy I find it very hard to implement this step wich is the last one which is about "ading your own links " " Adding your own links All links is moved to the header and if you need to add your own it has to be rewriten, for examle when you install a new module and it requires a link in for example catalog.php like this (Featured products) '<a href="' . tep_href_link(FILENAME_FEATURED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_F=hange it to this: <a href="<?php echo tep_href_link(FILENAME_FEATURED, 'selected_box=catalog')?>"><?php echo BOX_CATALOG_FEATURED_PRODUCTS ?></a> Note! 'selected_box=catalog' can be what ever the link requires And links that´s going in to the configuration drop needs the id that´s going in to the database for example (Featured products) the database looks like this: ********************** INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) values ('39','Featured', 'Featured Products Display', '339', '1'); ********************** note the value "39" that´s what we are looking for, now create your configuration link for Featured products like this: <a href="<?php echo tep_href_link(FILENAME_CONFIGURATION, 'gID=39&selected_box=configuration')?>"><?php echo BOX_CATALOG_FEATURED_PRODUCTS ?></a> Now add your links in your admin header and in what ever dropdown you need them in ;) as you can see it requires that you have basic understanding in doing this or it wont work. *********************************************************************** Here is some usefull header links for various contributions: Order editor: <a href="<?php echo tep_href_link(FILENAME_CONFIGURATION, 'gID=72&selected_box=configuration')?>"><?php echo BOX_CONFIGURATION_ORDER_EDITOR?></a> Optional related products For config dropdown <a href="<?php echo tep_href_link(FILENAME_CONFIGURATION, 'gID=6125&selected_box=configuration')?>"><?php echo BOX_CATALOG_CATEGORIES_RELATED_PRODUCTS?></a> For other dropdown <a href="<?php echo tep_href_link(FILENAME_RELATED_PRODUCTS, 'selected_box=catalog')?>"><?php echo BOX_CATALOG_CATEGORIES_RELATED_PRODUCTS ?></a> Featured products For config dropdown <a href="<?php echo tep_href_link(FILENAME_CONFIGURATION, 'gID=39&selected_box=configuration')?>"><?php echo BOX_CATALOG_FEATURED_PRODUCTS ?></a> For other dropdown <a href="<?php echo tep_href_link(FILENAME_FEATURED, 'selected_box=catalog')?>"><?php echo BOX_CATALOG_FEATURED_PRODUCTS ?></a> Star product <a href="<?php echo tep_href_link(FILENAME_STAR_PRODUCT, 'selected_box=catalog')?>"> <?php echo STAR_PRODUCT ?> </a> Products extra categories <a href="<?php echo tep_href_link(FILENAME_CATEGORIES_EXTRA, 'selected_box=tools')?>"><?php echo BOX_CATALOG_CATEGORIES_EXTRA_DESCRIPTION ?></a> Extra infopages <a href="<?php echo tep_href_link(FILENAME_PAGE_MANAGER, 'selected_box=tools')?>"><?php echo BOX_TOOLS_PAGE_MANAGER ?></a> I think that´s all your admin´s been officially pimped! " please help me with some hints how to implements the above step because is not clear for me how to implement it
×