Jump to content

GemRock

Members
  • Content count

    2,020
  • Joined

  • Last visited

  • Days Won

    3

GemRock last won the day on March 19 2012

GemRock had the most liked content!

About GemRock

  • Birthday 01/01/1970

Profile Information

Recent Profile Visitors

33,922 profile views
  1. GemRock

    Header Tags for novices

    for the admin side of osc2.3.1, just comment out the column_left so that it looks like this: <!-- left_navigation //--> <?php // require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> in the two files: header_tags_edit.php and header_tags_category_edit.php Ken
  2. GemRock

    Header Tags for novices

    i think i have missed afew posts (no email notification sent to me). for osc 2.3.1, you add this code to template__top.php between <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" /> and the 'base href' bit. changes to the application_top.php is the same as in osc 2.2. the results can be seen in my demo osc231 shop (accessed from my profile). <?php if (stristr($_SERVER['PHP_SELF'],'index.php')) { ?> <title><?php echo (strlen($title_tag) > 1) ? $title_tag . ' - ' . TITLE : $title_home_default . ' - ' . TITLE; ?></title> <meta name="description" content="<?php echo (strlen(strip_tags($desc_tag)) < 5)? $desc_home_default : strip_tags($desc_tag); ?>"> <meta name="keywords" content="<?php echo (strlen(strip_tags($keywords_tag)) < 5) ? $kws_home_default : strip_tags($keywords_tag); ?>"> <?php }else if(stristr($_SERVER['PHP_SELF'],'product_info.php')){ ?> <title><?php echo ((strlen($categories['categories_name']) > 1) || (strlen($manufacturers['manufacturers_name']) > 1)) ? $header_tags['products_name'] . ' -' . $breadcrumb_tags->trail_tags(' ') . ' ' . TITLE : TITLE; ?> </title> <meta name="description" content="<?php echo $header_tags['desc_tag']; ?>"> <meta name="keywords" content="<?php echo $header_tags[keywords_tag]; ?>"> <link rel="canonical" href="<?php echo tep_href_link(FILENAME_PRODUCT_INFO,'products_id='. (int)$HTTP_GET_VARS['products_id']); ?>" /> <?php }else{ ?> <title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title> <?php } ?> for websites using sts, refer to the above. Ken
  3. where do you get the idea of adding the http://www.ecardmodels.com before RewriteBase / ? RewriteBase / is what you need, no more no less, if your site is not under a sub-directory. Ken
  4. tend not 2 think tracing php versions is good idea unless theres a nechanism that sees depressed functions as alias. while 5.3 hasnt been adadpted by most hosts we are talking about 5.4? what about php 6, 7...?

  5. ffmpeg: a client site failed to create 30s preview clip but all sorted so now having a troublefree peaceful sat evening & sunday - happy...

  6. fixing a very strange ffmpeg issue...

  7. GemRock

    Updated Security Thread

    thats correct - the opposit of banning ips, the code to place in .htaccess is all over the place in the forums, eg. Order Deny,Allow deny from all allow from your.fixed.ip.address try to change the fixed ip to one that is not yours to test/see it in action, then change it back.
  8. GemRock

    Updated Security Thread

    to get you an ultimate peace of mind, get a fixed IP address from your broadband provider. if they cant, then switch to one that can. there are many out there in the UK, costing a maximum of £5/m, sometime even free (they assign you one anyway whether you want it or not). then you dont even need to rename anything or password. Ken
  9. GemRock

    Updated Security Thread

    becasue, IMO, its not a problem in itself but may be a problem of some sort of phobia. reasons being: 1. most if not all of these admin (***.php/login.php) attacks are carried out by automated scripts scanning the web for osc default admin name and the admin side is unpatched; 2. rarely someone would sit and spend the whole day to attack a web shop unless its obviosely that there is a gold mine inside; 3. an attacker would not foolish enough to register their name and address then pay to place an order, in order to find out the true admin name; 3. after the admin is renamed, one would also password protect it, along with other methods that are designed to counter this sort of attack. Ken
  10. GemRock

    header tags

    in version 2.3.x, the head section has been removed to the template_top.php, which is why you ca no longert find the head tag in any file you want to modify. ken
  11. would it not be best posted to the Tips and Tricks section? ken
  12. GemRock

    Header Tags for novices

    what i can do is to offer a quick fix as i know little about your website. in product_info.php, below require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO); add: $mID_sql = tep_db_query("select manufacturers_id from " . TABLE_PRODUCTS . " where products_id = '" . (int)$_GET['products_id'] . "'"); $mID_query = tep_db_fetch_array($mID_sql); $mID = $mID_query['manufacturers_id']; $manufacturers_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$mID . "'"); $manufacturers = tep_db_fetch_array($manufacturers_query); $m_name = $manufacturers['manufacturers_name']; now, you get the manufacturers name, you can add it to wherever you want to. eg, add it to the title tag: Ken
  13. GemRock

    Header Tags for novices

    read the previous page (page 38) post #755 onward, to see if that help? Ken
  14. GemRock

    OSC V3

    hi Harald were you testing the out of box standard osc 2.2 , whereas in my mind i am thinking about those heavily added-on shops. my concern is to do with the 'mayhem' created by the upgrade of mysql from v4 to v5 just a couple of years ago when i spent, or rather, wasted, lots of time updating scripts. btw, it seams osc2.3.1 still uses the "array_merge($sql_data_array, $insert_sql_data)" the same as the earlier osc versions. dont if theres some magic somewhere in v2.3.1 that i am aware of? dont get me wrong. i am not against technical progress. just feel like it has to do slowly, and i think sometimes the progess is made by purely peer to peer review or pressure. Ken
  15. GemRock

    security issue with OSC V3

    ithink i know the answer, which is: there is no such thing as free lunch.:) ken
×