Jump to content

stevea1234

Members
  • Content count

    38
  • Joined

  • Last visited

Posts posted by stevea1234


  1. No, I've tried it every which way, and I still get the same error or an Internal Server Error.

     

    What do you mean by "if that is where your store can be viewed"? My site is viewed at http://www.my-site.com or just http://my-site.com without all of the OSCommerce/Admin stuff.

     

    I guess I just need to know where exactly in File Manager I should be with all of this.

     

    I'm so confused :-P

     

    Thanks for helping :-)

     

     

    It sounds like your store is in the root and not the OSCommerce folder you uploaded to. Try uploading googlebase.php to the root folder i.e. the public_html folder


  2. Hi All,

     

    Just a quick question: Has anyone looked at getting this great contribution to work with FWR Media's Ultimate Seo URL's v5? I now have that contribution installed but am wondering what to do with regards to the Google feeder that relied on the now non-existant seo.class.php

     

    Any help would be appreciated!

     

    Kind regards,

    James

     

    Same problem here, upgraded to V5 SEO URL's and didn't appreciate that this contrib relied on seo.class.php.

     

    What I can tell you is don't restore this file. it's not used by V5 but it will cause the V2.x database entries to be reinstalled breaking V5 completely.


  3. Thanks for the explanation .. odd for a generic link producing contribution to be reliant on an "optional" addon.

     

    Yes indeed. Found out this morning that leaving the 2.1d seo.class.php in place had a very nasty side affect on the V5 installation.

     

    I hadn't appreciated that the class has the ability to install the V2.1 database entries on the fly. This effectively crippled V5 which lead to me having to restore the database (thankfully I had a current backup!!)


  4. Should make no difference 2 series or 5 series .. as long as tep_href_link() is used the uri should be correct.

     

     

     

    Wasn't helpful in as much as it offered no information. (what didn't work?)

     

    Sorry Robert didn't explain it very well. The google base contribution makes direct use of seo.class.php and fails if it's not present. I'll follow up in the google base thread to see if it's going to be updated to work with V5.

     

    Thanks

     

    Steve


  5. To work with links manager 2:

     

    catalog/.htaccess

     

    Find ...

     

    # Links contribution

    RewriteRule ^(.*)-links-([0-9]+).html$ links.php?lPath=$2&%{QUERY_STRING}

     

    Change to ...

     

    # Links contribution

    RewriteRule ^(.*)-links-([0-9_]+).html$ links.php?lPath=$2&%{QUERY_STRING}

     

    catalog/includes/modules/ultimate_seo_urls5/modules/Usu_links.php

     

    Replace the complete method public function acquire($dependency)

     

    With ..

     

      public function acquire($dependency){
    if ( is_numeric(str_replace('_', '', $dependency)) ){
      $this->lPath = $dependency;
    } else {
      return false;
    }
    if ( false !== strpos($dependency, '_') ){
      $single_lpath = (int)ltrim(strrchr($dependency, '_'), '_');
    } else {
      $single_lpath = (int)$dependency;
    }  
    // Bypass the query if already in the registry
    if ( false !== isset(usu::$registry->{$this->dependency}[$this->lPath]) ){
      usu::$performance['queries_saved']++;
      return true;
    }
    $placeholders = array( ':lPath', ':languages_id' );
    // $values are already type cast
    $values = array( $single_lpath, usu::$languages_id );
    $this->query = str_replace($placeholders, $values, $this->base_query);
    $result = usu::query( $this->query );
    $this->query = null;
    $row = tep_db_fetch_array( $result );
    tep_db_free_result( $result );
    if ( false === $row ){
      return false;
    }
    $this->link_text = $this->linkText($row['lName']);
    
    if ( false === isset(usu::$registry->{$this->dependency}) ){
      usu::$registry->{$this->dependency} = array();
    }
    usu::$registry->attach($this->dependency, $this->lPath, $this->getProperties());
     } // End method

     

    In future releases this will be called Usu_links2.php and Usu_links.php will be moved to a new directory in the contribution called "old contribution modules"

     

     

    Thanks!!! Works perfectly

     

    Regards

     

    Steve


  6. To be correct (html/php it would be ..

    <img src="images/m03.jpg" width="329" height="34" alt=""><a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>"><img class="gradualfader" src="images/m05.gif" width="77" height="34" border="0" alt="One of a Kind - Home"></a>

     

    Don't use short tags <? it is deprecated and will cause issues in the future <? is an xml tag php tags should be

     

    <?php

    ?>

     

     

    Still learning!! The site is based on a very badly edited template and I'm trying my best to correct the many, many errors.


  7. Thanks for the quick reply.

     

    The code for the home link is as below. If I remove the / the page doesn't load and stops with an error.

     

    <img src=images/m03.jpg width=329 height=34 alt=''><a href=<?=tep_href_link('/')?>><img class="gradualfader" src=images/m05.gif width=77 height=34 border=0 alt='One of a Kind - Home'></a>

     

    What's strange is that before upgrading it was ok?

     

    Steve

     

    Worked it out (I think) Changed the '/' to 'index.php' and all now works as expected


  8. Hi Steve

     

    That would mean there is a hardcoded / somewhere in those links .. it doesn't do this as standard. In fact as standard it would be www.oneofakind.org.uk/index.php so something has been done in the code to remove the index.php and add a /

     

     

    Thanks for the quick reply.

     

    The code for the home link is as below. If I remove the / the page doesn't load and stops with an error.

     

    <img src=images/m03.jpg width=329 height=34 alt=''><a href=<?=tep_href_link('/')?>><img class="gradualfader" src=images/m05.gif width=77 height=34 border=0 alt='One of a Kind - Home'></a>

     

    What's strange is that before upgrading it was ok?

     

    Steve


  9. Thanks for a great contribution!!

     

    I've just updated my site from V2.7 to V5 and all went well other than a strange side affect.

     

    If you go to the site direct at www.oneofakind.org.uk everything is as expected. But clicking on the home link or store logo takes you to www.oneofakind.org.uk//

     

    I didn't have the trailing / before upgrading and it doesn't appear to cause any problems, but I would still like to remove it.

     

    All help greatly appreciated.

     

    Thanks

     

    Steve


  10. OscThumb latest version 1.0.1 is available. Here you can see it in action: http://www.novaxim.linuxpl.com/oscDemo/index.php

     

    Great contribution.

     

    The version of phpthumb is a little dated but it was fairly easy to update it with the latest from source forge. I also found that adding an unsharp mask to my images made them look a lot better. You can easily add your own parameters by adding a line to the _get_params function in the oscthumb.php class. e.g. to add unsharp mask add the following at the end of the function: $params .="&fltr[]=usm|80|0.5|3";

     

    The new tep_image function appears to have an error (I say appears because I'm not an expert), in that the section that adds remaining image parameters has w= for width and h= for height. This caused me problems as IE and Firefox would resize oddly as the page was being built. It also caused google chrome to completely fail displaying some images. Changing it to width= and height= solved the problem.

     

    The only thing I haven't worked out yet is how to force the image size, i.e. distort the image to say 170x170. Any ideas?

     

    If you want to see another example of it working take a look at www.oneofakind.org.uk


  11. Hi,

     

    I've been using Ultimate SEO URL's with great success, but recently I tried adding the following to the .htaccess so that index.php redirected to /

     

    RewriteCond %{HTTP_HOST} ^.*$

    RewriteRule ^index\.php$ "http\:\/\/www\.oneofakind\.org\.uk" [R=301,L]

     

     

    This works as expected but it also causes the category rewrites to stop working. Everything else is unaffected. Any ideas of what I need to change to get both to work together?

    ......

     

    Eventually found a solution. Made the following changes to the index.php rewrite:

     

    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/

    RewriteRule ^index\.php$ "http\:\/\/www\.oneofakind\.org\.uk" [R=301,L]

     

    Everything now works, (still don't understand .htaccess syntax but it works)


  12. A new version has been uploaded that has the following changes:

     

    -> Added a category list in fill tags so the fill option can be performed on specific categories.

    -> Added option to test function to only show limit messages if asked since this was causing too much confusion.

    -> Added option to admin->Configuration->Header Tags SEO that allows the parent category names to be included in the title and meta tags.

    -> Removed the language files, except English, from admin since they were not translated and served no purpose.

     

    Jack

     

    Thanks Jack for the update!

     

    A small problem though. After updating, the product info page now has the text 'path Standard' or whatever option is selected in admin echoed to the screen. Looking at the page source it's inserted before the meta title. Turning off Categories removes it, but obviously this also disables it completely.


  13. Firstly thank you for spending the time to produce a great contribution!!

     

    Now a small problem, which I'm sure is caused by me missing something (just can't spot it).

     

    When I select the page control option to use keywords from the actual page the admin page updates and returns 'var,gaJsHost' in the keywords box. If I then look at the keywords for a product 'var,gaJsHost' is included and nothing is used from the page.

     

    All help is greatly appreciated.


  14. Hi,

     

    I've been using Ultimate SEO URL's with great success, but recently I tried adding the following to the .htaccess so that index.php redirected to /

     

    RewriteCond %{HTTP_HOST} ^.*$

    RewriteRule ^index\.php$ "http\:\/\/www\.oneofakind\.org\.uk" [R=301,L]

     

     

    This works as expected but it also causes the category rewrites to stop working. Everything else is unaffected. Any ideas of what I need to change to get both to work together?

     

    Complete contents of .htaccess

     

    # $Id: .htaccess 1739 2007-12-20 00:52:16Z hpdl $

    #

    # This is used with Apache WebServers

    #

    # For this to work, you must include the parameter 'Options' to

    # the AllowOverride configuration

    #

    # Example:

    #

    # <Directory "/usr/local/apache/htdocs">

    # AllowOverride Options

    # </Directory>

    #

    # 'All' with also work. (This configuration is in the

    # apache/conf/httpd.conf file)

     

    # The following makes adjustments to the SSL protocol for Internet

    # Explorer browsers

     

    #<IfModule mod_setenvif.c>

    # <IfDefine SSL>

    # SetEnvIf User-Agent ".*MSIE.*" \

    # nokeepalive ssl-unclean-shutdown \

    # downgrade-1.0 force-response-1.0

    # </IfDefine>

    #</IfModule>

     

    # If Search Engine Friendly URLs do not work, try enabling the

    # following Apache configuration parameter

     

    AcceptPathInfo On

     

    # Fix certain PHP values

    # (commented out by default to prevent errors occuring on certain

    # servers)

     

    # php_value session.use_trans_sid 0

    # php_value register_globals 1

     

    ErrorDocument 404 /index.php

     

    # Ultimate SEO URLs BEGIN

    Options +FollowSymLinks All -Indexes

    RewriteEngine On

    RewriteBase /

    #RewriteCond %{HTTP_HOST} ^.*$

    #RewriteRule ^index\.php$ "http\:\/\/www\.oneofakind\.org\.uk" [R=301,L]

     

    RewriteCond %{QUERY_STRING} ^options\=(.*)$

    RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2%1

    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-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}

    # Added polls and newsdesk

    #RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}

    # BOF: Faqdesk support added by faaliyet

    RewriteRule ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING}

    # EOF: Faqdesk support added by faaliyet

    # Ultimate SEO URLs END

     

    # Block Bad Bots

    RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR]

    RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]

    RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]

    RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]

    RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]

    RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]

    RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]

    RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]

    RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]

    RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]

    RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]

    RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]

    RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]

    RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]

    RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]

    RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]

    RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]

    RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]

    RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]

    RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]

    RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]

    RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]

    RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]

    RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]

    RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]

    RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]

    RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]

    RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]

    RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]

    RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]

    RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]

    RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]

    RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]

    RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]

    RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]

    RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]

    RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]

    RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]

    RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]

    RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]

    RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]

    RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]

    RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]

    RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]

    RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]

    RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]

    RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]

    RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]

    RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Zeus

    RewriteRule .* - [F]

     

    #############################

    # Begin Google Base File Rewrite Code

    RewriteRule your-outfile.txt googlebase.php

    # End Google Base File Rewrite Code

    #############################

     

    RewriteCond %{HTTP_HOST} ^oneofakind.org.uk$

    RewriteRule ^(.*)$ "http\:\/\/www\.oneofakind\.org\.uk\/$1" [R=301,L]


  15. You could try replacing the following line in category_tree.php
    		 $result .= str_repeat($this->spacer_string, $this->spacer_multiplier * $level) . '<a class="sitemap" title="'. $category['name'] . '" href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=' . $category_link) . '">';

    with

    		 $result .= '<a class="sitemap" title="'. $category['name'] . '" href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=' . $category_link) . '">';

     

    Jack

     

     

    Thanks for the help, but oddly no difference at all. I'm starting to wonder if I'm missing something.


  16. There's nothing in the admin section that will allow you to control either but I seem to recall explaining how to edit the code for the spacing. In any event, the classes/category_tree files would have to be edited for what you want to do.

     

    Jack

     

     

    I did see the reference to:

     

    $spacer_string = '',

    $spacer_multiplier = 1;

     

    but altering these doesn't have any effect. Tried changing these in both category_tree.php and category_tree_no_products.php but nothing changes?

     

    Also not sure how I could use these to reduce the spacing?

     

    Thanks

     

    Steve


  17. Ok, nearly got it how I want it, but still a couple of minor changes if possible.

     

    How do I reduce the ident spacing, currently it's:

     

    Category

    .........Sub Category

    ......................Product

     

    Ideally I would like it more like:

     

    Category

    ...Sub Category

    ......Product

     

    Also, is it possible to change the default icons used for each level?

     

    Thanks for all the help!

     

    www.oneofakind.org.uk/sitemap.php


  18. This problem was reported previously and someone posted what they did to fix it. I can't get it to fail so I don't know what is causing it. I'm would like to know though if you have a file in the includes/boxes/ directory named Array.php?

     

    Jack

     

    Thanks for quick response. No, I don't have a file named array.php

     

    Everything appears to work ok, other than how to list products in the sitemap? Currently it only shows the categories www.oneofakind.org.uk/sitemap.php


  19. Hi,

     

    Still quite new to Oscommerce, so please be gentle if I ask what appears to be obvious ;-)

     

    I've installed SEO URLS 2.6 and all is working, or I thought it was until I noticed an error in Google with the sitemap and redirections.

     

    Products URLS are fine and work as expected. But, the category URLS show ok i.e. http://www.oneofakind.org.uk/sale-c-141.html is shown as the URL for a category called 'Sale' but clicking on the link takes you to http://www.oneofakind.org.uk/?cPath=141

     

    Not what I expected. Any and ALL help very much appreciated

     

    Steve

     

    Found the problem and it was caused by a mod I made but completely forgot about.

     

    RewriteCond %{HTTP_HOST} ^.*$

    RewriteRule ^index.php$ "http\:\/\/www\.oneofakind\.org\.uk" [R=301,L]

     

    Basically it was there to redirect direct access to index.php to the main page, but it also causes the category redirect to fail.

×