Jump to content

alexwebbing

Members
  • Content count

    16
  • Joined

  • Last visited

  1. alexwebbing

    Header Tags SEO

    My version test is Header tags seo 3.1.5... try to update 3.1.3 -> 3.1.5
  2. alexwebbing

    Header Tags SEO

    <!-- start sorry for poor english //-> Eyal Barouk: For page index.php this is a sample: NOT insert a duplicate values (eg 1,2,2,3...) For Pillao (also for Eyal Barouk): This setting is in: Configuration -> Header tags seo -> Display category parents in title and tags. In this section enable "Full category path". <!-- end sorry for poor english //-> Contribution "Sorry for poor english 1.0" is active only for oscommerce forum, not available for oscommerce store, sorry :blush:
  3. alexwebbing

    Header Tags SEO

    <!-- sorry for poor english //--> Hi eyal_barouk, In Page control, for index.php, enable "category" checkbox and insert an order (1,2,3,4, etc...) for each box you have checked. Enjoy. <!-- end sorry for poor english //-->
  4. Hello all, i need a help for change the font color only for subcategory of products menu (standard menu of oscommerce). The code is: catalog\includes\boxes\categories.php <?php /* $Id: categories.php,v 1.25 2003/07/09 01:13:58 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ function tep_show_category($counter) { global $tree, $categories_string, $cPath_array; for ($i=0; $i<$tree[$counter]['level']; $i++) { $categories_string .= " "; } $categories_string .= '<a href="'; if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">'; if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '<b>'; } // display category name $categories_string .= $tree[$counter]['name']; if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '</b>'; } if (tep_has_category_subcategories($counter)) { $categories_string .= '->'; } $categories_string .= '</a>'; if (SHOW_COUNTS == 'true') { $products_in_category = tep_count_products_in_category($counter); if ($products_in_category > 0) { $categories_string .= ' (' . $products_in_category . ')'; } } $categories_string .= '<br>'; if ($tree[$counter]['next_id'] != false) { tep_show_category($tree[$counter]['next_id']); } } ?> <!-- categories //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); new infoBoxHeading($info_box_contents, true, false); $categories_string = ''; $tree = array(); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { $tree[$categories['categories_id']] = array('name' => $categories['categories_name'], 'parent' => $categories['parent_id'], 'level' => 0, 'path' => $categories['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $categories['categories_id']; } $parent_id = $categories['categories_id']; if (!isset($first_element)) { $first_element = $categories['categories_id']; } } //------------------------ if (tep_not_null($cPath)) { $new_path = ''; reset($cPath_array); while (list($key, $value) = each($cPath_array)) { unset($parent_id); unset($first_id); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); if (tep_db_num_rows($categories_query)) { $new_path .= $value; while ($row = tep_db_fetch_array($categories_query)) { $tree[$row['categories_id']] = array('name' => $row['categories_name'], 'parent' => $row['parent_id'], 'level' => $key+1, 'path' => $new_path . '_' . $row['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $row['categories_id']; } $parent_id = $row['categories_id']; if (!isset($first_id)) { $first_id = $row['categories_id']; } $last_id = $row['categories_id']; } $tree[$last_id]['next_id'] = $tree[$value]['next_id']; $tree[$value]['next_id'] = $first_id; $new_path .= '_'; } else { break; } } } tep_show_category($first_element); $info_box_contents = array(); $info_box_contents[] = array('text' => $categories_string); new infoBox($info_box_contents); ?> </td> </tr> <!-- categories_eof //--> With css stylesheet i change all href links of menu (category and subcategory), but i need to change font color ONLY for links menu subcategories.... This is also possible from the admin panel with insert code <font color="xxxx"> before name of each subcategory, but with this method the code <font color="xxx"> is also stored in url (i use ultimate seo) and in the form of section to search products :(' . I search a "clean" method to change the font color of subcategories. Thanks for your help
  5. Sharmainfoway, i have reply you in other topic....the solution is also in this tread... read the forum! :wacko:
  6. Hello, i have two questions for Ultimate SEO. 1) With ultimate Seo is possible to modify the title of each page ? E.g.: <title>myshop - product name 1</title> , <title>myshop - product name 2</title> , <title>myshop - product name 3</title> , etc.... 2) How to refresh url's in ultimate seo? I have the url of product formatted with font color with this type of link: catalog/font-color0000ffname-of-product-p-295.html Now, i have deleted <font color=0000ff> after the name of product in admin panel, but the link is: catalog/font-color0000ffname-of-product-p-295.html How to modify Ultimate Seo to view the new link format (catalog/name-of-product-p-295.html) ? Your help is appreciated Thanks
  7. alexwebbing

    Paging in Ultimate URL doesnt work

    The solution is in this topic: http://forums.oscommerce.com/index.php?sho...999&st=1480 The file is... uhm... seo.class.php ? Is necessary to modify only one line: "return $current_page" to "return $return" This is the explanation: Well I don't know much about php but when I changed line 1073 from return current page to return return the same as the other lines below everything seems to be working.Maybe somebody knows if this will mess something else up. line : 1064 to1073 function requested_page() { $protocol = ((int) $_SERVER['SERVER_PORT'] === 443)? 'https://' : 'http://'; $current_page = $protocol . $_SERVER['HTTP_HOST'] . ((!empty($_SERVER['REQUEST_URI']))? $_SERVER['REQUEST_URI'] : ''); $current_page = substr($current_page, strlen(HTTP_SERVER)); if (($pos = strpos($current_page, "?osCsid")) !== FALSE) $current_page = substr($current_page, 0, $pos).'<br>'; if ($current_page[0] == "/") $current_page = substr($current_page, 1); Changed commented out // return $current_page; Now return $return; Enjoy.
  8. Hello, i search help. I use this portion of code of my .htaccess for Ultimate seo: # Ultimate SEO URLs BEGIN <IfModule mod_rewrite.c> # Options +FollowSymLinks RewriteEngine On RewriteBase /catalog/ RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING} RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING} # Ultimate SEO URLs END # Added to fix article glitch on sub-articles (lonniew at gmail dot com) RewriteRule ^(.*)-t-([0-9]+_[0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING} </IfModule> The "Options +FollowSymLinks" is quoted for my server hosting configuration, if i not quote this code, my server doing: 500 Internal Server Error. With this quote the ultimate seo urls works good, but... : Not work good the view of all products in principal categories: if i visit any section with more product (50-100 or other) and is necessary to view other pages of other products, i have the redirect only for the first page of products. For example: Page: catalog/index.php?cPath=40 is correctly redirecting with Ultimate seo Page: catalog/index.php?cPath=40&sort=3a&page=3 i have redirect on: catalog/index.php?cPath=40 not good redirection.... Any help is appreciated Best regards and sorry for my english... :-" Thanks
  9. Hello, i have a contribution for insert thumbnail images in admin catalog listings: this is the contribution: http://www.oscommerce.com/community/contri...category+images But i search how to insert thumbnail images in public catalog listing, not in admin panel catalog listings... What is the file to modify the categories with this contribution for public catalog? Thanks
×