New book on WordPress Theme Development: WordPress Themes In Depth
2006
Yearly Archive

WordPress Search Function Notes

Code to call an external WordPress search form: <?php include (TEMPLATEPATH . “/searchform.php”); ?> Code for a standard, inline WordPress search form: <form id=”searchform” method=”get” action=”<?php echo $_SERVER['PHP_SELF']; ?>”> <p><input name=”s” type=”text” id=”s” size=”33″ maxlength=”99″ /> <input type=”submit” class=”submit” value=”Search &raquo;” /></p> </form> Code to search through multiple categories when using customized, individual category pages: <form id=”searchform” method=”get” action=”<?php echo $_SERVER['PHP_SELF']; ?>”> <p><input name=”s” type=”text” id=”s” size=”33″ maxlength=”99″ /> <input type=”hidden” name=”cat” value=”1,2,3,4,5,6″ /> <input type=”submit” class=”submit” value=”Search &raquo;” /></p> </form> Code to try if the search function fails and your blog is located in a directory other than root: […] Read more »

Backup that Database with phpMyAdmin

DB Export Settings Backing up your database as often as possible is essential. For WordPress, as well as for other applications, plugins and other scripts that help automate the task are easily obtainable. However, for several reasons, it is a good idea to understand the process of manually creating a backup copy of your database. This brief tutorial1 should help cement the process into a solid reference. We are assuming that you have an SQL database and have access via phpMyAdmin. Before reading through the gory details written below, check out the screenshot to the left (click on the image). […] Read more »

New Online Vector Drawing Tool

LiTha-Paint Quality web-based vector drawing in effect. Check out LiTha-Paint, a promising new online vector drawing tool. The software is currently in alpha, yet is already full-featured and easy to use. LiTha-Paint steps beyond the paltry selection of Flash/VML/SVG online drawing tools, providing versatility and universality via HTML and JavaScript. Perhaps all this Web 2.0 business is worthwhile after all.. Update: Unfortunately, LiTha-Paint crashed due to lack of funds (welcome to the club). However, this particular post has now served its purpose by providing insight (via the comments section) into the wonderful world of mikons.com (404 link removed), a very […] Read more »

Lightbox + FancyTooltips Bug Fix

