Profile

All time reputation: 489

Achievement

first submission:submitting first snipplet popular snippet:having a snipplet with 20 favorites

jonhenshaw's Recent Snippets



« Prev 1 2
  1. FAV

    Get Current Page URL (Context) for WordPress

    This script will return the URL for the current page you're on, including category and tag pages.
    PHP saved by 12 people 5 views posted 10 years ago jonhenshaw
  2. FAV

    How to Flush DNS in Mac OS X 10.5 Leopard

    Open Terminal and enter this command.
    Bash saved by 1 person 0 views posted 11 years ago jonhenshaw
  3. FAV

    Manage Multiple WordPress Sites With One Database and One Code Base

    This is a simple but powerful tweak to the wp-config.php file that will make it easy to run multiple websites using one database and codebase. Simply change "yourdomain.com" with your domain and that's it. Repeat that line for new domains.
    PHP saved by 8 people 4 views posted 11 years ago jonhenshaw
  4. FAV

    Create Symbolic Link on Unix / Linux

    Example: ln -s /usr/local/apache/logs ./logs
    Bash saved by 48 people 2 views posted 11 years ago jonhenshaw
  5. FAV

    HTML Test Page for CSS Style Guide

    Great page for testing the style guide for a website.
    HTML saved by 819 people 237 views posted 11 years ago jonhenshaw
  6. FAV

    How To Style A Horizontal Rule With CSS (IE Friendly)

    A good CSS example of how to style Horizontal Rule (HR) elements. It's also Internet Explorer (IE) friendly.
    CSS saved by 3 people 1 views posted 11 years ago jonhenshaw
  7. FAV

    Howto Convert Filenames to All Lowercase

    Line 6 starts a loop (which ends with line 15). The ls command returns a list of filenames which are sequentially assigned to the shell variable x. The if test (lines 8 through 10) checks to see if the current filename is that of a plain file. If not...
    Bash 0 views posted 11 years ago jonhenshaw
  8. FAV

    Download vCard Script

    Features: Complies to version 2.1 of the vCard specification Supports the following attributes: * Name * Formatted Name * Phone and fax numbers * Birthday * Address * Address label * email address * notes...
    PHP saved by 6 people 12 views posted 11 years ago jonhenshaw
  9. FAV

    Template Query Debug

    I often find something like this lurking at the end of my base templates - it'll show you which queries were run while generating the current page, but they'll start out hidden so as not to be a pain. Of course, before this works, you'll need to s...
    Django saved by 9 people 2 views posted 11 years ago jonhenshaw
  10. FAV

    Anti-Aliased Curvy Corners

    curvyCorners is a free JavaScript program that will create on-the-fly rounded corners for any HTML DIV element, that look as good as any graphically created corners.
    JavaScript saved by 12 people 5 views posted 12 years ago jonhenshaw
  11. FAV

    Blood Type Drop Down List for a Web Form

    A list of blood types for an online form.
    HTML 0 views posted 12 years ago jonhenshaw
  12. FAV

    Skin Tone Drop Down List for a Web Form

    A drop down list of skin tone for an online form.
    HTML 2 views posted 12 years ago jonhenshaw
  13. FAV

    Distinguishing Facial Hair Drop Down List for a Web Form

    A drop down list of facial hair options for an online form.
    HTML 1 views posted 12 years ago jonhenshaw
  14. FAV

    Hair Color Drop Down List for a Web Form

    A drop down list of hair color for an online form.
    HTML 5 views posted 12 years ago jonhenshaw
  15. FAV

    Eye Color Drop Down List for a Web Form

    A drop down list of eye colors for an online form.
    HTML 2 views posted 12 years ago jonhenshaw
  16. FAV

    50 Most Common Languages Spoken in the United States - Drop Down List for an Online Form

    This is a list of the fifty most commonly spoken languages in the United States of America. The list can be used in an online form.
    HTML 1 views posted 12 years ago jonhenshaw
  17. FAV

    Resident Status Drop Down List for Web Forms

    Drop down list for resident status for an online form.
    HTML 0 views posted 12 years ago jonhenshaw
  18. FAV

    Country Drop Down List for Web Forms

    A comprehensive list of countries for an online form.
    HTML saved by 144 people 25 views posted 12 years ago jonhenshaw
  19. FAV

    Race / Ethnicity Drop Down List for Web Forms

    Here's a quick list for collecting the race/ethnicity of a user in an online form.
    HTML 3 views posted 12 years ago jonhenshaw
  20. FAV

    IE 6 Transparent PNG Fix - SuperSleight

    Getting SuperSleight running on a page is quite straightforward, you just need to link the supplied JavaScript file into your document inside conditional comments so that it is delivered to only Internet Explorer 6 or older.
    JavaScript saved by 27 people 1 views posted 12 years ago jonhenshaw
  21. FAV

    CSS PNG Image Fix for IE

    The selector portion of the CSS rule targets which XHTML tags/classes this rule will be applied to. At first glance, it looks like all img tags as well as all tags with a class of "png". You’ll notice the * html in front of both of these. Wait, the...
    CSS saved by 135 people 13 views posted 12 years ago jonhenshaw
  22. FAV

    Email Form to Send Message on Web Page

    Step 1: Copy and paste the e-mail Form Code into a 'contact.php' page (must be a html/php page on a server that allows php!). Step 2: Copy n paste the sendeail.php code into a new file. Change the YourEmail section to include your email address. T...
    PHP saved by 12 people 5 views posted 12 years ago jonhenshaw
  23. FAV

    Password Protect Folder / Directory with htaccess and htpasswd on Apache and Linux / Unix

    Good info here too: http://www.ilisys.com.au/support/linux-password-protect/
    Bash saved by 32 people 4 views posted 12 years ago jonhenshaw
  24. FAV

    Textpattern State List for Zem Contact (zem_contact_reborn)

    This will create a State select list for Textpattern if you're using the zem_contact_reborn form plugin
    Textpattern 0 views posted 12 years ago jonhenshaw
  25. FAV

    Show Random Image, File and/or HTML

    This randomly displays 1 of the 5 arrays (amount of arrays to choose from can be reduced or increased)
    PHP saved by 3 people 5 views posted 12 years ago jonhenshaw
  26. FAV

    Reverse the Default Page Title Order in Textpattern

    Textpattern's default page title markup -- txp:page_title -- always places the site name in front of the individual page name. This is irritating, because I prefer to have the interior content title come before the site title itself -- it just makes...
    Textpattern saved by 3 people 2 views posted 12 years ago jonhenshaw
  27. FAV

    Optimize Mac OS X Mail.app

    Over time, your Mac's Mail program can start to feel sluggish because, like any database, over time it needs to optimized.
    Bash saved by 16 people 2 views posted 12 years ago jonhenshaw
  28. FAV

    Open New Window Using REL External Instead of Deprecated Target Attribute

    Excellent Script for opening new windows from links while adhering to modern HTML/XHTML standards. Simple put rel="nofollow" in the anchor and link to the script within the HEAD. I prefer to remove the text that states the link opens in an externa...
    JavaScript saved by 1 person 4 views posted 12 years ago jonhenshaw
  29. FAV

    Apache Graceful Restart

    Enter this command in Terminal to restart Apache. Especially useful after you've made changes to the hosts file.
    Bash saved by 2 people 0 views posted 12 years ago jonhenshaw
  30. FAV

    How to Flush Your DNS Cache on Apple Mac OS X

    Run this command in the Terminal on Mac OS X to flush the DNS cache on your computer. This is especially helpful when making changes to the host file.
    Bash saved by 8 people 2 views posted 12 years ago jonhenshaw
« Prev 1 2