Jump to content
Latest News: (loading..)

milerwan

Members
  • Content count

    179
  • Joined

  • Last visited

  • Days Won

    6

milerwan last won the day on May 20 2017

milerwan had the most liked content!

1 Follower

About milerwan

  • Rank
    Osc fan
  • Birthday 12/14/1976

Profile Information

Recent Profile Visitors

9,954 profile views
  1. Average Review Stars on product_info.php

    I have made the extra code. 1. In includes/functions/html_output.php file, find : // review stars function tep_draw_stars($rating = 0) { $stars = str_repeat('<span class="fa fa-star"></span>', (int)$rating); $stars .= str_repeat('<span class="fa fa-star-o"></span>', 5-(int)$rating); return $stars; } And replace by : // review stars function tep_draw_stars($rating = 0) { if ( (substr($rating, 2) <= 2) ) { $stars = str_repeat('<span class="fa fa-star"></span>', (int)$rating); $stars .= str_repeat('<span class="fa fa-star-o"></span>', 5-(int)$rating); } elseif ( (substr($rating, 2) >= 3) and (substr($rating, 2) <= 7) ) { $stars = str_repeat('<span class="fa fa-star"></span>', (int)$rating); $stars .= str_repeat('<span class="fa fa-star-half-o"></span>', 1); $stars .= str_repeat('<span class="fa fa-star-o"></span>', 4-(int)$rating); } else { $stars = str_repeat('<span class="fa fa-star"></span>', (int)round($rating)); $stars .= str_repeat('<span class="fa fa-star-o"></span>', 5-(int)round($rating)); } return $stars; } Now we have to modify "round($average['average'])" sentences for decimal use in product_info.php and product_reviews.php files. 2. In product_info.php file, find : $products_name .= '<span class="small">' . sprintf(REVIEWS_TEXT_AVERAGE_SHORT, tep_draw_stars(tep_output_string_protected(round($average['average']))), tep_output_string_protected($average['count'])) . '</span>'; And replace by : $products_name .= '<span class="small">' . sprintf(REVIEWS_TEXT_AVERAGE_SHORT, tep_draw_stars(tep_output_string_protected(round($average['average'], 1))), tep_output_string_protected($average['count'])) . '</span>'; 3. In product_reviews.php file, find : echo '<div class="col-sm-8 text-center alert alert-success" itemprop="AggregateRating" itemscope itemtype="http://schema.org/AggregateRating"><meta itemprop="ratingValue" content="' . max(1, (int)round($average['average'])) . '" /><meta itemprop="bestRating" content="5" />' . sprintf(REVIEWS_TEXT_AVERAGE, tep_output_string_protected($average['count']), tep_draw_stars(tep_output_string_protected(round($average['average'])))) . '</div>'; And replace by : echo '<div class="col-sm-8 text-center alert alert-success" itemprop="AggregateRating" itemscope itemtype="https://schema.org/AggregateRating"><meta itemprop="ratingValue" content="' . round($average['average'], 1) . '" /><meta itemprop="bestRating" content="5" />' . sprintf(REVIEWS_TEXT_AVERAGE, tep_output_string_protected($average['count']), tep_draw_stars(tep_output_string_protected(round($average['average'], 1)))) . ' (' . round($average['average'], 1) . '/5)</div>'; Enjoy !
  2. Try to reproduce the tutorial and if you have issues, come back here to ask help. :)
  3. Edit2: Sorry PLACE the word before the letter C (if not, all words beginning with "-C" will be impacted). Pay attention to the respect of the typology used for product name, for example in case of "USB Type-C", you can use these sentences (knowing that c must be attached to a word or deleted) : -Type-C=>c = "usb-typec-p-xxx.html -Type-C=> = "usb-type-p-xxx.html Same operating for "P" or "M" letters if needed... PS: Sorry for multi-posts but I can't edit them...
  4. Edit: I forget to USE space after letter C (if not, all words beginning with "-C" will be impacted). Pay attention to the respect of the typology used for product name, for example in case of "USB Type-C", you can use these sentences (knowing that c must be attached to a word or deleted) : -C =>c = "usb-typec-p-xxx.html -C => = "usb-type-p-xxx.html Same operating for "P" or "M" letters if needed...
  5. There could be a trick fix from "admin->Configuration->SEO URLs->Enter special character conversions". Pay attention to the respect of the typology used for product name, for example in case of "USB Type-C", you can use these sentences (knowing that c must be attached to a word or deleted) : -C=>c = "usb-typec-p-xxx.html -C=> = "usb-type-p-xxx.html Same operating for "P" or "M" letters if needed... To fix all others letters, use this in your htaccess file : RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}RewriteRule ^(.*)-by-([0-9]+).html$ all-products.php?fl=$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 ^(.*)-au-([0-9]+).html$ articles.php?authors_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 ^(.*)-f-([0-9]+).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING}RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING}RewriteRule ^(.*)-fri-([0-9]+).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING}RewriteRule ^(.*)-fra-([0-9]+).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING}RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}RewriteRule ^(.*)-links-([0-9]+).html$ links.php?lPath=$2&%{QUERY_STRING}RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING}RewriteRule ^(.*)-n-([0-9]+).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}RewriteRule ^(.*)-nri-([0-9]+).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}RewriteRule ^(.*)-nra-([0-9]+).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING}# End Ultimate SEO V2.2d
  6. Equivalent bug with letter "p" too...
  7. Hi, I report a bug when using letter "c" with any word before into a product name which prevents the url from working and product to appear. In this case, it is the common word "Type C" or "a c", "b c", etc... I use Ultimate_SEO_URLSv22d_14 version. Do you experienced the same issue with your versions? Any fix for this ? Thank you.
  8. Admin to Bootstrap NO HTML changes

    That's it ! It works now, thank you. ;)
  9. Admin to Bootstrap NO HTML changes

    Hi, I followed your message, download new copy from your github link, updated the 3 files with your codes (copy/paste) but same result...
  10. Admin to Bootstrap NO HTML changes

    @wHiTeHaT Hi, I have tried your v8 scripts on a new 2.3.4 BS master but I have strange display. Do you have an idea of what's the matter ?!?
  11. Please Review my Website

    Very nice website, congratulations. I see a matter with buttons +/- to add or decrease quantity in the "Quick view" window. They don't work for me.
  12. Navbar

    Here an example with search "power ps3".
  13. Navbar

    Hi, The "search highlight" displays background color behind each word of product titles that matches with the search in the "advanced search results" list.
  14. Store Search Bar (BS)

    What do you mean ? I don't understand what you would say. @Artcolnc Here is the addon I used : Header Tags SEO V 3.3.x (https://apps.oscommerce.com/YE8IP&header-tags-seo-v-3-0)
  15. Store Search Bar (BS)

    products_head_keywords_tag is a field for keywords from an Header Tags module. If you have added some Header Tags module too, you can replace the previous field by yours. 😉
×