Wordpress php comment


post_password) && $_COOKIE['wp-postpass_'.COOKIEHASH]!=$post->post_password): ?> 
 

 
  

user_id == 1) $author_comment = 'author-comment'; } ?>
  • > comment_author_email, '96', 'path_to_default'); ?> comment_approved == '0'): ?>
    Your comment is awaiting moderation
    'Reply', 'login_text' => 'Log in to reply', 'depth' => $depth ))); ?>
  • Continue Reading

    Steps for Fast load webpage on Slow network

        Make the Web Fast
    Step 1.avoid third party java-script for your Website.
    
    
    For many script-intensive applications, the bulk of the JavaScript code handles user-initiated events, such as mouse-clicking and dragging, form entry and submission, hidden elements expansion, and so on. All of these user-triggered events occur after the page is loaded and the onload event is triggered. Therefore, much of the delay in the "critical path" (the time to load the main page at startup) could be avoided by deferring the loading of the JavaScript until it's actually needed. While this "lazy" method of loading doesn't reduce the total JS payload, it can significantly reduce the number of bytes needed to load the initial state of the page, and allows the remaining bytes to be loaded asynchronously in the background.
    To use this technique, you should first identify all of the JavaScript functions that are not actually used by the document before the onload event. For any file containing more than 25 uncalled functions, move all of those functions to a separate, external JS file. This may require some refactoring of your code to work around dependencies between files. (For files containing fewer than 25 uncalled functions, it's not worth the effort of refactoring.)
    Then, you insert a JavaScript event listener in the head of the containing document that forces the external file to be loaded after the onload event. You can do this by any of the usual scripting means, but we recommend a very simple scripted DOM element (to avoid cross-browser and same-domain policy issues). Here's an example (where "deferredfunctions.js" contains the functions to be lazily loaded):
    
    
    
    
    
    
    Step 2.use always .png Format for Images.it is Suitable for web pages .
    
    
    Choose an appropriate image file format.
    The type of an image can have a drastic impact on the file size. Use these guidelines:
    • PNGs are almost always superior to GIFs and are usually the best choice. IE 4.0b1+, Mac IE 5.0+, Opera 3.51+ and Netscape 4.04+ as well as all versions of Safari and Firefox fully support PNG, including transparency. IE versions 4 to 6 don't support alpha channel transparency (partial transparency) but they support 256-color-or-less PNGs with 1-bit transparency (the same that is supported for GIFs). IE 7 and 8 support alpha transparent PNGs except when an alpha opacity filter is applied to the element. You can generate or convert suitable PNGs with GIMP by using "Indexed" rather than "RGB" mode. If you must maintain compatibility with 3.x-level browsers, serve an alternate GIF to those browsers.
    • Use GIFs for very small or simple graphics (e.g. less than 10x10 pixels, or a color palette of less than 3 colors) and for images which contain animation. If you think an image might compress better as a GIF, try it as a PNG and a GIF and pick the smaller.
    • Use JPGs for all photographic-style images.
    • Do not use BMPs or TIFFs.
    Step 3. All File like HTML,CSS,JAVASCRPT Stored in your Server or fast web server host. like google code ,github,and   


    Tip: When you run Page Speed against a page referencing CSS files, it identifies all CSS rules that don't apply to that page.
    
    
    Step 4. Removing or deferring style rules that are not used by a document avoid downloads unnecessary bytes and allow the browser to start rendering sooner.
    
    
    Before a browser can begin to render a web page, it must download and parse any stylesheets that are required to lay out the page. Even if a stylesheet is in an external file that is cached, rendering is blocked until the browser loads the stylesheet from disk. In addition, once the stylesheet is loaded, the browser's CSS engine has to evaluate every rule contained in the file to see if the rule applies to the current page. Often, many web sites reuse the same external CSS file for all of their pages, even if many of the rules defined in it don't apply to the current page.The best way to minimize the latency caused by stylesheet loading and rendering time is to cut down on the CSS footprint; an obvious way to do this is to remove or defer CSS rules that aren't actually used by the current page. 


    
    
    
    
    
    
    Continue Reading

    Proxy for Facebook ip address [2013]

    The situation nowadays many brothers blocked Facebook too, I would be allowed to post their IP range has been tested and run by nearly 1 month now. Make sure the speed is very fast and stable. 
    This is a new IP range to the current Facebook, this IP belongs to its range Akamai Content Delivery, a service provider partners Proxy for Facebook , you complete peace of mind .
    • Facebook.com60.254.175.73 60.254.175.73 www.facebook.com
    • 60.254.175.73 www.logins.facebook.com
    • logins.facebook.com 60.254.175.73 apps.facebook.com 153.16.15.71 60.254.175.73
    • www.connect.facebook. com graph.facebook.com 60.254.175.73 60.254.175.73
    • static.ak.connect.facebook.comdevelopers.facebook.com 60.254.175.73 60.254.175.73 error.facebook.com
    Copy the above into the file C: \ WINDOWS \ system32 \ drivers \ etc \ hosts
    Note: There will be a number of anti-virus software reported hosts file is trojan. Actually not, the default anti-virus that hosts file contains the IP address unknown, precisely because it would not host the files for download. You need to temporarily disable the anti-virus software, and download files allow hosts (including the defense of MS Windows)
    Continue Reading

    Viber has been on computers running Windows and Mac [Download]

    Viber on MAC and PC
    
    
    Viber has just released the official version for computers running Windows and Mac OS. Earlier this OTT applications for mobile devices.
    With this version, PC users running OS 2 above can call VoIP and free messaging between mobile phones and computers together (of course these devices have built Viber) . 
    to use the software, the user the option to download the version for your OS Viber on the home page, then proceed with normal installation.To activate, the user will enter registration number, then there is a message containing code sent to your phone and use this code to activate, then use as on mobile devices.
    With Viber, users can message, phone call or even video calls right on your computer. If the phone has been used for pre-registration Viber, contacts in the phone book of the phone number that will be synchronized and the user can select a call or message without having to re-enter the contacts.  now, Viber already available for Windows, Mac, iOS, Android, Windows Phone, BlackBerry, Nokia and bada. Users can choose the version for your OS

    1. Install ooVoo and make a test call to make sure your VoIP capabilities are working fine.
    2. Download Bluestacks Android emulator from this direct link.
    3. Install Bluestacks on your windows 8 PC.
    4. Search for Viber on your Bluestacks.
    5. Install Viber and set it up.
    6. Try making a phone call through Viber and most probably it will be working.
    7. Also, try sending a text message to a friend of yours and see if it is working.
    8. If everything is working, you can start using Viber on your PC now. 
    Continue Reading

    Source Code for Dynamic unread count Favicon in PHP

    <?php
    Read the favicon template from favicon.png /
    / //file from current directory
    con.png"); //$im = imagecreatefromjpg("f
    $im = imagecreatefrompng("fav iavicon.jpg"); //using this function to load favicon of jpeg type
    load favicon of bmp type /* Read the character which needs to be added in favicon from
    //$im = imagecreatefrombmp("favicon.bmp"); //using this function to * get request */ if(isset($_GET['char']) && !empty($_GET['char'])) { $string = $_GET['char']; } else {
    the favicon */ $bg = imagecolorallocate($im, 255, 255, 255);
    /* If no character is specified; add some default value */ $string = 'V'; } /* background color fo r /* foreground (font) color for the favicon */ $black = imagecolorallocate($im, 0, 0, 0); /* Write the character in favicon
    string, $black); header('Content-type: imag
    * arguements: image, fontsize, x-coordinate, * y-coordinate, characterstring, color */ imagechar($im, 2, 5, 1, $e/png'); imagepng($im); ?>
    Continue Reading

    w3c online tool HTML TIDY auto Correct to Valid HTML file

      Introduction to TIDY

    When editing HTML it's easy to make mistakes. Wouldn't it be nice if there was a simple way to fix these mistakes automatically and tidy up sloppy editing into nicely layed out markup? Well now there is! Dave Raggett's HTML TIDY is a free utility for doing just that. It also works great on the atrociously hard to read markup generated by specialized HTML editors and conversion tools, and can help you identify where you need to pay further attention on making your pages more accessible to people with disabilities.
    Tidy is able to fix up a wide range of problems and to bring to your attention things that you need to work on yourself. Each item found is listed with the line number and column so that you can see where the problem lies in your markup. Tidy won't generate a cleaned up version when there are problems that it can't be sure of how to handle. These are logged as "errors" rather than "warnings".
    Dave Raggett has now passed the baton for maintaining Tidy to a group of volunteers working together as part of the open source community at Source Forge. The source code continues to be available under an open source license, and you are encouraged to pass on bug reports and enhancement requests at http://tidy.sourceforge.net.
    More recently, Tidy has been extended to support HTML5 and to clean up HTML exported from Google Docs. The source code is available on github, see tidy-html5.
    If you find HTML Tidy useful and you would like to say thanks, then please send me a (paper) postcard or other souvenir from the area in which you live along with a few words on what you are using Tidy for. It will be fun to map out where Tidy users are to be found! My postal address is given at the end of this file.
    The W3C public email list devoted to HTML Tidy is: <html-tidy@w3.org>. To subscribe send an email to html-tidy-request@w3.org with the word subscribe in the subject line (include the word unsubscribe if you want to unsubscribe). The archive for this list is accessible online. If you would like to contact the developers, or you just want to submit an enhancement request or a bug report, please visit http://tidy.sourceforge.net.
    Tidy can now perform wonders on HTML saved from Microsoft Word 2000! Word bulks out HTML files with stuff for round-tripping presentation between HTML and Word. If you are more concerned about using HTML on the Web, check out Tidy's "Word-2000" config option! Of course Tidy does a good job on Word'97 files as well!
    Tidy features in an article by Scott Nesbitt on webreview.com, and more recently on Dave Central's Best of Linux, and as tool of the month on Unix Review by Joe Brockmeier, who writes:
    "One thing I love about the UNIX philosophy is the idea that each program should do one job and do it really well. There are zillions of small tools for UNIX-type OSes that make life much easier and are hugely useful, but they don't necessarily get written about. They certainly don't receive the same kind of coverage that Apache and Sendmail receive. One of my favorites, HTML Tidy, is a tool for HTML/Web development that I think will interest a lot of folks. HTML Tidy cleans up HTML produced by WYSIWYG editors and such."
    Tidy is available as a downloadable binary, as source code (ANSI C), or as an online service at W3C, Info Network, HTML Help's site Valet and other sites  .

       

       Tutorials for HTML and CSS

    If you are just starting off and would like to know more about how to author Web pages, you may find my guide to HTML and CSS helpful. Please send me feedback on this, and I will do my best to further improve it. cc

       HTML Slidy - a Web based alternative to PowerPoint

    A new relative to Tidy, HTML Slidy is my open source presentation tool for slides written in XHTML. It provides an accessible alternative to traditional presentation tools like Microsoft PowerPoint. Best of all, there is no software to install, it just works from the Web!

      Examples of TIDY at work

    Tidy corrects the markup in a way that matches where possible the observed rendering in popular browsers from Netscape and Microsoft. Here are just a few examples of how TIDY perfects your HTML for you:
    • Missing or mismatched end tags are detected and corrected
         <h1>heading
         <h2>subheading</h3>
      is mapped to
         <h1>heading</h1>
         <h2>subheading</h2>
    • End tags in the wrong order are corrected:
         <p>here is a para <b>bold <i>bold italic</b> bold?</i> normal?
      
      is mapped to
         <p>here is a para <b>bold <i>bold italic</i> bold?</b> normal?
      
    • Fixes problems with heading emphasis
         <h1><i>italic heading</h1>
         <p>new paragraph
      In Netscape and Internet Explorer this causes everything following the heading to be in the heading font size, not the desired effect at all!
      Tidy maps the example to
         <h1><i>italic heading</i></h1>
         <p>new paragraph
    • Recovers from mixed up tags
         <i><h1>heading</h1></i>
         <p>new paragraph <b>bold text
         <p>some more bold text
      Tidy maps this to
         <h1><i>heading</i></h1>
         <p>new paragraph <b>bold text</b>
         <p><b>some more bold text</b>
    • Getting the <hr> in the right place:
         <h1><hr>heading</h1>
         <h2>sub<hr>heading</h2>
      Tidy maps this to
         <hr>
         <h1>heading</h1>
      <h2>sub</h2>
      eading<
      <hr> <h2>
      h/h2>
    • Adding the missing "/" in end tags for anchors:
         <a href="#refs">References<a>
      
      Tidy maps this to
         <a href="#refs">References</a>
      
    • Perfecting lists by putting in tags missed out:
         <body>
         <li>1st list item
         <li>2nd list item
      is mapped to
         <body>
      <ul>
      st list item</li> <li>
      <li> 12nd list item</li>
      </ul>
    • Missing quotes around attribute values are added
      Tidy inserts quote marks around all attribute values for you. It can also detect when you have forgotten the closing quote mark, although this is something you will have to fix yourself.
    • Unknown/Proprietary attributes are reported
      Tidy has a comprehensive knowledge of the attributes defined in the HTML 4.0 recommendation from W3C. This often allows you to spot where you have mistyped an attribute or value.
    • Proprietary elements are recognized and reported as such.
      Tidy will even work out which version of HTML you are using and insert the appropriate DOCTYPE element, as per the W3C recommendations.
    • Tags lacking a terminating '>' are spotted
      This is something you then have to fix yourself as Tidy is unsure of where the > should be inserted.
    Continue Reading