Jump to content

GemRock

Members
  • Content count

    2,020
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by GemRock

  1. GemRock

    Header Tags for novices

    1. yes, its normal behaviou of chemo's ultimate seo urls contribution; 2. dont quite understand your question and i don't use that contribution, which has nothing to do with my contribution. Ken
  2. GemRock

    Header Tags for novices

    that'd be OK. btw, you should follow the Contribution link in my signature to download the contribution & the instruction file, just in case. Good luck! Ken
  3. GemRock

    Header Tags for novices

    also try to replace lines between 14 and 73, ie, line14 define('FILENAME_HEADER_TAGS_EDIT', 'header_tags_edit.php'); and line73 } with: require('includes/application_top.php'); if (isset($_GET['cPath'])) { $current_category_id = $_GET['cPath']; } else { $current_category_id = 0; } if (isset($_GET['page'])) { $page = $_GET['page']; } else { $page= 1; } if (isset($_GET['row_by_page'])) { $row_by_page = $_GET['row_by_page']; } else { $row_by_page = MAX_DISPLAY_SEARCH_RESULTS; } if (isset($_GET['manufacturer'])) { $manufacturer = $_GET['manufacturer']; } else { $manufacturer = 0; } define('MAX_DISPLAY_ROW_BY_PAGE' , $row_by_page ); // Display the list of the manufacturers function manufacturers_list(){ // global $manufacturer; if (isset($_GET['manufacturer'])) { $manufacturer = $_GET['manufacturer']; } else { $manufacturer = 0; } $manufacturers_query = tep_db_query("select m.manufacturers_id, m.manufacturers_name from " . TABLE_MANUFACTURERS . " m order by m.manufacturers_name ASC"); $return_string = '<select name="manufacturer" onChange="this.form.submit();">'; $return_string .= '<option value="0">' . TEXT_ALL_MANUFACTURERS . '</option>'; while($manufacturers = tep_db_fetch_array($manufacturers_query)){ $return_string .= '<option value="' . $manufacturers['manufacturers_id'] . '"'; if($manufacturer && $manufacturers['manufacturers_id'] == $manufacturer) $return_string .= ' SELECTED'; $return_string .= '>' . $manufacturers['manufacturers_name'] . '</option>'; } $return_string .= '</select>'; return $return_string; } // Uptade database switch ($_GET['action']) { case 'update' : $count_update=0; $item_updated = array(); if($_POST['title_tag_new']){ foreach($HTTP_POST_VARS['title_tag_new'] as $id => $new_title) { if (trim($HTTP_POST_VARS['title_tag_new'][$id]) != trim($HTTP_POST_VARS['title_tag_old'][$id])) { $count_update++; $item_updated[$id] = 'updated'; mysql_query("UPDATE " . TABLE_PRODUCTS_DESCRIPTION . " SET title_tag='" . $new_title . "'" . " WHERE products_id=" . $id . " and language_id = '" . $languages_id . "'"); } } } if($HTTP_POST_VARS['desc_tag_new']){ foreach($HTTP_POST_VARS['desc_tag_new'] as $id => $new_desc) { if (trim($HTTP_POST_VARS['desc_tag_new'][$id]) != trim($HTTP_POST_VARS['desc_tag_old'][$id])) { $count_update++; $item_updated[$id] = 'updated'; mysql_query("UPDATE " . TABLE_PRODUCTS_DESCRIPTION . " SET desc_tag='" . $new_desc . "'". " WHERE products_id=" . $id . " and language_id = '" . $languages_id . "'"); mysql_query("UPDATE " . TABLE_PRODUCTS . " SET products_last_modified=now() WHERE products_id=$id"); } } } if($HTTP_POST_VARS['keywords_tag_new']){ foreach($HTTP_POST_VARS['keywords_tag_new'] as $id => $new_keywords) { if ($HTTP_POST_VARS['keywords_tag_new'][$id] != $HTTP_POST_VARS['keywords_tag_old'][$id]) { $count_update++; $item_updated[$id] = 'updated'; mysql_query("UPDATE " . TABLE_PRODUCTS_DESCRIPTION . " SET keywords_tag='" . $new_keywords . "'" . " WHERE products_id=" . $id . " and language_id = '" . $languages_id . "'"); } } } $count_item = array_count_values($item_updated); if ($count_item['updated'] > 0) $messageStack->add($count_item['updated'].' '.TEXT_PRODUCTS_UPDATED . " $count_update " . TEXT_QTY_UPDATED, 'success'); break; } // define the step for products shown per page $row_bypage_array = array(array()); for ($i = 10; $i <=300; $i=$i+10) { $row_bypage_array[] = array('id' => $i, 'text' => $i); } NB: any one who downloads the contribution do NOT forget to also download "install-v2.zip", ie, the installation instructions, which is not included in the contribution download. Ken
  4. GemRock

    Header Tags for novices

    No, SSL shouldn't be the problem. what version of osc you are using? is your server/php register_globals ON or OFF? Ken
  5. GemRock

    Header Tags for novices

    as you said above, after clicking on Product Meta Tags, look at your browser's address bar, that will tell you the file name & its location, itd be under your admin folder. download it to your pc, then edit it. and make sure you are NOT looking at or searching someone else computer :) Ken
  6. GemRock

    Header Tags for novices

    it is controlled by "maximum display search results" in configuration - max. value. you can also change it in the file header_tags_edit.php. search for "MAX_DISPLAY_SEARCH_RESULTS" and change it to, say, 300. Ken
  7. GemRock

    Ultimate SEO Urls parse error

    installer?? i have an installer for another installer 4 yet another installer... if you want it then mp (not pm, pm needs mp to read it!)... :D
  8. GemRock

    Header Tags for novices

    The above is referring to a bit of code in the edit_header_tags.php that may affect some servers. some whether you are affected or not, you can do the following: find lines 135/136 <form name="update" method="POST" action="<?php echo "$PHP_SELF?action=update&page=$page&sort_by=$sort_by&cPath=$current_category_id&row_by_page=$row_by_page&manufacturer=$manufacturer"; ?>"> <td align="right" valign="middle"><?php echo tep_image_submit('button_update.gif', IMAGE_UPDATE, "action=update&cPath=$current_category_id&page=$page&sort_by=$sort_by&row_by_page=$row_by_page");?> </td> replace it with <?php echo tep_draw_form('update', FILENAME_HEADER_TAGS_EDIT, "action=update&page=$page&cPath=$current_category_id&row_by_page=$row_by_page&manufacturer=$manufacturer", 'post'); ?> <td align="right" valign="middle"><?php echo tep_image_submit('button_update.gif', IMAGE_UPDATE, "action=update&cPath=$current_category_id&page=$page&row_by_page=$row_by_page");?> </td> this issue was dealt with a while ago on this support thread. Ken
  9. GemRock

    Header Tags for novices

    You used the wrong header tag code for thr product info.php which i have corrected but it seems you may have another header tag (title in particular) installed. I tested the trodutional bear family and it shows the customised desc & keywrods. Ken
  10. GemRock

    Header Tags for novices

    Hi Phil It should work now (up to 300 products). something strange there but as a quick fix, that'd do. just make ure you do not replace the header_tags_edit.php Ken
  11. GemRock

    Header Tags for novices

    you are NOT using the newest header_tags_edit.php as far as i can see. so get it from my signature (click on Contribution). depending on you FTP application, you can use Auto or binary, but NOT ASCII. Ken edit: sorry, you are but the one on the googlecode site is a bit out of date.
  12. GemRock

    Header Tags for novices

    sorry by that i meant: header_tags_edit.php, which is about 18KB in size. make sure you use the one from my googlecode site. Ken
  13. GemRock

    Header Tags for novices

    I have had a quick look at it. it appears the categories part is working OK ( i tested it by enetring title. desc & keywords) and the rows per page. so my suggestion is first to reupload the products header tags file. btw, are you using a template shop? Ken
  14. GemRock

    Header Tags for novices

    then pm me asap. i only have 10 minutes. Ken
  15. GemRock

    Header Tags for novices

    both the contribution and the instruction are actually here. The two files are separate. Ken
  16. GemRock

    Header Tags for novices

    did you download the installation (v2) from the googlecode site or from my website (which is the latest version)? this contribution generates the least support issue as it does not require lots of modifications to your site if you follow the instructions. Ken
  17. GemRock

    SEO Dynamic Header Tags V4

    contirbutions would normally have their own support thread and you only ask question there so that people know what exactly you are having trouble with. Ken
  18. GemRock

    Header Tags for novices

    the Title is defined in eg, english.php, not the store name. for any other issues, you need to say what version you use and where you get it from. always remember to download the instructions posted at google code site or my site. the forum failed to send out emails to me...dont know why...i saw your question by accident. Ken
  19. GemRock

    Header Tags for novices

    could you post what you entered in product info.php, is it sometihng like below? <title><?php echo $header_tags[title_tag]; ?></title> <meta name="description" content="<?php echo $header_tags[desc_tag]; ?>"> <meta name="keywords" content="<?php echo $header_tags[keywords_tag]; ?>"> Ken
  20. GemRock

    Header Tags for novices

    the reasons for a blank page could too many to list - you may list 100 but miss one which happens to the very reason! so without actually working/looking at the site in question, i can only suggest you double check your installation at the admin side, eg, make sure you dont upload a language file as a script file (with same name as the language file but much bigger file size) by mistake. Ken
  21. GemRock

    What does this contrib do?

    then you got 3 YESes. 1. transform product url into, eg, product-name.html, good for SEs or not it at least is better for human to read; 2. since you got product/category name, which could be keywords, in urls, it helps SEs to present your site to surfers; 3. as in 2. it certainly helps to list your site in a better format, if your site gets indexed by SEs. it'd be used in conjuction with google sitemaps. and dont forget to fix the urls googlebase feeder generates if you use it. some people now say SEs can read urls in its original format,eg, product-info.php?product-id=id, but IMO, 'can' does not necessarily means good or better. Ken
  22. GemRock

    What does this contrib do?

    one of the most strange questions i ever come across: which comtribution you are talking about - no one can read your mind... Ken
  23. GemRock

    Protx Direct v2.22

    the most stupid move i have ever seen. when the brand name protx after all these years is about to be known increasingly by many both consumers & traders it now all a sudden decides to abandon it and change it to who knows "sagepay". even in next week's internet world held in London, they still use the brand name protx and "sagepy" is no where to be seen. Ken
  24. GemRock

    Header Tags for novices

    HI Sophia The latest version of the contribution and the install instruction is in fact at the google code page which you can get by following the link NEW: xhtml 1.0 strict compliant osCommerce v2.2 Final UK version & Non-UK version in my signature. please confirm the version you actually use and whether you still get the error. Ken
  25. GemRock

    Header Tags for novices

    Hi Sophia which version you installed and where you got it from? it looks like the problem is unique to you as no others have ever reported this error. Ken
×