Jump to content
Latest News: (loading..)

Grinse

Members
  • Content count

    71
  • Joined

  • Last visited

  1. Grinse

    Header Tags SEO

    I noticed that I only get an execution timeout when I hit "Add A file". The corresponding code to that line: $keys = sprintf("keyword_live_%d_%d", $pageNumb, $languages[$i]['id']); //build the post ID's When I hit "Add Missing Pages" I don't get any file information (expect the general ones). But how can I add a new file (because not all files are listed under "Show All Files"? Thanks btw. for the help with my first problem.
  2. Grinse

    Header Tags SEO

    Hi there, I gave HTSEO 3.0.1 a try and i must say it's a nicer behaviour than HTC. But I still have some questions and additions: 1. I also use Google Sitemaps with w/ Admin contribution (http://www.oscommerce.com/community/contributions,3439). There are a php-file called sitemap.class.php to generate the xml files for google sitemaps. The problem is now htseo can't handle these files (because of the .class addition). Even I didn't add meta tags for it, it is listed in catalog/includes/header_tags.php and when I want to call the frontend i get a failure notice: The corresponding code is: // sitemap.class.php case (basename($PHP_SELF)==FILENAME_SITEMAP.CLASS): $header_tags_array = tep_header_tag_page(FILENAME_SITEMAP.CLASS); break; 2. I figured out that there are still some hard coded language strings left. I changed them an I'll upload a fix within the next days. 3. Something seems to be wrong with the product and category names. I don't get a product name in the title, just "Product information - - Mozilla Firefox" is showed. "Mozilla Firefox" is a fixed browser title and "Product information" is my special title for product_info.php. Also in the Breadcrumb / Navigation bar I don't get a category name nor a product name (Top » Catalog » » »). And the currently viewing field added by htseo in the bottom of each product page also doesn't show me a category name or product name (Currently viewing: Action -). The example was "Under Siege 2 - Dark Territory" (from the default installation, placed within DVD Movies > Action > DVD-UNSG2). I figured out that I have to set a meta title tag for each category and each product to work. But wouldn't it be better to place a function (I think a simple if clause sould be enough) to use the default method (for categories the name and for the product the name / model number) if no meta title tag is placed? 4. The default oscommerce languages should be integrated. English is still there and I'm adding a german translation to my fix (I plan to upload within the naxt days - se above). But also a spanish translation (not an ugly google translation) would be fine. If someone has one or can translate it feel free to do, please. 5. I'll also include the code to enable, disable and view the column box if STS is installed into my upload. The only hint: I'm not using includes/modules/sts_inc/headertags.php. I have done the needed changes (the content of headertags.php) directly into my sts_user_code.php. But that's no problem I think. You can add the changes for the column box into headertags.php, sts_user_code.php or into another file (you have to specify within the backend in the same way you specified headertags.php to sts). 6. I have also the execution timeout problem bescribed here before. But I did all the steps mentioned within the installation guide. But I figured out that there was one hint: in index.php I have two times <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> But in the installation guide is only one change mentioned. So I did the changes on the first search result I got (it fits to the lines mentioned in the guide). But I don't think this is the problem. The timeout only appears when I want to select "Add missing pages".
  3. I have also some problems with htc: The Installation works fine and when I add a page (within admin > header tags > page control) I figured out that I can't set a special title tag for the following files. There is only the global title showed in the frontend. But the colour is black (and not red, so it sould work) I defined a special title in all installed languages but without success: - index.php - product_info - popup_image.php - info_shoppiung_cart.php - checkout_shipping.php - products_new.php Another failure I noticed: I can't delete all of my defined pages. Just 25 pages from the enlish definitions and 27 pages from the german (but there are around 50 defined).
  4. Seems as if you add a part of the code out of the "normal page structure". I had the same misstake. I don't know now (it was some months ago) what I did exactly but I can remember that I had to put the code some lines above (could be that it was behind the </body> tag or behind a closing table tag (</table>, </tr> or </td>
  5. Hi, first you can try to use the manufacteurer update (includes in newer htc versions) so all installed languages are supported. Or you update htc (and eventually sts) to the actual version. In version 2.6.3 htc supports multilanguages out of the box. The installation procrs is also not that painfull. Just dfo my steps mentioned above (or follow bkellums steps) to integrate both. In combination with sts you only need to modify index.php and products_info.php (I think).
  6. Another way of including sts together with htc: 1. Install sts as mentioned in the installation files. 2. Install htc as mentioned in Install_Catalog.txt and Install_Admin.txt. 3. Paste into catalog/includes/modules/sts_inc/sts_user_code.php: $sts->start_capture(); if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require_once(DIR_WS_FUNCTIONS . 'header_tags.php'); require_once(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); require(DIR_WS_INCLUDES . 'header_tags.php'); } $sts->stop_capture('headertags'); It's not as simple as modifying the way bkellum mentioned but thats the correct way (how sts and htc authors wanted it to be done).
  7. Hi there. Yes the first time I used your howto. thanks, great work !! But however I also ave a version where I have included sts (I think it's the second contribution I've included) and htc in the "normal" way as described in the htc installation manual. The only change that has to be done is to include the headertags.php content into sts (eitgher copy the file and expand the sts settings or place the content into sts_user_code.php). Now all is working fine thanks again!
  8. Omg after I succeed in installing htc in combination with sts I have a short question: For what is Header Tags Categories Description? I cant find it in my site code after I set a value? There are four Tags: Title, Category Decriptionand Keywords. All seem to be there (meta name="decription", name="keywords" and <title>/title>). But Categories Decription is not aviable! Second question: Why is Header Tags Title the <title></title> tag and not a <meta name="title" content=""></meta> tag? Hope you can help me.
  9. Thank you for your info! I missed cleaning the replaced files from other contributions (or included the wrong files). But if you had checked these file (html_output) on line 84 you would have seen that (its code for simple template system and some line above (and underneath) sts modification is mentioned. ;) But I fixed that and now just use the fixed (newer version). Btw. the new abilitys are not in includes/functions/html_output (ok in the admin/includes/functions/html_output is one), they are in admin/categories.php.
  10. Hi there, have you fixed the problem because I have the same problem? Thx Grinse
  11. Grinse

    Seperate Pricing Per Customer v3.5

    Hi there, I modified my sppc version the last weeks ant the actual result is: - Added Base Price - Added an Information Box on the frontend where all usefull data is placed for the actual custumer (discount, minimal and maximal order amount, tax info, group name (it's multilanguage able), customers group icon) - Added a new Discount module - Added Qantity Price Breaks per Product and Category (I hate it because of the priceFormatter.php!!). - Added Printer Friendly Product Page contribution - Added parts of Account Enhancements (AE) If there is someone interessted inform me and I will upload the addons in the contribution area. The discount module is nearly finished. I only need a function that calculates the discount when a product price is changed and i have to integrate products_listing.php (the ugly priceFormatter.php is the problem). The Tax Info module is also nearly finished. I just need to insert a value if no product is placed (because than the tax rate is zero). So I will add a string calling the aviable tax rates. for example in germany we have 7% for food etc. and 19% for the rest. Base Price is working expect of products_listing.php (the ugly priceFormatter.php is the problem). The Information Box is also working and I have created a contribution (but I have to actualize it). Also I need to change the image function because at the moment when no image is selected and you modify the group the image is deleted. Price Breaks are working (I used the contribution from Jan Zonjee (http://www.oscommerce.com/community/contributions,3039). Printer Friendly Product Page is also working but at the moment I use the default print-page as long as I'm not finished modifing products_info.php. Account Enhancements (AE): Now you can change the customers number and you can login with the customers number.
  12. Hi, Omg what have you done there???? 1. try putting the sts code before the code from tep_get_image() like: //// // The HTML image wrapper function // "On the Fly" Auto Thumbnailer using GD Library, servercaching and browsercaching // Scales product images dynamically, resulting in smaller file sizes, and keeps // proper image ratio. Used in conjunction with product_thumb.php t/n generator. function tep_image($src, $alt = '', $width = '', $height = '', $params = '') { // START STS v4.4: global $sts; $sts->image($src); // Take image from template folder if exists. // END STS v 2. delete (the sts code needs to be replaced as i said in point 1 but for a better understanding I showed all the wrong code within your tep_get_image() function): { // START STS v4.4: global $sts; $sts->image($src); // Take image from template folder if exists. // END STS v4.4 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 = intval($image_size[0] * $ratio); // Patch osc-060817 } elseif (tep_not_null($width) && empty($height)) { $ratio = $width / $image_size[0]; $height = intval($image_size[1] * $ratio); // Patch osc-060817 } 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; Now it should work. I use also rc2a and sts 4.5.8 and I'm going to use SEO.
  13. Grinse

    Seperate Pricing Per Customer v3.5

    Oh, perfect. Thank you! In my file the following was missing: <td class="dataTableHeadingContent" align="center"> <?php echo TABLE_HEADING_HIDDEN; ?> </td> But now everything works fine!
  14. Grinse

    Seperate Pricing Per Customer v3.5

    Hi there, has someone already tried sppc in combination with osc2.2 rc2? Can I have your admin/products_attributes.php file please because mine is not working correct (seems as if something with the new row is wrong because I can't see the icons and hidden infos).
  15. Grinse

    Seperate Pricing Per Customer v3.5

    Hi, At the moment I give RC2 a try. I figured out some wrong entries in the install.htm: 1. Section catalog/products_new.php (install.html line 4494): <td colsp?an="3"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> has to be: <td colspan="3"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> 2. Section catalog/includes/modules/new_products.php (install.html line 3170 - 3173): $new_products_query = tep_db_query("select p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where products_status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS); } else { $new_products_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . (int)$new_products_category_id . "' and p.products_status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS); } should be: // $new_products_query = tep_db_query("select p.products_id, p.products_image, p.products_tax_class_id, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS); } else { $new_products_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . (int)$new_products_category_id . "' and p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS); } I think the changes are ok. 3. Section catalog/includes/modules/new_products.php (install.html line 1610): tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values ('', '" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "')"); should: tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values (null, '" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . (float)tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "')"); Changes are also ok. 4. Section catalog/includes/modules/new_products.php (install.html line 1640 - 1642): $prev_attribute_page = $attribute_page - 1; $next_attribute_page = $attribute_page + 1; ?> doesn't exist but it's just a comment to add. So forget the change. 5. Section catalog/includes/modules/new_products.php (install.html line 1656): <td colspan="7" class="smallText"> doesn't exist. But what have to be changed now? Maybe: <td colspan="7"><?php echo tep_black_line(); ?></td> into: <td colspan="8"><?php echo tep_black_line(); ?></td> 6. Section catalog/includes/modules/new_products.php (install.html 1783): <td align="center" class="smallText"> <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'action=update_attribute&attribute_id=' . $attributes_values['products_attributes_id'] . '&attribute_page=' . $attribute_page, 'NONSSL') . '">'; ?><?php echo tep_image_button('button_edit.gif', IMAGE_UPDATE); ?></a> <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'action=delete_product_attribute&attribute_id=' . $attributes_values['products_attributes_id'] . '&attribute_page=' . $attribute_page, 'NONSSL') , '">'; ?><?php echo tep_image_button('button_delete.gif', IMAGE_DELETE); ?></a> </td> doesn't exist. it's now: <td align="center" class="smallText"> <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'action=update_attribute&attribute_id=' . $attributes_values['products_attributes_id'] . '&' . $page_info, 'NONSSL') . '">'; ?><?php echo tep_image_button('button_edit.gif', IMAGE_UPDATE); ?></a> <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'action=delete_product_attribute&attribute_id=' . $attributes_values['products_attributes_id'] . '&' . $page_info, 'NONSSL') , '">'; ?><?php echo tep_image_button('button_delete.gif', IMAGE_DELETE); ?></a> </td> So replace: <?php // BOF SPPC attributes hide for groups mod with button for pop-up window for group prices and hide ?> <td align="center" class="smallText"><?php echo $hide_info = tep_get_hide_info($customers_groups, $attributes_values['attributes_hide_from_groups']); ?></td> <td align="center" class="smallText"> <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'action=update_attribute&attribute_id=' . $attributes_values['products_attributes_id'] . '&attribute_page=' . $attribute_page, 'NONSSL') . '">'; ?><?php echo tep_image_button('button_edit.gif', IMAGE_UPDATE); ?></a> <?php echo '<a href="java script:void(0)" onmouseover="window.status=\'' . TEXT_MOUSE_OVER_GROUP_PRICES . '\';return true;" onmouseout="window.status=\'\'; return true;" onclick="window.open(\'' . tep_href_link(FILENAME_ATTRIBUTES_GROUPS, 'attribute_id=' . $attributes_values['products_attributes_id'], 'NONSSL') . '\',\'' . NAME_WINDOW_ATTRIBUTES_GROUPS_POPUP . '\',\'menubar=yes,resizable=yes,scrollbars=yes,status=no,location=no,width=500,hei ght=350\');return false">' . tep_image_button('button_group_prices.gif', TEXT_GROUP_PRICES); ?></a> <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'action=delete_product_attribute&attribute_id=' . $attributes_values['products_attributes_id'] . '&attribute_page=' . $attribute_page, 'NONSSL') , '">'; ?><?php echo tep_image_button('button_delete.gif', IMAGE_DELETE); // EOF SPPC attributes hide for groups mod ?></a> </td> with: <td align="center" class="smallText"><?php echo $hide_info = tep_get_hide_info($customers_groups, $attributes_values['attributes_hide_from_groups']); ?></td> <td align="center" class="smallText"> <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'action=update_attribute&attribute_id=' . $attributes_values['products_attributes_id'] . '&' . $page_info, 'NONSSL') . '">'; ?><?php echo tep_image_button('button_edit.gif', IMAGE_UPDATE); ?></a> <?php echo '<a href="java script:void(0)" onmouseover="window.status=\'' . TEXT_MOUSE_OVER_GROUP_PRICES . '\';return true;" onmouseout="window.status=\'\'; return true;" onclick="window.open(\'' . tep_href_link(FILENAME_ATTRIBUTES_GROUPS, 'attribute_id=' . $attributes_values['products_attributes_id'], 'NONSSL') . '\',\'' . NAME_WINDOW_ATTRIBUTES_GROUPS_POPUP . '\',\'menubar=yes,resizable=yes,scrollbars=yes,status=no,location=no,width=500,hei ght=350\');return false">' . tep_image_button('button_group_prices.gif', TEXT_GROUP_PRICES); ?></a> <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'action=delete_product_attribute&attribute_id=' . $attributes_values['products_attributes_id'] . '&' . $page_info, 'NONSSL') , '">'; ?><?php echo tep_image_button('button_delete.gif', IMAGE_DELETE); ?></a> </td>
×