Jack_mcs Posted October 16, 2009 Author Posted October 16, 2009 However when I go to my admin->configuration-> Header Tags SEO I do not get the option of Display Category Parents in Title and Tags. I also have no test facility. I have uploaded the buttons and have checked and rechecked all the files and the code changes that have been performed and cannot find any errors at all. Could you please let me know why you think my Header Tags SEO control is not displaying all the options it should be. If this is an update, then you made a mistake in the installation. If it is a new install, I don't see how it is possible since both of those are parts of other things that are, apparently, working. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
jigga1234 Posted October 16, 2009 Posted October 16, 2009 If this is an update, then you made a mistake in the installation. If it is a new install, I don't see how it is possible since both of those are parts of other things that are, apparently, working. I will go back and look again thank you for your time. which file controls what you see on the Header Tags SEO admin page? Quote
jigga1234 Posted October 16, 2009 Posted October 16, 2009 Hi Jack I have been back and checked, double checked and triple checked but I cannot find anything wrong? However it still does not show up the extra fields that I am missing. Is there anyway I can show you my files so you can see if you can see it yourself? I dont want to just paste them on here as its a lot of code. My admin folder is named differently to admin would this have any effect on the programme? I am normally ok at finding the problem even if it takes me a long time however I am really stuck on this one. Could you let me know which file places the parent title option in the admin-config-header tags seo page and I will look to see if I have any errors but I am at a total loss. Thank you for your time. It works perfectly for genertaing the tags I want.All I am wanting to do is make my complete breadcrumb be in the tag rather than the last category thats all i want to change :) :) Quote
Jack_mcs Posted October 16, 2009 Author Posted October 16, 2009 Could you let me know which file places the parent title option in the admin-config-header tags seo page and I will look to see if I have any errors but I am at a total loss. There is code in the admin/includes/functions/general.php file that does that. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
jigga1234 Posted October 16, 2009 Posted October 16, 2009 My bad I must have done something wrong with the install as it appeared to be working fine however once i tried to edit a product in admin then every thing went wrong. I was getting a called to undefined function on line..... in categories.php I have now noticed that I may have an early copy of your tags as in admin/header_tags_seo.php there is the following code /* $Id: header_tags_seo.php,v 1.2 2008/04/04 hpdl Exp $ header_tags_seo Originally Created by: Jack_mcs osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ Please could you let me know what do I need to do to make sure I install your new version correctly do I go through all the update docs and make all the changes from my version to the latest or is there a quicker way around this. Also will there be errors in my catalog install as this appears to be running fine and my site is updated with much better and more descriptive unique tags (I have left all the changes that have been made to the catalog install as they are but I did restore an admin back up from before I made the changes to the admin). Thank you for your time and I look forward to your response. Jaime. Quote
Jack_mcs Posted October 16, 2009 Author Posted October 16, 2009 Instructions are included in the contribution. It serves no purpose to retype them here. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
jigga1234 Posted October 16, 2009 Posted October 16, 2009 Instructions are included in the contribution. It serves no purpose to retype them here. I agree I have read them however it does not include instructions for how to upgrade v 1.2 which is what I have got. could you just tell me if I use the install_admin.txt as my guide or because I have a very old version do i need to do all the updates (this is what is confusing me) I know i use the files from catalog in your contribution as its not a fresh shop but can i just place these on my site and make the changes stated in install_admin.txt or do i use the upgrade txt files. I realise that I may be asking a very very stupid question but I am that stressed at the moment about trying to get this working I am not thinking great. Cheers Quote
Jack_mcs Posted October 16, 2009 Author Posted October 16, 2009 Yes, if follow the included instructions, it will be installed correctly. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
jigga1234 Posted October 16, 2009 Posted October 16, 2009 which instructions? you do give two options and as I have stated i do not know which ones to use. update docs or install_admin.txt Quote
Jack_mcs Posted October 16, 2009 Author Posted October 16, 2009 If you want to uprade, use the update files. If you want a new install, use the others. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
discxpress Posted October 17, 2009 Posted October 17, 2009 Hello Jack, I have a very large shop (over 400,000 products). I also have FWR Security Pro installed. When I run the installation, it runs for a few minutes then it sends me to a blank page. I read somewhere in this thread you said Security Pro uses an IP blocker, so I disabled it in admin. Also, I updated php.ini in admin to allow more memory. I run the installation again, same result. What else could be causing the problem? I'm afraid if I uninstall Security Pro, I may get a querystring attack. Thanks. Quote
Jack_mcs Posted October 17, 2009 Author Posted October 17, 2009 I have a very large shop (over 400,000 products). I also have FWR Security Pro installed. When I run the installation, it runs for a few minutes then it sends me to a blank page. I read somewhere in this thread you said Security Pro uses an IP blocker, so I disabled it in admin. Also, I updated php.ini in admin to allow more memory. I run the installation again, same result. What else could be causing the problem? I'm afraid if I uninstall Security Pro, I may get a querystring attack. It may, or may not, have anything to do with that contribution. 400,000 products is a very large number of products and a white page, along with a large number of products, usually means the server is timing out. If you are on a shared server, this is almost certainly the problem. Try looking at the servers error log to see if it indicates a problem. If you can't find the reason, the "easiest" way to tell what the problem is would be to install a blank shop on the server with Header Tags installed and have it use your database. If it still fails, then it is not that contribution. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
discxpress Posted October 17, 2009 Posted October 17, 2009 Jack, I think I got it fixed. First I installed the latest version of Header Tags SEO. I had version 3.0.1 installed. After I replaced all the old files with the new, I used the uninstall file to uninstall it then I used the install file to re-install Header Tags SEO. Since I have a large store I filled the category tags first then filled the product tags afterwards. It seem to work fine. Now I have to get accustomed to the new features. Thanks for your help. Quote
discxpress Posted October 18, 2009 Posted October 18, 2009 Jack, I have a question about the special word ITEMNAME in the Generic Override section. That is a great idea. Could the code be changed to place the item price and UPC in the description? Maybe something like ITEMPRICE (to help improve click-through in organic search results) and ITEMUPC (to possibly improve placement and impression in keyword search results). If that could be done, which file to change? Thanks again. Quote
Jack_mcs Posted October 18, 2009 Author Posted October 18, 2009 Yes, it can be changed to do that. I have a number of clients that have special setups like that. But it is not something for general release, especially for those items. The price should not be in the title and keywords, although maybe in the description. And UPC isn't a standard field so that's not something I would add in any case. I had thought about adding an option where those special words could be defined by the user but since that part of Fill Tags seems to not be a very often used option, based on the feedback I receive, it just isn't worth the time to code it. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
discxpress Posted October 18, 2009 Posted October 18, 2009 Yes, it can be changed to do that. I have a number of clients that have special setups like that. But it is not something for general release, especially for those items. The price should not be in the title and keywords, although maybe in the description. And UPC isn't a standard field so that's not something I would add in any case. I had thought about adding an option where those special words could be defined by the user but since that part of Fill Tags seems to not be a very often used option, based on the feedback I receive, it just isn't worth the time to code it. I agree. UPC isn't a field for general use. I would have a look at the files to see what I can do. Thanks. Quote
06voip Posted October 19, 2009 Posted October 19, 2009 (edited) Hi Jack, I have installated more times Header Tag SEO 3.1.8 on osCommerce Online Merchant v2.2 RC2a Released, but everytime I have the same problem: 1) when I browse the catalog, on the headerNavigation appears "Top » Catalog » » » " instead of the complete path. I have identified the possible reason in this code: /*** Begin Header Tags SEO ***/ // add category names or the manufacturer name to the breadcrumb trail if (isset($cPath_array)) { for ($i=0, $n=sizeof($cPath_array); $i<$n; $i++) { $categories_query = tep_db_query("select categories_htc_title_tag from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$languages_id . "' LIMIT 1"); if (tep_db_num_rows($categories_query) > 0) { $categories = tep_db_fetch_array($categories_query); $breadcrumb->add($categories['categories_htc_title_tag'], tep_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1))))); } else { break; } } } elseif (isset($_GET['manufacturers_id'])) { $manufacturers_query = tep_db_query("select manufacturers_htc_title_tag from " . TABLE_MANUFACTURERS_INFO . " where manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "' AND languages_id = '" . (int)$languages_id . "' LIMIT 1"); if (tep_db_num_rows($manufacturers_query)) { $manufacturers = tep_db_fetch_array($manufacturers_query); $breadcrumb->add($manufacturers['manufacturers_htc_title_tag'], tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $_GET['manufacturers_id'])); } } // add the products name to the breadcrumb trail if (isset($_GET['products_id'])) { $products_query = tep_db_query("select pd.products_head_title_tag from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_id = '" . (int)$_GET['products_id'] . "' and pd.language_id ='" . (int)$languages_id . "' LIMIT 1"); if (tep_db_num_rows($products_query)) { $products = tep_db_fetch_array($products_query); $breadcrumb->add($products['products_head_title_tag'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $_GET['products_id'])); } } /*** End Header Tags SEO ***/ that is included at the end of this file \include\application_top.php. I tried substitude this file with original one and the problem has been solved. 2) When I use the IE8 browser in the product description the column_right.php is moved on the bottom of the page, but if I use Firefox browser the page is diplayed correctly. Could you please help me to sort out these problems. Thanks in advance for your help. Regard 06voip Edited October 19, 2009 by 06voip Quote
ecustomwheels Posted October 19, 2009 Posted October 19, 2009 Hi, I am trying to install this contribution and I am having a problem with the instructions for the includes/header.php It says: 7) In includes/header.php, FIND: (Note: the code shown is for an MS2 shop. The only difference between it an RC2 shop is the name of the image. So when you replace the code, be sure to change the image name to whatever is correct for your shop. <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td> REPLACE with: <?php /*** Begin Header Tags SEO ***/ ?> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', (tep_not_null($header_tags_array['logo_text']) ? $header_tags_array['logo_text'] : STORE_NAME)) . '</a>'; ?></td> <?php /*** End Header Tags SEO ***/ ?> Note: There are four extra fields, logo_text_1 through logo_text_4 that can be used for displaying text for additional images in the logo, or anywhere on the page if you like. The same code as above would be used except the logo_text would have to be changed to logo_text_1, and so on. I cannot find what it is talking about because my header has been modified. I need some help in where to put this code into my header. My header: <?php // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == 'true') { if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) { $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning'); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning'); } elseif (!is_writeable(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning'); } } } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning'); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning'); } } if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top" align="center"> <table border="0" width="775" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF"> <tr> <td valign="top" align="center"> <table border="0" width="780" cellspacing="0" cellpadding="0" height="74"> <tr class="header"> <td height="74" valign="top" class="logo_hd"><img src="top.jpg" usemap="#Map" border="0" height="235" width="780" /> <map name="Map" id="Map"> <area shape="rect" coords="702,202,773,232" href="<?php echo tep_href_link('livehelp/lv.php', '', 'NONSSL'); ?>" /> <area shape="rect" coords="12,204,160,232" href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=3', 'NONSSL'); ?>" /> <area shape="rect" coords="332,204,524,232" href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=2', 'NONSSL'); ?>" /> <area shape="rect" coords="525,204,575,232" href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=1', 'NONSSL'); ?>" /> <area shape="rect" coords="380,2,505,37" href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" /> <area shape="rect" coords="512,3,662,37" href="<?php echo tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL'); ?>" /> <area shape="rect" coords="667,2,778,37" href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" /> <area shape="rect" coords="579,202,697,232" href="<?php echo tep_href_link('manufacturers.php', '', 'NONSSL'); ?>" /> <area shape="rect" coords="6,30,60,60" href="<?php echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>" /> <area shape="rect" coords="66,30,139,61" href="<?php echo tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>" /> </map></td> </tr> </table> <!-- iframe id="LV" name="LVV" src="about:blank" allowtransparency=true width="144px" height="180px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder=0 scrolling="no" style="background-color:transparent;position: absolute; left:650px; top:100px;"> </iframe --> <?php /**** Remeber the Variables we are passed *********************************************/ if(isset($_REQUEST['U_Make'])) { $_SESSION['U_Make'] = $_REQUEST['U_Make']; } if(isset($_REQUEST['U_Model'])) { $_SESSION['U_Model'] = $_REQUEST['U_Model']; } if(isset($_REQUEST['U_Year'])) { $_SESSION['U_Year'] = $_REQUEST['U_Year']; } if(isset($_REQUEST['U_Bolt'])) { $_SESSION['U_Bolt'] = $_REQUEST['U_Bolt']; } if(isset($_REQUEST['U_Offset'])) { $_SESSION['U_Offset'] = $_REQUEST['U_Offset']; } if(isset($_REQUEST['U_Filter'])) { $_SESSION['U_Filter'] = $_REQUEST['U_Filter']; } /** -------------------------- Show Category ---( only if vehicule is selected ) )--------------- ***/ if($_SESSION['Category'] == '') { $_SESSION['Category'] = 0; $Category = 0; } // Default Category to 0 $Cat_Info = tep_db_query("select categories_name from categories_description where categories_id=$Category"); while( $Cats = tep_db_fetch_array($Cat_Info) ) { $Cat = $Cats['categories_name']; }; if($_REQUEST['Category'] != "") { //// Starting Over...... session_unregister("U_Make"); session_unregister("U_Model"); session_unregister("U_Year"); session_unregister("U_Filter"); unset($U_Year); $_SESSION['Category'] = $_REQUEST['Category']; } // print_r($_SESSION); if( $U_Year > 1949 ) { echo '<table border=0 height=36 width=780 cellspacing=0 cellpadding=0 style="background-repeat:no-repeat;background-position:center;background-image:url(images/grad.jpg)"> <tr> <td style=text-align:center;background-image:url(images/Car.gif);background-repeat:no-repeat title="Click here to Select a Different Vehicle" onclick=location.replace("index.php?Category='.$Category.'")>'; echo "<font color=white face=\"Arial Black\"><b>$Cat for <font color=yellow>$U_Year $U_Make $U_Model </font>"; echo "</td></tr></table>"; } ?> <!------------------------------- SEARCH BOX -------------------------------------------------------> <!-- td class="headerNavigation_text" valign="middle"> <?php /** echo tep_draw_form('quick_findh', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'). tep_draw_input_field('keywords', 'Search KeyWord', 'size="10" maxlength="30" class="hd_search"'); ***/ ?> </td> <td valign=bottom> <img src='includes/languages/english/images/buttons/button_quick_find_hd.gif' border=0> </form> </td ---------------------------------------------> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td> </tr> </table> <?php } ?> Thanks for any help. Quote
Guest Posted October 19, 2009 Posted October 19, 2009 Hello all, hopefully this will be a quick fix. I'm working with a new client that is on a windows server. I installed Header Tags SEO, and everything came together and worked fine. Then when I installed Seo Urls 5 the urls changed, but now all the products have a "Default title" listed as the title and all meta info is listed in the default setting as well. Any ideas? Quote
Jack_mcs Posted October 19, 2009 Author Posted October 19, 2009 1) when I browse the catalog, on the headerNavigation appears "Top » Catalog » » » " instead of the complete path. that is included at the end of this file \include\application_top.php. I tried substitude this file with original one and the problem has been solved. 2) When I use the IE8 browser in the product description the column_right.php is moved on the bottom of the page, but if I use Firefox browser the page is diplayed correctly. 1 - The code doesn't go at the bottom of the application_top file so if that is where you are putting it, that is probably the problem. 2 - You made a mistake with the changes to the product_info.php file. Try restoring the file and adding the changes back in one at a time to find the problem. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Jack_mcs Posted October 19, 2009 Author Posted October 19, 2009 I am trying to install this contribution and I am having a problem with the instructions for the includes/header.php It says: 7) In includes/header.php,That part of the code changes the alt attribute for the image. You'll need to find that for your logo and edit that part of the code or skip that step. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Jack_mcs Posted October 19, 2009 Author Posted October 19, 2009 I'm working with a new client that is on a windows server. I installed Header Tags SEO, and everything came together and worked fine. Then when I installed Seo Urls 5 the urls changed, but now all the products have a "Default title" listed as the title and all meta info is listed in the default setting as well. You need to ask in the support thread for SEO Urls 5 since, as you state, Header Tags works fine. Or use the Ultimate SEO contribution, which is 100% compatible. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
ecustomwheels Posted October 19, 2009 Posted October 19, 2009 Jack, I am getting this error message: Parse error: syntax error, unexpected T_CASE in /xxxxxxx/categories.php on line 1002 I think I have left something out or missed something in this code. Here is some code around that error message:lines 975-1035 $heading = array(); $contents = array(); switch ($action) { case 'new_category': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_CATEGORY . '</b>'); $contents = array('form' => tep_draw_form('newcategory', FILENAME_CATEGORIES, 'action=insert_category&cPath=' . $cPath, 'post', 'enctype="multipart/form-data"')); $contents[] = array('text' => TEXT_NEW_CATEGORY_INTRO); /*** Begin Header Tags SEO ***/ $category_htc_title_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('categories_htc_title_tag[' . $languages[$i]['id'] . ']'); $category_htc_desc_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('categories_htc_desc_tag[' . $languages[$i]['id'] . ']'); $category_htc_keywords_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('categories_htc_keywords_tag[' . $languages[$i]['id'] . ']'); $category_htc_description_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_textarea_field('categories_htc_description[' . $languages[$i]['id'] . ']', 'hard', 30, 5, ''); /*** End Header Tags SEO ***/ } $contents[] = array('text' => '<br>' . TEXT_CATEGORIES_NAME . $category_inputs_string); $contents[] = array('text' => '<br>' . TEXT_CATEGORIES_IMAGE . '<br>' . tep_draw_file_field('categories_image')); /*** Begin Header Tags SEO ***/ $contents[] = array('text' => '<br>' . 'Header Tags Category Title' . $category_htc_title_string); $contents[] = array('text' => '<br>' . 'Header Tags Category Description' . $category_htc_desc_string); $contents[] = array('text' => '<br>' . 'Header Tags Category Keywords' . $category_htc_keywords_string); $contents[] = array('text' => '<br>' . 'Header Tags Categories Description' . $category_htc_description_string); /*** End Header Tags SEO ***/ $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'edit_category': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_CATEGORY . '</b>'); $contents = array('form' => tep_draw_form('categories', FILENAME_CATEGORIES, 'action=update_category&cPath=' . $cPath, 'post', 'enctype="multipart/form-data"') . tep_draw_hidden_field('categories_id', $cInfo->categories_id)); $contents[] = array('text' => TEXT_EDIT_INTRO); /*** Begin Header Tags SEO ***/ $category_htc_title_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('categories_htc_title_tag[' . $languages[$i]['id'] . ']', tep_get_category_htc_title($cInfo->categories_id, $languages[$i]['id'])); $category_htc_desc_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('categories_htc_desc_tag[' . $languages[$i]['id'] . ']', tep_get_category_htc_desc($cInfo->categories_id, $languages[$i]['id'])); $category_htc_keywords_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('categories_htc_keywords_tag[' . $languages[$i]['id'] . ']', tep_get_category_htc_keywords($cInfo->categories_id, $languages[$i]['id'])); $category_htc_description_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_textarea_field('categories_htc_description[' . $languages[$i]['id'] . ']', 'hard', 30, 5, tep_get_category_htc_description($cInfo->categories_id, $languages[$i]['id'])); /*** End Header Tags SEO ***/ } $contents[] = array('text' => '<br>' . TEXT_EDIT_CATEGORIES_NAME . $category_inputs_string); $contents[] = array('text' => '<br>' . tep_image(DIR_WS_CATALOG_IMAGES . $cInfo->categories_image, $cInfo->categories_name) . '<br>' . DIR_WS_CATALOG_IMAGES . '<br><b>' . $cInfo->categories_image . '</b>'); $contents[] = array('text' => '<br>' . TEXT_EDIT_CATEGORIES_IMAGE . '<br>' . tep_draw_file_field('categories_image')); /*** Begin Header Tags SEO ***/ $contents[] = array('text' => '<br>' . 'Header Tags Category Title' . $category_htc_title_string); $contents[] = array('text' => '<br>' . 'Header Tags Category Description' . $category_htc_desc_string); $contents[] = array('text' => '<br>' . 'Header Tags Category Keywords' . $category_htc_keywords_string); $contents[] = array('text' => '<br>' . 'Header Tags Categories Description' . $category_htc_description_string); /*** End Header Tags SEO ***/ $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'delete_category': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CATEGORY . '</b>'); $contents = array('form' => tep_draw_form('categories', FILENAME_CATEGORIES, 'action=delete_category_confirm&cPath=' . $cPath) . tep_draw_hidden_field('categories_id', $cInfo->categories_id)); $contents[] = array('text' => TEXT_DELETE_CATEGORY_INTRO); $contents[] = array('text' => '<br><b>' . $cInfo->categories_name . '</b>'); if ($cInfo->childs_count > 0) $contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_CHILDS, $cInfo->childs_count)); if ($cInfo->products_count > 0) $contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $cInfo->products_count)); $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; Thanks for any help. Quote
Jack_mcs Posted October 20, 2009 Author Posted October 20, 2009 Jack, I am getting this error message: Parse error: syntax error, unexpected T_CASE in /xxxxxxx/categories.php on line 1002 I think I have left something out or missed something in this code. Please follow the troubleshooting directions mentioned in the install files. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
marleenverbeek Posted October 20, 2009 Posted October 20, 2009 (edited) I have fixed the problem for those that have the same problem i have just upload the install and un-install database and i have un-installed the database and install again and work now. Hi Rafael, I have the same problem. I don't understand your solution though. What did you do exactly to fix it? Thanks! Marleen Edited October 20, 2009 by marleenverbeek Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.