here2learn

Members
  • Content count

    37
  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About here2learn

Profile Information

  • Real Name
    Matheus
  • Gender
    Male
  • Location
    Brazil
  1. I installed USU 5 and it works, but regarding multi language support I think you could change this part to look better: Examples: English index.php www.mysite.com/index.php German index.php www.mysite.com/index.php/de English product seo url www.mysite.com/my-great-product-c-22.html German product seo url www.mysite.com/de/my-great-product-c-22.html Why not add the german index to be www.mysite.com/de/index.php instead of www.mysite.com/index.php/de, just like products urls are rewritten?
  2. Nevermind, I have successfully installed it to a heavily modified OsCommerce. It works flawlessly, I am surprised nothing went wrong! But, I have two other folders in my catalog root that I would like Header Tags SEO to be able to read and display the meta tags. I of course added the code to the head tag of those files, but it seems Header Tags SEO is only able to read the catalog root. Is it possible to easily modify this, or no? You can think about adding this functionality in the future. For now, I'll edit these pages outside the root directory and add the meta tags manually.
  3. Does this addon work with ULTIMATE Seo Urls 5 - by FWR Media? If it does, then one compliment eachother, no?
  4. Just what I thought - thank you.
  5. OTF is the Product Attributes Option Type Feature addon ---------------------------------------------------------------- Open catalog/includes/functions/general.php --------------------- FIND: (around line 25) function tep_redirect($url) { if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) { tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false)); } REPLACE with // OTF contrib begins //function tep_redirect($url) { // if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) { // tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false)); // } function tep_redirect($url) { // OTF contrib ends Since I didn't want to erase that part and compromise the OTF I compared what you asked to replace, with your new code, and the only bit that changed is: header('Location: ' . $url); tep_exit(); } To if ( false !== strpos($url, '&') ){ $url = str_replace('&', '&', $url); } session_write_close(); header('Location: ' . $url); exit; } Everything is working fine. No errors so far with your addon, other than not being able to display the path, just the product name. I tried adding a MODEL and a MANUFACTURER to a product, and the path stil didn't appear in the generated SEO URL... only the product name appears. I'll install it from the beginning again, using a backup.
  6. Your contrib asks me to find this in includes/functions/general.php: //// // Redirect to another page or site function tep_redirect($url) { if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) { tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false)); } if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url $url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL } } header('Location: ' . $url); tep_exit(); } And replace with this: /** * ULTIMATE Seo Urls 5 PRO by FWR Media * Redirect to another page or site */ function tep_redirect($url) { if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) { tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false)); } if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url $url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL } } if ( false !== strpos($url, '&') ){ $url = str_replace('&', '&', $url); } session_write_close(); header('Location: ' . $url); exit; } However, my file is modified, so I had replaced this (notice the commented out lines): //// // Redirect to another page or site // OTF contrib begins //function tep_redirect($url) { // if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) { // tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false)); // } function tep_redirect($url) { // OTF contrib ends if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url $url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL } } header('Location: ' . $url); tep_exit(); } With this: //// // Redirect to another page or site // OTF contrib begins //function tep_redirect($url) { // if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) { // tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false)); // } function tep_redirect($url) { // OTF contrib ends if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url $url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL } } if ( false !== strpos($url, '&') ){ $url = str_replace('&', '&', $url); } session_write_close(); header('Location: ' . $url); exit; } Does the commented out lines - done when I installed the OTF contrib - interfer with your contribution somehow?
  7. Hi Taipo, I have installed your osc_sec some time ago and today I installed SEO URLS 5, and upon installation I was required to replace this line in includes/application_top.php: // set php_self in the local scope if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; With this: /** * ULTIMATE Seo Urls 5 PRO by FWR Media * function to return the base filename */ function usu5_base_filename() { // Probably won't get past SCRIPT_NAME unless this is reporting cgi location $base = new ArrayIterator( array( 'SCRIPT_NAME', 'PHP_SELF', 'REQUEST_URI', 'ORIG_PATH_INFO', 'HTTP_X_ORIGINAL_URL', 'HTTP_X_REWRITE_URL' ) ); while ( $base->valid() ) { if ( array_key_exists( $base->current(), $_SERVER ) && !empty( $_SERVER[$base->current()] ) ) { if ( false !== strpos( $_SERVER[$base->current()], '.php' ) ) { preg_match( '@[a-z0-9_]+\.php@i', $_SERVER[$base->current()], $matches ); if ( is_array( $matches ) && ( array_key_exists( 0, $matches ) ) && ( substr( $matches[0], -4, 4 ) == '.php' ) && ( is_readable( $matches[0] ) ) ) { return $matches[0]; } } } $base->next(); } // Some odd server set ups return / for SCRIPT_NAME and PHP_SELF when accessed as mysite.com (no index.php) where they usually return /index.php if ( ( $_SERVER['SCRIPT_NAME'] == '/' ) || ( $_SERVER['PHP_SELF'] == '/' ) ) { return 'index.php'; } // Return the standard RC3 code return ( ( ( strlen( ini_get( 'cgi.fix_pathinfo' ) ) > 0) && ( (bool)ini_get( 'cgi.fix_pathinfo' ) == false ) ) || !isset( $_SERVER['SCRIPT_NAME'] ) ) ? basename( $_SERVER['PHP_SELF'] ) : basename( $_SERVER['SCRIPT_NAME'] ); } // End function // set php_self in the local scope $PHP_SELF = usu5_base_filename(); However, the original lines were modified during the installation of your osc_sec. Your install guide ask exactly to: In short, the original lines were: // set php_self in the local scope if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; Which upon installing your osc_sec I replaced with: // set php_self in the local scope if ( empty( $PHP_SELF ) ) $PHP_SELF = ( ( ( strlen( ini_get( 'cgi.fix_pathinfo' ) ) > 0 ) && ( ( bool ) ini_get( 'cgi.fix_pathinfo' ) == false ) ) || !isset( $HTTP_SERVER_VARS[ 'SCRIPT_NAME' ] ) ) ? basename( $HTTP_SERVER_VARS[ 'PHP_SELF' ] ) : basename( $HTTP_SERVER_VARS[ 'SCRIPT_NAME' ] ); And today I had to replace it again, removing the modified code given by your installation guide, and replace it with SEO's. Hopefully I am not compromised and your osc_sec will still work with this modification.
  8. Now it works. Being a newbie but having installed more than 10 addons, I don't believe I missed that! If you allow me to make a really stupid question... does SEO URLs 5 help my site being indexed better by Google, i.e. when someone Google for a product name will this addon help they find the product in my site? IF so (and I believe it helps), where are the pages that Google "see"? I think they have to "see" pages with titles/metatags in order to index something. A brief explanation of how SEO Url 5 works would be of great help! Thanks.
  9. I paid attention to RewriteBase during the installation but it didn't work. May you please check my htaccess file? Here it is
  10. QUESTION 1 Hi, I have the "Choose uri format" in admin set to "path_standard", however, only the product name is shown in the seo url. Does "path_standard" stand for OR for As I personally understand it (it is not explained anywhere), "path_standard" stands for category/subcategory + product, but the path to the product isn't being generated in the seo url. HOWEVER, if it stands for "brand + product" then there is nothing wrong, as I don't have set a brand name to my products. QUESTION 2 I also tried setting the "Choose the uri format" to "rewrite", and I made the changes to the .htaccess file. It does redirect properly but don't load and then returns a 404 error. When you pass your mouse over a product link, the address displayed is, for example, www.mysite.com/catalog/computer-p-1.html. This I suppose means the .htaccess was set properly...? When you click, it returns a 404 error. What may be causing this? "edit", well I don't even posted... I just tested the old .htaccess file without the changes, using the "Choose the uri format" to "rewrite" (as above...), and the link is also show as www.mysite.com/catalog/computer-p-1.html so I guess the problem is with my .htaccess file not redirecting properly. My Server API is CGI, not that this makes a difference I guess... Any idea? QUESTION 3 The directories: catalog/includes/modules/ultimate_seo_urls5/cache_system/cache/ catalog/includes/modules/ultimate_seo_urls5/cache_system/sqlite/ Are chmod to 755. Only the owner can write. Do I have to chmod them to 777, meaning the users should also be able to write on these folders? Thanks.
  11. I have fixed the above issue, now I have to look on why the Testimonials box doesn't appear when the site is HTTPS.
  12. Now I have a more sophisticated script that does not have to submit a form, where I had to use GET to receive its content. The script that I searched for today, and found, calculates (multiply) without having to submit the form. In fact it does not use form. It will automatically display the result in a second box while I am inserting the number to be calculated in the first box, with decimal formatting and all! Thank you for you attention anyway.
  13. Taipo, I think you should add an exclude list to your osc sec. It's something I would use right now, but can't. I have to allow $ and , in a post.
  14. This is a very useful add-on that I couldn't find anywhere, but from my newbish knowledge on programming it sounds rather easy to accomplish. May someone provide me with a link, or if you have time develop this? What it will do: - When you change the customer's order status to Delivered (status_id of n# 3) the quantity purchased in this order will be automatically subtracted from that product's stock. That's all.
  15. This contrib is superb, but the image upload function does not work. It is so far the only issue I am having. In the page for the customer to write the testimonal, if I activate the upload image function in the admin panel, the following appears for the customer, below the field to type the testimonial text: Only these three words and no place whatsoever to add the image directory, or a button for upload. And the reCaptcha also does not appear.