Echo Px Web Technologies Pvt. Ltd.


Notes

  • While positioning a div like for example, position:relative; top:-50px; some extra space may occur at the bottom of the div. This can be removed by adding margin-bottom:-50px; (i.e. the same value set for top) to the div.

  • Issue: The uploaded images are stored in sites->all->defaults->files instead of sites->all->defaults->files->imagecache->[preset subdirectories].

    To fix this go to [yourwebsitename.com]/admin/settings/file-system and change the 'Temporary directory' to '/tmp'.Then save it.

  • The IE application error could be something like this:

    "The instruction at "0x052c70d0" referenced memory at "0x052c70d0". The memory could not be "read".

    To fix this:
    Go to Tools -> Manage Add-ons, disable IE Developer Toolbar BHO and restart IE

  • Many times you require to put in browser-specific HTML / CSS in your files, because most often the pages are rendered differently (esp. IE). You can detect what browser the user is using with the help of PHP. In your PHP file, put the following code first:

    1. <?php
    2. $msie = strpos($_SERVER["HTTP_USER_AGENT"], 'MSIE') ? true : false;
    3. $firefox = strpos($_SERVER["HTTP_USER_AGENT"], 'Firefox') ? true : false;
    4. $safari = strpos($_SERVER["HTTP_USER_AGENT"], 'Safari') ? true : false;
    5. $chrome = strpos($_SERVER["HTTP_USER_AGENT"], 'Chrome') ? true : false;
    6. ?>

  • This error may occur during Drupal installation as:

    The following error must be resolved before you can continue the installation process:
    register_globals is enabled. Drupal requires this configuration directive to be disabled. Your site may not be secure when register_globals is enabled.

    Follow these steps to fix this.

    1. Create a folder for all the menu button images within your current project folder and put all your menu button images in it. These include 2 sets of images. One set is for 'on mouse over' and the other set is for 'on mouse out'.
    2. In this demo I have used the following menu button images:
      set1 - home_on.jpg, about_us_on.jpg, products_on.jpg, services_on.jpg – for 'on mouse over' and
      set2 - home_off.jpg, about_us_off.jpg, products_off.jpg, services_off.jpg – for 'on mouse out'
  • Include the following code anywhere between <head></head> tag to remove the imagetoolbar in internet explorer.

    1. <meta http-equiv="imagetoolbar" content="no">

    1. Open a new flash 8 professional document & set the desired background color, width and height of the document. Keep the frame rate at 12fps.
  • Apply this css style to remove the dotted border around links that is put by Firefox:

    1. a:active, a:focus {
    2. outline: 0
    3. }

    1. /* Set default timezone for the site */
    2. date_default_timezone_set('Asia/Calcutta');
    3. $curtime = mktime();
    4. /* mktime (hour, minutes, seconds, month, day, year) */
    5. $reqtime = mktime(9,50,0,12,11,2009);
    6. $msg = "SITE IS UNDER CONSTRUCTION";
    7. if ( $curtime < $reqtime )
    8. {
    9. echo $msg;
    10. return;
    11. }