Jump to content

GemRock

Members
  • Content count

    2,020
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by GemRock

  1. GemRock

    template from templatemonster

    this is NOT a templatemoster support forum, and in gemeral, soc support forums do not support any commercial products. go & ask your question there. Ken
  2. GemRock

    Header Tags for novices

    thank all for the appreciation! Ken
  3. GemRock

    disable buy now button

    theres different ways to do that but you could try this: look for this code case 'PRODUCT_LIST_BUY_NOW': change it to case 'PRODUCT*LIST*BUY*NOW**': so it never gets executed, ie, the button wont show. Ken
  4. GemRock

    disable buy now button

    r u complaining the buy now button is disabled whereas what u want is for it to be enabled/working, or u simply want to disable the button? btw, where are ur 'a lot of contribs' you made? Ken
  5. the said template, from what i have seen, "weaves" the template code into the code in the body part of each php files. so if you are looking for line numbers and dont understand php code then chances are you wont find the code the contribution(s) referring to, and you might have to ask a professional coder to make the mod for you. the osc forums offer support for oscommerce and its contributions but NOT for templates from commercial template makers, which is why people here are reluctant to answer any question related to these templates. commercial template makers have, or are expected to have, a duty to offer support for their products. btw, Amirage has solved her problem HERE Good luck! Ken
  6. GemRock

    Header Tags for novices

    very simple: you have NOT follow the instructions FULLY. in particular, failed to add some code to the application_top.php, which add the missing fields to the db/tables automatically. Ken
  7. GemRock

    Header Tags for novices

    i dont know every single template from the said template maker but i have worked on some osc stores that use the templates from the said template maker. from what i have seen, there is no difference between the two (the other being the stock, non-template osc) as far as my contribution is concerned, so your focis may be looking at if you have done the bit called "How to use - adding dynamic header tags to your shop" in the instructions. good luck, Ken
  8. GemRock

    Header Tags for novices

    i have no place big enough to keep a million thanks, although a beer would be nice during this hot 31C summer week here in London :) btw, any good/famous beer in your part of the world so that i could check it out on the annual london beer festival? i know the poles are pround of their tyskie. Ken
  9. GemRock

    Header Tags for novices

    that only happens if: 1. you have not followed fully the instructions, especially the part of "how to use"; 2. you are using a template system of some sort. while it could work on osc that uses a template system, the instruction does not cover how to install it on a template. you can find out how on this support thread - your fellow site owners have successfully done it. Ken
  10. GemRock

    Header Tags for novices

    Mi The problem of your site is very simple: your application_top.php was zero byte, ie, a blank file. I now upload one from a standard osc-rc2a download and the site is working now. you could have sent me the ftp last night - it took one minute to figure out once looking at it. you need now to further customise your header tags. Ken
  11. GemRock

    Header Tags for novices

    pm me the ftp but i can only fix the index.php (home page) time wise... Ken
  12. GemRock

    Header Tags for novices

    what editor are you using to edit those php files? it looks like your editor has messed up the code. it all becomes one-liner when i pasted it to a proper php editor. you could try to use textpad which is free, if you dont have anything better. below is the code you posted but after i restore it from one line to its proper format: <?php /* $Id: index.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // the following cPath references come from application_top.php $category_depth = 'top'; if (isset($cPath) && tep_not_null($cPath)) { $categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $cateqories_products = tep_db_fetch_array($categories_products_query); if ($cateqories_products['total'] > 0) { $category_depth = 'products'; // display products } else { $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; //category has no products, but display the 'no products' message } } //get current category tags when a category is selected $cat_tags_query = tep_db_query("SELECT categories_name, title_tag, desc_tag, keywords_tag FROM " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$current_category_id . "' AND language_id = '" . (int)$languages_id . "'"); $cat_tags = tep_db_fetch_array($cat_tags_query); $categories_name = $cat_tags['categories_name']; $title_tag = $cat_tags['title_tag']; $desc_tag = $cat_tags['desc_tag']; $ keywords_tag = $cat_tags['keywords_tag']; //set default $kws_home_default = $categories_name; $desc_home_default = $categories_name; $title_home_default = $categories_name; } else { //no category is selected: randomly select category names as keywords $cat_names_query = tep_db_query("SELECT categories_name FROM " . TABLE_CATEGORIES_DESCRIPTION . " WHERE language_id = '" . (int)$languages_id . "'" . " ORDER BY RAND()"); $kws_home_default = ""; $num_rows = tep_db_num_rows($cat_names_query); if ($num_rows > 20){ $i = rand(1,$num_rows); for ($count = $i; $count < $i + 20; $count++) { $cat_names = tep_db_fetch_array($cat_names_query); $kws_home_default .= $cat_names['categories_name'] . ', '; } } else { while ($cat_names = tep_db_fetch_array($cat_names_query)){ $kws_home_default .= $cat_names['categories_name'] . ', '; } } //default title tag for the index (home) page $title_home_default = "ENTER YOUR DEFAULT TITLE TEXT HERE"; //default keywords for the index (home) page $kws_home_default .= STORE_NAME; //default Description for the index (home) page $desc_home_default = "ENTER YOUR DEFAULT DESCRIPTION TAG TEXT HERE FOR THE HOME PAGE"; } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);?> theres nothing wrong there. Ken
  13. GemRock

    Show two Paypal IPN in the payment options.

    no and unnecassary. once reach paypal website, people can choose cards or using their paypal account balance. Ken
  14. GemRock

    Header Tags for novices

    tep_db_query is a standard osc function defined in database.php and is included in application_top.php of every file, so dont know why it would be missing. perhaps you could post the first 50 lines or so of your index.php here? Ken
  15. GemRock

    Header Tags for novices

    Kellie or zefeena, post the full error msg here. Ken
  16. GemRock

    SEO Header Tags v5

    the official support thread is Here No one has ever reported such an error. make sute you dont paste the "NB: Replace....." into the index.php file. Ken
  17. GemRock

    2.1d ORIGINAL updated

    its now available to site owners ONLY who are doing their own sites themselives. Ken
  18. GemRock

    2.1d ORIGINAL updated

    hi larry I just tested it on my local server and it certainly worked: ..../visionace-tablets-prw-67.html why not? see no reason at all. dont think it is related to sts. maybe you need to double check the changes against what i posted above. mine would be released free in due course. Ken
  19. GemRock

    2.1d ORIGINAL updated

    would like to add a note: i answered your question as is. the original u seo url contribution is a good one and remains so if you prefer to use it. i personally no longer promote it instead i use my own solution which does NOT use any seo class whatsoever. Ken
  20. GemRock

    2.1d ORIGINAL updated

    you certainly can: 1. add this to .htaccess RewriteRule ^(.*)-prw-(.*).html$ product_reviews_write.php?products_id=$2&%{QUERY_STRING} 2. add this to the seo class, after 'products_id_review_info' => '-pri-', 'products_id_review_write' => '-prw-', 3. after case ( $page == FILENAME_PRODUCT_REVIEWS_INFO ): $url = $this->make_url($page, $this->get_product_name($p2[1]), 'products_id_review_info', $p2[1], '.html', $separator); break; add: case ( $page == FILENAME_PRODUCT_REVIEWS_WRITE ): $url = $this->make_url($page, $this->get_product_name($p2[1]), 'products_id_review_write', $p2[1], '.html', $separator); break; not tested but should work. easy & straight forward, yep? anyone can do it and follow this example to make further changes. Ken
  21. GemRock

    2.1d ORIGINAL updated

    that looks like an unmodified, original file. i did not see any problem in the review box. when clicked, it gave a proper seo url with product name in the url ending with the review id, which is correct. eg: ..../95-04-toyota-tacoma-fender-flares-pri-29.html?reviews_id=3 so, dont know what you are referring to as the problem in your OP? Ken
  22. GemRock

    2.1d ORIGINAL updated

    i dont care about the versions but as far as i remember, the only bit in the review box that may not seo is the review write, if you have not made changes to the review box file (includes/boxes/review.php). veen the review write can be made seo'ed by doing some changes in the .htaccess file and the seo class (fairly easy and straight forward). maybe post your review.php as mentioned above if the review & the review info pages arent seo'ing? Ken
  23. GemRock

    pdf invoices for admin only

    what i said in post #3 is quite general: which does not say specifically how you would customise it further.the error msg you posted does not refer to the folder store_images. you could have simply uploaded the logo to every images folder one of which would work if you dont bother to find out exactly which folder it looks for the logo in. anyway, glad you make it work now. Ken
  24. GemRock

    pdf invoices for admin only

    only you know, where & what is this "store_images" defined? and after several months you still cant get it work?? Ken
  25. GemRock

    Header Tags for novices

    when several people reported the same problem then there could well be a problem in the contribution so I decided to take a look and indeed I discovered the file header_tags_edit.php in version 4.0 was the wrong one in that it would have a problem of not being able to set/change row number per page on servers with register_globals set to OFF. This is more a problem as hosts are upgrading to PHP5, which would set register_globals to OFF by default. I have now released version 5.0 (follow the Contribution link in my signature to download), which is now including installation instructions. Thanks to all those who reported the problem recently! Ken
×