For those of us enjoying the stylish functionality of Lightbox or any of its many incarnations, images "magically" overlay the window and unfold, revealing navigational buttons, image count, and of course the image titles. For those of us enjoying the stylish functionality of FancyTooltips (original link now 404 @ http://victr.lm85.com/projects/fancytooltips/) or any of its many incarnations, title and alt attributes manifest as stylish displays of CSS brilliance. However, for those of us employing both features, there is a potential JavaScript conflict. This conflict makes it impossible for Lightbox to display the contents of title attributes associated with images. Thus, if […] Read more »

Website Attack Recovery

Recently, every website on our primary server was simultaneously attacked. The offending party indiscriminately replaced the contents of every index file, regardless of its extension or location, with a few vulgar lines of code, which indicated intention, identity, and influence. Apparently, the attack occurred via Germany, through a server at the University of Hamburg. This relatively minor attack resulted in several hours of valuable online education. In this article, it is our intention to share experience with website attack recovery. This article is aimed at website developers, designers, and administrators. Read more »

Dead Letter Art Website Update

A new Dead Letter Art website is in the works and coming soon. The new site enhances previous content with dynamic features and improved organization. The new site has also been updated to include more archived content, including ancient issues and special projects. Additionally, some keen Ajax functionality kicks the “fun” up a notch. Anticipated release date: September 1, 2006. Check out the old, sickly green website here (update 9/2011: green site has been removed). Update: [ 02/01/07 ] — The new Dead Letter Art website is now in full effect! Check it out at DeadLetterArt.com. Browse the infamous DLa […] Read more »

Native Sun Botanicals Website

The Native Sun Botanicals website is now online. Native Sun Botanicals (NSB) specified a precise “look and feel” for their site, which is currently a “brochure” site that conveys some basic product information. As a botanical manufacturer/supplier, NSB strives to present a clean, refreshing image that is sophisticated yet simple. The site is designed to be standards-based, accessible, and optimized for search engines. As NSB develops its product line, the site will expand to incorporate database-driven, dynamic content. In the meantime, several key site elements will be added, such as business and contact information. Monzilla Media is providing complete website […] Read more »

Press Time

After a few weeks of utter silence here at Perishable Press, it is time to post some fresh material. We have a few interesting — perhaps useful — articles coming up, including Website Attack Recovery, Lightbox/Tooltips Bug Fix, Even More Server Drama, and even a few posts covering recent events, tips, and other general nonsense. Things quiet down around here while we are working on new websites, but new content is always anticipated in between projects. We enjoy sharing insights and other news with readers whenever possible, and always enjoy hearing from visitors and guests. So, as the intense summer […] Read more »

July 2006

like fast and stuff with fingers splashing code, head spinz and and. here again to share the now without reservation a calm deliberation to accomplish what must be done. that’s all for now — gotta run.. ..wake me up when september ends. Read more »

Backup Block Senders List in Outlook Express

Follow these steps to backup the “Block Senders” list in Outlook Express: From the Desktop, click Start then Run. In the Open box, type regedit then OK. Locate and click the following registry subkey: HKEY CURRENT USER\Identities\(Identity Number)\Software\Microsoft\Outlook Express\5.0\Block Senders Go to the Registry menu and select Export Registry File. From the Save In box, change the location to your desktop. At the File Name box, type “Blocked Senders[date].reg” then Save. Go to the Registry menu and chose exit. To restore a backup, simply right-click on the “Blocked Senders[date].reg” file that you wish to restore and select “merge.” Read more »

Amazing Keyboard Shortcuts

Well, they aren’t really that amazing, but for Windows and Linux users, they sure save time. Ctrl+A: select all Ctrl+C: copy Ctrl+F: find Ctrl+G: find again or find next Ctrl+P: print Ctrl+S: save web page as Ctrl+T: open new tab Ctrl+U: view source code Ctrl+V: paste Ctrl+X: cut Ctrl+Y: redo Ctrl+Z: undo Alt+Tab: cycle through open programs Ctrl+Page Up: navigate forward through open tabs Ctrl+Page Down: navigate backward through open tabs Esc: stops the current tab’s web page from loading Ctrl+Shift+R: total refresh of the current web page — clears out the cache Ctrl+- and Ctrl++: adjust font size — […] Read more »

Geek Code Nonsense

I found this interesting: Enlighten Encode Decode (2012/05/19: 404 link removed) Apparently, I am defined as: GFA d-@ s:- a C++ U@ P@ L@ E@ W+++ !N !o K–? w@ O@ M@ !V PS@ PE@ Y@ PGP@ t !5 !X R@ tv– b+ DI !D G@ e+ h@ r+++ y+++ Read more »

The htaccess Rules for all WordPress Permalinks

Update 2012/07/15 all code updated with the new .htaccess rules (changed in WP 3.0). The code in this article should work with all versions of WordPress. </update> I recently performed a series of tests on a fresh installation of WordPress 2.8.6 to determine the exact htaccess rewrite rules that WordPress writes to its htaccess file for various permalink configurations. Under the WP admin option menu, WordPress lists four choices for permalink structure: Default: http://perishablepress.com/press/?=123 Date and name based: http://perishablepress.com/press/index.php/2006/06/14/sample-post/ Numeric: http://perishablepress.com/press/index.php/archives/123 Custom: /%year%/%monthnum%/%day%/%postname%/ The "default" option is to not use permalinks. The "date and name based" setting invokes the /index.php/%year%/%monthnum%/%day%/%postname%/ […] Read more »

Get Back

The Internet Archive Wayback Machine is a trip into the online past, offering glimpses of ancient website relics. Reaching back through the virtual dark ages of 1996, the Wayback Machine chronicles over 55 billion pages. Although many of the pages appear incomplete due to missing images, the Wayback Machine provides an invaluable resource, enabling users to experience and learn from the arcane internet of yesterday. Check out these archaic online offerings: netscape.com, circa December 31, 1996 microsoft.com, circa October, 1996 The first Google website, circa late 1998 Read more »

Meatspace via Cyberspace

Within the last few years, the convergence of satellite imagery, digital technology, and the world wide web has spawned a host of sophisticated online navigational applications. Perhaps the most significant development involves Google's relatively new map technology, which brings users Google Maps and Google Earth. Whereas Google Maps provides an online navigational resource, Google Earth is a free, fully downloadable software application that brings that literally brings the world to your desktop. A few minutes after downloading and installing Google Earth, we found ourselves amazed, surfing the globe from Seattle to Paris, zooming in from thousands of miles above the […] Read more »

Passing Quotation Marks via wp_link_pages

According to the WordPress Codex 1, it is possible to pass quotation marks via the parameters of the function, wp_link_pages(). This would enable users to assign a particular css class or id to the function output, thereby providing greater design and behavioral control over that particular object. But alas, as reported several times in the WordPress Codex 2, wp_link_pages() is unable to pass quotes without causing errors. To fix this, we open template-functions-post.php and find wp_link_pages(), which is located around line #121 (for WP 2.0.2). The fix is easy, simply edit the <p> in the following lines: $r['before'] = ‘<p>’ […] Read more »