Profile
Achievement
jonhenshaw's Recent Snippets
- All /
This script will return the URL for the current page you're on, including category and tag pages.
3
1373
posted 14 years ago by jonhenshaw
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.
2
1256
posted 16 years ago by jonhenshaw
A good CSS example of how to style Horizontal Rule (HR) elements. It's also Internet Explorer (IE) friendly.
3
1136
posted 16 years ago by jonhenshaw
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...
0
1152
posted 16 years ago by jonhenshaw
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...
6
2255
posted 16 years ago by jonhenshaw
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...
1
1072
posted 16 years ago by jonhenshaw
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.
3
1152
posted 16 years ago by jonhenshaw
A drop down list of facial hair options for an online form.
0
1157
posted 16 years ago by jonhenshaw
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.
0
2461
posted 16 years ago by jonhenshaw
Here's a quick list for collecting the race/ethnicity of a user in an online form.
0
3341
posted 16 years ago by jonhenshaw
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.
3
1149
posted 16 years ago by jonhenshaw
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...
15
2932
posted 17 years ago by jonhenshaw
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...
3
1295
posted 17 years ago by jonhenshaw
Good info here too: http://www.ilisys.com.au/support/linux-password-protect/
2
1536
posted 17 years ago by jonhenshaw
This will create a State select list for Textpattern if you're using the zem_contact_reborn form plugin
0
1309
posted 17 years ago by jonhenshaw
This randomly displays 1 of the 5 arrays (amount of arrays to choose from can be reduced or increased)
3
997
posted 17 years ago by jonhenshaw
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...
3
1134
posted 17 years ago by jonhenshaw
Over time, your Mac's Mail program can start to feel sluggish because, like any database, over time it needs to optimized.
4
1008
posted 17 years ago by jonhenshaw
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...
1
1199
posted 17 years ago by jonhenshaw
Enter this command in Terminal to restart Apache. Especially useful after you've made changes to the hosts file.
2
999
posted 17 years ago by jonhenshaw
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.
2
1410
posted 17 years ago by jonhenshaw