Guest Posted June 29, 2007 Share Posted June 29, 2007 (edited) You were right! :blush: If I out comment the line "Options +FollowSymLinks" the osc shop works fine. But when I run the real .htaccess file on the server it crash the whole site and gives me an 'Internal Server Error'. When you say the real .htaccess what do you mean? I thought you posted the entire .htaccess earlier. Can you recommend a good host, which support the necessary moduls at their server! :lol: IF you say the rewrite works then is a question what other lines your .htaccess has that causes the 500 error. I cannot recommend a host by name, goes against the forum rules but you can search the web for hosts and look for the following: Apache Server PHP Support MySql Support phpmyadmin with the host's panel - as a minimum for your osc store there is a link here: http://www.oscommerce.com/forums/index.php?showtopic=267312 that talks about things to look for Edited June 29, 2007 by enigma1 Quote Link to comment Share on other sites More sharing options...
jamesblackburn Posted June 29, 2007 Share Posted June 29, 2007 (edited) Can you tell me what modules need to be installed on the server in order for this contribution to run. I guess what I am asking is is there a specific rewrite module required to run it? I have tried setting this up locally and it does not work I have copied the files in the contribution over to the vanilla install and amended the .htaccess file. The back end works and I set up the linkage as mentioned on the forum and instructions. When I call the shop in my browser it does a 404 not found error on the category pages. Is this down to incorrect set up or incorrect htaccess file or neither and it being my local machine not have a module installed? I have also tried commenting out the line which has been mentioned above but this does nothing. Any help would be greatly appreciated as this will really help my store with SEO. Thanks James Edited June 29, 2007 by jamesblackburn Quote Link to comment Share on other sites More sharing options...
Guest Posted June 29, 2007 Share Posted June 29, 2007 Can you tell me what modules need to be installed on the server in order for this contribution to run. I guess what I am asking is is there a specific rewrite module required to run it? I have tried setting this up locally and it does not work I have copied the files in the contribution over to the vanilla install and amended the .htaccess file. The back end works and I set up the linkage as mentioned on the forum and instructions. When I call the shop in my browser it does a 404 not found error on the category pages. Is this down to incorrect set up or incorrect htaccess file or neither and it being my local machine not have a module installed? I have also tried commenting out the line which has been mentioned above but this does nothing. Any help would be greatly appreciated as this will really help my store with SEO. Thanks James what you mean specific rewrite? you need to have the mod_rewrite module for apache enabled. 404 usually means incorrect .htaccess or no rewrite (or the root.php is not there). Quote Link to comment Share on other sites More sharing options...
everlight.dk Posted June 30, 2007 Share Posted June 30, 2007 When you say the real .htaccess what do you mean? I thought you posted the entire .htaccess earlier.IF you say the rewrite works then is a question what other lines your .htaccess has that causes the 500 error. I cannot recommend a host by name, goes against the forum rules but you can search the web for hosts and look for the following: Apache Server PHP Support MySql Support phpmyadmin with the host's panel - as a minimum for your osc store there is a link here: http://www.oscommerce.com/forums/index.php?showtopic=267312 that talks about things to look for When I say the real .htaccess; then I found out that I named the .htaccess this way: ".htacces" so i forgot a "s" :blush: It is my whole .htaccess file I posted earlier. The reason of the server fail: I think its because my server do not understand .htaccess files in general? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 30, 2007 Share Posted June 30, 2007 (edited) The reason of the server fail: I think its because my server do not understand .htaccess files in general? I don't think so, as far I can tell, the response shows Apache. So it should support the .htaccess and mod_rewrite. Can you ask your host about it? If they have the mod rewrite enabled on their end? In need be, send them the content of your .htaccess file so they can try it. Edited June 30, 2007 by enigma1 Quote Link to comment Share on other sites More sharing options...
danielbrasil Posted June 30, 2007 Share Posted June 30, 2007 (edited) Yes, the new version solved my problems. Thank you for your hard work. Great mod! Loved it... I just was just wondering if you could help with one small issue I am running into. I am running the "Additional Images V2.0.0" mod (by zaenal and modified by HelloMan) along with "SEO_G V1.20" and the popup function does not return the images when SEO_G is on! Any suggestions? In order to solve this minor issue, I would have no problem if SEO_G disconsidered the popup and kept the original OSC url. However, if there is a way to have SEO_G run along with "Additional Images" it would be perfect! I will leave it SEO_G on for now so if you have the opportunity to check it out it follows the link: homepage: http://www.bknbrazil.com product page: http://www.bknbrazil.com/product/brazilian...-set-id118.html popup page for the product: http://www.bknbrazil.com/popup_add_image_pid/118.html Thank you in advance and congrats for this awesome mod. Edited June 30, 2007 by danielbrasil Quote Link to comment Share on other sites More sharing options...
danielbrasil Posted June 30, 2007 Share Posted June 30, 2007 Great mod! Loved it... I just was just wondering if you could help with one small issue I am running into. I am running the "Additional Images V2.0.0" mod (by zaenal and modified by HelloMan) along with "SEO_G V1.20" and the popup function does not return the images when SEO_G is on! Any suggestions? In order to solve this minor issue, I would have no problem if SEO_G disconsidered the popup and kept the original OSC url. However, if there is a way to have SEO_G run along with "Additional Images" it would be perfect! I will leave it SEO_G on for now so if you have the opportunity to check it out it follows the link: homepage: http://www.bknbrazil.com product page: http://www.bknbrazil.com/product/brazilian...-set-id118.html popup page for the product: http://www.bknbrazil.com/popup_add_image_pid/118.html Thank you in advance and congrats for this awesome mod. By the way, I seached all over to switch on Safe Mode as explained on a discussion within this forum, but I was not able to find it. Quote Link to comment Share on other sites More sharing options...
danielbrasil Posted July 1, 2007 Share Posted July 1, 2007 Great mod! Loved it... I just was just wondering if you could help with one small issue I am running into. I am running the "Additional Images V2.0.0" mod (by zaenal and modified by HelloMan) along with "SEO_G V1.20" and the popup function does not return the images when SEO_G is on! Any suggestions? In order to solve this minor issue, I would have no problem if SEO_G disconsidered the popup and kept the original OSC url. However, if there is a way to have SEO_G run along with "Additional Images" it would be perfect! I will leave it SEO_G on for now so if you have the opportunity to check it out it follows the link: homepage: http://www.bknbrazil.com product page: http://www.bknbrazil.com/product/brazilian...-set-id118.html popup page for the product: http://www.bknbrazil.com/popup_add_image_pid/118.html Thank you in advance and congrats for this awesome mod. PS.: By the way, I seached all over to switch on Safe Mode as explained on a discussion within this forum (seems to be one solution), but I was not able to find it. Quote Link to comment Share on other sites More sharing options...
danielbrasil Posted July 1, 2007 Share Posted July 1, 2007 Great mod! Loved it... I just was just wondering if you could help with one small issue I am running into. I am running the "Additional Images V2.0.0" mod (by zaenal and modified by HelloMan) along with "SEO_G V1.20" and the popup function does not return the images when SEO_G is on! Any suggestions? In order to solve this minor issue, I would have no problem if SEO_G disconsidered the popup and kept the original OSC url. However, if there is a way to have SEO_G run along with "Additional Images" it would be perfect! I will leave it SEO_G on for now so if you have the opportunity to check it out it follows the link: homepage: http://www.bknbrazil.com product page: http://www.bknbrazil.com/product/brazilian...-set-id118.html popup page for the product: http://www.bknbrazil.com/popup_add_image_pid/118.html Thank you in advance and congrats for this awesome mod. PS.: By the way, I seached all over to switch on Safe Mode as explained on a discussion within this forum (seems to be one solution), but I was not able to find it. I have included Safe Mode as explained under post #3, switched "on" and "off" but I still run into the same issue. The images under the popup won't come up! Quote Link to comment Share on other sites More sharing options...
awarner20 Posted July 1, 2007 Share Posted July 1, 2007 Mark, I just installed your awesome contrib! Thank you so much for such a great contrib and also for such detailed and informative instructions. Simply awesome! After installing I just have a couple questions regarding the XML Sitemap part of this. so I understand that the urls are created progressivly so I checked the xml file and see that the only urls in it are of urls that have been visited. I use another sitemap contrib, so I'm wondering... 1. When I run my other sitemap generator, should it pick up the new (html) urls? 2. Is the only way to verify that the sitemap portion of this contrib picks up all my urls is for me to visit each one (to initially create them)? 3. Is there a way to run the sitemap portion while at the same time having it generate the new urls? It's like you have two contribs in one and that is great, I certainly don't mind putting in the work to manually visit all the categories and products (over 2000). Thanks again for such a great contrib...you will be seeing a donation from me! Adam Quote We see our customers as invited guests to a party, and we are the hosts. It's our job every day to make every important aspect of the customer experience a little bit better. - Jeff Bezos Link to comment Share on other sites More sharing options...
Guest Posted July 1, 2007 Share Posted July 1, 2007 I understand that the urls are created progressivly so I checked the xml file and see that the only urls in it are of urls that have been visited. I use another sitemap contrib, so I'm wondering... 1. When I run my other sitemap generator, should it pick up the new (html) urls? 2. Is the only way to verify that the sitemap portion of this contrib picks up all my urls is for me to visit each one (to initially create them)? 3. Is there a way to run the sitemap portion while at the same time having it generate the new urls? The XML sitemap you use should generate links that match the ones you are exposing. It is the reason the XML support was added to SEO-G. If you have a site map, all products, all manufacturers contributions/modules you can load these 2-3 pages and most if not all of your important links will be generated. Quote Link to comment Share on other sites More sharing options...
awarner20 Posted July 1, 2007 Share Posted July 1, 2007 The XML sitemap you use should generate links that match the ones you are exposing. It is the reason the XML support was added to SEO-G. If you have a site map, all products, all manufacturers contributions/modules you can load these 2-3 pages and most if not all of your important links will be generated. Thanks! Quote We see our customers as invited guests to a party, and we are the hosts. It's our job every day to make every important aspect of the customer experience a little bit better. - Jeff Bezos Link to comment Share on other sites More sharing options...
trogette Posted July 1, 2007 Share Posted July 1, 2007 there is, that particular implementation has its own application_top.inc.php to begin with. So it has to be customized in a similar way as with the regular application_top. But this goes outside the scope of the SEO-G yep cheers that sorted it :) Quote Link to comment Share on other sites More sharing options...
melsy Posted July 2, 2007 Share Posted July 2, 2007 well the main scripts for osc should operate from the root osc folder. SEO-G was designed with this principle. See if you can move the affiliates code to the osc root. and whats the link or id of this contribution? Hi here's the link: http://www.help4hosters.com/prod_affiliate.php sorry, made a mistake.. it's not a contribution. I know this is probably not a good idea, but I edited the seo_exclude.php to include the affiliates folder instead and it seems to work fine... I added this code: $dir2 = dir(DIR_FS_CATALOG . "/affiliates/"); while ($script = $dir2->read()) { if( strlen($script) < 5 || substr($script, -4, 4) != '.php') continue; $script_text = "affiliates/".$script; $scripts_array[strtolower($script)] = array( 'id' => $script, 'text' => $script_text ); } $dir2->close(); Quote Link to comment Share on other sites More sharing options...
Andrew Listochkin Posted July 2, 2007 Share Posted July 2, 2007 I'm trying to install 1.20 The Step B) Locate the following code if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { Right above it add: //-MS- SEO-G Added if( $connection == 'NONSSL' || SEO_PROCESS_SSL == 'true' ) $link = $g_seo_url->get_seo_url($link, $separator); //-MS- SEO-G Added EOM I cant locate this code Here's the file B) Locate the following code if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { Right above it add: //-MS- SEO-G Added if( $connection == 'NONSSL' || SEO_PROCESS_SSL == 'true' ) $link = $g_seo_url->get_seo_url($link, $separator); //-MS- SEO-G Added EOM Quote Link to comment Share on other sites More sharing options...
Andrew Listochkin Posted July 2, 2007 Share Posted July 2, 2007 Oh, sorry for misscopying and those smiles. Step 8 b ) And my html_output.php is: <?php /* $Id: html_output.php,v 1.2 2004/03/05 00:36:42 ccwjr Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ //// // The HTML href link wrapper function function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { // REMOVED BY Andrew Listochkin - SEO-G /* global $request_type, $session_started, $SID; //*/ // ENDOF REMOVED BY Andrew Listochkin - SEO-G // ADDED BY Andrew Listochkin - SEO-G //-MS- SEO-G Added global $request_type, $session_started, $SID, $g_seo_url; //-MS- SEO-G Added EOM // ENDOF ADDED BY Andrew Listochkin - SEO-G // UNABLE TO LOCATE SEO-G 8b CHANGE - Andrew Listochkin - SEO-G global $spider_flag; 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>'); die('</td></tr></table></td></tr></table><br><br><font color="#ff0000">'.TEP_HREF_LINK_ERROR1); } 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>'); die('</td></tr></table></td></tr></table><br><br><font color="#ff0000">'.TEP_HREF_LINK_ERROR2); } if (tep_not_null($parameters)) { while ( (substr($parameters, -5) == '&') ) $parameters = substr($parameters, 0, strlen($parameters)-5); $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; } else { $link .= $page; $separator = '?'; } // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined // there is a minor logic problem with the original osCommerce code // the SESSION_FORCE_COOKIE_USE must not be honored if changing from nonssl to ssl /* 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 session is not started or requested not to add session, skip it if ( ($add_session_id == true) && ($session_started == true) ){ // if cookies are not set and not forced, then add the session info incase the set cookie fails if ( ! isset($_COOKIE[tep_session_name()]) && (SESSION_FORCE_COOKIE_USE == 'False') ) { $_sid = tep_session_name() . '=' . tep_session_id(); // if we are chaning modes and cookie domains differ, we need to add the session info } elseif ( HTTP_COOKIE_DOMAIN . HTTP_COOKIE_PATH != HTTPS_COOKIE_DOMAIN . HTTPS_COOKIE_PATH && ( ( $request_type == 'NONSSL' && $connection == 'SSL' && ENABLE_SSL == true ) || ( $request_type == 'SSL' && $connection == 'NONSSL' ) ) ) { $_sid = tep_session_name() . '=' . tep_session_id(); } } if (isset($_sid) && !$spider_flag) { $link .= $separator . tep_output_string($_sid); } return $link; } //// // The HTML image wrapper function function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; } // 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="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) { $image .= ' title=" ' . tep_output_string($alt) . ' "'; } if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) { if ($image_size = @getimagesize($src)) { if (empty($width) && tep_not_null($height)) { $ratio = $height / $image_size[1]; $width = $image_size[0] * $ratio; } elseif (tep_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 (tep_not_null($width) && tep_not_null($height)) { $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"'; } if (tep_not_null($parameters)) $image .= ' ' . $parameters; $image .= '>'; return $image; } // The Javascript Image wrapper build a image tag for a dummy picture, // then uses javascript to load the actual picure. This approach prevents spiders from stealing images. function tep_javascript_image($src, $name, $alt = '', $width = '', $height = '', $parameters = '', $popup = 'false') { global $product_info; $image = ''; if ( empty($name) || ((empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false')) ) { return false; } // Do we need to add the pop up link code? if ( $popup ) { $image .= '<div align="center"><a href="java script:popupWindow(\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=0') . '\')">' . "\n"; } // alt is added to the img tag even if it is null to prevent browsers from outputting // the image filename as default $image .= '<img name="' . tep_output_string($name) . '" src="' . DIR_WS_IMAGES . 'pixel_trans.gif" border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) { $image .= ' title=" ' . tep_output_string($alt) . ' "'; } if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) { if ($image_size = @getimagesize($src)) { if (empty($width) && tep_not_null($height)) { $ratio = $height / $image_size[1]; $width = $image_size[0] * $ratio; } elseif (tep_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 (tep_not_null($width) && tep_not_null($height)) { $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"'; } if (tep_not_null($parameters)) $image .= ' ' . $parameters; $image .= '>' . "\n"; if ( $popup ) { $image .= '<br>' . tep_template_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a></div>' . "\n"; } // Now for the Javascript loading code $image .= '<script type="text/javascript"><!-- ' . "\n"; $image .= "document['" . tep_output_string($name) . "'].src = '" . tep_output_string($src) . "'" . "\n"; $image .= ' //--></script>' ."\n"; return $image; } //// // The HTML form submit button wrapper function // Outputs a button in the selected language function tep_image_submit($image, $alt = '', $parameters = '') { global $language; $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/images/buttons/' . $language . '/' . $image) . '" alt="' . tep_output_string($alt) . '"'; // EOM if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "'; if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters; $image_submit .= '>'; return $image_submit; } //// // Output a function button in the selected language function tep_image_button($image, $alt = '', $parameters = '') { global $language; $image_button = tep_image(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/images/buttons/' . $language . '/' . $image, $alt, '', '', $parameters); return $image_button; // EOM } //// // The HTML form submit button wrapper function // Outputs a button in the selected language function tep_image_nontemplate_submit($image, $alt = '', $parameters = '') { global $language; // BOM Mod: force all buttons to come from the tempalte folders $image_submit = '<input type="image" src="' . tep_output_string($image) . '" alt="' . tep_output_string($alt) . '"'; // $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/images/buttons/' . $language . '/' . $image) . '" alt="' . tep_output_string($alt) . '"'; // EOM if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "'; if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters; $image_submit .= '>'; return $image_submit; } //// // Output a function button in the selected language function tep_image_nontemplate_button($image, $alt = '', $parameters = '') { global $language; // BOM Mod: force all buttons to come from the tempalte folders return tep_image($image, $alt, '', '', $parameters); // return tep_image(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/images/buttons/' . $language . '/' . $image, $alt, '', '', $parameters); // EOM } //// // Output a separator either through whitespace, or with an image function tep_draw_separator($image = 'pixel_black.gif', $width = '100%', $height = '1') { return tep_image(DIR_WS_IMAGES . $image, '', $width, $height); } //// // Output a form function tep_draw_form($name, $action, $method = 'post', $parameters = '') { $form = '<form name="' . tep_output_string($name) . '" action="' . tep_output_string($action) . '" method="' . tep_output_string($method) . '"'; if (tep_not_null($parameters)) $form .= ' ' . $parameters; $form .= '>'; return $form; } //// // Output a form input field function tep_draw_input_field($name, $value = '', $parameters = '', $type = 'text', $reinsert_value = true) { $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"'; if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) { $field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"'; } elseif (tep_not_null($value)) { $field .= ' value="' . tep_output_string($value) . '"'; } if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; return $field; } //// // Output a form password field function tep_draw_password_field($name, $value = '', $parameters = 'maxlength="40"') { return tep_draw_input_field($name, $value, $parameters, 'password', false); } //// // Output a selection field - alias function for tep_draw_checkbox_field() and tep_draw_radio_field() function tep_draw_selection_field($name, $type, $value = '', $checked = false, $parameters = '') { $selection = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"'; if (tep_not_null($value)) $selection .= ' value="' . tep_output_string($value) . '"'; if ( ($checked == true) || ( isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) && ( ($GLOBALS[$name] == 'on') || (isset($value) && (stripslashes($GLOBALS[$name]) == $value)) ) ) ) { $selection .= ' CHECKED'; } if (tep_not_null($parameters)) $selection .= ' ' . $parameters; $selection .= '>'; return $selection; } //// // Output a form checkbox field function tep_draw_checkbox_field($name, $value = '', $checked = false, $parameters = '') { return tep_draw_selection_field($name, 'checkbox', $value, $checked, $parameters); } //// // Output a form radio field function tep_draw_radio_field($name, $value = '', $checked = false, $parameters = '') { return tep_draw_selection_field($name, 'radio', $value, $checked, $parameters); } //// // Output a form textarea field function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) { $field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) { $field .= tep_output_string_protected(stripslashes($GLOBALS[$name])); } elseif (tep_not_null($text)) { $field .= tep_output_string_protected($text); } $field .= '</textarea>'; return $field; } //// // Output a form hidden field function tep_draw_hidden_field($name, $value = '', $parameters = '') { $field = '<input type="hidden" name="' . tep_output_string($name) . '"'; if (tep_not_null($value)) { $field .= ' value="' . tep_output_string($value) . '"'; } elseif (isset($GLOBALS[$name])) { $field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"'; } if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; return $field; } //// // Hide form elements function tep_hide_session_id() { global $session_started, $SID; if (($session_started == true) && tep_not_null($SID)) { return tep_draw_hidden_field(tep_session_name(), tep_session_id()); } } //// // Output a form pull down menu function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) { $field = '<select name="' . tep_output_string($name) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if(empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]); for ($i=0, $n=sizeof($values); $i<$n; $i++) { $field .= '<option value="' . tep_output_string($values[$i]['id']) . '"'; if ($default == $values[$i]['id']) { $field .= ' SELECTED'; } $field .= '>'.tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>'; } $field .= '</select>'; if ($required == true) $field .= TEXT_FIELD_REQUIRED; return $field; } //// // Creates a pull-down list of countries function tep_get_country_list($name, $selected = '', $parameters = '') { $countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT)); $countries = tep_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 tep_draw_pull_down_menu($name, $countries_array, $selected, $parameters); } ?> Quote Link to comment Share on other sites More sharing options...
Guest Posted July 2, 2007 Share Posted July 2, 2007 Oh, sorry for misscopying and those smiles. Step 8 b ) And my html_output.php is: You must removed it from the html_output.php at some point. The SEO-G package includes the stock html_output.php to help with integration. So check that file from the archive should be very easy to see where to place that part of the code. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 2, 2007 Share Posted July 2, 2007 I know this is probably not a good idea, but I edited the seo_exclude.php to include the affiliates folder instead and it seems to work fine... The module is designed to operate from the osc root. So in your case I've no idea what will happen generating links from sub-folders. Quote Link to comment Share on other sites More sharing options...
samsagaz Posted July 2, 2007 Share Posted July 2, 2007 Hi guys i have my store in spanish and english lang, when i use my store in spanish lang i get all the SEO-G links displayed in english lang, for example http://www.domain.com/englishname.html instead spanishname.html, is possible to modify it? Someone know how? THanks in advance. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 2, 2007 Share Posted July 2, 2007 Hi guys i have my store in spanish and english lang, when i use my store in spanish lang i get all the SEO-G links displayed in english lang, for example http://www.domain.com/englishname.html instead spanishname.html, is possible to modify it? Someone know how? THanks in advance. there is no direct multilingual support at this point. The documentation includes a link to an earlier post in this thread how to make the autobuilder generate links for a different language. And you would have to do several other mods to support it. Quote Link to comment Share on other sites More sharing options...
boom71 Posted July 2, 2007 Share Posted July 2, 2007 Hi Mark, Just a quick one. Is the Header Tags contribution compatible with SEO-G as my header tags do not work anymore, was wondering if there was a wrok around for this or a known issue? Cheers Keith Quote Link to comment Share on other sites More sharing options...
Guest Posted July 2, 2007 Share Posted July 2, 2007 Hi Mark, Just a quick one. Is the Header Tags contribution compatible with SEO-G as my header tags do not work anymore, was wondering if there was a wrok around for this or a known issue? Cheers Keith What known issue? They can coexist. They're no conflicts between them as far I know. As long as you follow the manual instructions and you did not blindly overrided files, you should be ok. Quote Link to comment Share on other sites More sharing options...
emilesteenkamp Posted July 2, 2007 Share Posted July 2, 2007 Hi there, it looks like everything is working fine now, but after some pages: http://www.marvuli.com/shop/specials.htm there is this: osCsid=f1df625c9b7b6589c89c41e1275a8dc1 as in: http://www.marvuli.com/shop/specials.html?...89c41e1275a8dc1 How can I get rid of this? Quote No outside links in signature allowed. See forum rules please. Link to comment Share on other sites More sharing options...
Guest Posted July 2, 2007 Share Posted July 2, 2007 Hi there, it looks like everything is working fine now, but after some pages:there is this: osCsid=f1df625c9b7b6589c89c41e1275a8dc1 you need to fix your cookies in your configure.php files. Not SEO-G related. Quote Link to comment Share on other sites More sharing options...
emilesteenkamp Posted July 2, 2007 Share Posted July 2, 2007 you need to fix your cookies in your configure.php files. Not SEO-G related. What do I need to do, disable it? Quote No outside links in signature allowed. See forum rules please. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.