Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

GemRock

Pioneers
  • Posts

    2,020
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by GemRock

  1. Anyone who uses php 4.4.x or above gets this error? I havent been able to find a php version lower than 4.4.x to test it. Ken
  2. Hi Yossi Thank you but I dont know what the step 6+7 is. I suppose it is not HT4N as there's no step 6 or 7 in the installation instructions. and I dont know what step 6+7 is either if it refers to the all products contribution. What I can say is I dont see there would generally be any conflict between the two contributions. Ken ps. again please do not pm/email me unless you are invited to. I will be notified every time a post is added to this support thread.
  3. Hi Bill Thanks for that :thumbsup: . Anyone got that error could try Bill's tips. Just out of curiosity, under what circumstance (php version etc) did you get that error, as I have never got that error in all my installations of this contribution, whether locally or on live servers. To be on the safe side, I will put quotation marks on that constant in the next release. Ken
  4. Dan (sassypickles), Please refer to the minimum install instructions, it says: btw, do not email or pm me with regard to the support issues of my contribution, it wont be quicker to get a response than posting your question on the forum here. I am sorry but i wont be able to answer any un-invited pm or email regarding your own/other osc problems. You are advised to better post it to the relevant thread on the forums to get a quicker response. Ken
  5. Dan (sassypickles), This is what it should look like: <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo (strlen($categories['categories_name']) > 1) || (strlen($manufacturers['manufacturers_name']) > 1) ? $breadcrumb_tags->trail_tags(' ') . ' - ' . TITLE : TITLE; ?></title> <meta name="description" content="<?php echo strip_tags($breadcrumb_tags->trail_tags(' ')); ?>"> <meta name="keywords" content="<?php echo strip_tags($breadcrumb_tags->trail_tags(', ')); ?>"> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> Ken
  6. Hi yos40 I suppose your reported problem has nothing to do with HT4N, which doesn't touch either english.php or general.php on the catalog side in any way. Ken
  7. ../admin/FILENAME_HEADER_TAGS_EDIT' and not the 'header_tags_edit.php'... as far as I can see, there's only one reason for this error, ie, step 1 hasnt been done correctly. Note that the filenames.php is the one under admin/includes/, and not the one under catalog/includes. Ken
  8. As promised, a new package ('version 2') has just been uploaded to the contributions server (see the link in my signature). GemRock
  9. I dont think it matters. Ken PS. just returned from a long journey...
  10. Hi Talle Assuming your title tag in product info.php is this <title><?php echo $header_tags[title_tag]; ?></title> 1. you could enter whatever you like in the title tags field (column) in header tags edit page, e.g., productname - shop name. or 2. you could change the title tag to something like this: <title><?php echo $header_tags[products_name] . '-' . $categories['categories_name'] . '-' . TITLE; ?></title> assuming your shop's TITLE is defined by using your shop name. You could replace '-' with space, ie, ' ', if you dont want '-' between product name and category name. 3. if you dont want category name, then delete '-' . $categories['categories_name'] . HTH Ken
  11. I have posted an acknowledgement here Ken
  12. Hi Patty I dont know why you want it, but anyway it can be done I think: 1. Open header tags edit php, find this line (about line 221): echo "<td class=\"smallText\" align=\"left\">".$products['products_name']."</td>\n"; Replace it with: echo "<td class=\"smallText\" align=\"left\"><a href=" . tep_href_link_shop('product_info.php?products_id='. $products['products_id']). ">".$products['products_name']."</a></td>\n"; Save & close. 2. copy the code below & paste it into html_output.php under admin/includes/functions/, just before the closing ?> at the end of the file: // The HTML href link wrapper function used in header tags edit HT4N - GemRock function tep_href_link_shop($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $request_type, $session_started, $SID; if (!tep_not_null($page)) { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>'); } if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>'); } if (tep_not_null($parameters)) { $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; } else { $link .= $page; $separator = '?'; } while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1); // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) { if (tep_not_null($SID)) { $_sid = $SID; } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) { if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) { $_sid = tep_session_name() . '=' . tep_session_id(); } } } if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { while (strstr($link, '&&')) $link = str_replace('&&', '&', $link); $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); $separator = '?'; } if (isset($_sid)) { $link .= $separator . tep_output_string($_sid); } return $link; } save & close. 3. open configure.php under catalog/includes/, look for the define line for DIR_WS_HTTP_CATALOG, copy the whole line and paste into configure.php under folder admin/includes/, just above the ENABLE_SSL_CATALOG line. Now, in header tags edit page, when you click any of the product names on the left, it'd take you to that product's info page. Let me know if it works. Ken
  13. Goodness me! I'd never ever thought there's still mysql 3 going around in this 21th century! Anyway, good to hear you got it work. Regards, Ken
  14. Hi Patty As far as I am concerned, this is a strange error and it seems it doesnt mean what it says as you'd notice there's no such query as 'select count as total' in the header tags edit php file. The first person who reported the problem was Toby but unfornately there's no further response from him. AS this problem seems only happen to some people and I my self cannot re-produce the problem whatsoever (php4, php 5, mysql 4, mysql 5), I guess although not comclusive it may be something to do with the setup of your osc shop. It'd be useful for future investigation if you'd state how you access this header tags edit, ie, is it via a link in the catalog box or directly key in the file name in the address bar? Good Luck! Ken
  15. Hi Allen Sorry to hear that the problem is still there and I think I understand. Ive been working on a site for the big valentine season the whole evening & 2morrow as well, so for give me not to have the time to look at it in details :( as I am not familiar with STS. ONce I get the time I will take a look as many people seem to use STS. Ken
  16. That doesnt make sense to me: you got the meta tags there, but they were completely ignored. What I can do is get a copy of STS and have a look at it to see if theres anything unusual. Will get back to you but do allow more time. Ken
  17. Hi Allen Ive never used STS so I do not know for sure what is the problem with it. But look at the source above, it would seem the two meta tags lines are missing: <meta name="description" content="<?php echo $header_tags[desc_tag]; ?>"> <meta name="keywords" content="<?php echo $header_tags[keywords_tag]; ?>"> Perhaps post your product_info.php (just the header tags) here? Ken
  18. I just upload a new package that correct two typos, you could download the new package or make the correction here: For those who already downloaded the contrib, please correct the two typos in the included application_top.php: line 542 should read: $header_tags[keywords_tag]= trim(strip_tags($header_tags[keywords_tag])); That is, *keywords*, not *kewwords*. Sorry for the typo. Ken
  19. Hi Allen More details please? In what way it didnt work? Ken
  20. Hi yos40: None of the header tags contributions would make their focus on non-product pages, e.g., conditions, contact us etc. Specials is still a product-related page, so you can still control its title & meta tags as does to the product_info pages. What you need to do is open 'header tags edit.php', and enter the title tag, desc tag & keyword tag for each product. As you want the product name to show first, followed by category name and then title, you could enter the info in exactly that way, ie, product name for that product, then the cat that product belongs to, then the title you wnat to appear at the browser title bar for that product (all wihtin the title tag field). This way, you do not need to make any change to the Title tag (<Title> --- </Title>), but you do need to add the two meta tags below the title tag as per the instructions of the contribution. I hope this would clear the issue. Ken
  21. Hi Talle As you might know, the default for the cat box is that a cat only becomes bold when it is clicked. But of cource you'd change it whatever you like. As you said it is a bit off topic here, and it is not somehitng I have time for at the moment (sorry for that), so I am goign to leave it at another time. Meantime, while you are waiting for a solution, you could look at some other threads (eg, General or Installation sections) that someone may have posted a solution there. Ken
  22. Hi Talle: 1. the h1 class only needs to apply to the heading title line, not the image line. 2. if you were talking about the category box at left column, then the h1 class wont have any effect on it. You need to make changes in the categories.php under includes/boxes/. No one does it by entering <b>etc html tags in the category names. That's why I do not put in function to take out the html tags in category names as I do to the product description. Ken
  23. You 1st question: when you open the edit header tags page, there are three columns you can enter text. The 1st is the title tag, where you can enter the title wording for that product as shown at the left most column. 2nd question: Yes. You could show them in whatever way you like. Could you post your current <Title> </Title> tag in your product_info.php so that I can have a look, and see how it could be changed? Ken
×
×
  • Create New...