-- Dumping data for table `craft_entrydrafterrors`
--

set autocommit=0;
INSERT INTO `craft_entrydrafterrors` VALUES (1,3,'Entry is missing its type ID'),(2,2,'Entry is missing its type ID'),(3,1,'Entry is missing its type ID');
commit;

--
-- Dumping data for table `craft_entrydrafts`
--

set autocommit=0;
INSERT INTO `craft_entrydrafts` VALUES (1,774,3,1,'Draft 1',NULL,'{\"typeId\":null,\"authorId\":\"1\",\"title\":\"VOA\",\"slug\":\"voa\",\"postDate\":null,\"expiryDate\":null,\"enabled\":0,\"fields\":{\"2\":\"\",\"5\":\"\",\"6\":\"\",\"15\":\"\",\"16\":\"\",\"4\":\"http:\\/\\/www.voa.org\\/\"}}','2016-01-22 03:04:33','2016-01-22 03:04:33','b36641f6-a684-4c6b-ad7d-9cc997253420',1),(2,775,3,1,'Draft 1',NULL,'{\"typeId\":null,\"authorId\":\"1\",\"title\":\"American Farmland Trust\",\"slug\":\"american-farmland-trust\",\"postDate\":null,\"expiryDate\":null,\"enabled\":0,\"fields\":{\"2\":\"\",\"5\":\"\",\"6\":\"\",\"15\":\"\",\"16\":\"\",\"4\":\"https:\\/\\/www.farmland.org\\/\"}}','2016-01-22 03:05:04','2016-01-22 03:05:04','7679e673-6a9e-487c-8aed-edde7eba5508',1),(3,776,3,1,'Draft 1',NULL,'{\"typeId\":null,\"authorId\":\"1\",\"title\":\"PPS Plus\",\"slug\":\"pps-plus\",\"postDate\":null,\"expiryDate\":null,\"enabled\":0,\"fields\":{\"2\":\"\",\"5\":\"\",\"6\":\"\",\"15\":\"\",\"16\":\"\",\"4\":\"http:\\/\\/ppsplus.com\\/\"}}','2016-01-22 03:05:25','2016-01-22 03:05:25','b8dd709b-044f-4b62-9a98-88f18fa7c1a0',1);
commit;

--
-- Dumping data for table `craft_entrytypes`
--

set autocommit=0;
INSERT INTO `craft_entrytypes` VALUES (3,3,35,'Work','work',1,'',NULL,NULL,NULL,'2014-01-18 03:54:24','2020-08-10 21:12:18',NULL,'ba1111ac-f53b-4ee4-b845-23c2a2a9bfc2'),(4,4,28,'Blog','blog',1,'',NULL,NULL,2,'2014-01-18 03:54:40','2020-08-10 21:12:19',NULL,'1072b6c6-03a8-42ea-b22e-eddee9eef02a'),(5,5,23,'About','about',0,'',NULL,'{section.name|raw}',NULL,'2014-01-18 03:55:11','2020-08-10 21:12:18',NULL,'9c1b1e72-ccf7-44b0-b492-efbdf1ae10d8'),(6,6,11,'Contact','contact',0,'',NULL,'{section.name|raw}',NULL,'2014-01-18 03:55:23','2020-08-10 21:12:19',NULL,'8a4d97ba-f743-4c16-8ce0-3d26feedbabf'),(9,4,36,'External Article','externalArticle',1,'',NULL,NULL,1,'2017-09-06 20:03:41','2020-08-10 21:12:18',NULL,'62be586c-775f-41e1-9df2-5cf581f61731'),(10,7,38,'Homepage','homepage',0,'',NULL,'{section.name|raw}',1,'2017-10-04 16:05:46','2020-08-10 21:12:18',NULL,'9b5253fd-80e0-4356-9d8f-5ddd121a197b');
commit;

--
-- Dumping data for table `craft_entryversionerrors`
--

set autocommit=0;
INSERT INTO `craft_entryversionerrors` VALUES (1,701,'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry \'853-5\' for key \'craft_revisions_sourceId_num_unq_idx\'\nThe SQL being executed was: UPDATE `craft_revisions` SET `num`=`num`+4 WHERE (`sourceId`=\'853\') AND (`num` >= \'1\')'),(2,610,'Entry is missing its type ID'),(3,609,'Entry is missing its type ID'),(4,608,'Entry is missing its type ID'),(5,607,'Entry is missing its type ID'),(6,606,'Entry is missing its type ID'),(7,605,'Entry is missing its type ID'),(8,604,'Entry is missing its type ID'),(9,602,'Entry is missing its type ID'),(10,601,'Entry is missing its type ID'),(11,579,'Entry is missing its type ID'),(12,578,'Entry is missing its type ID'),(13,577,'Entry is missing its type ID'),(14,576,'Entry is missing its type ID'),(15,575,'Entry is missing its type ID'),(16,572,'Entry is missing its type ID'),(17,571,'Entry is missing its type ID'),(18,570,'SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`td_craft3`.`craft_relations`, CONSTRAINT `craft_relations_targetId_fk` FOREIGN KEY (`targetId`) REFERENCES `craft_elements` (`id`) ON DELETE CASCADE)\nThe SQL being executed was: INSERT INTO `craft_relations` (`fieldId`, `sourceId`, `sourceSiteId`, `targetId`, `sortOrder`, `dateCreated`, `dateUpdated`, `uid`) VALUES (13, 1279, NULL, 10, 1, \'2019-10-09 16:40:44\', \'2019-10-09 16:40:44\', \'070935eb-951c-499a-9eb2-c16b77e74a8d\')'),(19,545,'Array to string conversion'),(20,544,'Array to string conversion'),(21,543,'Array to string conversion'),(22,542,'Array to string conversion'),(23,541,'Array to string conversion'),(24,540,'Array to string conversion'),(25,539,'Array to string conversion'),(26,538,'Array to string conversion'),(27,537,'Array to string conversion'),(28,536,'Array to string conversion'),(29,535,'Array to string conversion'),(30,534,'Array to string conversion'),(31,533,'Array to string conversion'),(32,532,'Array to string conversion'),(33,531,'Array to string conversion'),(34,530,'Array to string conversion'),(35,529,'Array to string conversion'),(36,528,'Array to string conversion'),(37,527,'Array to string conversion'),(38,526,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(39,525,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(40,524,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(41,523,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(42,522,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(43,521,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(44,520,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(45,519,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(46,518,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(47,517,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(48,516,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(49,515,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(50,514,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(51,513,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(52,512,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(53,511,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(54,510,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(55,509,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(56,508,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(57,507,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(58,506,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(59,505,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(60,504,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(61,503,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(62,502,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(63,501,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(64,500,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(65,499,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(66,498,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(67,497,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(68,496,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(69,495,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(70,494,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(71,493,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(72,492,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(73,491,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(74,490,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(75,489,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(76,488,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(77,487,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(78,486,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(79,485,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(80,484,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(81,483,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(82,482,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(83,481,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(84,480,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(85,479,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(86,478,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(87,477,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(88,476,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(89,475,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(90,474,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(91,473,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(92,472,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(93,471,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(94,470,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(95,469,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(96,468,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(97,467,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(98,466,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(99,465,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(100,464,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(101,463,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(102,462,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(103,461,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(104,460,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(105,459,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(106,458,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(107,457,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(108,456,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(109,455,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(110,454,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(111,453,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(112,452,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(113,451,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(114,450,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(115,449,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(116,448,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(117,447,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(118,446,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(119,445,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(120,444,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(121,443,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(122,442,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(123,441,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(124,440,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(125,439,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(126,438,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(127,437,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(128,436,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(129,435,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(130,434,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(131,433,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(132,432,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(133,431,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(134,430,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(135,429,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(136,428,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(137,427,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(138,426,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(139,425,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(140,424,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(141,423,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(142,422,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(143,421,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(144,420,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(145,419,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(146,418,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(147,417,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(148,416,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(149,415,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(150,414,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(151,413,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(152,412,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(153,411,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(154,410,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(155,409,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(156,408,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(157,407,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(158,406,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(159,405,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(160,404,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(161,403,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(162,402,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(163,401,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(164,400,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(165,399,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(166,398,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(167,397,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(168,396,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(169,395,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(170,394,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(171,393,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(172,392,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(173,391,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(174,390,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(175,389,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(176,388,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(177,387,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(178,386,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(179,385,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(180,384,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(181,383,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(182,382,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(183,381,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(184,380,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(185,379,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(186,378,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(187,376,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(188,375,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(189,374,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(190,373,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(191,372,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(192,371,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(193,370,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(194,369,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(195,368,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(196,367,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(197,366,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(198,365,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(199,364,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(200,363,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(201,362,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(202,361,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(203,360,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(204,359,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(205,358,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(206,357,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(207,356,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(208,355,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(209,354,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(210,352,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(211,351,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(212,350,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(213,349,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(214,348,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(215,347,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(216,346,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(217,345,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(218,344,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(219,343,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(220,342,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(221,341,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(222,340,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(223,339,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(224,338,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(225,337,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(226,336,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(227,335,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(228,334,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(229,333,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(230,332,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(231,331,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(232,330,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(233,329,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(234,328,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(235,327,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(236,326,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(237,325,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(238,324,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(239,323,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(240,322,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(241,321,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(242,320,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(243,318,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(244,317,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(245,316,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(246,312,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(247,311,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(248,310,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(249,309,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(250,307,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(251,306,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(252,305,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(253,304,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(254,302,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(255,301,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(256,300,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(257,299,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(258,298,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(259,296,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(260,294,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(261,291,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(262,290,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(263,289,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(264,287,'Wrong parameters for yii\\base\\Exception([string $message [, long $code [, Throwable $previous = NULL]]])'),(265,279,'Array to string conversion'),(266,278,'Array to string conversion'),(267,277,'Array to string conversion'),(268,276,'Array to string conversion'),(269,275,'Array to string conversion'),(270,274,'Array to string conversion'),(271,273,'Array to string conversion'),(272,272,'Array to string conversion'),(273,271,'Array to string conversion'),(274,270,'Array to string conversion'),(275,269,'Array to string conversion'),(276,268,'Array to string conversion'),(277,267,'Array to string conversion'),(278,266,'Array to string conversion'),(279,265,'Array to string conversion'),(280,264,'Array to string conversion'),(281,263,'Array to string conversion'),(282,262,'Array to string conversion'),(283,261,'Array to string conversion'),(284,260,'Array to string conversion'),(285,259,'Array to string conversion'),(286,258,'Array to string conversion'),(287,257,'Array to string conversion'),(288,256,'Array to string conversion'),(289,255,'Array to string conversion'),(290,254,'Array to string conversion'),(291,253,'Array to string conversion'),(292,252,'Array to string conversion'),(293,251,'Array to string conversion'),(294,250,'Array to string conversion'),(295,249,'Array to string conversion'),(296,248,'Array to string conversion'),(297,247,'Array to string conversion'),(298,246,'Array to string conversion'),(299,245,'Array to string conversion'),(300,244,'Array to string conversion'),(301,243,'Array to string conversion'),(302,242,'Array to string conversion'),(303,241,'Array to string conversion'),(304,240,'Array to string conversion'),(305,239,'Array to string conversion'),(306,238,'Array to string conversion'),(307,237,'Array to string conversion'),(308,236,'Array to string conversion'),(309,235,'Array to string conversion'),(310,234,'Array to string conversion'),(311,233,'Array to string conversion'),(312,232,'Array to string conversion'),(313,231,'Array to string conversion'),(314,230,'Array to string conversion'),(315,229,'Array to string conversion'),(316,228,'Array to string conversion'),(317,227,'Array to string conversion'),(318,226,'Array to string conversion'),(319,225,'Array to string conversion'),(320,224,'Array to string conversion'),(321,223,'Array to string conversion'),(322,222,'Array to string conversion'),(323,221,'Array to string conversion'),(324,220,'Array to string conversion'),(325,219,'Array to string conversion'),(326,218,'Array to string conversion'),(327,217,'Array to string conversion'),(328,216,'Array to string conversion'),(329,215,'Array to string conversion'),(330,214,'Array to string conversion'),(331,213,'Array to string conversion'),(332,212,'Array to string conversion'),(333,211,'Array to string conversion'),(334,210,'Array to string conversion'),(335,209,'Array to string conversion'),(336,208,'Array to string conversion'),(337,207,'Array to string conversion'),(338,206,'Array to string conversion'),(339,205,'Array to string conversion'),(340,204,'Array to string conversion'),(341,203,'Array to string conversion'),(342,202,'Array to string conversion'),(343,201,'Array to string conversion'),(344,200,'Array to string conversion'),(345,199,'Array to string conversion'),(346,198,'Array to string conversion'),(347,197,'Array to string conversion'),(348,196,'Array to string conversion'),(349,195,'Array to string conversion'),(350,194,'Array to string conversion'),(351,193,'Array to string conversion'),(352,192,'Array to string conversion'),(353,191,'Array to string conversion'),(354,190,'Array to string conversion'),(355,189,'Array to string conversion'),(356,188,'Array to string conversion'),(357,187,'Array to string conversion'),(358,186,'Array to string conversion'),(359,185,'Array to string conversion'),(360,184,'Array to string conversion'),(361,183,'Array to string conversion'),(362,182,'Array to string conversion'),(363,181,'Array to string conversion'),(364,180,'Array to string conversion'),(365,179,'Array to string conversion'),(366,178,'Array to string conversion'),(367,177,'Array to string conversion'),(368,176,'Array to string conversion'),(369,175,'Array to string conversion'),(370,174,'Array to string conversion'),(371,173,'Array to string conversion'),(372,172,'Array to string conversion'),(373,171,'Array to string conversion'),(374,170,'Array to string conversion'),(375,169,'Array to string conversion'),(376,168,'Array to string conversion'),(377,167,'Array to string conversion'),(378,166,'Array to string conversion'),(379,165,'Array to string conversion'),(380,164,'Array to string conversion'),(381,163,'Array to string conversion'),(382,162,'Array to string conversion'),(383,161,'Array to string conversion'),(384,160,'Array to string conversion'),(385,159,'Array to string conversion'),(386,158,'Array to string conversion'),(387,157,'Array to string conversion'),(388,156,'Array to string conversion'),(389,155,'Array to string conversion'),(390,154,'Array to string conversion'),(391,153,'Array to string conversion'),(392,152,'Array to string conversion'),(393,151,'Array to string conversion'),(394,150,'Array to string conversion'),(395,149,'Array to string conversion'),(396,148,'Array to string conversion'),(397,147,'Array to string conversion'),(398,146,'Array to string conversion'),(399,145,'Array to string conversion'),(400,144,'Array to string conversion'),(401,143,'Array to string conversion'),(402,142,'Array to string conversion'),(403,141,'Array to string conversion'),(404,140,'Array to string conversion'),(405,139,'Array to string conversion'),(406,138,'Array to string conversion'),(407,137,'Array to string conversion'),(408,136,'Array to string conversion'),(409,135,'Array to string conversion'),(410,134,'Array to string conversion'),(411,133,'Array to string conversion'),(412,132,'Array to string conversion'),(413,131,'Array to string conversion'),(414,130,'Array to string conversion'),(415,129,'Array to string conversion'),(416,128,'Array to string conversion'),(417,127,'Array to string conversion'),(418,126,'Array to string conversion'),(419,125,'Array to string conversion'),(420,124,'Array to string conversion'),(421,123,'Array to string conversion'),(422,122,'Array to string conversion'),(423,121,'Array to string conversion'),(424,120,'Array to string conversion'),(425,119,'Array to string conversion'),(426,118,'Array to string conversion'),(427,117,'Array to string conversion'),(428,116,'Array to string conversion'),(429,115,'Array to string conversion'),(430,114,'Array to string conversion'),(431,113,'Array to string conversion'),(432,112,'Array to string conversion'),(433,111,'Array to string conversion'),(434,110,'Array to string conversion'),(435,109,'Array to string conversion'),(436,108,'Array to string conversion'),(437,107,'Array to string conversion'),(438,106,'Array to string conversion'),(439,105,'Array to string conversion'),(440,104,'Array to string conversion'),(441,103,'Array to string conversion'),(442,102,'Array to string conversion'),(443,101,'Array to string conversion'),(444,100,'Array to string conversion'),(445,99,'Array to string conversion'),(446,98,'Array to string conversion'),(447,97,'Array to string conversion'),(448,96,'Array to string conversion'),(449,95,'Array to string conversion'),(450,94,'Array to string conversion'),(451,93,'Array to string conversion'),(452,92,'Array to string conversion'),(453,91,'Array to string conversion'),(454,90,'Array to string conversion'),(455,89,'Array to string conversion'),(456,88,'Array to string conversion'),(457,87,'Array to string conversion'),(458,86,'Array to string conversion'),(459,85,'Array to string conversion'),(460,84,'Array to string conversion'),(461,83,'Array to string conversion'),(462,82,'Array to string conversion'),(463,81,'Array to string conversion'),(464,80,'Array to string conversion'),(465,79,'Array to string conversion'),(466,78,'Array to string conversion'),(467,77,'Array to string conversion'),(468,76,'Array to string conversion'),(469,75,'Array to string conversion'),(470,74,'Array to string conversion'),(471,73,'Array to string conversion'),(472,71,'Array to string conversion'),(473,70,'Array to string conversion'),(474,69,'Array to string conversion'),(475,68,'Array to string conversion'),(476,67,'Array to string conversion'),(477,66,'Array to string conversion'),(478,65,'Array to string conversion'),(479,64,'Array to string conversion'),(480,63,'Array to string conversion'),(481,62,'Array to string conversion'),(482,61,'Array to string conversion'),(483,60,'Array to string conversion'),(484,59,'Array to string conversion'),(485,58,'Array to string conversion'),(486,57,'Array to string conversion'),(487,56,'Array to string conversion'),(488,55,'Array to string conversion'),(489,54,'Array to string conversion'),(490,53,'Array to string conversion'),(491,52,'Array to string conversion'),(492,51,'Array to string conversion'),(493,50,'Array to string conversion'),(494,49,'Array to string conversion'),(495,48,'Array to string conversion'),(496,47,'Array to string conversion'),(497,46,'Array to string conversion'),(498,45,'Array to string conversion'),(499,44,'Array to string conversion'),(500,43,'Array to string conversion'),(501,42,'Array to string conversion'),(502,41,'Array to string conversion'),(503,40,'Array to string conversion'),(504,39,'Array to string conversion'),(505,38,'Array to string conversion');
commit;

--
-- Dumping data for table `craft_entryversions`
--

set autocommit=0;
INSERT INTO `craft_entryversions` VALUES (38,46,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"javascript-execution-patterns-for-non-web-apps\",\"postDate\":1367427157,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I finally got back to blogging and wrote an article about <a href=\\\"http:\\/\\/viget.com\\/extend\\/javascript-execution-patterns-for-non-web-apps\\\">JavaScript execution patterns<\\/a>, a topic which I recently presented on at the <a href=\\\"https:\\/\\/speakerdeck.com\\/trevor_davis\\/javascript-for-non-web-apps\\\">DC jQuery Meetup<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:43','2014-08-08 19:32:26','2ac72d2e-9350-4610-ae98-2012b5e8013e',1),(39,49,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"who-says-the-web-is-just-for-squares\",\"postDate\":1357663426,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I had some fun building a crazy diamond responsive grid for a project at work. <a href=\\\"http:\\/\\/viget.com\\/inspire\\/who-says-the-web-is-just-for-squares\\\">This article<\\/a> explains how I did it.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:43','2014-08-08 19:32:26','7e264682-84cd-4e20-a0b7-6cc3490d675a',1),(40,51,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"dumbwaiter-chrome-extension\",\"postDate\":1348847854,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I recently got around to trying out <a href=\\\"http:\\/\\/statamic.com\\/\\\">Statamic<\\/a> to create a little <a href=\\\"http:\\/\\/recipes.trevordavis.net\\/\\\">recipe manager<\\/a>. Yes, I know there are tons of apps out there that do this type of stuff, but I wanted to really be able to control everything.<\\/p>\\n\\n<p>I also wanted to figure out some way that my wife could bookmark recipes for us, and I didn&rsquo;t expect her to login to my Statamic install and go through that whole process of adding a new entry. I wanted her to be able to click a button when she was on a site displaying a recipe that she wanted to bookmark, and an entry would then be created. That led me to create my first Chrome Extension, <a href=\\\"https:\\/\\/chrome.google.com\\/webstore\\/detail\\/jeeeliidcblacogbcefhcbljkllhpjdd?hl=en&gl=US\\\">Dumbwaiter<\\/a>.<\\/p>\\n\\n<p><img src=\\\"http:\\/\\/trevordavis.net\\/uploads\\/images\\/content\\/dumbwaiter-options.png\\\" alt=\\\"Dumbwaiter Options\\\"><\\/p>\\n\\n<p>The basic idea is that you provide a URL that will be opened in a popup window when you click the exntension. Then you provide some JavaScript to do something on the current page you are on, and then some more JavaScript to do something with that data. So in my case, I grab the URL of the page where the recipe is coming from, grab the name of the recipe, and then whatever text is highlighted on the page. So, the process to add a recipe is to highlight the actual recipe, then click the Dumbwaiter icon, and all the data will be pre-populated into my Statamic new entry form.<\\/p>\\n\\n<p>Here is some example code that I am using, but the options are limitless: whatever you can do with jQuery, you can do with Dumbwaiter.<\\/p>\\n\\n<h3>Retrieve Data Code<\\/h3>\\n<pre><code>var title = jQuery(\'meta[property=\\\"og:title\\\"]\').attr(\'content\');\\nvar source = window.location.href;\\nvar img = jQuery(\'meta[property=\\\"og:image\\\"]\').attr(\'content\');\\nvar content = window.getSelection().toString();\\n\\nif(!title) {\\n\\ttitle = jQuery(\'title\').text();\\n}\\n\\nvar data = {\\n\\ttitle: title,\\n\\tsource: source,\\n\\timg: img,\\n\\tcontent: content\\n};<\\/code><\\/pre>\\n\\n<h3>Insert Data Code<\\/h3>\\n<pre><code>function makeSlug(str) { \\n\\tstr = str.replace(\\/^\\\\s+|\\\\s+$\\/g, \'\'); \\/\\/ trim\\n\\tstr = str.toLowerCase();\\n  \\n\\t\\/\\/ remove accents, swap \\u00f1 for n, etc\\n\\tvar from = \\\"\\u00e0\\u00e1\\u00e4\\u00e2\\u00e8\\u00e9\\u00eb\\u00ea\\u00ec\\u00ed\\u00ef\\u00ee\\u00f2\\u00f3\\u00f6\\u00f4\\u00f9\\u00fa\\u00fc\\u00fb\\u00f1\\u00e7\\u00b7\\/_,:;\\\";\\n\\tvar to   = \\\"aaaaeeeeiiiioooouuuunc------\\\";\\n\\tfor (var i=0, l=from.length ; i &lt; l ; i++) {\\n\\t\\tstr = str.replace(new RegExp(from.charAt(i), \'g\'), to.charAt(i));\\n\\t}\\n  \\n\\tstr = str.replace(\\/[^a-z0-9 -]\\/g, \'\') \\/\\/ remove invalid chars\\n\\t.replace(\\/\\\\s+\\/g, \'-\') \\/\\/ collapse whitespace and replace by -\\n\\t.replace(\\/-+\\/g, \'-\'); \\/\\/ collapse dashes\\n  \\n\\treturn str;\\n};\\n\\n$(\'#publish-title\').val(data.title).focus();\\nvar slug = makeSlug(data.title);\\n$(\'#publish-slug\').val(slug);\\n$(\'input[name=\\\"page[yaml][source]\\\"]\').val(data.source);\\n$(\'textarea.markItUpEditor\').val(data.content);<\\/code><\\/pre>\\n\\n<p>You can <a href=\\\"https:\\/\\/chrome.google.com\\/webstore\\/detail\\/jeeeliidcblacogbcefhcbljkllhpjdd?hl=en&gl=US\\\">download Dumbwaiter here<\\/a>, and let me know if you guys find any creative uses!<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:43','2014-08-08 19:32:26','161496af-59b3-4d67-a204-276d8b7fc773',1),(41,52,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"jquery-stick-em\",\"postDate\":1347370312,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I created a plugin, <a href=\\\"http:\\/\\/viget.com\\/inspire\\/jquery-stick-em\\\">jQuery Stick &lsquo;em<\\/a>, to allow items to be &ldquo;sticky&rdquo; but only within a container.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:43','2014-08-08 19:32:26','b49ebbef-d71e-4f41-8cbc-aedc7bcdb867',1),(42,54,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"advanced-templating-with-expressionengine\",\"postDate\":1343564283,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I was luckily enough to be asked to speak at the <a href=\\\"http:\\/\\/dceers.org\\/\\\">DCEERs Day conference<\\/a> yesterday. I was asked to speak about best templating practices, which ended up being a talk about how I use <a href=\\\"http:\\/\\/devot-ee.com\\/add-ons\\/stash\\\">Stash<\\/a> and how I build custom plugins to streamline templating. It was a great day filled with discussion about ExpressionEngine, and it made me look forward to EECI even more!<\\/p>\\n\\n<script async class=\\\"speakerdeck-embed\\\" data-id=\\\"50140813a049a300020015d0\\\" data-ratio=\\\"1.3333333333333333\\\" src=\\\"\\/\\/speakerdeck.com\\/assets\\/embed.js\\\"><\\/script>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:43','2014-08-08 19:32:26','4fce5cd7-9a2a-4b37-9bf2-611ae6016e33',1),(43,56,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"sass-compass-never-write-regular-css-again\",\"postDate\":1343170613,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I gave a presentation last week at <a href=\\\"http:\\/\\/refresh-dc.org\\/\\\">Refresh DC<\\/a> about <a href=\\\"http:\\/\\/sass-lang.com\\/\\\">Sass<\\/a> &amp; <a href=\\\"http:\\/\\/compass-style.org\\/\\\">Compass<\\/a>. After being introduced to Sass &amp; Compass about six months ago, I can&rsquo;t imagine writing regular CSS ever again. I was a little hesitant at first, but now I can&rsquo;t live without it. I posted my <a href=\\\"https:\\/\\/speakerdeck.com\\/u\\/trevor_davis\\/p\\/sass-and-compass-never-write-regular-css-again\\\">slides online<\\/a>, and <a href=\\\"https:\\/\\/github.com\\/davist11\\/refresh-dc-compass-sass-presentation\\\">here is the git repo<\\/a> with all of the code samples.<\\/p>\\n\\n<script async class=\\\"speakerdeck-embed\\\" data-id=\\\"5008c591ded00e00020fa540\\\" data-ratio=\\\"1.3333333333333333\\\" src=\\\"\\/\\/speakerdeck.com\\/assets\\/embed.js\\\"><\\/script>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:43','2014-08-08 19:32:26','44c01ead-b431-46bd-9b4d-1db85d5f86c6',1),(44,57,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"a-long-time-coming\",\"postDate\":1342474978,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>It&rsquo;s funny how quickly you come to hate your own site. <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/from-wordpress-to-expressionengine\\\">Almost exactly 2 years ago<\\/a>, I launched a redesigned version of my site. <strong>After maybe a year, I hated it.<\\/strong> But who has time to redo their own site? Apparently it took me 6 months to find the time to finish mine.<\\/p>\\n\\n<p>Even within those 6 months, I found things that I had started on the site that I hated. My goals were to simplify things a bit, make it responsive, and play around with Sass and Compass. I also wanted to take some of the focus off of my blog, since I really don&rsquo;t write too much on it anymore (I write almost all of my articles on the <a href=\\\"http:\\/\\/viget.com\\\">Viget Blogs<\\/a> these days).<\\/p>\\n\\n<p>Since I&rsquo;m giving 2 presentations in the next few weeks (<a href=\\\"http:\\/\\/refreshdc-july2012.eventbrite.com\\/\\\">Refresh DC<\\/a> &amp; <a href=\\\"http:\\/\\/dceers.org\\/\\\">DCEERS<\\/a>), I wanted to get my new site up. So I may have rushed a few things, but I&rsquo;m pretty happy with it. Let me know if you run into any errors.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:43','2014-08-08 19:32:26','dd4d225f-8e00-4971-9aaf-795233cea3c2',1),(45,59,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"background-clip-text-shadow-amp-gradients-oh-my\",\"postDate\":1325159910,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I have been able to play around with <a href=\\\"http:\\/\\/www.viget.com\\/inspire\\/background-clip-text-shadow-gradients\\/\\\">background-clip, text-shadow, and gradients<\\/a> on a few recent projects, and I wrote up some tricks that I have come across.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:43','2014-08-08 19:32:26','a3ea7c05-ad29-413a-8eb8-c085057bc21a',1),(46,60,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"notes-from-our-default-expressionengine-build\",\"postDate\":1317227652,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I put together some <a href=\\\"http:\\/\\/www.viget.com\\/inspire\\/our-default-expressionengine-build\\/\\\">notes about Viget&rsquo;s default ExpressionEngine build<\\/a> in the hopes that you can find some tips and tricks in all of my nonsense.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:43','2014-08-08 19:32:26','00acbdde-182d-41b4-b88b-74369f325db6',1),(47,61,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"is-ajax-ee-plugin\",\"postDate\":1315336465,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>For a recent project, I needed to detect whether a request was an AJAX request or not. <a href=\\\"http:\\/\\/devot-ee.com\\/add-ons\\/mx-ajax-detect\\\">MX Ajax Detect<\\/a> already existed, but I didn&rsquo;t like that you needed the extra set of tags.<\\/p>\\n\\n<h2>Usage<\\/h2>\\n<pre><code>&#123;if &#123;exp:is_ajax&#125; == \\\"true\\\"&#125;\\n\\tOH YEAAAH\\n&#123;if:else&#125;\\n\\tOH NOOO\\n&#123;\\/if&#125;<\\/code><\\/pre>\\n\\n<h2>Download<\\/h2>\\n<p>You can find the plugin on <a href=\\\"http:\\/\\/devot-ee.com\\/add-ons\\/is-ajax\\\">Devot:ee<\\/a> and <a href=\\\"https:\\/\\/github.com\\/davist11\\/is-ajax\\\">GitHub<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:43','2014-08-08 19:32:26','0fc77930-096a-456d-aae8-878da06f5365',1),(48,62,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"html5-elements-irresponsible-choice-right-now\",\"postDate\":1309184923,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I figured it was time to post about a controversial topic that had come up recently. <a href=\\\"http:\\/\\/www.viget.com\\/inspire\\/html5-elements-irresponsible-choice-right-now\\/\\\">I just don&rsquo;t see the value in using most HTML5 elements right now<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:43','2014-08-08 19:32:26','c8ac2b72-16ff-430f-9537-32bc71abb0cf',1),(49,65,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"a-couple-of-presentations\",\"postDate\":1304702687,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I&rsquo;ve given a couple of presentations recently, so I thought I would share them.<\\/p>\\n\\n<h2><a href=\\\"http:\\/\\/www.slideshare.net\\/davist11\\/mee-ee-sitting-in-a-tree\\\">Mee &amp; EE: Sitting In A Tree<\\/a><\\/h2>\\n<p>An internal presentation given to all of <a href=\\\"http:\\/\\/www.viget.com\\\">Viget<\\/a> to give an overview of EE and why I love it.<\\/p>\\n\\n<div id=\\\"__ss_7867366\\\"><iframe src=\\\"http:\\/\\/www.slideshare.net\\/slideshow\\/embed_code\\/7867366?rel=0&startSlide=5\\\" width=\\\"595\\\" height=\\\"497\\\" frameborder=\\\"0\\\" marginwidth=\\\"0\\\" marginheight=\\\"0\\\" scrolling=\\\"no\\\"><\\/iframe><\\/div>\\n\\n<h2><a href=\\\"http:\\/\\/www.slideshare.net\\/davist11\\/add-some-awesomesauce\\\">Add Some Awesome-Sauce<\\/a><\\/h2>\\n<p>A presentation given to Clarksburg High School students with a supporting <a href=\\\"http:\\/\\/hp.trevordavis.net\\\">demo site<\\/a> to introduce them to some HTML5 and CSS3 features.<\\/p>\\n\\n<div id=\\\"__ss_7867300\\\"><iframe src=\\\"http:\\/\\/www.slideshare.net\\/slideshow\\/embed_code\\/7867300?rel=0&startSlide=2\\\" width=\\\"595\\\" height=\\\"497\\\" frameborder=\\\"0\\\" marginwidth=\\\"0\\\" marginheight=\\\"0\\\" scrolling=\\\"no\\\"><\\/iframe><\\/div>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:43','2014-08-08 19:32:26','30e49ee1-977b-4eaa-9690-be0e11dc41f7',1),(50,66,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"css-generated-content\",\"postDate\":1299158307,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I&rsquo;ve started to use generated content more and more these days. <a href=\\\"http:\\/\\/www.viget.com\\/inspire\\/css-generated-content\\/\\\">Here are a couple of examples<\\/a> from a recent project.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:43','2014-08-08 19:32:26','2eb0a7a3-a796-4a86-8d30-5d1930de2b21',1),(51,67,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"use-htaccess-files-with-mamp\",\"postDate\":1298278548,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Well, this was easy in the older version of MAMP that I had. You would just drop them in place, and they worked. I was having a problem with something, so I thought maybe there was an updated version of MAMP that would solve the problem. Sure enough, there was. So I installed it and went along my way. Then, I went back to the local version of my site, and it was completely busted.<\\/p>\\n\\n<p>I finally tracked it down to .htaccess files being ignored. So I opened up my <em>http.conf<\\/em> file and went down to line 378, and sure enough this is what I saw:<\\/p>\\n\\n<pre><code>&lt;Directory \\/>\\n    Options Indexes FollowSymLinks\\n    AllowOverride None\\n&lt;\\/Directory><\\/code><\\/pre>\\n\\n<p>In the older version of MAMP that I had, the default for this value was <em>All<\\/em>. In order to get .htaccess files working in the new version, I just had to change <em>None<\\/em> to <em>All<\\/em>, restart the server, and everything worked normally. Just thought I would share in case anyone else runs into this problem.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:43','2014-08-08 19:32:26','96dfd677-e49a-4591-a794-7d8a28d21e29',1),(52,69,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"config-variables-plugin\",\"postDate\":1297805009,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>As I was in the process of moving this site into Git and having a local version, I have been trying to move as many paths as possible into the config.php. One of them included the cache path for <a href=\\\"http:\\/\\/devot-ee.com\\/add-ons\\/image-sizer\\/\\\">image sizer<\\/a>. Since the local and production paths are different, I wanted some way for them to be dynamic. In my config.php file, I am using <em>$_SERVER[\'DOCUMENT_ROOT\']<\\/em> to set the base_path. I could have enabled PHP in the template and then use the <em>$_SERVER[\'DOCUMENT_ROOT\']<\\/em>, but that seemed like a silly reason to enable PHP.<\\/p>\\n\\n<p>So I made a plugin that gives you access to everything in the $config array without having to use PHP.<\\/p>\\n\\n<h2>Usage<\\/h2>\\n\\n<pre><code>&#123;exp:config:vars value=\\\"base_path\\\"&#125;<\\/code><\\/pre>\\n\\n<p>To see all possible values, just pass in &ldquo;all&rdquo;:<\\/p>\\n\\n<pre><code>&#123;exp:config:vars value=\\\"all\\\"&#125;<\\/code><\\/pre>\\n\\n<h2>Download<\\/h2>\\n\\n<p>You can download from <a href=\\\"https:\\/\\/github.com\\/davist11\\/Config-Variables-Plugin\\\">GitHub<\\/a> or <a href=\\\"http:\\/\\/devot-ee.com\\/add-ons\\/config-variables\\/\\\">Devot-ee<\\/a>. As always, let me know if you run into any issues.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:43','2014-08-08 19:32:26','7c0cf937-5a56-497a-9c90-346ba1aa986f',1),(53,70,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"url-design\",\"postDate\":1293702863,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Great article about <a href=\\\"http:\\/\\/warpspire.com\\/posts\\/url-design\\/\\\">designing URLs<\\/a>. It really is an art and is so easy to do so wrong.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:43','2014-08-08 19:32:26','2ad9d91c-eeaa-4c86-baca-dcad6222f8d7',1),(54,71,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"hon-ee-pot-captcha-expressionengine\",\"postDate\":1293607811,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I have a confession to make: <em>I hate captcha<\\/em>. But on the other hand, spam is one of the most frustrating issues ever. So with that being said, I am a big fan of <a href=\\\"http:\\/\\/haacked.com\\/archive\\/2007\\/09\\/11\\/honeypot-captcha.aspx\\\">Honeypot Captcha<\\/a>.<\\/p>\\n\\n<p>I couldn&rsquo;t find any ExpressionEngine addons that added honeypot captcha functionality for both the comment form and the <a href=\\\"http:\\/\\/www.solspace.com\\/software\\/detail\\/freeform\\/\\\">Freeform<\\/a> module, so I decided to go ahead and create one.<\\/p>\\n\\n<h2>Basic Functionality<\\/h2>\\n<p>This extension validates the EE comment form and Freeform forms to make sure a field that is hidden with CSS is left empty.<\\/p>\\n\\n<h2>Getting Started<\\/h2>\\n<ul>\\n  <li><a href=\\\"https:\\/\\/github.com\\/davist11\\/Hon-ee-Pot-Captcha\\\">Download Hon-ee Pot Captcha<\\/a><\\/li>\\n  <li>Unzip the folder and copy the <em>honeepot<\\/em> folder into your \\/system\\/expressionengine\\/third_party\\/ directory.<\\/li>\\n  <li>Go to Add-ons &rarr; Extensions and &ldquo;Enable extension&rdquo;.<\\/li>\\n  <li>You can customize the field name for the honey pot field and the message a user receives if the field is filled in by going to the extension settings.<\\/li>\\n<\\/ul>\\n\\n<h3>Setup<\\/h3>\\n<p>In the Freeform module, go to Fields &rarr; Create a New Field. Now create a field with the field name matching the field name in the Hon-ee Pot Captcha settings. The default is <em>honeepot<\\/em>.<\\/p>\\n\\n<p>Now in your form, add the honey pot field:<\\/p>\\n\\n<pre>&lt;li class=\\\"screen-reader\\\">\\n  &lt;label for=\\\"honeepot\\\">Don\'t put anything here&lt;\\/label>\\n  &lt;input type=\\\"text\\\" name=\\\"honeepot\\\" id=\\\"honeepot\\\" \\/>\\n&lt;\\/li><\\/pre>\\n\\n<p>In my CSS, I have a class to move things off of the page:<\\/p>\\n<pre>.screen-reader {\\n  display: block !important;\\n  left: -9999px !important;\\n  position: absolute !important;\\n  top: -9999px !important;\\n}<\\/pre>\\n\\n<p>You can add the same form field to your comment forms as well.<\\/p>\\n\\n<h2>That is all<\\/h2>\\n<p>Hopefully this addition will help to combat some of the spam contact form submissions and comments (even though they get caught by <a href=\\\"http:\\/\\/loweblog.com\\/software\\/low-nospam\\/\\\">Low NoSpam<\\/a>). You can <a href=\\\"https:\\/\\/github.com\\/davist11\\/Hon-ee-Pot-Captcha\\\">download the Hon-ee Pot Captcha extension on Github<\\/a>. Let me know if you run into any issues.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:43','2014-08-08 19:32:26','ee440e6c-2235-42f0-b97a-ff3495952506',1),(55,72,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"custom-file-inputs-jquery\",\"postDate\":1290455526,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I needed to create a custom file input when building <a href=\\\"http:\\/\\/www.puma.com\\/cleverlittlebag\\\">Clever Little Bag<\\/a>, so I&rsquo;ve <a href=\\\"http:\\/\\/www.viget.com\\/inspire\\/custom-file-inputs-with-a-bit-of-jquery\\/\\\">written a tutorial on the Inspire blog<\\/a> discussing that process.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:43','2014-08-08 19:32:26','a90abc7a-bcc0-4390-9844-7b58c0407d03',1),(56,73,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"simple-jquery-refactoring\",\"postDate\":1286788849,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I&rsquo;ve learned so much about jQuery while working at Viget. I wrote a <a href=\\\"http:\\/\\/www.viget.com\\/inspire\\/simple-jquery-refactoring\\/\\\">blog post<\\/a> about how you can improve your jQuery through some simple refactoring.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','62c8c93c-0e7f-4c8a-b284-c0813fd0430f',1),(57,74,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"jquery-one-page-navigation-plugin\",\"postDate\":1285533314,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>When appropriate, I am a fan of the one-page sites. I really like the ones that add smooth scrolling and highlight the navigation depending upon which part of the page you have scrolled to. Here are a few examples: <a href=\\\"http:\\/\\/www.brizk.com\\/\\\">Brizk Design<\\/a> and <a href=\\\"http:\\/\\/crushlovely.com\\/\\\">Crush + Lovely<\\/a>. I finally have a freelance project where a one-page site makes sense, so I needed to write the JavaScript to make the navigation work how I wanted.<\\/p>\\n\\n<p>I wanted the page to scroll smoothly when the navigation was clicked, so I used the <a href=\\\"http:\\/\\/flesler.blogspot.com\\/2007\\/10\\/jqueryscrollto.html\\\">jQuery ScrollTo plugin<\\/a>. I also wanted the page to automatically highlight the correct navigation section depending upon which section was scrolled to, and that was where I added my custom code.<\\/p>\\n\\n<p>If you want to skip ahead, you can <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jquery-one-page-nav\\/\\\">check out the demo<\\/a> and <a href=\\\"http:\\/\\/github.com\\/davist11\\/jQuery-One-Page-Nav\\\">download the plugin from GitHub<\\/a>.<\\/p>\\n\\n<h2>The Markup<\\/h2>\\n<p>I started with an unordered list for the navigation and a bunch of sections:<\\/p>\\n<pre><code>&lt;ul id=\\\"nav\\\">\\n  &lt;li class=\\\"current\\\">&lt;a href=\\\"#section-1\\\">Section 1&lt;\\/a>&lt;\\/li>\\n  &lt;li>&lt;a href=\\\"#section-2\\\">Section 2&lt;\\/a>&lt;\\/li>\\n  &lt;li\\\">&lt;a href=\\\"#section-3\\\">Section 3&lt;\\/a>&lt;\\/li>\\n&lt;\\/ul>\\n\\n&lt;div id=\\\"section-1\\\">\\n  &lt;strong>Section 1&lt;\\/strong>\\n  &lt;p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor\\n  incididunt ut labore et dolore magna aliqua.&lt;\\/p>\\n&lt;\\/div>\\n&lt;div id=\\\"section-2\\\">\\n  &lt;strong>Section 2&lt;\\/strong>\\n  &lt;p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor \\n  incididunt ut labore et dolore magna aliqua.&lt;\\/p>\\n&lt;\\/div>\\n&lt;div id=\\\"section-3\\\">\\n  &lt;strong>Section 3&lt;\\/strong>\\n  &lt;p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor \\n  incididunt ut labore et dolore magna aliqua.&lt;\\/p>\\n&lt;\\/div><\\/code><\\/pre>\\n\\n<h2>The JavaScript<\\/h2>\\n<p>Then, I added jQuery, the ScrollTo plugin, and my plugin to the page:<\\/p>\\n<pre><code>&lt;script src=\\\"jquery.js\\\">&lt;\\/script>\\n&lt;script src=\\\"jquery.scrollTo.js\\\">&lt;\\/script>\\n&lt;script src=\\\"jquery.nav.min.js\\\">&lt;\\/script><\\/code><\\/pre>\\n\\n<p>Finally, I just need to call my plugin on the navigation:<\\/p>\\n<pre><code>$(document).ready(function() {\\n  $(\'#nav\').onePageNav();\\n});<\\/code><\\/pre>\\n\\n<h3>Options<\\/h3>\\n<p>There are a few options for this plugin:<\\/p>\\n<ul>\\n<li>\\n<h4>currentClass: \'current\'<\\/h4>\\nClass to add to the list item when the navigation item is selected\\n<\\/li>\\n<li>\\n<h4>changeHash: false<\\/h4>\\nIf you want the hash to change when the user clicks on the navigation, change this to <strong>true<\\/strong>\\n<\\/li>\\n<li>\\n<h4>scrollSpeed: 750<\\/h4>\\nSpeed to scroll the page when the navigation is clicked\\n<\\/li>\\n<\\/ul>\\n\\n<p>And that&rsquo;s it. <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jquery-one-page-nav\\/\\\">Check out the demo<\\/a> and <a href=\\\"http:\\/\\/github.com\\/davist11\\/jQuery-One-Page-Nav\\\">download the plugin from GitHub<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','04209d62-9a16-424c-9023-50697615081b',1),(58,76,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"most-out-of-an-event-apart\",\"postDate\":1285025124,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I had the pleasure of attending <a href=\\\"http:\\/\\/aneventapart.com\\/2010\\/dc\\/\\\">An Event Apart<\\/a> last week when they finally made it to DC. This was the third time I had atended An Event Apart conference, but I feel like I absorbed the most from this one.<\\/p>\\n\\n<h2>Leave the Laptop at Home<\\/h2>\\n<p>The last two times I attended, I brought my laptop and took notes during the presentations. Sure I learned some things, but I think other things slipped by me as I was typing. This time, I brought a pencil &amp; notebook, and an iPad that was so graciously given to me as a <a href=\\\"http:\\/\\/www.viget.com\\/\\\">Viget<\\/a> 10th anniversary gift.<\\/p>\\n<p>Now, I realize that not everyone has the luxury of choosing between a laptop and an iPad, but I really only used the iPad for checking email and Twitter during breaks, so I definitely could have gone without that. I really enjoyed just sitting, absorbing, and sporadically jotting down notes when I thought it was necessary. You&rsquo;ve got the slides available to download, so don&rsquo;t feel like you have to write down everything that is being presented to you.<\\/p>\\n\\n<h2>Focus on the Speakers<\\/h2>\\n<p>I know <a href=\\\"http:\\/\\/afeedapart.com\\/\\\">A Feed Apart<\\/a> is really cool, but do you really want to spend your time on Twitter while speakers are presenting? Try checking A Feed Apart during the breaks to catch up on what everyone thought about the speaker. Leave your phone alone and stop checking your email. You paid good money for the conference, so pay attention.<\\/p>\\n\\n<h2>Stay Sober<\\/h2>\\n<p>I didn&rsquo;t even make it to the opening night party this year because Thursdays are my basketball night, but I heard about numerous people who got drunk at the party. Really people? Aren&rsquo;t we all adults now? Didn&rsquo;t we pay good money for this conference? If you want to go re-live your college days, don&rsquo;t waste $1000 to do it. So go to the party and mingle, but please don&rsquo;t get sloppy drunk; we really don&rsquo;t want to hear about it the next day of the conference.<\\/p>\\n\\n<h2>Just Enjoy Yourself<\\/h2>\\n<p>You are surrounded by people just like you for two days; it&rsquo;s fantastic. We even had lunch the first day with <a href=\\\"http:\\/\\/twitter.com\\/jasonsantamaria\\\">Jason Santa Maria<\\/a> and <a href=\\\"http:\\/\\/twitter.com\\/adactio\\\">Jeremy Keith<\\/a>, how badass is that?<\\/p>\\n\\n<p>Much thanks goes to <a href=\\\"http:\\/\\/twitter.com\\/zeldman\\\">Zeldman<\\/a> &amp; <a href=\\\"http:\\/\\/twitter.com\\/meyerweb\\\">Eric Meyer<\\/a> for organizing such a fantastic conference, and I look forward to going back again <a href=\\\"http:\\/\\/aneventapart.com\\/news\\/2010\\/09\\/02\\/announcing-our-2011-schedule\\/\\\">next year<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','9ef220e1-6b5b-4378-bdeb-b4b0af4540b3',1),(59,77,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"find-your-own-starting-point\",\"postDate\":1284073728,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p><a href=\\\"http:\\/\\/html5boilerplate.com\\/\\\">Everyone<\\/a> and <a href=\\\"http:\\/\\/html5reset.org\\/\\\">their mother<\\/a> has been releasing their HTML5 &ldquo;boilerplates&rdquo; for others to use. There is no chance that I would just take such a set of files and start building a site. You&rsquo;ve got to find a good starting place for yourself, not someone else&rsquo;s.<\\/p>\\n\\n<p>I have been starting from a similar point for everything that I build now, and I just finally put it out on <a href=\\\"http:\\/\\/github.com\\/davist11\\/Starter-Template\\\">GitHub<\\/a>. I&rsquo;m not doing this because I want someone to use this template to start a site; I&rsquo;m doing this so that I can have somewhere to always access this set of files.<\\/p>\\n\\n<p>With that being said, I would urge everyone to have their own starting point. You know your own coding patterns best, so just figure out the best place for yourself to start from. Sure, you can learn from everyone else&rsquo;s, but it is much more beneficial to have your own. Mine is super basic, so feel free to start from mine and modify it to suit your needs.<\\/p>\\n\\n<p><a href=\\\"http:\\/\\/github.com\\/davist11\\/Starter-Template\\\">See my starting point on GitHub<\\/a> and feel free to fork away and modify.<\\/p>\\n\\n\\n\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','443ec3d7-0f27-4085-a14e-0b4d53718180',1),(60,78,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"ee-2x-addons\",\"postDate\":1282000409,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>It&rsquo;s no secret that I&rsquo;m a big <a href=\\\"http:\\/\\/expressionengine.com\\/\\\">ExpressionEngine<\\/a> fan. I&rsquo;m really excited to get started using EE 2.x on projects, but the one thing holding me back is add-ons. I&rsquo;ve never written an add-on, but I use tons of add-ons that others have written.  With that being said, I ended up porting over a couple of add-ons to work with EE 2.x:<\\/p>\\n\\n<ul>\\n  <li>\\n    <h2>Scroll to Comment<\\/h2>\\n    First, I modified Matthew Pennell&rsquo;s <a href=\\\"http:\\/\\/devot-ee.com\\/add-ons\\/scroll-to-comment\\/\\\">Scroll to Comment Extension<\\/a>. When a user submits a comment, they are scrolled down to the newly added comment. You can find the <a href=\\\"http:\\/\\/github.com\\/davist11\\/EE-Scroll-To-Comment\\\">EE 2.x compatible version on GitHub<\\/a>.\\n  <\\/li>\\n  <li>\\n    <h2>EE Default CP Tabs<\\/h2>\\n    We loved using <a href=\\\"http:\\/\\/devot-ee.com\\/add-ons\\/lg-add-cp-tabs\\/\\\">LG Add CP Tabs<\\/a> in order to add a tab for <a href=\\\"http:\\/\\/buildwithstructure.com\\/\\\">Structure<\\/a> for all users. As we were getting our EE 2.x template site setup, we noticed that this extension wasn&rsquo;t converted yet. I made a slight modification so that you only get one textbox to add tabs instead of multiple boxes broken out by member group. You can find <a href=\\\"http:\\/\\/github.com\\/davist11\\/EE-Default-CP-Tabs\\\">my EE 2.x compatible version on GitHub<\\/a>.\\n  <\\/li>\\n<\\/ul>\\n<p>My hope is to eventually get this site converted over to EE 2.x, and I think the only add-on holding me back is the <a href=\\\"http:\\/\\/devot-ee.com\\/add-ons\\/eeflickr\\/\\\">eeFlickr Module<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','7aeb0100-4f82-483f-a146-1906bb4f635a',1),(61,79,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"jquery-image-scroller-plugin\",\"postDate\":1281884917,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>While working on the individual product page for PUMA, I had to use jQuery to create a scrollable interface for really tall products. It&rsquo;s kind of hard to describe, but <a href=\\\"http:\\/\\/www.viget.com\\/inspire\\/jquery-image-scroller-plugin\\/\\\">have a look at the plugin for a better description<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','54073bbd-0f20-4c2c-8905-b046f7627ccf',1),(62,80,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"jquery-show-password-plugin\",\"postDate\":1281354461,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>In a recent project at work, I had to add in functionality so that a user could see what they had typed in a password field when they click a link. One would think that it is as easy as using JavaScript to change the type attribute, but that of course doesn&rsquo;t work in IE. Virtually all of the jQuery plugins that I found used a checkbox instead of a link to toggle between the two states. So, I set out to write my own.<\\/p>\\n\\n<p>If you just want to get to the code, you can <a href=\\\"http:\\/\\/github.com\\/davist11\\/jQuery-Show-Password\\\">download the plugin from GitHub<\\/a> or <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jquery-show-password\\/\\\">check out the demo<\\/a>.<\\/p>\\n\\n<p>This plugin works by adding a text field that takes the value of what is typed into the password field. Then, when the link is clicked the password field is hidden and the text field is shown.<\\/p>\\n\\n<h2>The Markup<\\/h2>\\n<p>In the demo, we&rsquo;ll just start with a simple form:<\\/p>\\n\\n<pre><code>&lt;form action=\\\"#\\\">\\n\\t&lt;ol class=\\\"forms\\\">\\n\\t\\t&lt;li>\\n\\t\\t\\t&lt;label for=\\\"username\\\">Username&lt;\\/label>\\n\\t\\t\\t&lt;input type=\\\"text\\\" id=\\\"username\\\" \\/>\\n\\t\\t&lt;\\/li>\\n\\t\\t&lt;li>\\n\\t\\t\\t&lt;label for=\\\"password\\\">Password&lt;\\/label>\\n\\t\\t\\t&lt;input type=\\\"password\\\" id=\\\"password\\\" class=\\\"password\\\" \\/>\\n\\t\\t&lt;\\/li>\\n\\t\\t&lt;li class=\\\"buttons\\\">\\n\\t\\t\\t&lt;button type=\\\"submit\\\">Submit&lt;\\/button>\\n\\t\\t&lt;\\/li>\\n\\t&lt;\\/ol>\\n&lt;\\/form><\\/code><\\/pre>\\n\\n<h2>Add a Little Style<\\/h2>\\n<p>In the design that I was working on, the link to show the password actually sat on top of the password input field, so we just need to add a little bit of CSS to make that happen:<\\/p>\\n\\n<pre><code>.forms li {\\n\\tposition: relative;\\n}\\n.show-password-link {\\n\\tdisplay: block;\\n\\tposition: absolute;\\n\\tz-index: 11;\\n}\\n.password-showing {\\n\\tposition: absolute;\\n\\tz-index: 10;\\n}<\\/code><\\/pre>\\n\\n<p>By default, the link to show the password has the class of <em>show-password-link<\\/em>, but that can be changed in the plugin options. Also, the <em>password-showing<\\/em> class is added to the text field that is used to show the password, but again, that can be changed via the plugin options.<\\/p>\\n\\n<h2>And Now, JavaScript Takes Over<\\/h2>\\n<p>To get started, you will need to include <a href=\\\"http:\\/\\/jquery.com\\/\\\">jQuery<\\/a> and <a href=\\\"http:\\/\\/github.com\\/davist11\\/jQuery-Show-Password\\\">my plugin<\\/a>:\\n\\n<pre><code>&lt;script type=\\\"text\\/javascript\\\" src=\\\"scripts\\/jquery.js\\\">&lt;\\/script>\\n&lt;script type=\\\"text\\/javascript\\\" src=\\\"scripts\\/jquery.showPassword.min.js\\\">&lt;\\/script><\\/code><\\/pre>\\n\\n<p>Then, you can instantiate it like this:<\\/p>\\n\\n<pre><code>$(document).ready(function() {\\n\\t$(\':password\').showPassword();\\n});<\\/code><\\/pre>\\n\\n<h3>Options<\\/h3>\\n\\n<ul>\\n  <li>\\n    <h4>linkClass: \'show-password-link\'<\\/h4>\\n    Class for the toggle link\\n  <\\/li>\\n  <li>\\n    <h4>linkText: \'Show\'<\\/h4>\\n    Text for the toggle link\\n  <\\/li>\\n  <li>\\n    <h4>showPasswordLinkText: \'Hide\'<\\/h4>\\n    Text for the toggle link when password is not masked\\n  <\\/li>\\n  <li>\\n    <h4>showPasswordInputClass: \'password-showing\'<\\/h4>\\n    Class for the text input that will show the password\\n  <\\/li>\\n  <li>\\n    <h4>linkRightOffset: 0<\\/h4>\\n    Offset for the link from the right of parent\\n  <\\/li>\\n  <li>\\n    <h4>linkTopOffset: 0<\\/h4>\\n    Offset for the link from the top of parent\\n  <\\/li>\\n<\\/ul>\\n\\n<p>So there you have it. <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jquery-show-password\\/\\\">Check out the demo<\\/a> and <a href=\\\"http:\\/\\/github.com\\/davist11\\/jQuery-Show-Password\\\">download the plugin from GitHub<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','0ea1bb00-ef61-4cb8-bec1-290c48976aed',1),(63,81,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"jquery-simple-validation-plugin\",\"postDate\":1279674046,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I find that I end up consistently adding form validation to sites, and for some reason, I never made a plugin out of it. I feel like every jQuery validation plugin that I look at is way too bloated for what I really need, so I finally whipped up a simple validation plugin that comes in at about 1.5kb.<\\/p>\\n<p>I tried to keep it really simple with this plugin: just check to see if a field that has been marked as required is not empty and check to see if an email address is valid.<\\/p>\\n<p>If you want to skip ahead, <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jQuery-Simple-Validate\\/\\\">Check out the demo<\\/a> and <a href=\\\"http:\\/\\/github.com\\/davist11\\/jQuery-Simple-Validate\\\">download the plugin from GitHub<\\/a>.<\\/p>\\n\\n<h2>Start with the Markup<\\/h2>\\n<p>To get started, I would always start with a simple form marked up in an ordered list:<\\/p>\\n\\n<pre><code>&lt;form action=\\\"thanks.htm\\\" method=\\\"post\\\">\\n\\t&lt;ol class=\\\"forms\\\">\\n\\t\\t&lt;li>\\n\\t\\t\\t&lt;label for=\\\"name\\\">&lt;em class=\\\"required\\\">*&lt;\\/em> Name&lt;\\/label>\\n\\t\\t\\t&lt;input type=\\\"text\\\" name=\\\"name\\\" id=\\\"name\\\" \\/>\\n\\t\\t&lt;\\/li>\\n\\t\\t&lt;li>\\n\\t\\t\\t&lt;label for=\\\"email\\\">&lt;em class=\\\"required\\\">*&lt;\\/em> Email&lt;\\/label>\\n\\t\\t\\t&lt;input type=\\\"text\\\" name=\\\"email\\\" id=\\\"email\\\" \\/>\\n\\t\\t&lt;\\/li>\\n\\t\\t&lt;li>\\n\\t\\t\\t&lt;label for=\\\"website\\\">Website&lt;\\/label>\\n\\t\\t\\t&lt;input type=\\\"text\\\" name=\\\"website\\\" id=\\\"website\\\" \\/>\\n\\t\\t&lt;\\/li>\\n\\t\\t&lt;li>\\n\\t\\t\\t&lt;label for=\\\"comment\\\">&lt;em class=\\\"required\\\">*&lt;\\/em> Comment&lt;\\/label>\\n\\t\\t\\t&lt;textarea name=\\\"comment\\\" id=\\\"comment\\\">&lt;\\/textarea>\\n\\t\\t&lt;\\/li>\\n\\t\\t&lt;li class=\\\"buttons\\\">&lt;button type=\\\"submit\\\">Submit&lt;\\/button>&lt;\\/li>\\n\\t&lt;\\/ol>\\n&lt;\\/form><\\/code><\\/pre>\\n\\n<p>Then, I need some way to denote which fields should be validated. The HTML5 required attribute, just isn&rsquo;t supported well enough to use, so all that is needed is to add the class of <strong>required<\\/strong> to each field that needs to be validated.<\\/p>\\n\\n<pre><code>&lt;form action=\\\"thanks.htm\\\" method=\\\"post\\\">\\n\\t&lt;ol class=\\\"forms\\\">\\n\\t\\t&lt;li>\\n\\t\\t\\t&lt;label for=\\\"name\\\">&lt;em class=\\\"required\\\">*&lt;\\/em> Name&lt;\\/label>\\n\\t\\t\\t&lt;input type=\\\"text\\\" name=\\\"name\\\" id=\\\"name\\\" <strong>class=\\\"required\\\"<\\/strong> \\/>\\n\\t\\t&lt;\\/li>\\n\\t\\t&lt;li>\\n\\t\\t\\t&lt;label for=\\\"email\\\">&lt;em class=\\\"required\\\">*&lt;\\/em> Email&lt;\\/label>\\n\\t\\t\\t&lt;input type=\\\"text\\\" name=\\\"email\\\" id=\\\"email\\\" <strong>class=\\\"required\\\"<\\/strong> \\/>\\n\\t\\t&lt;\\/li>\\n\\t\\t&lt;li>\\n\\t\\t\\t&lt;label for=\\\"website\\\">Website&lt;\\/label>\\n\\t\\t\\t&lt;input type=\\\"text\\\" name=\\\"website\\\" id=\\\"website\\\" \\/>\\n\\t\\t&lt;\\/li>\\n\\t\\t&lt;li>\\n\\t\\t\\t&lt;label for=\\\"comment\\\">&lt;em class=\\\"required\\\">*&lt;\\/em> Comment&lt;\\/label>\\n\\t\\t\\t&lt;textarea name=\\\"comment\\\" id=\\\"comment\\\" <strong>class=\\\"required\\\"<\\/strong>>&lt;\\/textarea>\\n\\t\\t&lt;\\/li>\\n\\t\\t&lt;li class=\\\"buttons\\\">&lt;button type=\\\"submit\\\">Submit&lt;\\/button>&lt;\\/li>\\n\\t&lt;\\/ol>\\n&lt;\\/form><\\/code><\\/pre>\\n\\n<p>Since I have an email field, I also need to add the class of <strong>email<\\/strong> to the email field:<\\/p>\\n\\n<pre><code>&lt;form action=\\\"thanks.htm\\\" method=\\\"post\\\">\\n\\t&lt;ol class=\\\"forms\\\">\\n\\t\\t&lt;li>\\n\\t\\t\\t&lt;label for=\\\"name\\\">&lt;em class=\\\"required\\\">*&lt;\\/em> Name&lt;\\/label>\\n\\t\\t\\t&lt;input type=\\\"text\\\" name=\\\"name\\\" id=\\\"name\\\" class=\\\"required\\\" \\/>\\n\\t\\t&lt;\\/li>\\n\\t\\t&lt;li>\\n\\t\\t\\t&lt;label for=\\\"email\\\">&lt;em class=\\\"required\\\">*&lt;\\/em> Email&lt;\\/label>\\n\\t\\t\\t&lt;input type=\\\"text\\\" name=\\\"email\\\" id=\\\"email\\\" class=\\\"required <strong>email<\\/strong>\\\" \\/>\\n\\t\\t&lt;\\/li>\\n\\t\\t&lt;li>\\n\\t\\t\\t&lt;label for=\\\"website\\\">Website&lt;\\/label>\\n\\t\\t\\t&lt;input type=\\\"text\\\" name=\\\"website\\\" id=\\\"website\\\" \\/>\\n\\t\\t&lt;\\/li>\\n\\t\\t&lt;li>\\n\\t\\t\\t&lt;label for=\\\"comment\\\">&lt;em class=\\\"required\\\">*&lt;\\/em> Comment&lt;\\/label>\\n\\t\\t\\t&lt;textarea name=\\\"comment\\\" id=\\\"comment\\\" class=\\\"required\\\">&lt;\\/textarea>\\n\\t\\t&lt;\\/li>\\n\\t\\t&lt;li class=\\\"buttons\\\">&lt;button type=\\\"submit\\\">Submit&lt;\\/button>&lt;\\/li>\\n\\t&lt;\\/ol>\\n&lt;\\/form><\\/code><\\/pre>\\n\\n<p>I also want to tell my plugin which forms to validate, so I&rsquo;ll also add a class to the form itself:<\\/p>\\n\\n<pre><code>&lt;form action=\\\"thanks.htm\\\" method=\\\"post\\\" <strong>class=\\\"required-form\\\"<\\/strong>>\\n\\t&lt;ol class=\\\"forms\\\">\\n\\t\\t&lt;li>\\n\\t\\t\\t&lt;label for=\\\"name\\\">&lt;em class=\\\"required\\\">*&lt;\\/em> Name&lt;\\/label>\\n\\t\\t\\t&lt;input type=\\\"text\\\" name=\\\"name\\\" id=\\\"name\\\" class=\\\"required\\\" \\/>\\n\\t\\t&lt;\\/li>\\n\\t\\t&lt;li>\\n\\t\\t\\t&lt;label for=\\\"email\\\">&lt;em class=\\\"required\\\">*&lt;\\/em> Email&lt;\\/label>\\n\\t\\t\\t&lt;input type=\\\"text\\\" name=\\\"email\\\" id=\\\"email\\\" class=\\\"required email\\\" \\/>\\n\\t\\t&lt;\\/li>\\n\\t\\t&lt;li>\\n\\t\\t\\t&lt;label for=\\\"website\\\">Website&lt;\\/label>\\n\\t\\t\\t&lt;input type=\\\"text\\\" name=\\\"website\\\" id=\\\"website\\\" \\/>\\n\\t\\t&lt;\\/li>\\n\\t\\t&lt;li>\\n\\t\\t\\t&lt;label for=\\\"comment\\\">&lt;em class=\\\"required\\\">*&lt;\\/em> Comment&lt;\\/label>\\n\\t\\t\\t&lt;textarea name=\\\"comment\\\" id=\\\"comment\\\" class=\\\"required\\\">&lt;\\/textarea>\\n\\t\\t&lt;\\/li>\\n\\t\\t&lt;li class=\\\"buttons\\\">&lt;button type=\\\"submit\\\">Submit&lt;\\/button>&lt;\\/li>\\n\\t&lt;\\/ol>\\n&lt;\\/form><\\/code><\\/pre>\\n\\n<h2>It&rsquo;s JavaScript Time<\\/h2>\\n<p>Get started by including <a href=\\\"http:\\/\\/jquery.com\\/\\\">jQuery<\\/a> and <a href=\\\"http:\\/\\/github.com\\/davist11\\/jQuery-Simple-Validate\\\">my Simple Validate plugin<\\/a>. Then, include them on the page:<\\/p>\\n\\n<pre><code>&lt;script type=\\\"text\\/javascript\\\" src=\\\"scripts\\/jquery.js\\\">&lt;\\/script>\\n&lt;script type=\\\"text\\/javascript\\\" src=\\\"scripts\\/jquery.simpleValidate.min.js\\\">&lt;\\/script><\\/code><\\/pre>\\n\\n<p>Now, I just need to call my plugin on any form that has required fields:<\\/p>\\n<pre><code>$(document).ready(function() {\\n\\t$(\'form.required-form\').simpleValidate();\\n});<\\/code><\\/pre>\\n\\n<p>Just like that, the form validation will work, but I want to customize a few of the options. First, I want to change the error element to use an &lt;em> tag instead of a &lt;strong> tag:<\\/p>\\n\\n<pre><code>$(document).ready(function() {\\n\\t$(\'form.required-form\').simpleValidate(<strong>{\\n\\t\\terrorElement: \'em\'\\n\\t}<\\/strong>);\\n});<\\/code><\\/pre>\\n\\n<p>Then, maybe I decide that I want to submit the form via AJAX. There is no need to add that kind of functionality into the plugin, AJAX is so easy with jQuery. So I just need to tell the plugin that I&rsquo;m going to submit the form with AJAX, and then pass in my callback function which will fire once the form is submitted with no errors:<\\/p>\\n\\n<pre><code>$(document).ready(function() {\\n\\t$(\'form.required-form\').simpleValidate({\\n\\t\\terrorElement: \'em\',\\n\\t\\t<strong>ajaxRequest: true,\\n\\t\\tcompleteCallback: function($el) {\\n\\t\\t\\tvar formData = $el.serialize();\\n\\t\\t\\t\\/\\/Do AJAX request with formData variable\\n\\t\\t}<\\/strong>\\n\\t});\\n});<\\/code><\\/pre>\\n\\n<h3>Options<\\/h3>\\n<p>Here are all of the available options for the plugin:<\\/p>\\n<ul>\\n\\t<li><h4>errorClass: \'error\'<\\/h4> Class for the error message text<\\/li>\\n\\t<li><h4>errorText: \'{label} is a required field.\'<\\/h4> Structure for the error message text, {label} will be replaced with the associated label text<\\/li>\\n\\t<li><h4>emailErrorText: \'Please enter a valid {label}\'<\\/h4> Structure for the email error message text, {label} will be replaced with the associated label text<\\/li>\\n\\t<li><h4>errorElement: \'strong\'<\\/h4> Element to use for the error message text<\\/li>\\n\\t<li><h4>removeLabelChar: \'*\'<\\/h4> If there is an extra character in the label to denote a required field, strip it out<\\/li>\\n\\t<li><h4>inputErrorClass: \'\'<\\/h4> Class to add to an input when it is marked as having an error<\\/li>\\n\\t<li><h4>completeCallback: \'\'<\\/h4> Function to call once the form is error-free<\\/li>\\n\\t<li><h4>ajaxRequest: false<\\/h4> If you don\'t want to use the default form action and want to submit it via AJAX \\n<\\/ul>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jQuery-Simple-Validate\\/\\\">Check out the demo<\\/a> and <a href=\\\"http:\\/\\/github.com\\/davist11\\/jQuery-Simple-Validate\\\">download the plugin from GitHub<\\/a>. Let me know if you run into any bugs or have any feature requests.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','246a2237-63a9-4f00-bee9-96773b9af024',1),(64,82,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"from-wordpress-to-expressionengine\",\"postDate\":1278809759,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>About the time I started my new job at <a href=\\\"http:\\/\\/www.viget.com\\/\\\">Viget Labs<\\/a> in December 2009, I decided that it was time to start working on a redesigned website. This redesign was a chance for me to play around with some of the new CSS3 properties, @font-face, &amp; jQuery.<\\/p>\\n\\n<p>My first three designs have also been very white, so I wanted to try something a little different.<\\/p>\\n<img src=\\\"http:\\/\\/trevordavis.net\\/uploads\\/images\\/content\\/v1.jpg\\\" alt=\\\"Version 1\\\" class=\\\"centered\\\" width=\\\"630\\\" height=\\\"320\\\" \\/>\\n<img src=\\\"http:\\/\\/trevordavis.net\\/uploads\\/images\\/content\\/v2.jpg\\\" alt=\\\"Version 2\\\" class=\\\"centered\\\" width=\\\"630\\\" height=\\\"320\\\" \\/>\\n<img src=\\\"http:\\/\\/trevordavis.net\\/uploads\\/images\\/content\\/v3.jpg\\\" alt=\\\"Version 3\\\" class=\\\"centered\\\" width=\\\"630\\\" height=\\\"320\\\" \\/>\\n\\n<p>I wanted to go with a dark background, and I wanted to be able to change the feel of the site very easily. So by changing the background color in the stylesheet, I can completely change how the site feels. Check it out with <a href=\\\"#ad1010\\\" class=\\\"color-change\\\">red<\\/a>, <a href=\\\"#10ad53\\\" class=\\\"color-change\\\">green<\\/a>, or <a href=\\\"#7d1baa\\\" class=\\\"color-change\\\">purple<\\/a>. All that is done by just simply changing the background color on the body.<\\/p>\\n\\n<p>Another big step in this redesign is finally transitioning to ExpressionEngine. My first experience with content management systems began with WordPress, and I had a good run with it, but I felt like it was time to transition to a &ldquo;real&rdquo; CMS. Let me just say that going transferring posts form WordPress to ExpressionEngine was a huge pain in the butt.<\\/p>\\n\\n<p>ExpressionEngine can import a Movable Type format, but WordPress cannot export into that format. There are various scripts on the web that can convert WordPress to Movable Type, but all of them are outdated. So I decided to approach it by installing Movable Type on my server, importing the WordPress file, and then exporting the Movable Type file. Unfortunately, that process doesn&rsquo;t work that smoothly, and Movable Type kept failing to import the WordPress file. After much searching, I finally found an <a href=\\\"http:\\/\\/www.flashgamer.com\\/2010\\/04\\/converting_from_wordpress_to_e.html\\\">AIR application<\\/a> that can convert from WordPress to Movable Type format.<\\/p>\\n\\n<p>So after some cleanup of the posts, I was finally ready to launch. I haven&rsquo;t looked at the site in IE yet, and I&rsquo;m sure there will be some broken URLs, but I will get to that eventually.<\\/p>\\n\\n<p>I&rsquo;m also hoping to get back to posting articles more regularly here, so stay tuned.<\\/p>\\n\\n<h2>Some Other Notes<\\/h2>\\n<ul>\\n<li>Headings are using Aller &amp; being displayed with @font-face.<\\/li>\\n<li>Thanks go out to my friend <a href=\\\"http:\\/\\/twitter.com\\/neagle\\\">Nate Eagle<\\/a> for helping to write my about page.<\\/li>\\n<li>Thanks also go out to <a href=\\\"http:\\/\\/twitter.com\\/erikreagan\\\">Erik Reagan<\\/a> for helping me with some last minute htaccess rules<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','b22d0cee-0d64-4d36-ad22-1f2b62588df6',1),(65,83,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"transition\",\"postDate\":1278161475,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>It&rsquo;s been a long time since I&rsquo;ve posted anything here, but I&rsquo;m hoping to change that soon. I&rsquo;ve been busy with <a href=\\\"http:\\/\\/www.viget.com\\/\\\">a new job<\\/a>, <a href=\\\"http:\\/\\/www.cdiabu.com\\/\\\">teaching<\\/a>, and I even found time to get married too.<\\/p>\\n<p>I&rsquo;ve been working on building a newly designed site with ExpressionEngine, and I am finally getting to the last stages. The hardest part now is porting all of my posts and comments over. So while I am transitioning, I am going to be turning off comments for this site so that I can pull everything over and not worry about missing anything. If you need to, you can <a href=\\\"\\/contact\\/\\\">contact me through my site<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','8abcb5aa-028d-4ffe-81e8-b6aa67fc516f',1),(66,84,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"youtube-chromeless-video-jquery-plugin\",\"postDate\":1273832132,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>In my latest blog post on the Viget Inspire blog, I discussed a <a href=\\\"http:\\/\\/www.viget.com\\/inspire\\/youtube-chromeless-video-jquery-plugin\\/\\\">YouTube Chromeless Video jQuery Plugin<\\/a> that I wrote while building the <a href=\\\"http:\\/\\/www.puma.com\\/running\\\">PUMA Running site<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','658ddc12-598a-461c-85b7-9e0ffc44a162',1),(67,85,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"jquery-presentation-plugin\",\"postDate\":1269446832,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I&rsquo;m done with Keynote and Powerpoint. I created a <a href=\\\"http:\\/\\/www.viget.com\\/inspire\\/jquery-presentation-plugin\\/\\\">jQuery Presentation Plugin<\\/a> to use when giving presentations.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','a25779e0-317c-47c4-8af8-67a6a1b168a1',1),(68,86,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"a-better-jquery-in-field-label-plugin\",\"postDate\":1265965558,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I&rsquo;ve just written another article for my company blog about using <a href=\\\"http:\\/\\/www.viget.com\\/inspire\\/a-better-jquery-in-field-label-plugin\\/\\\">jQuery in-field labels<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','d26b3c11-6bb2-4ebe-a0c4-51794ed8af19',1),(69,87,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"on-flash\",\"postDate\":1265236966,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Ever since the iPad was announced and we were informed that flash wasn&rsquo;t supported, everyone and their mother has been writing articles about flash. I actually thoroughly enjoyed <a href=\\\"http:\\/\\/jeffcroft.com\\/blog\\/2010\\/feb\\/01\\/flash\\/\\\">Jeff Croft&rsquo;s take<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','36fe36f8-e7c3-4227-86be-ba7bbcc666b7',1),(70,88,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"the-importance-of-teaching-your-clients-and-being-the-boss\",\"postDate\":1264025672,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p><strong>Hallelujah<\\/strong>: &ldquo;We may check the site in a dozen browser and operating configurations but the visitors don&rsquo;t, and never will, we can not forget that&hellip;&rdquo;<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','9771dac4-175d-4d4f-b6cb-e92b98d4752c',1),(71,89,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"do-what-works-best-for-you-not-them\",\"postDate\":1262778122,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Cameron Moll <a href=\\\"http:\\/\\/cameronmoll.com\\/archives\\/2010\\/01\\/do_what_works_best_for_you\\/\\\">reminds us<\\/a> that if something works for you, but isn&rsquo;t recommended by others, who cares. Do what works best for you.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','29c9064f-c114-45ae-986d-4ceacb6e4987',1),(73,91,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"dont-fear-the-fold-people-do-scroll\",\"postDate\":1260827151,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I&rsquo;m definitely in the camp of people who don&rsquo;t believe in the fold in web design, and <a href=\\\"http:\\/\\/www.456bereastreet.com\\/archive\\/200912\\/dont_fear_the_fold_people_do_scroll\\/\\\">this user testing<\\/a> does provide evidence to support that was of thinking. Designs should still be structured so that more important information is higher on the page though.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','b7a42b19-b0a1-4860-a67e-73f274f71afe',1),(74,92,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"simplest-jquery-slideshow\",\"postDate\":1260568329,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I totally agree with <a href=\\\"http:\\/\\/snook.ca\\/archives\\/javascript\\/simplest-jquery-slideshow\\\">this thinking<\\/a>. Everyone loves jQuery plugins, but they can sometimes be extremely bloated for things that can be coded relatively simply.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','70b14669-da59-4ae6-b614-024a557023d1',1),(75,93,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"smashing-magazine-killed-the-community-or-maybe-it-was-me\",\"postDate\":1259177498,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>It is getting pretty tiresome <a href=\\\"http:\\/\\/www.drawar.com\\/articles\\/smashing-magazine-killed-the-community-or-maybe-it-was-me\\/\\\">reading blogs that just have lists<\\/a> as blog posts. Every once in a while they may be ok, but try putting some thought into your posts.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:44','2014-08-08 19:32:26','bc729450-68a9-4a2b-b583-715a8def4e81',1),(76,94,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"freeform-fieldframe-expressionengine-form-builder\",\"postDate\":1258594620,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>A form builder is a regular request for some clients when they are looking for a content management system. There aren&rsquo;t that many CMS that have this kind of functionality built-in, and even if they do, the implementation is usually less than desirable.<\\/p>\\n<p>If you follow along with what I&rsquo;ve been up to, you can probably tell that I have been on a big <a href=\\\"http:\\/\\/expressionengine.com\\/\\\">ExpressionEngine<\\/a> kick. I&rsquo;ve been using it on a ton of projects recently, and I love it for its flexibility. Although it does lack a true form builder, I figured out a simple way to build one.<\\/p>\\n<!--more-->\\n<p>If you are impatient and just want to get to the <a href=\\\"http:\\/\\/ee.trevordavis.net\\/forms\\/contact-form\\/\\\">demo<\\/a>, go ahead. Although the form will look like nothing special, as I have just added some simple styling. The real magic of the form builder happens in the Control Panel.<\\/p>\\n\\n<h2>We Need Add-ons<\\/h2>\\n<p>This form builder would not be possible without the use of some awesome add-ons:<\\/p>\\n\\n<ul>\\n <li><a href=\\\"http:\\/\\/devot-ee.com\\/add-ons\\/extensions\\/fieldframe\\/\\\"><strong>FieldFrame<\\/strong><\\/a><p>This one is a no-brainer. I can&rsquo;t even imagine building a site without it.<\\/p><\\/li>\\n <li><a href=\\\"http:\\/\\/devot-ee.com\\/add-ons\\/modules\\/freeform\\/\\\"><strong>Freeform<\\/strong><\\/a><p>If you need a form in EE, this is the way to do it.<\\/p><\\/li>\\n <li><a href=\\\"http:\\/\\/devot-ee.com\\/add-ons\\/extensions\\/freeform-data-select\\/\\\"><strong>Freeform Data Select<\\/strong><\\/a><p>A new fieldtype which pulls in templates and fields from the Freeform module.<\\/p><\\/li>\\n<\\/ul>\\n\\n<h2>Creating a Field Group<\\/h2>\\n<p>I built a custom Field Group called Forms, which consisted of four fields:<\\/p>\\n\\n<ul>\\n <li>Template<\\/li>\\n <li>Notification Email Addresses<\\/li>\\n <li>Return Page<\\/li>\\n <li>Fields<\\/li>\\n<\\/ul>\\n\\n<p>The first three are pretty simple, so I will just give a quick run through on the specifications for those fields and give a more detail review of the <strong>Fields<\\/strong> field:<\\/p>\\n\\n<h3>Template<\\/h3>\\n<p>This is where you select the Freeform template that will be used for the email. This field is not completely necessary, as just using the default template should be good enough, but I figured since it was an option, to throw it in.<\\/p>\\n<ul>\\n <li><strong>Field Name<\\/strong>: form_template<\\/li>\\n <li><strong>Field Type<\\/strong>: Freeform Data Select<\\/li>\\n <li><strong>Populate drop-down with<\\/strong>: Freeform Templates<\\/li>\\n<\\/ul>\\n\\n<h3>Notification Email Addresses<\\/h3>\\n<p>This is where you will enter the email address(es) that you want to email when the form is submitted. Since Freeform wants multiple email addresses separated by the | character, I added some help text describing that as well.<\\/p>\\n<ul>\\n <li><strong>Field Name<\\/strong>: form_notify<\\/li>\\n <li><strong>Field Type<\\/strong>: Text Input<\\/li>\\n <li><strong>Default Text Formatting for This Field<\\/strong>: None<\\/li>\\n <li><strong>Hide Formatting Menu<\\/strong><\\/li>\\n<\\/ul>\\n\\n<h3>Return Page<\\/h3>\\n<p>This is where you enter the URL to the thank you page. Once a user successfully submits the form, they will be redirected here.<\\/p>\\n<ul>\\n <li><strong>Field Name<\\/strong>: form_return<\\/li>\\n <li><strong>Field Type<\\/strong>: Text Input<\\/li>\\n <li><strong>Default Text Formatting for This Field<\\/strong>: None<\\/li>\\n <li><strong>Hide Formatting Menu<\\/strong><\\/li>\\n<\\/ul>\\n\\n<h3>Fields<\\/h3>\\n<p>This is where the magic happens. This field is a FF Matrix field type that consists of five other fields. Each row of the FF Matrix represents one field (or field group) in the form. I&rsquo;ll give a brief description of each field of the FF Matrix and show you a screenshot so you can get a better picture:<\\/p>\\n\\n<ul>\\n <li><strong>Field Name<\\/strong>: form_field<\\/li>\\n <li><strong>Field Type<\\/strong>: FF Matrix<\\/li>\\n<\\/ul>\\n\\n<h4>Label<\\/h4>\\n<p>This is where you will enter the label for the form field:<\\/p>\\n<ul>\\n <li><strong>Col Name<\\/strong>: label<\\/li>\\n <li><strong>Cell Type<\\/strong>: Text Input<\\/li>\\n<\\/ul>\\n\\n<h4>Field<\\/h4>\\n<p>This field pulls in all of the fields that have been entered into the Freeform module. So you are presented with a dropdown of all of the fields, and you just select the appropriate one:<\\/p>\\n\\n<ul>\\n <li><strong>Col Name<\\/strong>: field<\\/li>\\n <li><strong>Cell Type<\\/strong>: Freeform Data Select<\\/li>\\n <li><strong>Populate drop-down with<\\/strong>: Freeform fields<\\/li>\\n<\\/ul>\\n\\n\\n<h4>Field Type<\\/h4>\\n<p>This is where you select the type of form field you want to use. I put in a few different options, but this could be expanded upon too:<\\/p>\\n\\n<ul>\\n <li><strong>Col Name<\\/strong>: type<\\/li>\\n <li><strong>Cell Type<\\/strong>: FF Select<\\/li>\\n <li><strong>Select Options<\\/strong>: Text Input<br \\/>\\n  Textarea<br \\/>\\n  Select<br \\/>\\n  Multi-select<br \\/>\\n  Checkbox<br \\/>\\n  Checkbox Group<br \\/>\\n  Radio Group\\n <\\/li>\\n<\\/ul>\\n\\n<h4>Is this field required?<\\/h4>\\n<p>With most forms, there are some fields that are required and some that are not. If you want the field to be required, you just check the checkbox and the Freeform module will make sure it is filled in:<\\/p>\\n\\n<ul>\\n <li><strong>Col Name<\\/strong>: required<\\/li>\\n <li><strong>Cell Type<\\/strong>: FF Checkbox<\\/li>\\n <li><strong>Checkbox Label<\\/strong>: Is this field required?<\\/li>\\n<\\/ul>\\n\\n<h4>Options<\\/h4>\\n<p>Finally, this field is used when you select a field type that has multiple options. For example, if you select a &ldquo;Select&rdquo; field type, you need to provide the options to populate it. So you enter the options separated by the | character:<\\/p>\\n\\n<ul>\\n <li><strong>Col Name<\\/strong>: options<\\/li>\\n <li><strong>Cell Type<\\/strong>: Text Input<\\/li>\\n<\\/ul>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/11\\/ff-matrix.png\\\" title=\\\"FieldFrame Matrix Configuration\\\" rel=\\\"lightbox\\\"><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/11\\/ff-matrix_thumb.png\\\" alt=\\\"FieldFrame Matrix Configuration\\\" width=\\\"570\\\" height=\\\"203\\\" class=\\\"pullLeft frame\\\" \\/><\\/a><\\/p>\\n\\n<p>So that is all you need for the Field Group, now go ahead and create a Forms Channel (or Weblog) and make sure to assign the Forms Field Group to it.<\\/p>\\n\\n<p>Now, when you go to publish a Forms entry, you should see something like this:<\\/p>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/11\\/form-entry.png\\\" rel=\\\"lightbox\\\" title=\\\"New Forms Entry\\\"><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/11\\/form-entry_thumb.png\\\" alt=\\\"New Forms Entry\\\" width=\\\"570\\\" height=\\\"258\\\" class=\\\"pullLeft frame\\\" \\/><\\/a><\\/p>\\n\\n<p>I made a <a href=\\\"http:\\/\\/ee.trevordavis.net\\/forms\\/contact-form\\/\\\">demo form<\\/a> showing off the various types of form fields. Here is what that entry looks like in the Control Panel:<\\/p>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/11\\/demo-entry.png\\\" rel=\\\"lightbox\\\" title=\\\"Demo Form Entry in Control Panel\\\"><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/11\\/demo-entry_thumb.png\\\" alt=\\\"Demo Form Entry in Control Panel\\\" width=\\\"570\\\" height=\\\"400\\\" class=\\\"pullLeft frame\\\" \\/><\\/a><\\/p>\\n\\n<h2>Template<\\/h2>\\n<p>Now that we have our Channel and Field Group all setup, we need to deal with the template. You could really setup your template\\/template group in various ways, so I&rsquo;m not going to get into those details. One detail that you need to know is that <strong>I enabled PHP for my template<\\/strong>.<\\/p>\\n\\n<p>First, we just need to start with a simple <strong>exp:weblog:entries<\\/strong> tag:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;exp:weblog:entries&nbsp;weblog=\\\"forms\\\"&nbsp;limit=\\\"1\\\"&nbsp;disable=\\\"categories|category_fields|member_data|pagination|trackbacks\\\"&#125;<br \\/>\\u2026<br \\/>&#123;\\/exp:weblog:entries&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Next, we want to start the Freeform form tag:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;exp:weblog:entries&nbsp;weblog=\\\"forms\\\"&nbsp;limit=\\\"1\\\"&nbsp;disable=\\\"categories|category_fields|member_data|pagination|trackbacks\\\"&#125;<br \\/>&nbsp;&#123;exp:freeform:form&nbsp;form_name=\\\"&#123;url_title&#125;\\\"&nbsp;form_id=\\\"&#123;url_title&#125;\\\"&nbsp;template=\\\"&#123;form_template&#125;\\\"&nbsp;notify=\\\"&#123;form_notify&#125;\\\"&nbsp;return=\\\"&#123;form_return&#125;\\\"&#125;<br \\/>&nbsp;\\u2026<br \\/>&nbsp;&#123;\\/exp:freeform:form&#125;<br \\/>&#123;\\/exp:weblog:entries&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Since we are inside of the exp:weblog:entries tag, we have access to everything that is being returned from that entry. If you have any questions about the various parameters, <a href=\\\"http:\\/\\/www.solspace.com\\/docs\\/detail\\/freeform_form\\/#parameters\\\">refer to the Freeform Documentation<\\/a>.<\\/p>\\n\\n<p>So far, the values that we are passing into the parameters are pretty straightforward, just custom fields from our entry. But, passing in the <a href=\\\"http:\\/\\/www.solspace.com\\/docs\\/detail\\/freeform_form\\/#required\\\">required<\\/a> parameter is a little more challenging, since we have to loop through all of the rows in our FF Matrix.<\\/p>\\n\\n<p>If we <a href=\\\"http:\\/\\/brandon-kelly.com\\/fieldframe\\/docs\\/ff-matrix\\\">refer to the FF Matrix documentation<\\/a>, we can see how to loop through the rows in the matrix. I only want to return rows that have the required checkbox checked, and I want to separate the names of the fields with the | character. Then, I use the backspace parameter to remove the last one:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;exp:freeform:form&nbsp;form_name=\\\"&#123;url_title&#125;\\\"&nbsp;form_id=\\\"&#123;url_title&#125;\\\"&nbsp;template=\\\"&#123;form_template&#125;\\\"&nbsp;notify=\\\"&#123;form_notify&#125;\\\"&nbsp;return=\\\"&#123;form_return&#125;\\\"&nbsp;&lt;strong&gt;required=\\\"&#123;form_field&nbsp;search:required=\'y\'&nbsp;backspace=\'1\'&#125;&#123;field&#125;|&#123;\\/form_field&#125;\\\"&lt;\\/strong&gt;&#125;<br \\/>\\u2026<br \\/>&#123;\\/exp:freeform:form&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Next, we want to add a title, ordered list that will contain the form fields, and the submit button:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;exp:freeform:form&nbsp;form_name=\\\"&#123;url_title&#125;\\\"&nbsp;form_id=\\\"&#123;url_title&#125;\\\"&nbsp;template=\\\"&#123;form_template&#125;\\\"&nbsp;notify=\\\"&#123;form_notify&#125;\\\"&nbsp;return=\\\"&#123;form_return&#125;\\\"&nbsp;required=\\\"&#123;form_field&nbsp;search:required=\'y\'&nbsp;backspace=\'1\'&#125;&#123;field&#125;|&#123;\\/form_field&#125;\\\"&#125;<br \\/>&nbsp;&lt;h1&gt;&#123;title&#125;&lt;\\/h1&gt;<br \\/>&nbsp;&lt;ol&nbsp;class=\\\"forms\\\"&gt;<br \\/>&nbsp;&nbsp;\\u2026<br \\/>&nbsp;&nbsp;&lt;li&nbsp;class=\\\"buttons\\\"&gt;&lt;input&nbsp;type=\\\"submit\\\"&nbsp;name=\\\"submit\\\"&nbsp;value=\\\"submit\\\"&nbsp;\\/&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;\\/ol&gt;<br \\/>&#123;\\/exp:freeform:form&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Now here is where the code gets interesting. Just like we did with the required parameter, we want to loop through each row in the FF Matrix and display a list item for each one:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;form_field&#125;<br \\/>&nbsp;&lt;li&gt;<br \\/>&nbsp;\\u2026<br \\/>&nbsp;&lt;\\/li&gt;<br \\/>&#123;\\/form_field&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>First, let&rsquo;s display the label, if there is one, and denote if the field is required or not:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;if&nbsp;\\\"&#123;label&#125;\\\"&#125;<br \\/>&nbsp;&lt;label&nbsp;for=\\\"&#123;field&#125;\\\"&gt;&#123;if&nbsp;\\\"&#123;required&#125;\\\"&nbsp;==&nbsp;\\\"y\\\"&#125;&lt;em&nbsp;class=\\\"required\\\"&gt;*&lt;\\/em&gt;&#123;\\/if&#125;&#123;label&#125;&lt;\\/label&gt;<br \\/>&#123;\\/if&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>The rest of the code is a big conditional statement which depends upon the Field Types that you specified in the FF Matrix. Let&rsquo;s first take a look at the <strong>Text Input<\\/strong>, <strong>Textarea<\\/strong>, and <strong>Checkbox<\\/strong> types since they are pretty straightforward:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;if&nbsp;\\\"&#123;type&#125;\\\"&nbsp;==&nbsp;\\\"Text&nbsp;Input\\\"&#125;<br \\/>&nbsp;&lt;input&nbsp;type=\\\"text\\\"&nbsp;name=\\\"&#123;field&#125;\\\"&nbsp;id=\\\"&#123;field&#125;\\\"&nbsp;\\/&gt;<br \\/>&#123;if:elseif&nbsp;\\\"&#123;type&#125;\\\"&nbsp;==&nbsp;\\\"Textarea\\\"&#125;<br \\/>&nbsp;&lt;textarea&nbsp;name=\\\"&#123;field&#125;\\\"&nbsp;id=\\\"&#123;field&#125;\\\"&gt;&lt;\\/textarea&gt;<br \\/>&#123;if:elseif&nbsp;\\\"&#123;type&#125;\\\"&nbsp;==&nbsp;\\\"Checkbox\\\"&#125;<br \\/>&nbsp;&lt;input&nbsp;type=\\\"checkbox\\\"&nbsp;class=\\\"checkbox\\\"&nbsp;name=\\\"&#123;field&#125;\\\"&nbsp;id=\\\"&#123;field&#125;\\\"&nbsp;\\/&gt;<br \\/>\\u2026<br \\/>&#123;\\/if&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>So we are just checking the type column in the FF Matrix, and then displaying the rest of the data from the row in the appropriate form field.<\\/p>\\n\\n<p>Next, let&rsquo;s walk through what happens if you select the <strong>Select<\\/strong> or <strong>Multi-select<\\/strong> types:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;if:elseif&nbsp;\\\"&#123;type&#125;\\\"&nbsp;==&nbsp;\\\"Select\\\"&nbsp;||&nbsp;\\\"&#123;type&#125;\\\"&nbsp;==&nbsp;\\\"Multi-select\\\"&nbsp;&amp;&amp;&nbsp;\\\"&#123;options&#125;\\\"&#125;<br \\/>&nbsp;&lt;select&nbsp;name=\\\"&#123;field&#125;&#123;if&nbsp;\\\"&#123;type&#125;\\\"&nbsp;==&nbsp;\\\"Multi-select\\\"&#125;&#91;&#93;&#123;\\/if&#125;\\\"&nbsp;id=\\\"&#123;field&#125;\\\"&#123;if&nbsp;\\\"&#123;type&#125;\\\"&nbsp;==&nbsp;\\\"Multi-select\\\"&#125;&nbsp;multiple=\\\"multiple\\\"&nbsp;size=\\\"4\\\"&#123;\\/if&#125;&gt;<br \\/>&nbsp;&nbsp;&lt;?php&nbsp;$items&nbsp;=&nbsp;explode(\\\"|\\\",&nbsp;\'&#123;options&#125;\');&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&lt;?php&nbsp;foreach&nbsp;($items&nbsp;as&nbsp;$item)&nbsp;&#123;&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;option&nbsp;value=\\\"&lt;?php&nbsp;echo&nbsp;$item;&nbsp;?&gt;\\\"&gt;&lt;?php&nbsp;echo&nbsp;$item;&nbsp;?&gt;&lt;\\/option&gt;<br \\/>&nbsp;&nbsp;&lt;?php&nbsp;&#125;&nbsp;?&gt;<br \\/>&nbsp;&lt;\\/select&gt;<br \\/>\\u2026<br \\/>&#123;\\/if&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>So first, we are displaying the <strong>select element<\\/strong>, and if it is a <strong>Multi-select<\\/strong>, we are adding <strong>[]<\\/strong> to the name attribute, and adding the <strong>multiple<\\/strong> and <strong>size<\\/strong> attributes.<\\/p>\\n\\n<p>Next, we want to take the string of <strong>options<\\/strong> that are separated by the | character, and create an array out of the string using the <a href=\\\"http:\\/\\/php.net\\/manual\\/en\\/function.explode.php\\\">explode function<\\/a>.<\\/p>\\n\\n<p>Then, we loop through the array, and display the options for each one.<\\/p>\\n\\n<p>Finally, we do virtually the same thing for the <strong>Radio Group<\\/strong> and <strong>Checkbox Group<\\/strong> field types:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;if:elseif&nbsp;\\\"&#123;type&#125;\\\"&nbsp;==&nbsp;\\\"Radio&nbsp;Group\\\"&nbsp;&amp;&amp;&nbsp;\\\"&#123;options&#125;\\\"&#125;<br \\/>&nbsp;&lt;ul&nbsp;class=\\\"group\\\"&gt;<br \\/>&nbsp;&nbsp;&lt;?php&nbsp;$items&nbsp;=&nbsp;explode(\\\"|\\\",&nbsp;\'&#123;options&#125;\');&nbsp;$count&nbsp;=&nbsp;1;&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&lt;?php&nbsp;foreach&nbsp;($items&nbsp;as&nbsp;$item)&nbsp;&#123;&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;input&nbsp;type=\\\"radio\\\"&nbsp;class=\\\"radio\\\"&nbsp;name=\\\"&#123;field&#125;\\\"&nbsp;id=\\\"&#123;field&#125;&lt;?php&nbsp;echo&nbsp;$count;&nbsp;?&gt;\\\"&nbsp;value=\\\"&lt;?php&nbsp;echo&nbsp;$item;&nbsp;?&gt;\\\"&nbsp;\\/&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;label&nbsp;for=\\\"&#123;field&#125;&lt;?php&nbsp;echo&nbsp;$count;&nbsp;?&gt;\\\"&gt;&lt;?php&nbsp;echo&nbsp;$item;&nbsp;?&gt;&lt;\\/label&gt;&lt;\\/li&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;?php&nbsp;$count++;&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&lt;?php&nbsp;&#125;&nbsp;?&gt;<br \\/>&nbsp;&lt;\\/ul&gt;<br \\/>&#123;if:elseif&nbsp;\\\"&#123;type&#125;\\\"&nbsp;==&nbsp;\\\"Checkbox&nbsp;Group\\\"&nbsp;&amp;&amp;&nbsp;\\\"&#123;options&#125;\\\"&#125;<br \\/>&nbsp;&lt;ul&nbsp;class=\\\"group\\\"&gt;<br \\/>&nbsp;&nbsp;&lt;?php&nbsp;$items&nbsp;=&nbsp;explode(\\\"|\\\",&nbsp;\'&#123;options&#125;\');&nbsp;$count&nbsp;=&nbsp;1;&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&lt;?php&nbsp;foreach&nbsp;($items&nbsp;as&nbsp;$item)&nbsp;&#123;&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;input&nbsp;type=\\\"checkbox\\\"&nbsp;class=\\\"checkbox\\\"&nbsp;name=\\\"&#123;field&#125;&#91;&#93;\\\"&nbsp;id=\\\"&#123;field&#125;&lt;?php&nbsp;echo&nbsp;$count;&nbsp;?&gt;\\\"&nbsp;value=\\\"&lt;?php&nbsp;echo&nbsp;$item;&nbsp;?&gt;\\\"&nbsp;\\/&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;label&nbsp;for=\\\"&#123;field&#125;&lt;?php&nbsp;echo&nbsp;$count;&nbsp;?&gt;\\\"&gt;&lt;?php&nbsp;echo&nbsp;$item;&nbsp;?&gt;&lt;\\/label&gt;&lt;\\/li&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;?php&nbsp;$count++;&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&lt;?php&nbsp;&#125;&nbsp;?&gt;<br \\/>&nbsp;&lt;\\/ul&gt;<br \\/>&#123;\\/if&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>So that&rsquo;s it really. Here is the full template:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;exp:weblog:entries&nbsp;weblog=\\\"forms\\\"&nbsp;limit=\\\"1\\\"&nbsp;disable=\\\"categories|category_fields|member_data|pagination|trackbacks\\\"&#125;<br \\/><br \\/>&nbsp;&#123;exp:freeform:form&nbsp;form_name=\\\"&#123;url_title&#125;\\\"&nbsp;form_id=\\\"&#123;url_title&#125;\\\"&nbsp;template=\\\"&#123;form_template&#125;\\\"&nbsp;notify=\\\"&#123;form_notify&#125;\\\"&nbsp;return=\\\"&#123;form_return&#125;\\\"&nbsp;required=\\\"&#123;form_field&nbsp;search:required=\'y\'&nbsp;backspace=\'1\'&#125;&#123;field&#125;|&#123;\\/form_field&#125;\\\"&#125;<br \\/><br \\/>&nbsp;&nbsp;&lt;h1&gt;&#123;title&#125;&lt;\\/h1&gt;<br \\/>&nbsp;&nbsp;&lt;ol&nbsp;class=\\\"forms\\\"&gt;<br \\/>&nbsp;&nbsp;&nbsp;&#123;form_field&#125;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;if&nbsp;\\\"&#123;label&#125;\\\"&#125;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label&nbsp;for=\\\"&#123;field&#125;\\\"&gt;&#123;if&nbsp;\\\"&#123;required&#125;\\\"&nbsp;==&nbsp;\\\"y\\\"&#125;&lt;em&nbsp;class=\\\"required\\\"&gt;*&lt;\\/em&gt;&#123;\\/if&#125;&#123;label&#125;&lt;\\/label&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;\\/if&#125;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;if&nbsp;\\\"&#123;type&#125;\\\"&nbsp;==&nbsp;\\\"Text&nbsp;Input\\\"&#125;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type=\\\"text\\\"&nbsp;name=\\\"&#123;field&#125;\\\"&nbsp;id=\\\"&#123;field&#125;\\\"&nbsp;\\/&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;if:elseif&nbsp;\\\"&#123;type&#125;\\\"&nbsp;==&nbsp;\\\"Textarea\\\"&#125;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;textarea&nbsp;name=\\\"&#123;field&#125;\\\"&nbsp;id=\\\"&#123;field&#125;\\\"&gt;&lt;\\/textarea&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;if:elseif&nbsp;\\\"&#123;type&#125;\\\"&nbsp;==&nbsp;\\\"Checkbox\\\"&#125;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type=\\\"checkbox\\\"&nbsp;class=\\\"checkbox\\\"&nbsp;name=\\\"&#123;field&#125;\\\"&nbsp;id=\\\"&#123;field&#125;\\\"&nbsp;\\/&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;if:elseif&nbsp;\\\"&#123;type&#125;\\\"&nbsp;==&nbsp;\\\"Select\\\"&nbsp;||&nbsp;\\\"&#123;type&#125;\\\"&nbsp;==&nbsp;\\\"Multi-select\\\"&nbsp;&amp;&amp;&nbsp;\\\"&#123;options&#125;\\\"&#125;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;select&nbsp;name=\\\"&#123;field&#125;&#123;if&nbsp;\\\"&#123;type&#125;\\\"&nbsp;==&nbsp;\\\"Multi-select\\\"&#125;&#91;&#93;&#123;\\/if&#125;\\\"&nbsp;id=\\\"&#123;field&#125;\\\"&#123;if&nbsp;\\\"&#123;type&#125;\\\"&nbsp;==&nbsp;\\\"Multi-select\\\"&#125;&nbsp;multiple=\\\"multiple\\\"&nbsp;size=\\\"4\\\"&#123;\\/if&#125;&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php&nbsp;$items&nbsp;=&nbsp;explode(\\\"|\\\",&nbsp;\'&#123;options&#125;\');&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php&nbsp;foreach&nbsp;($items&nbsp;as&nbsp;$item)&nbsp;&#123;&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;option&nbsp;value=\\\"&lt;?php&nbsp;echo&nbsp;$item;&nbsp;?&gt;\\\"&gt;&lt;?php&nbsp;echo&nbsp;$item;&nbsp;?&gt;&lt;\\/option&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php&nbsp;&#125;&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;\\/select&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;if:elseif&nbsp;\\\"&#123;type&#125;\\\"&nbsp;==&nbsp;\\\"Radio&nbsp;Group\\\"&nbsp;&amp;&amp;&nbsp;\\\"&#123;options&#125;\\\"&#125;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&nbsp;class=\\\"group\\\"&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php&nbsp;$items&nbsp;=&nbsp;explode(\\\"|\\\",&nbsp;\'&#123;options&#125;\');&nbsp;$count&nbsp;=&nbsp;1;&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php&nbsp;foreach&nbsp;($items&nbsp;as&nbsp;$item)&nbsp;&#123;&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;input&nbsp;type=\\\"radio\\\"&nbsp;class=\\\"radio\\\"&nbsp;name=\\\"&#123;field&#125;\\\"&nbsp;id=\\\"&#123;field&#125;&lt;?php&nbsp;echo&nbsp;$count;&nbsp;?&gt;\\\"&nbsp;value=\\\"&lt;?php&nbsp;echo&nbsp;$item;&nbsp;?&gt;\\\"&nbsp;\\/&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label&nbsp;for=\\\"&#123;field&#125;&lt;?php&nbsp;echo&nbsp;$count;&nbsp;?&gt;\\\"&gt;&lt;?php&nbsp;echo&nbsp;$item;&nbsp;?&gt;&lt;\\/label&gt;&lt;\\/li&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php&nbsp;$count++;&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php&nbsp;&#125;&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;\\/ul&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;if:elseif&nbsp;\\\"&#123;type&#125;\\\"&nbsp;==&nbsp;\\\"Checkbox&nbsp;Group\\\"&nbsp;&amp;&amp;&nbsp;\\\"&#123;options&#125;\\\"&#125;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&nbsp;class=\\\"group\\\"&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php&nbsp;$items&nbsp;=&nbsp;explode(\\\"|\\\",&nbsp;\'&#123;options&#125;\');&nbsp;$count&nbsp;=&nbsp;1;&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php&nbsp;foreach&nbsp;($items&nbsp;as&nbsp;$item)&nbsp;&#123;&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;input&nbsp;type=\\\"checkbox\\\"&nbsp;class=\\\"checkbox\\\"&nbsp;name=\\\"&#123;field&#125;&#91;&#93;\\\"&nbsp;id=\\\"&#123;field&#125;&lt;?php&nbsp;echo&nbsp;$count;&nbsp;?&gt;\\\"&nbsp;value=\\\"&lt;?php&nbsp;echo&nbsp;$item;&nbsp;?&gt;\\\"&nbsp;\\/&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label&nbsp;for=\\\"&#123;field&#125;&lt;?php&nbsp;echo&nbsp;$count;&nbsp;?&gt;\\\"&gt;&lt;?php&nbsp;echo&nbsp;$item;&nbsp;?&gt;&lt;\\/label&gt;&lt;\\/li&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php&nbsp;$count++;&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php&nbsp;&#125;&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;\\/ul&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;\\/if&#125;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;\\/li&gt;<br \\/>&nbsp;&nbsp;&nbsp;&#123;\\/form_field&#125;<br \\/>&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=\\\"buttons\\\"&gt;&lt;input&nbsp;type=\\\"submit\\\"&nbsp;name=\\\"submit\\\"&nbsp;value=\\\"submit\\\"&nbsp;\\/&gt;&lt;\\/li&gt;<br \\/>&nbsp;&nbsp;&lt;\\/ol&gt;<br \\/>&nbsp;&#123;\\/exp:freeform:form&#125;&nbsp;&nbsp;<br \\/>&#123;\\/exp:weblog:entries&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<h2>Conclusion<\\/h2>\\n<p>This is not meant to be an all-inclusive form builder, as you can see there are <a href=\\\"http:\\/\\/www.solspace.com\\/docs\\/detail\\/freeform_form\\/#parameters\\\">many other parameters for the Freeform module<\\/a>. But, this was meant to show a creative use of ExpressionEngine and EE add-ons to add functionality that is not directly built into the CMS.<\\/p>\\n\\n<p>So go forth and create.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:45','2014-08-08 19:32:26','e2cd7e12-dd84-4002-98cf-63832f7deb08',1),(77,95,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"reversed-ordered-list-jquery\",\"postDate\":1257901269,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>At work this past week, a client requested something that I wasn&rsquo;t sure how to achieve: a reversed ordered list. So basically, they wanted to have a top 10 list, with the first item being numbered 10 and the last 1.<\\/p>\\n<!--more-->\\n<p>If you want to <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/reversed-ordered-list-with-jquery\\/\\\">skip ahead to the demo<\\/a>, go ahead.<\\/p>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/play\\/reversed-ordered-list-with-jquery\\/\\\" class=\\\"more-link\\\">View Demo<\\/a><\\/p>\\n\\n<p>Now sure, I could have just written the numbers in as text, but it&rsquo;s a list, and it&rsquo;s ordered! Here is an example of what the client wanted:<\\/p>\\n\\n<p>10. Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br \\/>\\n9. Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br \\/>\\n8. Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br \\/>\\n&hellip;<br \\/>\\n1. Lorem ipsum dolor sit amet, consectetur adipiscing elit.<\\/p>\\n\\n<p>After some digging around, I found out that you can add the <strong>value attribute<\\/strong> to each list item to specify the number to display. So basically, I just needed to code my list like this:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&lt;ol&gt;<br \\/>&nbsp;&lt;li&nbsp;value=\\\"10\\\"&gt;Lorem&nbsp;ipsum&nbsp;dolor&nbsp;sit&nbsp;amet,&nbsp;consectetur&nbsp;adipiscing&nbsp;elit.&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&nbsp;value=\\\"9\\\"&gt;Lorem&nbsp;ipsum&nbsp;dolor&nbsp;sit&nbsp;amet,&nbsp;consectetur&nbsp;adipiscing&nbsp;elit.&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&nbsp;value=\\\"8\\\"&gt;Lorem&nbsp;ipsum&nbsp;dolor&nbsp;sit&nbsp;amet,&nbsp;consectetur&nbsp;adipiscing&nbsp;elit.&lt;\\/li&gt;<br \\/>&nbsp;&amp;hellip;<br \\/>&nbsp;&lt;li&nbsp;value=\\\"1\\\"&gt;Lorem&nbsp;ipsum&nbsp;dolor&nbsp;sit&nbsp;amet,&nbsp;consectetur&nbsp;adipiscing&nbsp;elit.&lt;\\/li&gt;<br \\/>&lt;\\/ol&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Pretty straightforward, but also pretty ugly. So what happens when the client decides they want to insert another bullet in the middle of the list? Yep, that&rsquo;s right, they would have to adjust the numbering for the rest of the list.<\\/p>\\n\\n<p>Pretty crappy, so let&rsquo;s use the powerfulness of jQuery to make this a little better.<\\/p>\\n\\n<h2>The Markup<\\/h2>\\n<p>So just like before, we just want to create an ordered list, but this time, we will leave off the value attribute. We are also going to add a class to the ordered list that we will use as a hook to add in the jQuery functionality:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&lt;ol&nbsp;class=\\\"reversed\\\"&gt;<br \\/>&nbsp;&lt;li&gt;Lorem&nbsp;ipsum&nbsp;dolor&nbsp;sit&nbsp;amet,&nbsp;consectetur&nbsp;adipiscing&nbsp;elit.&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&gt;Lorem&nbsp;ipsum&nbsp;dolor&nbsp;sit&nbsp;amet,&nbsp;consectetur&nbsp;adipiscing&nbsp;elit.&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&gt;Lorem&nbsp;ipsum&nbsp;dolor&nbsp;sit&nbsp;amet,&nbsp;consectetur&nbsp;adipiscing&nbsp;elit.&lt;\\/li&gt;<br \\/>&nbsp;&amp;hellip;<br \\/>&nbsp;&lt;li&gt;Lorem&nbsp;ipsum&nbsp;dolor&nbsp;sit&nbsp;amet,&nbsp;consectetur&nbsp;adipiscing&nbsp;elit.&lt;\\/li&gt;<br \\/>&lt;\\/ol&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<h2>The jQuery<\\/h2>\\n<p>Mapping out the code a bit: we want to select each element with a class of reversed, and count the total number of children list items. Then, we want to loop through the children, and update the value attribute to be the value of the total number of children minus a counter variable that we started at zero and increment each time through the loop.<\\/p>\\n\\n<p>That seems relatively straightforward, so I&rsquo;ll just show the code that I wrote:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'.reversed\').each(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;var&nbsp;$children&nbsp;=&nbsp;$(this).children(\'li\');<br \\/>&nbsp;&nbsp;var&nbsp;totalChildren&nbsp;=&nbsp;$children.length;<br \\/>&nbsp;&nbsp;var&nbsp;start&nbsp;=&nbsp;0;<br \\/>&nbsp;&nbsp;$children.each(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$(this).val(totalChildren&nbsp;-&nbsp;start);<br \\/>&nbsp;&nbsp;&nbsp;start++;<br \\/>&nbsp;&nbsp;&#125;);<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/play\\/reversed-ordered-list-with-jquery\\/\\\" class=\\\"more-link\\\">View Demo<\\/a><\\/p>\\n\\n<p>It looks like with HTML 5, we get a <a href=\\\"http:\\/\\/blog.whatwg.org\\/reverse-ordered-lists\\\">reversed attribute<\\/a> that accomplishes the same thing, but until it&rsquo;s fully supported, this quick &amp; easy solution seems to work.<\\/p>\\n\\n<h2>On a Personal Note<\\/h2>\\n<p>I have been severely neglecting my blog, but for good reason. I have been teaching some intro to web development courses at <a href=\\\"http:\\/\\/www.cdiabu.com\\/\\\">CDIABU<\\/a> in Georgetown. Also, I will be starting a new job on December 1st. I will be joining the amazing team at <a href=\\\"http:\\/\\/www.viget.com\\/\\\">Viget Labs<\\/a> as their new front-end developer.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:45','2014-08-08 19:32:26','cfef9688-522b-4341-9c5a-860ed7653cbe',1),(78,96,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"creativity-is-not-design-design-test-2\",\"postDate\":1257211321,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Andy Rutledge has created a <a href=\\\"http:\\/\\/www.andyrutledge.com\\/creativity-is-not-design-test-2.php\\\">second design test<\\/a> to show that creativity does not necessarily mean you are an effective designer. The <a href=\\\"http:\\/\\/www.andyrutledge.com\\/design-test.php\\\">first test<\\/a> is excellent as well. I need to learn more about design principles&hellip;<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:45','2014-08-08 19:32:26','1e772936-e917-40db-a71c-6e63bd14a25a',1),(79,97,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"expressionengine-embed-an-embed-within-itself\",\"postDate\":1255788025,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>At work this week, there was discussion on how to accomplish something in ExpressionEngine. We wanted to pull in entries that were in one category, but if there were no entries, then pull in from other categories and display that instead. We were kind of stumped as to how to do that.<\\/p>\\n<!--more-->\\n<p>I&rsquo;m not sure if we were missing some easy way to do that, but we couldn&rsquo;t think of a nice way to accomplish it.<\\/p>\\n\\n<h2>Let&rsquo;s Backup<\\/h2>\\n<p>I guess it will be helpful to give you some more context. We had created a Channel (our term for Weblog) for <strong>events<\\/strong>. You could categorize the events, and they would publish in different places.<\\/p>\\n<p>In this instance, the homepage, we wanted to pull an event from one category, but if there were none, then just display an event from another category.<\\/p>\\n\\n<h2>The Initial Code<\\/h2>\\n\\n<p>This code was separated out in an embed so that we could use it in various places on the site:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;assign_variable:channel_name=\\\"&#123;embed:channel&#125;\\\"&#125;<br \\/>&#123;assign_variable:category_id=\\\"&#123;embed:category&#125;\\\"&#125;<br \\/><br \\/>&#123;exp:weblog:entries&nbsp;weblog=\\\"&#123;channel_name&#125;\\\"&nbsp;category=\\\"&#123;category_id&#125;\\\"&nbsp;show_future_entries=\\\"yes\\\"&nbsp;show_expired=\\\"no\\\"&nbsp;limit=\\\"1\\\"&nbsp;disable=\\u00e2\\u20ac\\u0153category_fields|custom_fields|member_data|pagination|trackbacks\\u00e2\\u20ac\\u009d&#125;<br \\/><br \\/>&nbsp;&lt;h2&gt;&#123;title&#125;&lt;\\/h2&gt;<br \\/>&nbsp;&#123;if&nbsp;events_feature_image&#125;<br \\/>&nbsp;&nbsp;&lt;p&nbsp;class=\\\"rightSide\\\"&gt;&lt;a&nbsp;href=\\\"&#123;url_title_path=\\\"&#123;embed:template_path&#125;\\\"&#125;\\\"&gt;&lt;img&nbsp;src=\\\"&#123;events_feature_image&#125;\\\"&nbsp;alt=\\\"\\\"&nbsp;\\/&gt;&lt;\\/a&gt;&lt;\\/p&gt;<br \\/>&nbsp;&#123;\\/if&#125;<br \\/>&nbsp;&#123;if&nbsp;events_summary&#125;<br \\/>&nbsp;&nbsp;&#123;events_summary&#125;<br \\/>&nbsp;&#123;\\/if&#125;<br \\/><br \\/>&nbsp;&lt;p&gt;&lt;a&nbsp;href=\\\"&#123;url_title_path=\\\"&#123;embed:template_path&#125;\\\"&#125;\\\"&nbsp;class=\\\"more\\\"&gt;Read&nbsp;more&nbsp;&amp;raquo;&lt;\\/a&gt;&lt;\\/p&gt;<br \\/>&#123;\\/exp:weblog:entries&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>The code doesn&rsquo;t really need to be explained; it&rsquo;s not the important part of this post. So on the homepage, we had code that looked like this to pull in the event:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;embed=\\\"site\\/.events\\\"&nbsp;channel=\\\"events\\\"&nbsp;category=\\\"7\\\"&nbsp;template_path=\\\"news-events\\/events\\\"&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Now, what we really wanted to be able to do was to modify the <strong>exp:weblog:entries<\\/strong> code to pull from a different category if there were no results. Something like this:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;exp:weblog:entries&nbsp;weblog=\\\"&#123;channel_name&#125;\\\"&nbsp;category=\\\"&#123;category_id&#125;\\\"&nbsp;show_future_entries=\\\"yes\\\"&nbsp;show_expired=\\\"no\\\"&nbsp;limit=\\\"1\\\"&nbsp;disable=\\u00e2\\u20ac\\u0153category_fields|custom_fields|member_data|pagination|trackbacks\\u00e2\\u20ac\\u009d&#125;<br \\/>&amp;hellip;<br \\/>&nbsp;&#123;if&nbsp;no_results&#125;<br \\/>&nbsp;&nbsp;Code&nbsp;&nbsp;to&nbsp;pull&nbsp;from&nbsp;a&nbsp;different&nbsp;category<br \\/>&nbsp;&#123;\\/if&#125;<br \\/>&amp;hellip;<br \\/>&#123;\\/exp:weblog:entries&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>But the problem was, there really was no code that we could put in there that would pull from another category since you can&rsquo;t nest <strong>exp:weblog:entries<\\/strong> tags. So that&rsquo;s when I remembered that you could stick an embed file in there that could have the <strong>exp:weblog:entries<\\/strong> tag inside of it.<\\/p>\\n\\n<p>Then we realized that the code we wanted to write would be exactly like the code in the embed file we were already working with.<\\/p>\\n\\n<p>So we did a little investigation and found out that <a href=\\\"http:\\/\\/expressionengine.com\\/docs\\/templates\\/embedding_templates.html\\\">according to the documentation (see notes section)<\\/a>, you cannot embed an embed within itself.<\\/p>\\n\\n<p>That makes sense, because you could create an infinite loop. But what if we knew that it would not return an infinite loop?<\\/p>\\n\\n<h2>Modified Code<\\/h2>\\n\\n<p>So we determined that what we could do is not pass in the category on the embed statement, and that would pull back any events.<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;exp:weblog:entries&nbsp;weblog=\\\"&#123;channel_name&#125;\\\"&nbsp;category=\\\"&#123;category_id&#125;\\\"&nbsp;show_future_entries=\\\"yes\\\"&nbsp;show_expired=\\\"no\\\"&nbsp;limit=\\\"1\\\"&nbsp;disable=\\u00e2\\u20ac\\u0153category_fields|custom_fields|member_data|pagination|trackbacks\\u00e2\\u20ac\\u009d&#125;<br \\/>&amp;hellip;<br \\/>&nbsp;&#123;if&nbsp;no_results&#125;<br \\/>&nbsp;&nbsp;&#123;embed=\\\"site\\/.events\\\"&nbsp;channel=\\\"events\\\"&nbsp;template_path=\\\"news-events\\/events\\\"&#125;<br \\/>&nbsp;&#123;\\/if&#125;<br \\/>&amp;hellip;<br \\/>&#123;\\/exp:weblog:entries&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>See how there is no category parameter this time? Here is the full modified code:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;assign_variable:channel_name=\\\"&#123;embed:channel&#125;\\\"&#125;<br \\/>&#123;assign_variable:category_id=\\\"&#123;embed:category&#125;\\\"&#125;<br \\/><br \\/>&#123;exp:weblog:entries&nbsp;weblog=\\\"&#123;channel_name&#125;\\\"&nbsp;category=\\\"&#123;category_id&#125;\\\"&nbsp;show_future_entries=\\\"yes\\\"&nbsp;show_expired=\\\"no\\\"&nbsp;limit=\\\"1\\\"&nbsp;disable=\\u00e2\\u20ac\\u0153category_fields|custom_fields|member_data|pagination|trackbacks\\u00e2\\u20ac\\u009d&#125;<br \\/><br \\/>&nbsp;&lt;h2&gt;&#123;title&#125;&lt;\\/h2&gt;<br \\/>&nbsp;&#123;if&nbsp;events_feature_image&#125;<br \\/>&nbsp;&nbsp;&lt;p&nbsp;class=\\\"rightSide\\\"&gt;&lt;a&nbsp;href=\\\"&#123;url_title_path=\\\"&#123;embed:template_path&#125;\\\"&#125;\\\"&gt;&lt;img&nbsp;src=\\\"&#123;events_feature_image&#125;\\\"&nbsp;alt=\\\"\\\"&nbsp;\\/&gt;&lt;\\/a&gt;&lt;\\/p&gt;<br \\/>&nbsp;&#123;\\/if&#125;<br \\/>&nbsp;&#123;if&nbsp;events_summary&#125;<br \\/>&nbsp;&nbsp;&#123;events_summary&#125;<br \\/>&nbsp;&#123;\\/if&#125;<br \\/><br \\/>&nbsp;&lt;p&gt;&lt;a&nbsp;href=\\\"&#123;url_title_path=\\\"&#123;embed:template_path&#125;\\\"&#125;\\\"&nbsp;class=\\\"more\\\"&gt;Read&nbsp;more&nbsp;&amp;raquo;&lt;\\/a&gt;&lt;\\/p&gt;<br \\/><br \\/>&nbsp;&lt;strong&gt;&#123;if&nbsp;no_results&#125;<br \\/>&nbsp;&nbsp;&#123;embed=\\\"site\\/.events\\\"&nbsp;channel=\\\"events\\\"&nbsp;template_path=\\\"news-events\\/events\\\"&#125;<br \\/>&nbsp;&#123;\\/if&#125;&lt;\\/strong&gt;<br \\/>&#123;\\/exp:weblog:entries&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p><strong>And that worked!<\\/strong><\\/p>\\n\\n<h2>Houston, we still have a problem&hellip;<\\/h2>\\n<p>But, we then realized that the same problem would occur if there were no future events in any categories. So, we still needed to go back and solve that problem by similarly passing the value for the <strong>show_expired<\\/strong> parameter in the embed statement as well. I left that to my colleague, so I didn&rsquo;t test this code, but this is my guess of how to solve that problem:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;assign_variable:channel_name=\\\"&#123;embed:channel&#125;\\\"&#125;<br \\/>&#123;assign_variable:category_id=\\\"&#123;embed:category&#125;\\\"&#125;<br \\/>&lt;strong&gt;&#123;assign_variable:show_expired=\\\"&#123;embed:show_expired&#125;\\\"&#125;&lt;\\/strong&gt;<br \\/><br \\/>&#123;exp:weblog:entries&nbsp;weblog=\\\"&#123;channel_name&#125;\\\"&nbsp;category=\\\"&#123;category_id&#125;\\\"&nbsp;show_future_entries=\\\"yes\\\"&nbsp;&lt;strong&gt;show_expired=\\\"&#123;show_expired&#125;\\\"&lt;\\/strong&gt;&nbsp;limit=\\\"1\\\"&nbsp;disable=\\u00e2\\u20ac\\u0153category_fields|custom_fields|member_data|pagination|trackbacks\\u00e2\\u20ac\\u009d&#125;<br \\/><br \\/>&nbsp;&lt;h2&gt;&#123;title&#125;&lt;\\/h2&gt;<br \\/>&nbsp;&#123;if&nbsp;events_feature_image&#125;<br \\/>&nbsp;&nbsp;&lt;p&nbsp;class=\\\"rightSide\\\"&gt;&lt;a&nbsp;href=\\\"&#123;url_title_path=\\\"&#123;embed:template_path&#125;\\\"&#125;\\\"&gt;&lt;img&nbsp;src=\\\"&#123;events_feature_image&#125;\\\"&nbsp;alt=\\\"\\\"&nbsp;\\/&gt;&lt;\\/a&gt;&lt;\\/p&gt;<br \\/>&nbsp;&#123;\\/if&#125;<br \\/>&nbsp;&#123;if&nbsp;events_summary&#125;<br \\/>&nbsp;&nbsp;&#123;events_summary&#125;<br \\/>&nbsp;&#123;\\/if&#125;<br \\/><br \\/>&nbsp;&lt;p&gt;&lt;a&nbsp;href=\\\"&#123;url_title_path=\\\"&#123;embed:template_path&#125;\\\"&#125;\\\"&nbsp;class=\\\"more\\\"&gt;Read&nbsp;more&nbsp;&amp;raquo;&lt;\\/a&gt;&lt;\\/p&gt;<br \\/><br \\/>&nbsp;&#123;if&nbsp;no_results&#125;<br \\/>&nbsp;&nbsp;&#123;embed=\\\"site\\/.events\\\"&nbsp;channel=\\\"events\\\"&nbsp;&lt;strong&gt;show_expired=\\\"yes\\\"&lt;\\/strong&gt;&nbsp;template_path=\\\"news-events\\/events\\\"&#125;<br \\/>&nbsp;&#123;\\/if&#125;<br \\/>&#123;\\/exp:weblog:entries&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<h2>Conclusion<\\/h2>\\n<p>Was there some really easy way to do this that we completely blanked on? It seemed a little <em>hacky<\\/em>, but the solution worked.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:45','2014-08-08 19:32:26','e71cc3c2-2c7b-4a6e-b491-cfc50444622b',1),(80,98,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"seo-faq\",\"postDate\":1255568840,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Derek Powazek <a href=\\\"http:\\/\\/powazek.com\\/posts\\/2101\\\">clarifies some points<\\/a> from his latest post. Again, great stuff here.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:45','2014-08-08 19:32:26','2019cc2a-9ac0-45d0-bab2-c10f9291b9d0',1),(81,99,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"spammers-evildoers-and-opportunists\",\"postDate\":1255440640,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Derek Powazek <a href=\\\"http:\\/\\/powazek.com\\/posts\\/2090\\\">shares his opinion of SEO<\\/a>. I&rsquo;m not going to lie; I agree with what he is saying.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:45','2014-08-08 19:32:26','a687ff69-87df-4b63-8a17-2bf98ff53f28',1),(82,100,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"dear-small-businesses-some-advice\",\"postDate\":1254490076,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Jonathan Longnecker has posted <a href=\\\"http:\\/\\/fortysevenmedia.com\\/blog\\/archives\\/dear_small_businesses_some_advice\\/\\\">a well written article<\\/a> expressing his love and frustrations of designing websites with small businesses. Some very nice points and advice here.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:45','2014-08-08 19:32:26','a51df0ca-b59f-44fc-ae0c-2d1657a48e0d',1),(83,101,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"what-gives\",\"postDate\":1254398893,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I like <a href=\\\"http:\\/\\/boxofchocolates.ca\\/archives\\/2009\\/10\\/01\\/what-gives\\/\\\">this<\\/a>: &ldquo;We&rsquo;re working at building the most important communications network in history. What we do today matters&rdquo;. Good read, things need to change.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:45','2014-08-08 19:32:26','f82566fd-ad2d-4844-a52b-0ccb0e408929',1),(84,102,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"the-state-of-the-web-design-profession\",\"postDate\":1253276211,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Noah Stokes has written a fantastic article on <a href=\\\"http:\\/\\/esbueno.noahstokes.com\\/post\\/190407732\\/the-state-of-the-web-design-profession\\\">the State of the Web Design Profession<\\/a>. Well said.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:45','2014-08-08 19:32:26','7ae6fa7e-ce06-431c-a38f-2dae38404996',1),(85,103,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"simple-jquery-text-resizer\",\"postDate\":1251847543,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I have done JavaScript text resizers a couple of different ways before, but I think I found my favorite way on a recent project. In previous projects, I have messed around with determining the current font size and adjusting it appropriately. But, in my opinion, simplifying things has made it a much better implementation.<\\/p>\\n<!--more-->\\n\\n<p>If you want to skip right to the <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jquery-text-resizer\\/\\\">demo<\\/a>, feel free.<\\/p>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jquery-text-resizer\\/\\\" class=\\\"more-link\\\">View Demo<\\/a><\\/p>\\n\\n<h2>Disclaimer<\\/h2>\\n<p>Let me first say that I have started to size text in pixels and <a href=\\\"http:\\/\\/danielmall.com\\/archives\\/2007\\/04\\/20\\/soft_serve.php\\\">soft serving<\\/a> EMs to IE6. There are tons of different font sizing techniques you can use, but this is what is working for me. So use whatever technique you please, and adjust as needed.<\\/p>\\n\\n<p>Another thing: <strong>I hate text resizers<\\/strong>. In my opinion, there is no reason to duplicate browser functionality. I feel the same about back and print links, but sometimes the functionality is requested, so I have to build it.<\\/p>\\n\\n<h2>Concept<\\/h2>\\n<p>The idea is very simple: you click on the text size you want, and a class is added to the body to indicate which size the user has selected. Then, we take advantage of that body class when we are writing our CSS to size the different elements appropriately.<\\/p>\\n\\n<h2>Code<\\/h2>\\n<p>Let&rsquo;s first start as we always should, by creating the markup:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&lt;ul&nbsp;class=\\\"resizer\\\"&gt;<br \\/>&nbsp;&lt;li&nbsp;class=\\\"small\\\"&gt;&lt;a&nbsp;href=\\\"#\\\"&gt;A&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&nbsp;class=\\\"medium\\\"&gt;&lt;a&nbsp;href=\\\"#\\\"&gt;A&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&nbsp;class=\\\"large\\\"&gt;&lt;a&nbsp;href=\\\"#\\\"&gt;A&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&lt;\\/ul&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<h3>jQuery<\\/h3>\\n<p>The markup was simple enough, so let&rsquo;s get started on the jQuery. First, we want to execute our code when the document is loaded, and then add an event when one of the resizer links are clicked:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'.resizer&nbsp;a\').click(function()&nbsp;&#123;<br \\/><br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Next, we want to get the class of the parent of the link that has been clicked, remove any of the resizer classes from the body, and add the new one:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'.resizer&nbsp;a\').click(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;var&nbsp;textSize&nbsp;=&nbsp;$(this).parent().attr(\'class\');<br \\/>&nbsp;&nbsp;$(\'body\').removeClass(\'small&nbsp;medium&nbsp;large\').addClass(textSize);<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>We also don&rsquo;t want to regular action of the link to be followed, so we need to <strong>return false<\\/strong>:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'.resizer&nbsp;a\').click(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;var&nbsp;textSize&nbsp;=&nbsp;$(this).parent().attr(\'class\');<br \\/>&nbsp;&nbsp;$(\'body\').removeClass(\'small&nbsp;medium&nbsp;large\').addClass(textSize);<br \\/>&nbsp;&nbsp;return&nbsp;false;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>I also think it is important to remember what text size a user has selected while browsing the site, so we will take advantage of the <a href=\\\"http:\\/\\/plugins.jquery.com\\/project\\/cookie\\\">jQuery Cookie plugin<\\/a> to help us with that. We will set a cookie that denotes which size the user has selected:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'.resizer&nbsp;a\').click(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;var&nbsp;textSize&nbsp;=&nbsp;$(this).parent().attr(\'class\');<br \\/>&nbsp;&nbsp;$(\'body\').removeClass(\'small&nbsp;medium&nbsp;large\').addClass(textSize);<br \\/>&nbsp;&nbsp;$.cookie(\'TEXT_SIZE\',textSize,&nbsp;&#123;&nbsp;path:&nbsp;\'\\/\',&nbsp;expires:&nbsp;10000&nbsp;&#125;);<br \\/>&nbsp;&nbsp;return&nbsp;false;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Finally, we just need to add a check to the beginning of the script, so that if that cookie is set, we add that size as a class to the body:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;if($.cookie(\'TEXT_SIZE\'))&nbsp;&#123;<br \\/>&nbsp;&nbsp;$(\'body\').addClass($.cookie(\'TEXT_SIZE\'));&nbsp;<br \\/>&nbsp;&#125;<br \\/>&nbsp;$(\'.resizer&nbsp;a\').click(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;var&nbsp;textSize&nbsp;=&nbsp;$(this).parent().attr(\'class\');<br \\/>&nbsp;&nbsp;$(\'body\').removeClass(\'small&nbsp;medium&nbsp;large\').addClass(textSize);<br \\/>&nbsp;&nbsp;$.cookie(\'TEXT_SIZE\',textSize,&nbsp;&#123;&nbsp;path:&nbsp;\'\\/\',&nbsp;expires:&nbsp;10000&nbsp;&#125;);<br \\/>&nbsp;&nbsp;return&nbsp;false;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<h3>CSS<\\/h3>\\n<p> Now is where we get to the really powerful part of doing the text resizing like this: the CSS. We can start by simply stating our text size when it is in the small\\/default state:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\nbody&nbsp;&#123;&nbsp;font:&nbsp;12px\\/18px&nbsp;Arial,&nbsp;sans-serif;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Then, we just need to make a simple adjustment for the medium and large sizes:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n.medium&nbsp;&#123;&nbsp;font-size:&nbsp;16px;&nbsp;line-height:&nbsp;22px;&nbsp;&#125;<br \\/>.large&nbsp;&#123;&nbsp;font-size:&nbsp;20px;&nbsp;line-height:&nbsp;26px;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>So you can just carry through this idea for the rest of the elements that have been assigned a font size:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\nh1&nbsp;&#123;&nbsp;font-size:&nbsp;30px;&nbsp;line-height:&nbsp;36px;&nbsp;&#125;<br \\/>.medium&nbsp;h1&nbsp;&#123;&nbsp;font-size:&nbsp;34px;&nbsp;line-height:&nbsp;40px;&nbsp;&#125;<br \\/>.large&nbsp;h1&nbsp;&#123;&nbsp;font-size:&nbsp;38px;&nbsp;line-height:&nbsp;44px;&nbsp;&#125;<br \\/>h2&nbsp;&#123;&nbsp;font-size:&nbsp;24px;&nbsp;line-height:&nbsp;30px;&nbsp;&#125;<br \\/>.medium&nbsp;h2&nbsp;&#123;&nbsp;font-size:&nbsp;28px;&nbsp;line-height:&nbsp;34px;&nbsp;&#125;<br \\/>.large&nbsp;h2&nbsp;&#123;&nbsp;font-size:&nbsp;32px;&nbsp;line-height:&nbsp;38px;&nbsp;&#125;<br \\/>h3&nbsp;&#123;&nbsp;font-size:&nbsp;18px;&nbsp;line-height:&nbsp;24px;&nbsp;&#125;<br \\/>.medium&nbsp;h3&nbsp;&#123;&nbsp;font-size:&nbsp;22px;&nbsp;line-height:&nbsp;28px;&nbsp;&#125;<br \\/>.large&nbsp;h3&nbsp;&#123;&nbsp;font-size:&nbsp;26px;&nbsp;line-height:&nbsp;32px;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jquery-text-resizer\\/\\\" class=\\\"more-link\\\">View Demo<\\/a><\\/p>\\n\\n<p>The idea is very simple, and it really separates the presentation and behavioral layers. So what do you think? Do you have another technique that you like?<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:45','2014-08-08 19:32:26','08209d60-11e6-4dc0-8ab8-46bbed721e09',1),(86,104,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"create-a-newsletter-with-expressionengine-fieldframe\",\"postDate\":1250559396,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I guess it is time to come back from my little hiatus to actually write a blog post. I recently moved, so I have been busy with getting settled and working on freelance projects as well. If you <a href=\\\"http:\\/\\/twitter.com\\/davist11\\\">follow me on Twitter<\\/a>, you may have noticed that I have recently become obsessed with ExpressionEngine. I completed a <a href=\\\"http:\\/\\/trevordavis.net\\/work\\/ecfc\\/\\\">project<\\/a> at work using it, and I realized that I could have done something much more efficiently.<\\/p>\\n<!--more-->\\n<p><a href=\\\"http:\\/\\/ee.trevordavis.net\\/newsletter\\/\\\" class=\\\"more-link\\\">View Demo<\\/a><\\/p>\\n<p>I had to create an &ldquo;online newsletter&rdquo; that had issues that were made up of multiple articles. I ended up creating two separate weblogs: one for each issue, and one for individual articles. In the issues weblog, there was a <a href=\\\"http:\\/\\/brandon-kelly.com\\/playa\\\">Playa<\\/a> custom field which could be used to pick the individual articles to be published in that issue. But, another one of Brandon Kelly&rsquo;s fabulous extensions, <a href=\\\"http:\\/\\/brandon-kelly.com\\/fieldframe\\\">FieldFrame<\\/a>, seems to be a much better choice for creating this functionality.<\\/p>\\n<p>So, download, install, &amp; enable the <a href=\\\"http:\\/\\/brandon-kelly.com\\/fieldframe\\\">FieldFrame Extension<\\/a>, and let&rsquo;s be on our way.<\\/p>\\n<h2>Creating the Custom Field Group<\\/h2>\\n<p>First, let&rsquo;s create a field group named <strong>Newsletter<\\/strong>. Now, we just need to create one custom field with the field name of <strong>newsletter_articles<\\/strong>. Select <strong>FF Matrix<\\/strong> as the field type.<\\/p>\\n\\n<p>We want to have two cells in the FF Matrix: <strong>articles_title<\\/strong> & <strong>articles_body<\\/strong>. The cell types should be text and textarea, respectively. Then, adjust the sizes as you see fit.<\\/p>\\n\\n<p><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/08\\/newsletter-ff.png\\\" alt=\\\"FF Matrix Configuration\\\" width=\\\"570\\\" height=\\\"282\\\" class=\\\"frame pullLeft\\\" \\/><\\/p>\\n\\n<h2>Creating the Weblog<\\/h2>\\n<p>Now that we have the custom field group setup, we need to create a new weblog called <strong>newsletter<\\/strong> and make sure to assign our <strong>Newsletter field group<\\/strong> to it. Now that the newsletter weblog is created, we can start adding newsletters.<\\/p>\\n\\n<p><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/08\\/newletter-entry.png\\\" alt=\\\"Newsletter Entry Form\\\" width=\\\"570\\\" height=\\\"304\\\" class=\\\"frame pullLeft\\\" \\/><\\/p>\\n\\n<p>First, fill in the main title field, and then add in one or more articles. Now, let&rsquo;s get onto coding the output template.<\\/p>\\n\\n<h2>Creating the Template<\\/h2>\\n<p>Let&rsquo;s start by creating a new template group called <strong>newsletter<\\/strong>. We have two different pages that we want to create: the page listing all of the newsletter entries, and the individual newsletter entry displaying all of the articles. But, we can do this with only one template.<\\/p>\\n\\n<p>So, open up the index template in the newsletter template group, and we will start by setting up the structure of the template:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;assign_variable:weblog=\\\"newsletter\\\"&#125;<br \\/>&#123;embed=\\\"newsletter\\/.header\\\"&nbsp;title=\\\"&#123;if&nbsp;segment_2&#125;<br \\/>&nbsp;&#123;!--Display&nbsp;individual&nbsp;newsletter&nbsp;entry&nbsp;title&nbsp;here--&#125;<br \\/>&#123;if:else&#125;<br \\/>&nbsp;Newsletters<br \\/>&#123;\\/if&#125;<br \\/>\\\"&#125;<br \\/><br \\/>&#123;if&nbsp;segment_2&#125;<br \\/>&nbsp;&#123;!--Display&nbsp;full&nbsp;individual&nbsp;newsletter&nbsp;entry&nbsp;with&nbsp;1&nbsp;or&nbsp;more&nbsp;articles--&#125;<br \\/>&#123;if:else&#125;<br \\/>&nbsp;&#123;!--Display&nbsp;list&nbsp;of&nbsp;newsletters&nbsp;entered--&#125;<br \\/>&#123;\\/if&#125;<br \\/><br \\/>&#123;embed=\\\"newsletter\\/.footer\\\"&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>We start by creating a variable to store the name of our weblog. Then, I created a simple header and footer to store some of the HTML that frames the page. I am passing in the title value in an embed variable to the header and displaying that in the browser title.<\\/p>\\n\\n<p>If the segment_2 value is not null, we know that we are on an individual newsletter page, so we will display that title. If the segment_2 value is null, then we are on the main newsletter listing page, so we just display Newsletters.<\\/p>\\n\\n<p>We are using the same conditional again for the content on the page. We either show the individual newsletter entry with the articles, or we show the list of newsletter entered. So let&rsquo;s build out the code a little more. First, let&rsquo;s finish displaying the title:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;embed=\\\"newsletter\\/.header\\\"&nbsp;title=\\\"&#123;if&nbsp;segment_2&#125;<br \\/>&nbsp;&#123;exp:weblog:entries&nbsp;weblog=\\\"&#123;weblog&#125;\\\"&nbsp;limit=\\\"1\\\"&nbsp;disable=\\\"categories|category_fields|custom_fields|member_data|pagination|trackbacks\\\"&#125;<br \\/>&nbsp;&nbsp;&#123;title&#125;&nbsp;:&nbsp;&#123;entry_date&nbsp;format=\\\"%F&nbsp;%j,&nbsp;%Y\\\"&#125;<br \\/>&nbsp;&#123;\\/exp:weblog:entries&#125;<br \\/>&#123;if:else&#125;<br \\/>&nbsp;Newsletters<br \\/>&#123;\\/if&#125;<br \\/>\\\"&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n<p>Pretty simple stuff here, just displaying the title and entry date of the newsletter entry. Next, let&rsquo;s tackle displaying the single newsletter entry view:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;if&nbsp;segment_2&#125;<br \\/>&nbsp;&#123;exp:weblog:entries&nbsp;weblog=\\\"&#123;weblog&#125;\\\"&nbsp;limit=\\\"1\\\"&nbsp;disable=\\\"categories|category_fields|custom_fields|member_data|pagination|trackbacks\\\"&#125;<br \\/>&nbsp;&nbsp;&lt;h1&gt;&#123;title&#125;:&nbsp;&#123;entry_date&nbsp;format=\\\"%F&nbsp;%j,&nbsp;%Y\\\"&#125;&lt;\\/h1&gt;<br \\/><br \\/>&nbsp;&nbsp;&#123;newsletter_articles&#125;<br \\/>&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=\\\"entry\\\"&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2&gt;&#123;articles_title&#125;&lt;\\/h2&gt;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&#123;articles_body&#125;<br \\/>&nbsp;&nbsp;&nbsp;&lt;\\/div&gt;<br \\/>&nbsp;&nbsp;&#123;\\/newsletter_articles&#125;<br \\/>&nbsp;&#123;\\/exp:weblog:entries&#125;<br \\/>&nbsp;&lt;p&gt;&lt;a&nbsp;href=\\\"&#123;path=\\\"newsletter\\\"&#125;\\\"&gt;&amp;laquo;&nbsp;Back&nbsp;to&nbsp;Newsletters&lt;\\/a&gt;&lt;\\/p&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>The beginning should look pretty normal: just using the standard exp:weblog:entries tag to pull in the individual entry. We first display the title and entry date. Then, the next part is where we are taking advantage of the <a href=\\\"http:\\/\\/brandon-kelly.com\\/fieldframe\\/docs\\/ff-matrix\\\">FieldFrame Matrix<\\/a>. We are basically just looping through all of the <strong>newsletter_articles<\\/strong> and displaying them in divs.<\\/p>\\n\\n<p>Finally, let&rsquo;s finish up by displaying the list of newsletter entries:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&#123;if:else&#125;<br \\/>&nbsp;&#123;exp:weblog:entries&nbsp;weblog=\\\"&#123;weblog&#125;\\\"&nbsp;disable=\\\"categories|category_fields|custom_fields|member_data|pagination|trackbacks\\\"&#125;<br \\/>&nbsp;&nbsp;&#123;if&nbsp;count&nbsp;==&nbsp;1&#125;<br \\/>&nbsp;&nbsp;&nbsp;&lt;ul&gt;<br \\/>&nbsp;&nbsp;&#123;\\/if&#125;<br \\/><br \\/>&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a&nbsp;href=\\\"&#123;url_title_path=\\\"newsletter\\\"&#125;\\\"&gt;&#123;title&#125;:&nbsp;&#123;entry_date&nbsp;format=\\\"%F&nbsp;%j,&nbsp;%Y\\\"&#125;&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&nbsp;&nbsp;&#123;if&nbsp;count&nbsp;==&nbsp;total_results&#125;<br \\/>&nbsp;&nbsp;&nbsp;&lt;\\/ul&gt;<br \\/>&nbsp;&nbsp;&#123;\\/if&#125;<br \\/>&nbsp;&#123;\\/exp:weblog:entries&#125;<br \\/>&#123;\\/if&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Simple stuff again: just looping through all newsletter entries and displaying them in a list. The two conditional statements are so you don&rsquo;t end up with any empty unordered lists when there are no entries.<\\/p>\\n\\n<p><a href=\\\"http:\\/\\/ee.trevordavis.net\\/newsletter\\/\\\" class=\\\"more-link\\\">View Demo<\\/a><\\/p>\\n\\n<p>I wish I would have realized this would have been a more efficient way to build a newsletter in EE for the project; but, this is why always learning is so important.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:45','2014-08-08 19:32:26','98f1bbb0-4909-4ce5-b286-3cea6b53a877',1),(87,105,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"packt-book-giveaway-winners\",\"postDate\":1248660451,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Thank you everyone for participating in the <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/news\\/packt-book-giveaway\\/\\\">Packt Book Giveaway<\\/a>. It was interesting to see how many more people were interested in the jQuery book compared to the others. Now, on to the winners&hellip;<\\/p>\\n<!--more-->\\n<ul>\\n<li><p>The <strong>Choosing an Open Source CMS<\\/strong> book was won by <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/news\\/packt-book-giveaway\\/#comment-3212\\\">Eric D. Greene<\\/a> with his comment on the blog article.<\\/p><\\/li>\\n<li><p>The <strong>WordPress 2.7 Complete<\\/strong> book was won by <a href=\\\"http:\\/\\/twitter.com\\/mudd06\\/status\\/2823637564\\\">Adrian Turner<\\/a> with his Twitter entry.<\\/p><\\/li>\\n<li><p>The <strong>Learning jQuery 1.3<\\/strong> book was won by <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/news\\/packt-book-giveaway\\/#comment-3222\\\">CodeJoust Chattanooga Webdesign Development<\\/a> for their comment on the blog article.<\\/p><\\/li>\\n<\\/ul>\\n\\n<p>The winners have been contacted, but if their are any problems, I will choose a new winner. Thanks everyone for the entries, and I hope to be able to do this again.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:56:45','2014-08-08 19:32:26','3de68b93-f179-4aa7-897d-b6e599e6c15d',1),(88,106,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"web-design-is-a-journey\",\"postDate\":1248350172,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I definitely don&rsquo;t categorize myself as a designer because there is no way I can create such <a href=\\\"http:\\/\\/carsonified.com\\/blog\\/design\\/web-design-is-a-journey\\/\\\">amazing work as this<\\/a>. It&rsquo;s fantastic to see the <strong>very<\\/strong> different directions that Mike went in before reaching the final design.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:27','692730e7-1900-4a4e-a04f-1803dd3bd4d5',1),(89,107,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"strangers-at-a-cocktail-party\",\"postDate\":1248116154,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p><a href=\\\"http:\\/\\/www.37signals.com\\/svn\\/posts\\/1808-strangers-at-a-cocktail-party\\\">I love this way of thinking<\\/a>. A successful environment is one where you are able to tell people when they&rsquo;re full of crap.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:27','344749a6-0811-4810-ad62-25ac99b2a3a2',1),(90,108,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"packt-book-giveaway\",\"postDate\":1247794920,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I am pleased to announced that I have 3 <a href=\\\"http:\\/\\/www.packtpub.com\\/\\\">Packt<\\/a> books to giveaway: <a href=\\\"http:\\/\\/www.packtpub.com\\/learning-jquery-1.3\\/book\\/mid\\/130709nwu5nv\\\">Learning jQuery 1.3<\\/a>, <a href=\\\"http:\\/\\/www.packtpub.com\\/wordpress-2-7-complete-2nd-edition\\/book\\/mid\\/130709sh1anm\\\">WordPress 2.7 Complete<\\/a>, &amp; <a href=\\\"http:\\/\\/www.packtpub.com\\/choosing-an-open-source-cms-beginners-guide\\/book\\/mid\\/1307090ncy0g\\\">Choosing an Open Source CMS<\\/a>. Entering to win one of these books is very simple, and you can enter in two different ways.<\\/p>\\n<!--more-->\\n<p><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/07\\/packt-books.png\\\" alt=\\\"\\\" class=\\\"pullLeft\\\" width=\\\"520\\\" height=\\\"265\\\" \\/><\\/p>\\n\\n<p>But first, let me provide a little more detail about the books.<\\/p>\\n\\n<h2>Learning jQuery 1.3<\\/h2>\\n<p><a href=\\\"http:\\/\\/www.packtpub.com\\/learning-jquery-1.3\\/book\\/mid\\/130709nwu5nv\\\"><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/07\\/packt-jquery.jpg\\\" alt=\\\"Learning jQuery 1.3\\\" width=\\\"90\\\" height=\\\"110\\\" class=\\\"leftSide frame pullLeft\\\" \\/><\\/a>To build interesting, interactive sites, developers are turning to JavaScript libraries such as jQuery to automate common tasks and simplify complicated ones. Because many web developers have more experience with HTML and CSS than with JavaScript, the library\'s design lends itself to a quick start for designers with little programming experience. Experienced programmers will also be aided by its conceptual consistency.<\\/p>\\n<p>Revised and updated for version 1.3 of jQuery, this book teaches you the basics of jQuery for adding interactions and animations to your pages. Even if previous attempts at writing JavaScript have left you baffled, this book will guide you past the pitfalls associated with AJAX, events, effects, and advanced JavaScript language features.<\\/p>\\n<p><a href=\\\"http:\\/\\/www.packtpub.com\\/learning-jquery-1.3\\/book\\/mid\\/130709nwu5nv\\\" class=\\\"more-link\\\">Full Book Detail<\\/a><\\/p>\\n\\n\\n<h2>WordPress 2.7 Complete<\\/h2>\\n<p><a href=\\\"http:\\/\\/www.packtpub.com\\/wordpress-2-7-complete-2nd-edition\\/book\\/mid\\/130709sh1anm\\\"><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/07\\/packt-wordpress.jpg\\\" alt=\\\"WordPress 2.7 Complete\\\" width=\\\"90\\\" height=\\\"110\\\" class=\\\"leftSide frame pullLeft\\\" \\/><\\/a>Using WordPress you can easily create dynamic blogs and web sites with great content and many outstanding features. It is an ideal tool for developing blogs and although it is chiefly used for blogging, it can also be used as a complete CMS with very little effort. You can customize the features, incorporate your own design, and even write your own plug-ins with ease. Its versatility and ease of use have attracted a large, enthusiastic, and helpful community of users. While it is easy to get started with WordPress, its full power is not obvious.<\\/p>\\n<p>If you want to create a powerful, fully-featured blog or non-blog web site in no time, this book is for you. It will give you a rapid and straightforward introduction to the rich and powerful features of WordPress and get you up and running with a state-of-the-art blog as quickly and painlessly as possible. It will help you learn everything WordPress has to offer, from the ground up, so you can build your complete web site. You will see many of WordPress\'s hidden powers that will help you build a fully functioning web site.<\\/p>\\n\\n<p><a href=\\\"http:\\/\\/www.packtpub.com\\/wordpress-2-7-complete-2nd-edition\\/book\\/mid\\/130709sh1anm\\\" class=\\\"more-link\\\">Full Book Detail<\\/a><\\/p>\\n\\n<h2>Choosing an Open Source CMS<\\/h2>\\n<p><a href=\\\"http:\\/\\/www.packtpub.com\\/choosing-an-open-source-cms-beginners-guide\\/book\\/mid\\/1307090ncy0g\\\"><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/07\\/packt-cms.jpg\\\" alt=\\\"Choosing an Open Source CMS\\\" width=\\\"90\\\" height=\\\"110\\\" class=\\\"leftSide frame pullLeft\\\" \\/><\\/a>There are many powerful open source CMSs available to take the pain away from managing a web site. These systems are feature rich, often easy to use, and free. Unfortunately, there are so many choices it\'s tough to be sure you\'re choosing the right one. How can you be sure that you are selecting and working with the right tool?<\\/p>\\n\\n<p>This book will guide you through choosing the right CMS for your needs. You can be confident in your choice of CMS for the needs of your project. It will also help you make a start using the CMS, and give you a feel for what it\'s like to use it \\u00e2\\u20ac\\u201c even before you install it yourself.<\\/p>\\n\\n<p>Are you bewildered by the many open source CMSs available online? Open source CMSs are the best way to create and manage sophisticated web sites. You can create a site that precisely meets your business goals, and keep the site up to date easily because these systems give you full control over every aspect of your site. Because open source CMSs are free to download, you have a huge amount of choice between the various systems.<\\/p>\\n\\n<p><a href=\\\"http:\\/\\/www.packtpub.com\\/choosing-an-open-source-cms-beginners-guide\\/book\\/mid\\/1307090ncy0g\\\" class=\\\"more-link\\\">Full Book Detail<\\/a><\\/p>\\n\\n<h2>How to Enter<\\/h2>\\n<p>There are two different ways to enter:<\\/p>\\n<ol>\\n<li>Post a comment on this blog post with the book of your choice: <strong>jQuery<\\/strong>, <strong>WordPress<\\/strong>, or <strong>CMS<\\/strong>. Make sure you provide a valid email address so that I can get in touch with you if you win.<\\/li>\\n<li>Tweet about it. Here is what you need to tweet: \\n<p><a href=\\\"http:\\/\\/bit.ly\\/5J7Gj\\\">http:\\/\\/bit.ly\\/5J7Gj<\\/a> Free Packt Book Giveaway from <a href=\\\"http:\\/\\/twitter.com\\/davist11\\\">@davist11<\\/a> I want the <strong>(BOOK NAME HERE)<\\/strong> book.<\\/p>\\nThen just replace <strong>BOOK NAME HERE<\\/strong> with the book of your choice: <strong>jQuery<\\/strong>, <strong>WordPress<\\/strong>, or <strong>CMS<\\/strong>.<\\/li>\\n<\\/ol>\\n\\n<h2>Contest Details<\\/h2>\\n<p>You can enter once by submitting a comment on this post and <strong>as many times as you want on Twitter<\\/strong>. The contest will end Friday, July 24th at 6 PM ET. Once over, I will randomly choose the winners and notify them to get their addresses.<\\/p>\\n\\n<p>That&rsquo;s it, now get going and enter already. <strong>Big thanks to <a href=\\\"http:\\/\\/www.packtpub.com\\\">Packt Publishing<\\/a> for sponsoring the giveaway!<\\/strong><\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:27','16103354-2e2d-46b9-8cbb-a5d83a957f56',1),(91,109,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"misunderstanding-markup\",\"postDate\":1246990286,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Everyone is freaking out about the XHTML 2 Working Group disbanding at the end of the year. Relax people! Jeremy Keith <a href=\\\"http:\\/\\/adactio.com\\/journal\\/1595\\/\\\">helps to explain why nobody should worry<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:27','ea8e242e-5854-450a-a5d6-5974a8f48647',1),(92,110,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"enough-with-the-ie6-whining\",\"postDate\":1246411504,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Seriously, I can&rsquo;t go a day without reading about someone complaining about IE6. Yes, we all know it&rsquo;s support is terrible. Yes, we know that Microsoft sat around and did nothing for 5 years. But look, they have stepped their game up, they have released 2 browser versions in 3 years. Yes, they are not up to par with more standards compliant browsers, but they are a major improvement over IE6.<\\/p>\\n<!--more-->\\n<p>So I ask you: <strong>what is Microsoft supposed to do<\\/strong>?<\\/p>\\n\\n<p>It isn&rsquo;t their fault that users won&rsquo;t upgrade their browser.<\\/p>\\n\\n<h2>Suck It Up<\\/h2>\\n\\n<p>If you call yourself a web developer, you should be able to make things presentable in IE6. If you can&rsquo;t, then you probably shouldn&rsquo;t call yourself one. So suck it up and deal with it. <strong>Doesn&rsquo;t the challenge make our jobs more interesting?<\\/strong><\\/p>\\n\\n<p>I&rsquo;m not saying that your site has to look exactly the same in all browsers. <a href=\\\"http:\\/\\/dowebsitesneedtolookexactlythesameineverybrowser.com\\/\\\">We already know the answer to that question<\\/a>. Just make it presentable. Make sure a user can access all content on the site. Remember, it&rsquo;s <strong>still<\\/strong> all about the content.<\\/p>\\n\\n<h3>Better Yet<\\/h3>\\n<p>Take a look at the traffic to the site and determine to what degree you even need to support it. If IE6 visitors only compromise a very small percentage, maybe consider using <a href=\\\"http:\\/\\/forabeautifulweb.com\\/blog\\/about\\/universal_internet_explorer_6_css\\/\\\">Andy Clarke&rsquo;s Universal Internet Explorer 6 CSS<\\/a>. That will put the content front and center in IE6, and you won&rsquo;t even have to worry about it.<\\/p>\\n\\n<p>Just please, stop complaining.<\\/p>\\n\\n<p><strong>&lt;\\/rant><\\/strong><\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:27','2871304d-122f-40a0-8b1b-8ad24a16df6d',1),(93,111,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"walls-come-tumbling-down\",\"postDate\":1246363252,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Andy Clarke has posted the <a href=\\\"http:\\/\\/forabeautifulweb.com\\/blog\\/about\\/walls_come_tumbling_down_presentation_slides_and_transcript\\/\\\">slides and transcript<\\/a> from his presentation at @media2009. It&rsquo;s a long one, so I scanned it, but it looked like a fantastic presentation.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:27','7fc9b438-7dde-49c2-b16c-bb7e5cc29058',1),(94,112,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"jquery-inline-form-labels\",\"postDate\":1245137101,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I&rsquo;ve been seeing the trend of applying inline labels on form elements more and more these days. So I definitely needed to come up with a solid solution that would help me easily apply this effect.<\\/p>\\n<!--more-->\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jquery-inline-form-labels\\/\\\"><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/06\\/jquery-inline-labels.png\\\" alt=\\\"jQuery Inline Form Labels\\\" width=\\\"280\\\" height=\\\"169\\\" class=\\\"leftSide\\\" \\/><\\/a>Maybe I need to explain a little better what I am referring to. Instead of using a label that is next to or above the input element, the label is actually within the input. Then, when the input is focused, the label goes away and you can enter your value into it. Finally, when the input is no longer focused, if there is no value entered, the inline label is then added back in.<\\/p>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jquery-inline-form-labels\\/\\\" class=\\\"more-link\\\">See Demo<\\/a><\\/p>\\n\\n<h2>My Solution<\\/h2>\\n<p>The title attribute.<\\/p>\\n\\n<p>It&rsquo;s so simple, but perfect. A great benefit of using the title attribute, is that when you hover over the input, you get a little tooltip displaying the inline label. So all I need to do is add a title attribute with the text that we want to have show up as the inline label. Then, we just use a little jQuery to make it all happen.<\\/p>\\n\\n<h3>The jQuery<\\/h3>\\n\\n<p>First, we want to select each input that has a title attribute, once the document is loaded:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'input&#91;title&#93;\').each(function()&nbsp;&#123;<br \\/>&nbsp;&amp;hellip;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Next, if the value of the input element is empty, we want to take the title attribute and add it as the value of the input.<\\/p>\\n\\n<pre>$(document).ready(function() {\\n $(\'input[title]\').each(function() {\\n  <strong>if($(this).val() === \'\') {\\n   $(this).val($(this).attr(\'title\')); \\n  }<\\/strong>\\n });\\n});<\\/pre>\\n\\n<p>After that, we want to setup a function that will fire once the input is focused. When it is focused, if the value is equal to the title attribute, we want to set the value to nothing and add a class of focused:<\\/p>\\n\\n<pre>$(document).ready(function() {\\n $(\'input[title]\').each(function() {\\n  if($(this).val() === \'\') {\\n   $(this).val($(this).attr(\'title\')); \\n  }\\n  \\n  <strong>$(this).focus(function() {\\n   if($(this).val() === $(this).attr(\'title\')) {\\n    $(this).val(\'\').addClass(\'focused\'); \\n   }\\n  });<\\/strong>\\n });\\n});<\\/pre>\\n\\n<p>The reason why we add the class of focused is so that we can change the text color, border or anything to make it noticeable that the input is being focused. You can see this effect in the <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jquery-inline-form-labels\\/\\\">demo<\\/a>.\\n\\n<p>Finally, we want to add a function that will fire when the input loses focus. When it does, if the input value is empty, we want to set the value back to the title attribute and remove the class of focused:<\\/p>\\n\\n<pre>$(document).ready(function() {\\n $(\'input[title]\').each(function() {\\n  if($(this).val() === \'\') {\\n   $(this).val($(this).attr(\'title\')); \\n  }\\n  \\n  $(this).focus(function() {\\n   if($(this).val() === $(this).attr(\'title\')) {\\n    $(this).val(\'\').addClass(\'focused\'); \\n   }\\n  });\\n  \\n  <strong>$(this).blur(function() {\\n   if($(this).val() === \'\') {\\n    $(this).val($(this).attr(\'title\')).removeClass(\'focused\'); \\n   }\\n  });<\\/strong>\\n });\\n});<\\/pre>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jquery-inline-form-labels\\/\\\" class=\\\"more-link\\\">See Demo<\\/a><\\/p>\\n\\n<p>And that&rsquo;s it. It&rsquo;s just a little bit of code, but it can go a long way. So take it and build on it.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:27','735f0f7b-caad-4bd2-8943-686d1e768906',1),(95,113,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"dog-and-pony-show-design\",\"postDate\":1244808468,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Andy Rutledge continues to blow my mind with his <a href=\\\"http:\\/\\/www.andyrutledge.com\\/dog-and-pony-show-design.php\\\">fantastic articles<\\/a>. &ldquo;Multiple design options are what you visit in your design process on your way toward a solution. What you present to your client must be the most effective result of your exhaustive efforts. Nothing less.&rdquo;<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:27','b1fe692a-045a-4552-9d0c-41e96436fdd9',1),(96,114,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"remember-you-are-the-expert\",\"postDate\":1243995496,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I&rsquo;ve been realizing lately that there is a big problem in the web design\\/development field: we aren&rsquo;t thought of as experts. Ok maybe that&rsquo;s not completely true, but I&rsquo;ve seen a lot of clients &ldquo;guiding&rdquo; the process. But actually, maybe this is our own fault, so how can we fix it?<\\/p>\\n<!--more-->\\n<h2>Be the Expert<\\/h2>\\n<p>We have to remember that we are the web experts in this relationship. We need to show confidence when talking with clients. Talk authoritatively about the details of the project and show them that we know what we are talking about. Just like we wouldn&rsquo;t go tell an architect how to design a house, our clients need to trust us to build their website.<\\/p>\\n\\n<h2>Stick to Your Guns<\\/h2>\\n<p>So let&rsquo;s say a client suggests something that you know would work better if you did it a different way; don&rsquo;t just say yes to the client, make your suggestion and build a case for it. Reference other examples. Site statistics. Fight for the best solution. Remember, <strong>you<\\/strong> are the expert.<\\/p>\\n\\n<h2>Read, Browse, and Read Some More<\\/h2>\\n<p>The web is full of great articles, bad examples of web sites, good examples of web sites, and much more. So by just spending time browsing the web, you can amass a huge amount of knowledge about what works and what doesn&rsquo;t. This will provide you with loads of ammunition to use when clients need your guidance.<\\/p>\\n\\n<h2>It&rsquo;s Hard<\\/h2>\\n<p>I struggle with it all the time. It&rsquo;s hard to say no to a client when they are the ones paying you. But the best thing to do is to make your suggestions, back it up with statistics &amp; examples, and hope that the client trusts your judgment.<\\/p>\\n\\n<p>Remember, <strong>you<\\/strong> are the expert.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:27','9c6ef77d-8976-4f16-914d-a4b9df5467ab',1),(97,115,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"of-brands-and-commodities\",\"postDate\":1243865404,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p><a href=\\\"http:\\/\\/www.andyrutledge.com\\/of-brands-and-commodities.php\\\">Genius<\\/a>: &ldquo;Turning down money to make money; sounds like a dodgy strategy, but it&rsquo;s more powerful than you might think. And it&rsquo;s required if you want to build a brand.&rdquo;<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:27','a624217d-035b-4406-a7d9-f06549f9dc84',1),(98,116,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"10-cost-effective-web-development-techniques\",\"postDate\":1243006043,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Excellent, excellent, excellent <a href=\\\"http:\\/\\/allinthehead.com\\/retro\\/340\\/10-cost-effective-web-development-techniques\\\">presentation from Drew McLellan<\\/a>. Wish I could have seen it in person.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:26','78183ffd-f875-4f54-addb-077614159a5a',1),(99,117,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"creating-a-google-map-with-expressionengine\",\"postDate\":1242210241,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Since I have a newfound love of ExpressionEngine, I wrote my most recent article for NETTUTS about <a href=\\\"http:\\/\\/net.tutsplus.com\\/tutorials\\/other\\/creating-a-google-map-with-expressionengine\\/\\\">creating a Google Map<\\/a> with it.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:26','a97db990-52e9-4d44-b15c-fd7bbeef15c0',1),(100,118,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"user-experience-beyond-the-web\",\"postDate\":1242090624,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I had the &ldquo;pleasure&rdquo; of having jury duty last week. This was the first time I had ever been called for it before, and I must say that the experience definitely left a lot to be desired. It is definitely clear that all of the time spent on user experience on the web ends up providing a better experience for the end user. But my question now is: <strong>why isn&rsquo;t that kind of effort put in outside of the web?<\\/strong><\\/p>\\n<!--more-->\\n<p>There was basically no part of my jury duty experience that was pleasurable. Let me walk you through how my day went.<\\/p>\\n\\n<h2>Getting Up Early<\\/h2>\\n<p>First off, I had to get up super early in order to get there on time. If I am just going to be waiting around most of the day, <strong>why do I have to be there at 8:15am?<\\/strong><\\/p>\\n\\n<h2>Parking<\\/h2>\\n<p>So I pulled into the parking lot that they told me to park in, and started to walk to the court house. But wait, I had no clue where to go. There were <strong>no<\\/strong> signs at all. Luckily I guessed right, or I would have been late.<\\/p>\\n\\n<h2>Security<\\/h2>\\n<p>Since I was going into a court house, I totally expected to have to go through security. I was told that jury duty would probably end up being a lot of waiting around, and I saw that they had wireless internet access there, so I figured I would bring my laptop and get some work done.<\\/p>\\n\\n<p>First, I had to check my cellphone since it had a camera on it. I&rsquo;m not really sure what I would want to take pictures with, but whatever, I checked it. I did feel a little lost without my phone though.<\\/p>\\n\\n<p>Next, I had to go through the metal detectors and put my bag on the x-ray machine. The security officer asked me to take out my laptop and turn it on. I was confused as to why I would need to turn it on, but I hit the button and waited for it to power up. Then, he sees that my laptop has a built-in camera, and tells me that I can&rsquo;t bring it in.<\\/p>\\n\\n<p>I looked at him befuddled because I couldn&rsquo;t imagine sitting with my laptop facing out in the courtroom, taking pictures, and not having someone say something to me. The security officer tells me that I have to take it back to my car. So, I had to walk the quarter of a mile back to my car, put the laptop in there, then walk back and go through security.<\\/p>\\n\\n<p><strong>Seems a little ridiculous, right?<\\/strong> I must give them credit for actually having wireless internet, but not being able to bring in my laptop really pissed me off.<\\/p>\\n\\n<h2>The Waiting Room<\\/h2>\\n<p>Once I got through security and checked in, I was directed to a big room with a bunch of tables and chairs where we would wait for the next hour or so. Of course, the chairs were jammed in together, and there were not enough seats in the room for everyone.<\\/p>\\n\\n<p>We watched a 15 minute training video, and then the courthouse employees tried to get us to donate money to the court system. Yeah, after you put me in a bad mood because I couldn&rsquo;t bring in my laptop, I&rsquo;m sure I&rsquo;ll jump at the opportunity to give you money.<\\/p>\\n\\n<p>What a great start to the morning.<\\/p>\\n\\n<h2>The Next Waiting Room<\\/h2>\\n<p>Finally, my group got called to the courtroom, and we stood around and waited for about two hours until we finally got called into the court room to go through the jury selection process.<\\/p>\\n\\n<p>So again, more waiting, that&rsquo;s basically what I did all day.<\\/p>\\n\\n<h2>Does anyone think about the experience?<\\/h2>\\n<p>Here we are in a situation where we are supposed to be impartial and have no biases, and I was in a piss poor mood. Why don&rsquo;t they make these kind of situations as painless as possible? Why isn&rsquo;t there someone making sure that the experience of having jury duty is not awful?<\\/p>\\n\\n<p>Just like we devote time thinking about users&rsquo; experiences on the websites we are creating; organizations need to consider what those experiences outside of the web are like.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:26','5de3bf41-1d01-457d-96a2-08fdb7038e93',1),(101,119,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"designer-owner-manager-1-hiring-the-right-people\",\"postDate\":1241565143,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p><a href=\\\"http:\\/\\/www.andyrutledge.com\\/hiring-the-right-people.php\\\">Andy Rutledge&rsquo;s latest article<\\/a> seems like it will come in handy when I eventually start my own business. Some great tips here; especially numbers 6 &amp; 8.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:26','475fcde3-f678-4ded-bccd-dd1e14d493f7',1),(102,120,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"let-your-links-look-like-links\",\"postDate\":1240541192,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Roger Johansson discusses one of my big pet peeves: <a href=\\\"http:\\/\\/www.456bereastreet.com\\/archive\\/200904\\/let_your_links_look_like_links\\/\\\">links need to look like links<\\/a>. Links are the most important part of the web. Make them stand out.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:26','96934af0-4824-4e3e-a761-3b22094d899f',1),(103,121,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"review-building-websites-with-expressionengine-1.6\",\"postDate\":1240221626,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I was lucky enough to be contacted by <a href=\\\"http:\\/\\/www.packtpub.com\\/\\\">Packt Publishing<\\/a> to review the book <a href=\\\"http:\\/\\/www.packtpub.com\\/building-websites-with-expressionengine-1.6\\/book\\/mid\\/200409srne2o\\\">Building Websites with ExpressionEngine 1.6<\\/a> by Leonard Murphy. I have recently become very infatuated with <a href=\\\"http:\\/\\/expressionengine.com\\/\\\">ExpressionEngine<\\/a>, and I have devoted a lot of time to learning how to use it. This book was a great opportunity to see where my skill set was at.<\\/p>\\n<!--more-->\\n<a href=\\\"http:\\/\\/www.packtpub.com\\/building-websites-with-expressionengine-1.6\\/book\\/mid\\/200409srne2o\\\"><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/04\\/building-site-ee.jpg\\\" alt=\\\"Building Websites with ExpressionEngine 1.6\\\" class=\\\"rightSide frame\\\" height=\\\"259\\\" width=\\\"210\\\" \\/><\\/a>\\n<h2>Who is it for?<\\/h2>\\n<p>This book is definitely aimed toward beginning users of <abbr title=\\\"ExpressionEngine\\\">EE<\\/abbr> who have some knowledge of HTML. There is no knowledge of EE needed in order to read this book. So basically anyone who wants to learn how to use EE would benefit from reading this. While I have had some experience with EE, I found many parts of this book that were more of a review for me.<\\/p>\\n\\n<h2>What I liked<\\/h2>\\n<p>I really liked that Leonard uses a lot of screenshots and code snippets to help walk through how he is doing something. They definitely would have helped me to comprehend some of the EE concepts that I did not understand until devoting a lot of time online doing research.<\\/p>\\n\\n<p>This book does a great job of covering a variety of topics, from installing EE and creating a calendar to using other modules and plugins. Even though I have prior experience with EE and this book is geared toward beginners, I did learn a few things about EE from reading this book.<\\/p>\\n\\n<h2>What I could do without<\\/h2>\\n<p>There seemed to be a large chunk of the book devoted to applying CSS to the examples to make them presentable. I don&rsquo;t think there is any need to go through and explain the CSS; people are buying the book for information about EE.<\\/p>\\n\\n<p>I also wish that the example site that is used in the book were a bit more realistic. I really learned a lot from Mike Boyink&rsquo;s <a href=\\\"http:\\/\\/www.train-ee.com\\/courseware\\/free-tutorials\\/category\\/building-a-church-site\\/\\\">Building a Church Site<\\/a> and <a href=\\\"http:\\/\\/www.train-ee.com\\/courseware\\/free-tutorials\\/category\\/building-a-small-business-site\\/\\\">Building a Small Business Site<\\/a> tutorials because the content and functionality of the sites were <strong>real<\\/strong>.<\\/p>\\n\\n<h2>Conclusion<\\/h2>\\n<p>This book is really the only EE book out there. So if you are one of those people who has trouble learning from online tutorials and needs a book, this is definitely a solid choice to get started with EE. You can get a preview of it by <a href=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/04\\/expressionengine-sample-chapter-3-start-posting.pdf\\\">downloading a sample chapter<\\/a>.<\\/p>\\n\\n<h3>Update<\\/h3>\\n<p>I actually wasn&rsquo;t aware of this, but Mike Boyink also has his <a href=\\\"http:\\/\\/www.train-ee.com\\/courseware\\/books\\/\\\">tutorials available as books<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:26','9ccd91de-43ae-4031-ba2c-e7b9039a10e2',1),(104,122,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"dear-designer-you-suck\",\"postDate\":1239321720,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>As usual, <a href=\\\"http:\\/\\/www.subtraction.com\\/2009\\/04\\/09\\/dear-designer-you-suck\\\">another well thought out post<\\/a> from Khoi Vinh. I agree completely: I thrive on criticism. Even though I&rsquo;m not a designer, I&rsquo;m always looking to improve by hearing the thoughts of others.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:26','8e6c9e7b-c3da-4dda-9098-fe6c99abe4bd',1),(105,123,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"css-naked-day-2009\",\"postDate\":1239270509,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Yep, today, April 9, 2009, is <a href=\\\"http:\\/\\/naked.dustindiaz.com\\/\\\">the annual CSS Naked Day<\\/a>. Some people may think it is a huge risk to completely strip the design from my site for a day, but I think otherwise.<\\/p>\\n<!--more-->\\n<p>If anything, it gives visitors a chance to see my ability to code with web standards. I take the time and effort to write well structured XHTML, so it is still readable without any style applied.<\\/p>\\n<p>I am striping my design with the <a href=\\\"http:\\/\\/wordpress.org\\/extend\\/plugins\\/css-naked-day-noscript\\/\\\">CSS Naked Day WordPress Plugin<\\/a>. I encourage everyone else to <strong>strip down and show off your <code>body<\\/code><\\/strong>.<\\/p>\\n<p>Is anyone else going naked today?<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:26','80543eb5-4a5e-4340-b5f1-1d182eb0ffef',1),(106,124,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"creating-a-jquery-word-counter\",\"postDate\":1239042260,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I had to code a form at work that required word limitations on each textarea. The article describing <a href=\\\"http:\\/\\/blog.themeforest.net\\/tutorials\\/creating-a-jquery-word-counter\\/\\\">how I created a jQuery word counter<\\/a> was published on the ThemeForest blog.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:14','2014-08-08 19:32:26','9520ffc6-e9de-4912-8701-de60440fdfbc',1),(107,125,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"presentation-to-damscus-high-school-students\",\"postDate\":1238458671,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I have been noticeably absent from my blog recently, but for good reason. I was honored when <a href=\\\"http:\\/\\/teachmetheweb.org\\/\\\">Jeff Brown<\\/a>, a teacher at Damascus High School, asked if I wanted to speak to the students in his advanced web class. I have always been interested in speaking about web development, so this seemed like a great first opportunity.<\\/p>\\n<!--more-->\\n<p>So basically, Mr. Brown has people in the industry come in and speak to his students every Friday. After looking at the <a href=\\\"http:\\/\\/teachmetheweb.org\\/index.php\\/tmtw\\/blog-article\\/spring_2009_guest_speaker_line_up\\/\\\">list of other speakers<\\/a>, I sure was nervous. I mean; I go to conferences to see some of these guys speak.<\\/p>\\n\\n<p>Mr. Brown has a great program going, and I was glad to be a part of it. He is one of the few teachers that actually teach about web standards and is a member of the <a href=\\\"http:\\/\\/www.webstandards.org\\/action\\/edutf\\\">WaSP Education Task Force<\\/a>. He also gave a presentation at <a href=\\\"http:\\/\\/refresh-dc.org\\/\\\">RefreshDC<\\/a> about web education the night before my presentation, that I unfortunately missed.<\\/p>\\n\\n<h2>My Presentation<\\/h2>\\n<p>I decided to focus my presentation on my path through web development, some tips to become successful as a front-end developer, and then how to maintain that success.<\\/p>\\n\\n<p>I was pretty nervous, and I felt like I raced at times, but I think it turned out well. Mr. Brown has posted the <a href=\\\"http:\\/\\/teachmetheweb.org\\/index.php\\/tmtw\\/blog-article\\/guest_speaker_reactions_trevor_davis\\/\\\">audio from the presentation<\\/a> on his site.<\\/p>\\n\\n<div id=\\\"presentation\\\" class=\\\"leftSide\\\">\\n <a href=\\\"http:\\/\\/www.slideshare.net\\/davist11\\/become-a-productive-frontend-developer-continue-to-be-one?type=powerpoint\\\">View Presentation: Become a Productive Front-End Developer &amp; Continue to be one<\\/a>\\n<script type=\\\"text\\/javascript\\\">\\n$(document).ready(function(){\\n    $(\'#presentation\').flash(\\n        { \\n          src: \'http:\\/\\/static.slidesharecdn.com\\/swf\\/ssplayer2.swf?doc=fed-090327210216-phpapp01&amp;rel=0&amp;stripped_title=become-a-productive-frontend-developer-continue-to-be-one\',\\n          width: 425,\\n          height: 277\\n        });\\n});\\n<\\/script>\\n<\\/div>\\n\\n<p class=\\\"clearing\\\">I would love to hear any feedback on the presentation, so let me know what you all think.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:15','2014-08-08 19:32:27','eecb3144-42ea-4ebc-bd9e-3683c7c230c2',1),(108,126,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"browser-compatibility-master-tables\",\"postDate\":1238452838,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>PPK has updated his <a href=\\\"http:\\/\\/www.quirksmode.org\\/compatibility.html\\\">browser compatibility tables<\\/a> to include more CSS3 testing, new browsers, and more. This is a great resource to determine which browsers support what.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:15','2014-08-08 19:32:27','47a4472b-dc65-40c8-8e56-53df81a04fa0',1),(109,127,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"the-13-most-essential-plugins-for-wordpress\",\"postDate\":1236943561,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I feel like right after I install WordPress; I immediately install the same set of plugins. I figured this would be a good topic for a post, so I chose that for my <a href=\\\"http:\\/\\/net.tutsplus.com\\/articles\\/web-roundups\\/the-13-most-essential-plugins-for-wordpress\\/\\\">most recent article at NETTUTS<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:15','2014-08-08 19:32:27','49e87796-9c45-4d28-a1b7-28e19ff0a393',1),(110,128,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"dynamically-set-a-body-id-in-php\",\"postDate\":1236735506,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I have already written a couple of articles about body ids: <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/tutorial\\/set-a-body-id\\/\\\">\\nSet a Body Id Using PHP<\\/a> and <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/tutorial\\/setting-body-ids-in-expression-engine\\/\\\">Setting Body Ids in Expression Engine<\\/a>, but in a recent project, I was looking for a more dynamic way to do it in PHP and WordPress.<\\/p>\\n<!--more-->\\n<p>I don&rsquo;t think it&rsquo;s necessary to discuss the benefits of body ids because I have already discussed them in the other posts. So if you still aren&rsquo;t using body ids\\/classes, go read the articles, and start using them.<\\/p>\\n\\n<h2>The Plan<\\/h2>\\n<p>This seems so straightforward that I&rsquo;m not sure why I didn&rsquo;t start with this method. So basically, I look at the URI, and if it is equal to <strong>\\/<\\/strong> then I give it a <strong>body id of home<\\/strong>. Otherwise, I grab the <strong>first &ldquo;folder&rdquo; and set that as the body id<\\/strong>.<\\/p>\\n\\n<h3>Example<\\/h3>\\n<p>Let&rsquo;s say that the URI is: <strong>\\/about\\/team\\/leadership\\/<\\/strong>. The body id would be <strong>about<\\/strong>. Ok, the seems easy, let&rsquo;s get to the code.<\\/p>\\n\\n<h2>The Code<\\/h2>\\n\\n<p>Here is our setBodyId function:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\nfunction&nbsp;setBodyId()&nbsp;&#123;<br \\/>&nbsp;$path&nbsp;=&nbsp;$_SERVER&#91;\'REQUEST_URI\'&#93;;<br \\/><br \\/>&nbsp;if($path&nbsp;===&nbsp;\'\\/\')&nbsp;&#123;<br \\/>&nbsp;&nbsp;$bodyId&nbsp;=&nbsp;\'home\';<br \\/>&nbsp;&#125;&nbsp;else&nbsp;&#123;<br \\/>&nbsp;&nbsp;$bodyId&nbsp;=&nbsp;substr($path,&nbsp;1,&nbsp;(strpos($path,\'\\/\',1)-1));<br \\/>&nbsp;&#125;<br \\/>&nbsp;<br \\/>&nbsp;return&nbsp;$bodyId;<br \\/>&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n<p class=\\\"note\\\"><em>If you are using this in WordPress, put this function in your theme function.php file.<\\/em><\\/p>\\n\\n<p>Then, you want to call the function and assign it to a variable:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$bodyId&nbsp;=&nbsp;setBodyId();&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Finally, if the $bodyId variable is not empty, add the id attribute on the body tag:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;body&lt;?php&nbsp;if(!empty($bodyId))&nbsp;echo&nbsp;\'&nbsp;id=\\\"\'.$bodyId.\'\\\"\';?&gt;&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<h2>Conclusion<\\/h2>\\n<p>It&rsquo;s so simple, yet powerful. This could also easily be recoded in other programming languages. What do you think? Any ideas for improvement?<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:15','2014-08-08 19:32:27','72c1dc22-a74a-418d-8d35-7cd69e864b3f',1),(111,129,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"we-refuse\",\"postDate\":1236686822,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>You know what, <a href=\\\"http:\\/\\/unitinteractive.com\\/blog\\/2009\\/03\\/07\\/we-refuse\\/\\\">I refuse too<\\/a>. Just because someone tells you that you shouldn&rsquo;t do something, that doesn&rsquo;t mean you have to listen. Would you have gotten to where you are today by only listening to other people?<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:15','2014-08-08 19:32:27','0bd95087-0ecf-4bb1-8485-35d46e2aa208',1),(112,130,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"theres-always-time-to-launch-your-dream\",\"postDate\":1236677494,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I agree completely, <a href=\\\"http:\\/\\/www.37signals.com\\/svn\\/posts\\/1619-theres-always-time-to-launch-your-dream\\\">stop with the excuses<\\/a>. I don&rsquo;t think I tried that hard in school either. Definitely the quote of the article: &ldquo;Never let your schooling interfere with your education&rdquo;.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:15','2014-08-08 19:32:27','4ccbdd48-4cc4-4847-a743-4dbe1c63d644',1),(113,131,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"wordpress-jquery-contact-form-without-a-plugin\",\"postDate\":1235599667,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>There are <a href=\\\"http:\\/\\/wordpress.org\\/extend\\/plugins\\/search.php?q=contact\\\">lots of WordPress plugins for contact forms<\\/a>, but wouldn&rsquo;t it be nice to have more control over the markup? In this tutorial, I am going to show how to use a custom page template to create a contact form in WordPress without a plugin.<\\/p>\\n<!--more-->\\n\\n<p>Some people may want to skip the post and get to the demo and source files:<\\/p>\\n<p class=\\\"clearfix\\\"><a href=\\\"http:\\/\\/wp.trevordavis.net\\/contact-form\\/\\\" class=\\\"leftSide more-link\\\">View Demo<\\/a> <a href=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/02\\/contact-form.zip\\\" class=\\\"leftSide more-link\\\">Download Source Files<\\/a><\\/p>\\n\\n<h2>So, why not use a plugin?<\\/h2>\\n<p>Well, I think that a contact form is so simple that a WordPress plugin that doesn&rsquo;t provide exactly what I want is pretty lame. Plus, I don&rsquo;t need all those fancy interfaces for building the form; I just need the code.<\\/p>\\n\\n<h2>The Plan<\\/h2>\\n<p>Our plan is to create a custom <a href=\\\"http:\\/\\/codex.wordpress.org\\/Pages#Creating_Your_Own_Page_Templates\\\">WordPress Page Template<\\/a>, then create a page that uses that template. Finally, we will add in a little <strong>jQuery<\\/strong> to improve the form. Let&rsquo;s write a little pseudo code to help determine how our page template will be structured.<\\/p>\\n\\n<h3>Pseudo Code<\\/h3>\\n<pre><code>If form was submitted validate it\\n If the form was submitted successfully\\n  Send email(s)\\n Else\\n  Set variables to show errors\\n\\nIf the form was submitted successfully\\n Show thank you message\\nElse\\n Show form (with errors if there are any)<\\/code><\\/pre>\\n\\n<h3>Creating the WordPress Page Template<\\/h3>\\n<p>Alright, so first, we are going to start with some basic stuff: define the template name, include the header\\/sidebar\\/footer, and setup the basic structure of our pseudo code.<\\/p>\\n\\n<pre><code>&lt;?php\\n\\/*\\nTemplate Name: Contact Form\\n*\\/\\n?&gt;\\n\\n&lt;?php \\n\\/\\/If the form is submitted\\nif(isset($_POST[\'submitted\'])) {\\n \\/\\/If there is no error, send the email\\n if(!isset($hasError)) {\\n\\n }\\n} ?&gt;\\n\\n&lt;?php get_header(); ?&gt;\\n\\n&lt;?php \\n\\/\\/If the email was sent, show a thank you message\\n\\/\\/Otherwise show form\\nif(isset($emailSent) && $emailSent == true) {\\n?&gt;\\n\\n&lt;?php } else { ?&gt;\\n\\n&lt;?php } ?&gt;\\n\\n&lt;?php get_sidebar(); ?&gt;\\n\\n&lt;?php get_footer(); ?&gt;<\\/code><\\/pre>\\n\\n<h3>The Form<\\/h3>\\n<p>Next, let&rsquo;s code the actual form. I also want to provide the ability for the user to enter some text to go above the form, so we are going to use the regular loop:<\\/p>\\n\\n\\n<pre><code>&lt;?php if(isset($emailSent) && $emailSent == true) { ?&gt;\\n\\n &lt;div class=\\\"thanks\\\">\\n  &lt;h1>Thanks, &lt;?=$name;?&gt;&lt;\\/h1>\\n  &lt;p>Your email was successfully sent. I will be in touch soon.&lt;\\/p>\\n &lt;\\/div>\\n\\n&lt;?php } else { ?&gt;\\n\\n &lt;?php if (have_posts()) : ?&gt;\\n \\n  &lt;?php while (have_posts()) : the_post(); ?&gt;\\n   &lt;h1>&lt;?php the_title(); ?&gt;&lt;\\/h1>\\n   &lt;?php the_content(); ?&gt;\\n  \\n   &lt;?php if(isset($hasError) || isset($captchaError)) { ?&gt;\\n    &lt;p class=\\\"error\\\">\\n     There was an error submitting the form.\\n    &lt;p>\\n   &lt;?php } ?&gt;\\n \\n   &lt;form action=\\\"&lt;?php the_permalink(); ?&gt;\\\" id=\\\"contactForm\\\" method=\\\"post\\\">\\n \\n   &lt;\\/form>\\n \\n  &lt;?php endwhile; ?&gt;\\n &lt;?php endif; ?&gt;\\n&lt; } ?&gt;<\\/code><\\/pre>\\n\\n<p>If the <strong>emailSent<\\/strong> variable is set to true, we display the thank you message. Otherwise, we show the form. So we are outputting the title of the page, and any content that was entered. Then, we are checking to see if there was an error. Finally, we display the form:<\\/p>\\n\\n<pre><code>&lt;ol class=\\\"forms\\\">\\n &lt;li>\\n  &lt;label for=\\\"contactName\\\">Name&lt;\\/label>\\n  &lt;input type=\\\"text\\\" name=\\\"contactName\\\" id=\\\"contactName\\\" value=\\\"\\n  &lt;?php if(isset($_POST[\'contactName\'])) echo $_POST[\'contactName\'];?&gt;\\\"\\n   class=\\\"requiredField\\\" \\/>\\n  &lt;?php if($nameError != \'\') { ?&gt;\\n   &lt;span class=\\\"error\\\">&lt;?=$nameError;?&gt;&lt;\\/span> \\n  &lt;?php } ?&gt;\\n &lt;\\/li>\\n \\n &lt;li>\\n  &lt;label for=\\\"email\\\">Email&lt;\\/label>\\n  &lt;input type=\\\"text\\\" name=\\\"email\\\" id=\\\"email\\\" value=\\\"\\n  &lt;?php if(isset($_POST[\'email\']))  echo $_POST[\'email\'];?&gt;\\\"\\n  class=\\\"requiredField email\\\" \\/>\\n  &lt;?php if($emailError != \'\') { ?&gt;\\n   &lt;span class=\\\"error\\\">&lt;?=$emailError;?&gt;&lt;\\/span>\\n  &lt;?php } ?&gt;\\n &lt;\\/li>\\n \\n &lt;li class=\\\"textarea\\\">\\n  &lt;label for=\\\"commentsText\\\">Comments&lt;\\/label>\\n  &lt;textarea name=\\\"comments\\\" id=\\\"commentsText\\\" rows=\\\"20\\\" cols=\\\"30\\\" class=\\\"requiredField\\\">\\n  &lt;?php if(isset($_POST[\'comments\'])) { \\n   if(function_exists(\'stripslashes\')) { \\n    echo stripslashes($_POST[\'comments\']); \\n   } else { \\n    echo $_POST[\'comments\']; \\n   }\\n   } ?&gt;&lt;\\/textarea>\\n  &lt;?php if($commentError != \'\') { ?&gt;\\n   &lt;span class=\\\"error\\\">&lt;?=$commentError;?&gt;&lt;\\/span> \\n  &lt;?php } ?&gt;\\n &lt;\\/li>\\n &lt;li class=\\\"inline\\\">\\n  &lt;input type=\\\"checkbox\\\" name=\\\"sendCopy\\\" id=\\\"sendCopy\\\" value=\\\"true\\\"\\n  &lt;?php if(isset($_POST[\'sendCopy\']) && $_POST[\'sendCopy\'] == true) \\n   echo \' checked=\\\"checked\\\"\'; ?&gt; \\n  \\/>\\n  &lt;label for=\\\"sendCopy\\\">Send a copy of this email to yourself&lt;\\/label>\\n &lt;\\/li>\\n &lt;li class=\\\"screenReader\\\">\\n  &lt;label for=\\\"checking\\\" class=\\\"screenReader\\\">If you want to submit this form, do not enter anything in this field&lt;\\/label>\\n  &lt;input type=\\\"text\\\" name=\\\"checking\\\" id=\\\"checking\\\" class=\\\"screenReader\\\" value=\\\"\\n  &lt;?php if(isset($_POST[\'checking\']))  echo $_POST[\'checking\'];?&gt;\\\"\\n  \\/>\\n &lt;\\/li>\\n &lt;li class=\\\"buttons\\\">\\n  &lt;input type=\\\"hidden\\\" name=\\\"submitted\\\" id=\\\"submitted\\\" value=\\\"true\\\" \\/>\\n  &lt;button type=\\\"submit\\\">Email me &raquo;&lt;\\/button>\\n &lt;\\/li>\\n&lt;\\/ol><\\/code><\\/pre>\\n<p class=\\\"note\\\"><em>Note: Line wrapping added for readability.<\\/em><\\/p>\\n\\n<p>Ok, wow, that may seem like a lot. So let&rsquo;s break down the name field to see what this code is actually doing:<\\/p>\\n\\n<pre><code>&lt;li>&lt;label for=\\\"contactName\\\">Name&lt;\\/label>\\n &lt;input type=\\\"text\\\" name=\\\"contactName\\\" id=\\\"contactName\\\" value=\\\"&lt;?php if(isset($_POST[\'contactName\'])) echo $_POST[\'contactName\'];?&gt;\\\" class=\\\"requiredField\\\" \\/>\\n &lt;?php if($nameError != \'\') { ?&gt;\\n  &lt;span class=\\\"error\\\">&lt;?=$nameError;?&gt;&lt;\\/span> \\n &lt;?php } ?&gt;\\n&lt;\\/li><\\/code><\\/pre>\\n\\n<p>We are displaying each form field in a list item, displaying the label, input field, and then showing an error message if there is one. We are also displaying the value in the form field if it was already submitted.<\\/p>\\n\\n<p>So in essence, we are just doing that for each field of the form. You could easily go into the code to add more fields.<\\/p>\\n\\n<p>We are also using honeypot captcha to see if a bot was trying to submit the form:<\\/p>\\n\\n<pre><code>&lt;li class=\\\"screenReader\\\">\\n &lt;label for=\\\"checking\\\" class=\\\"screenReader\\\">If you want to submit this form, do not enter anything in this field&lt;\\/label>\\n &lt;input type=\\\"text\\\" name=\\\"checking\\\" id=\\\"checking\\\" class=\\\"screenReader\\\" value=\\\"&lt;?php if(isset($_POST[\'checking\']))  echo $_POST[\'checking\'];?&gt;\\\" \\/>\\n&lt;\\/li><\\/code><\\/pre>\\n\\n<p>That list item is pushed off the page with CSS, and if there is a value in that field, we can assume that it is not a human trying to submit the form:<\\/p>\\n\\n<pre><code>.screenReader { \\n left: -9999px; \\n position: absolute; \\n top: -9999px;\\n}<\\/code><\\/pre>\\n\\n<h3>The Validation<\\/h3>\\n<p>Next, we are going to have a conditional statement to determine if the form was submitted or not:<\\/p>\\n\\n<pre><code>&lt;?php \\n\\/\\/If the form is submitted\\nif(isset($_POST[\'submitted\'])) {\\n\\n} ?&gt;<\\/code><\\/pre>\\n\\n<p>Within that conditional, is where we are going to do all of our validation of the required fields. First, let&rsquo;s check to see if our honeypot captcha form field is filled in. If it is, then we will display an error and not check anymore of the form:<\\/p>\\n\\n<pre><code>\\/\\/Check to see if the honeypot captcha field was filled in\\nif(trim($_POST[\'checking\']) !== \'\') {\\n $captchaError = true;\\n} else {\\n\\n}<\\/code><\\/pre>\\n\\n<p>So if the captcha field was left blank, we will continue to validate the required fields:<\\/p>\\n\\n<pre><code>\\/\\/Check to make sure that the name field is not empty\\nif(trim($_POST[\'contactName\']) === \'\') {\\n $nameError = \'You forgot to enter your name.\';\\n $hasError = true;\\n} else {\\n $name = trim($_POST[\'contactName\']);\\n}\\n\\n\\/\\/Check to make sure sure that a valid email address is submitted\\nif(trim($_POST[\'email\']) === \'\')  {\\n $emailError = \'You forgot to enter your email address.\';\\n $hasError = true;\\n} else if (!eregi(\\\"^[A-Z0-9._%-]+@[A-Z0-9._%-]+.[A-Z]{2,4}$\\\", trim($_POST[\'email\']))) {\\n $emailError = \'You entered an invalid email address.\';\\n $hasError = true;\\n} else {\\n $email = trim($_POST[\'email\']);\\n}\\n \\n\\/\\/Check to make sure comments were entered \\nif(trim($_POST[\'comments\']) === \'\') {\\n $commentError = \'You forgot to enter your comments.\';\\n $hasError = true;\\n} else {\\n if(function_exists(\'stripslashes\')) {\\n  $comments = stripslashes(trim($_POST[\'comments\']));\\n } else {\\n  $comments = trim($_POST[\'comments\']);\\n }\\n}<\\/code><\\/pre>\\n\\n<p>Again, that may seem like a little much, so let&rsquo;s just take a look at the validation on the name field:<\\/p>\\n\\n<pre><code>if(trim($_POST[\'contactName\']) === \'\') {\\n $nameError = \'You forgot to enter your name.\';\\n $hasError = true;\\n} else {\\n $name = trim($_POST[\'contactName\']);\\n}<\\/code><\\/pre>\\n\\n<p>If the name field if empty, set a variable that will display the name error and set a flag saying that there was an error on the form. Otherwise, set a variable that will contain the name value from the form.<\\/p>\\n\\n<h3>Sending the Email<\\/h3>\\n<p>Now, we want to send the email if there are no errors:<\\/p>\\n<pre><code>\\/\\/If there is no error, send the email\\nif(!isset($hasError)) {\\n\\n $emailTo = \'<strong>me@somedomain.com<\\/strong>\';\\n $subject = \'Contact Form Submission from \'.$name;\\n $sendCopy = trim($_POST[\'sendCopy\']);\\n $body = \\\"Name: $name nnEmail: $email nnComments: $comments\\\";\\n $headers = \'From: My Site &lt;\'.$emailTo.\'>\' . \\\"rn\\\" . \'Reply-To: \' . $email;\\n \\n mail($emailTo, $subject, $body, $headers);\\n\\n if($sendCopy == true) {\\n  $subject = \'You emailed <strong>Your Name<\\/strong>\';\\n  $headers = \'From: <strong>Your Name<\\/strong> &lt;<strong>noreply@somedomain.com<\\/strong>>\';\\n  mail($email, $subject, $body, $headers);\\n }\\n\\n $emailSent = true;\\n\\n}<\\/code><\\/pre>\\n<p class=\\\"note\\\"><em>Note: Items bolded are values that you will want to change before implementing.<\\/em><\\/p>\\n\\n<p>I personally like to have the contact form submission come from myself. That way, I just setup a filter in Gmail, and I can guarantee that it won&rsquo;t get caught in my spam filter. The second email is only sent if the user checks the checkbox to send a copy to themselves.<\\/p>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/02\\/contact-form.txt\\\" class=\\\"more-link\\\">View Entire Custom Page Template<\\/a><\\/p>\\n\\n<h3>Creating the Page in WordPress<\\/h3>\\n<p>First, you want to upload the <a href=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/02\\/contact-form.zip\\\">contact-form.php<\\/a> page template to your themes folder. Next, you will create the page in WordPress and select <strong>Contact Form<\\/strong> as the page template.<\\/p>\\n\\n<p class=\\\"pullLeft\\\"><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/02\\/wordpress-page-template.png\\\" alt=\\\"Adding WordPress page template\\\" class=\\\"frame\\\" height=\\\"341\\\" width=\\\"570\\\" \\/><\\/p>\\n\\n<p>Then, just publish your page and you will have your contact form. Well, the form will be usable, but we are going to add in some CSS and jQuery to finish it off.<\\/p>\\n\\n<h3>Styling the Form<\\/h3>\\n<p>I recently wrote <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/tutorial\\/flexible-and-semantic-forms-with-a-little-jquery\\/\\\">an article about styling forms<\\/a>, so we are just going to stick with some basic styles:<\\/p>\\n\\n<pre><code>.screenReader { left: -9999px; position: absolute; top: -9999px; }\\n.thanks { background: #F2F3F6; border: 1px solid #7E8AA2; padding: 10px; }\\n\\n\\/*****Forms*****\\/\\nol.forms { float: left; list-style: none; margin: 0; width: 100%; }\\nol.forms li { \\n clear: both; \\n float: left; \\n margin-bottom: 18px; \\n position: relative;\\n width: 100%;\\n}\\nol.forms label {\\n cursor: pointer;\\n display: block;\\n float: left;\\n font-weight: bold;\\n padding-right: 20px;\\n width: 100px;\\n}\\nol.forms input, ol.forms textarea {\\n border: 1px solid #7E8AA2;\\n border-radius: 3px;\\n font: inherit;\\n -moz-border-radius: 3px;\\n padding: 2px;\\n -webkit-border-radius: 3px;\\n width: 214px;\\n}\\nol.forms textarea { height: 300px; width: 334px; }\\nol.forms input:focus, ol.forms textarea:focus { background-color: #f2f3f6; border-color: #ff9800; }\\n.error { color: #f00; }\\nol.forms li .error { font-size: 12px; margin-left: 20px; }\\nol.forms li.textarea .error {\\n display: block;\\n position: absolute;\\n right: 0;\\n top: 0;\\n width: 100px;\\n}\\nol.forms li.screenReader { margin-bottom: 0; }\\nol.forms li.buttons button {\\n background: #ff9800;\\n border: none;\\n color: #000;\\n cursor: pointer;\\n font: 16px\\/16px \\\"Avenir LT Std\\\", Helvetica, Arial, sans-serif;\\n overflow: hidden;\\n padding: 6px 3px 3px 3px;\\n text-transform: uppercase;\\n width: auto;\\n}\\nol.forms li.buttons button:hover { color: #222; }\\nol.forms li.buttons button:active { left: -1px; position: relative; top: -1px; }\\nol.forms li.buttons, ol.forms li.inline { float: right; width: 460px; }\\nol.forms li.inline input { width: auto; }\\nol.forms li.inline label { display: inline; float: none; width: auto; }<\\/code><\\/pre>\\n\\n<p>So drop that CSS in your theme stylesheet and you will see the form start to look much better.<\\/p>\\n\\n<h3>Enhancing the form with some jQuery<\\/h3>\\n<p>I have also already written about creating <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/ajax-forms-with-jquery\\/\\\">AJAX forms with jQuery<\\/a>, but I thought I would specifically talk about an AJAX script for a contact form.<\\/p>\\n\\n<p>First, we want to execute our jQuery when the document is ready and the form was submitted:<\\/p>\\n\\n<pre><code>$(document).ready(function() {\\n $(\'form#contactForm\').submit(function() {\\n  \\n  return false;\\n });\\n});<\\/code><\\/pre>\\n\\n<p>Next, we want to hide any error messages if there are any and validate any required fields which are denoted with a class of <strong>requiredField<\\/strong>:<\\/p>\\n\\n<pre><code>$(\'form#contactForm .error\').remove();\\nvar hasError = false;\\n$(\'.requiredField\').each(function() {\\n   \\n});<\\/code><\\/pre>\\n\\n<p>After that, we want to validate that the field is not empty and append an error message if it is:<\\/p>\\n\\n<pre><code>if(jQuery.trim($(this).val()) == \'\') {\\n var labelText = $(this).prev(\'label\').text();\\n $(this).parent().append(\'&lt;span class=\\\"error\\\">You forgot to enter your \'+labelText+\'.&lt;\\/span>\');\\n hasError = true;\\n}<\\/code><\\/pre>\\n\\n<p>If the field is not empty and also has a class of <strong>email<\\/strong>, we want to validate that the email address is valid:<\\/p>\\n\\n<pre><code> else if($(this).hasClass(\'email\')) {\\n var emailReg = \\/^([w-.]+@([w-]+.)+[w-]{2,4})?$\\/;\\n if(!emailReg.test(jQuery.trim($(this).val()))) {\\n  var labelText = $(this).prev(\'label\').text();\\n  $(this).parent().append(\'&lt;span class=\\\"error\\\">You entered an invalid \'+labelText+\'.&lt;\\/span>\');\\n  hasError = true;\\n }\\n}<\\/code><\\/pre>\\n\\n<p>If there are no errors, then we want to replace the submit button with a loading image:<\\/p>\\n\\n<pre><code>if(!hasError) {\\n$(\'form#contactForm li.buttons button\').fadeOut(\'normal\', function() {\\n $(this).parent().append(\'&lt;img src=\\\"\\/wp-content\\/themes\\/td-v3\\/images\\/template\\/loading.gif\\\" alt=\\\"Loading&hellip;\\\" height=\\\"31\\\" width=\\\"31\\\" \\/>\');\\n});<\\/code><\\/pre>\\n<p class=\\\"note\\\"><em>Note: You will need to update the source of the image to wherever you upload it in your theme.<\\/em><\\/p>\\n\\n<p>Finally, let&rsquo;s submit the form via an AJAX request, slide the form up, and show a thank you message:<\\/p>\\n\\n<pre><code>var formInput = $(this).serialize();\\n$.post($(this).attr(\'action\'),formInput, function(data){\\n $(\'form#contactForm\').slideUp(\\\"fast\\\", function() {       \\n  $(this).before(\'&lt;p class=\\\"thanks\\\">&lt;strong>Thanks!&lt;\\/strong> Your email was successfully sent. I check my email all the time, so I should be in touch soon.&lt;\\/p>\');\\n });\\n});<\\/code><\\/pre>\\n\\n<p>Take a look at the entire script:<\\/p>\\n\\n<pre><code>$(document).ready(function() {\\n $(\'form#contactForm\').submit(function() {\\n  $(\'form#contactForm .error\').remove();\\n  var hasError = false;\\n  $(\'.requiredField\').each(function() {\\n   if(jQuery.trim($(this).val()) == \'\') {\\n    var labelText = $(this).prev(\'label\').text();\\n    $(this).parent().append(\'&lt;span class=\\\"error\\\">You forgot to enter your \'+labelText+\'.&lt;\\/span>\');\\n    hasError = true;\\n   } else if($(this).hasClass(\'email\')) {\\n    var emailReg = \\/^([w-.]+@([w-]+.)+[w-]{2,4})?$\\/;\\n    if(!emailReg.test(jQuery.trim($(this).val()))) {\\n     var labelText = $(this).prev(\'label\').text();\\n     $(this).parent().append(\'&lt;span class=\\\"error\\\">You entered an invalid \'+labelText+\'.&lt;\\/span>\');\\n     hasError = true;\\n    }\\n   }\\n  });\\n  if(!hasError) {\\n   $(\'form#contactForm li.buttons button\').fadeOut(\'normal\', function() {\\n    $(this).parent().append(\'&lt;img src=\\\"\\/wp-content\\/themes\\/td-v3\\/images\\/template\\/loading.gif\\\" alt=\\\"Loading&hellip;\\\" height=\\\"31\\\" width=\\\"31\\\" \\/>\');\\n   });\\n   var formInput = $(this).serialize();\\n   $.post($(this).attr(\'action\'),formInput, function(data){\\n    $(\'form#contactForm\').slideUp(\\\"fast\\\", function() {       \\n     $(this).before(\'&lt;p class=\\\"thanks\\\">&lt;strong>Thanks!&lt;\\/strong> Your email was successfully sent. I check my email all the time, so I should be in touch soon.&lt;\\/p>\');\\n    });\\n   });\\n  }\\n  \\n  return false;\\n  \\n });\\n});<\\/code><\\/pre>\\n\\n<p>Just include it in the head of your document after jQuery, and you are good to go:<\\/p>\\n\\n<pre><code>&lt;script type=\\\"text\\/javascript\\\" src=\\\"&lt;?php bloginfo(\'template_directory\'); ?&gt;\\/scripts\\/jquery.js\\\">&lt;\\/script>\\n&lt;script type=\\\"text\\/javascript\\\" src=\\\"&lt;?php bloginfo(\'template_directory\'); ?&gt;\\/scripts\\/contact-form.js\\\">&lt;\\/script><\\/code><\\/pre>\\n<p class=\\\"note\\\"><em>Note: You may need to change the source depending upon where you upload the files in your theme.<\\/em><\\/p>\\n\\n<h2>Conclusion<\\/h2>\\n<p class=\\\"clearfix\\\"><a href=\\\"http:\\/\\/wp.trevordavis.net\\/contact-form\\/\\\" class=\\\"leftSide more-link\\\">View Demo<\\/a> <a href=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/02\\/contact-form.zip\\\" class=\\\"leftSide more-link\\\">Download Source Files<\\/a><\\/p>\\n<p>That&rsquo;s it! Just upload the files and you&rsquo;ve got your form. Since you&rsquo;ve got the code right in front of you, it should be very easy to tweak and add on to. Enjoy!<\\/p>\\n\\n<div class=\\\"ad\\\">\\nCenturyLink Deals: <a href=\\\"http:\\/\\/www.centurylinkquote.com\\/bundles.html\\\">Internet, Phone, & TV Bundles<\\/a>\\n<\\/div>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:15','2014-08-08 19:32:27','ed3faf97-1a8a-44b3-952f-ecf4fd3036b5',1),(114,132,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"orange-you-sorry-about-tropicana\",\"postDate\":1235509674,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Khoi Vinh discusses <a href=\\\"http:\\/\\/www.subtraction.com\\/2009\\/02\\/24\\/orange-you-sorry-about-tropicana\\\">the disastrous Tropicana redesign<\\/a> and wonders if the branding agency behind it, Arnell, did it just for the press. I certainly agree that it was a disaster, as I felt like I was trying to find my orange juice for 5 minutes.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:15','2014-08-08 19:32:27','a22d2776-df11-4028-9fbd-4a2883a45a41',1),(115,133,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"achieve-your-big-goals-with-incremental-persistence\",\"postDate\":1235497401,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p><a href=\\\"http:\\/\\/www.devlounge.net\\/strategy\\/achieve-your-big-goals-with-incremental-persistence\\\">Incremental success<\\/a> really helps in working toward your larger goals. I&rsquo;ve been trying to improve something on my site every day. Recent examples: <a href=\\\"http:\\/\\/trevordavis.net\\/work\\/\\\">tooltips on my portfolio<\\/a> &amp; <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/\\\">better pagination on my blog<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:15','2014-08-08 19:32:27','5c2643e5-7606-421e-a613-f8dca38c316e',1),(116,134,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"10-tips-for-efficient-design\",\"postDate\":1235126877,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Paul Boag says that &ldquo;being a good designer is not always enough to survive hard economic times. You need to be efficient too.&rdquo; With that, he gives us <a href=\\\"http:\\/\\/boagworld.com\\/design\\/10_tips_for_efficient_design\\/\\\">10 tips for efficient design<\\/a>. I think #10 should be <em>emphasized<\\/em> and then <strong>emphasized again<\\/strong>; it&rsquo;s so important!<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:15','2014-08-08 19:32:27','9d78e13f-e1b7-4447-835d-665fccd8f381',1),(117,135,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"5-ways-to-instantly-write-better-css\",\"postDate\":1234775082,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>In my most recent article at NETTUTS: <a href=\\\"http:\\/\\/nettuts.com\\/tutorials\\/html-css-techniques\\/5-tips-to-writing-better-css\\/\\\">5 Ways to Instantly Write Better CSS<\\/a>, I share some tips that have helped me to write better CSS.<\\/p>\\n<!--more-->\\n<p>This is definitely not me trying to tell you to code in a certain way; they are just some tips that I have found to become very useful for myself. I hope you enjoy, and feel free to <a href=\\\"http:\\/\\/nettuts.com\\/tutorials\\/html-css-techniques\\/5-tips-to-writing-better-css\\/#add\\\">share other tips<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:15','2014-08-08 19:32:27','03f237af-3d46-416d-b05c-9d2bed734a14',1),(118,136,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"css3-feedback-selector-blocks\",\"postDate\":1234436235,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Ohh, please make <a href=\\\"http:\\/\\/meyerweb.com\\/eric\\/thoughts\\/2009\\/02\\/12\\/selector-blocks\\/\\\">the ability to do this<\\/a> happen. It would make CSS so much more lightweight and easier to write.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:15','2014-08-08 19:32:27','c1a7ecd7-ad1a-430b-bd03-fd1666f9c8cc',1),(119,137,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"fixing-a-twitter-wordpress-plugin-with-jquery\",\"postDate\":1234400272,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I use the fantastic <a href=\\\"http:\\/\\/wordpress.org\\/extend\\/plugins\\/twitter-for-wordpress\\/\\\">Twitter for WordPress plugin<\\/a> on my website. Sometimes though, <a href=\\\"http:\\/\\/twitter.com\\\">Twitter<\\/a> decides that it doesn&rsquo;t want to make my tweets available. The plugin has accounted for this, and it displays <strong>No public Twitter messages<\\/strong> when this happens. That kinda sucks though.<\\/p>\\n<!--more-->\\n<p>It&rsquo;s definitely nice that the plugin doesn&rsquo;t throw an error, but I really don&rsquo;t want that message displayed on my site. So what&rsquo;s the solution? <strong>jQuery of course<\\/strong>.<\\/p>\\n\\n<h2>When the Tweet Comes Through<\\/h2>\\n<p>Here is the markup that is displayed on my site when a tweet comes through successfully:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&lt;div&nbsp;id=\\\"twitterContainer\\\"&gt;<br \\/>&nbsp;&lt;a&nbsp;class=\\\"twitter-link\\\"&nbsp;href=\\\"http:\\/\\/twitter.com\\/davist11\\/status\\/1200405534\\\"&gt;<br \\/>&nbsp;&nbsp;I&nbsp;feel&nbsp;like&nbsp;I\'m&nbsp;in&nbsp;an&nbsp;episode&nbsp;of&nbsp;Seinfeld&nbsp;right&nbsp;now.<br \\/>&nbsp;&lt;\\/a&gt;<br \\/>&lt;\\/div&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<h2>When the Tweet Doesn&rsquo;t Come Through<\\/h2>\\n<p>This is what you end up with:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;div&nbsp;id=\\\"twitterContainer\\\"&gt;<br \\/>&nbsp;No&nbsp;public&nbsp;Twitter&nbsp;messages.<br \\/>&lt;\\/div&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<h2>The jQuery<\\/h2>\\n<p>My thinking is that I will check the contents of <strong>div#twitterContainer<\\/strong> to see if it is <strong>No public Twitter messages<\\/strong>. If it is, I think it would be useful to replace that text with a link to <a href=\\\"http:\\/\\/twitter.com\\/davist11\\\">my Twitter account<\\/a> with a message telling people to follow me.<\\/p>\\n\\n<p>So first, let&rsquo;s execute the jQuery code when the document is loaded:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Next, we are going to check and see <strong>if the contents of div#twitterContainer is No public Twitter messages<\\/strong>:\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;&lt;strong&gt;if(jQuery.trim($(\'div#twitterContainer\').text())&nbsp;==&nbsp;\'No&nbsp;public&nbsp;Twitter&nbsp;messages.\')&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;<br \\/>&nbsp;&#125;&lt;\\/strong&gt;<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Finally, let&rsquo;s just replace this text with a link to my Twitter feed:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;if(jQuery.trim($(\'div#twitterContainer\').text())&nbsp;==&nbsp;\'No&nbsp;public&nbsp;Twitter&nbsp;messages.\')&nbsp;&#123;<br \\/>&nbsp;&nbsp;&lt;strong&gt;$(\'div#twitterContainer\').html(\'&lt;a&nbsp;href=\\\"http:\\/\\/twitter.com\\/davist11\\\"&nbsp;class=\\\"twitter-link\\\"&gt;Follow&nbsp;Me&nbsp;on&nbsp;Twitter&lt;\\/a&gt;\');&lt;\\/strong&gt;&nbsp;&nbsp;<br \\/>&nbsp;&#125;<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<div class=\\\"clearfix\\\">\\n<p><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/02\\/twitter-plugin-fixed.jpg\\\" alt=\\\"Screenshot of fixed Twitter plugin\\\" class=\\\"rightSide frame\\\" height=\\\"164\\\" width=\\\"150\\\" \\/><strong>That&rsquo;s it<\\/strong>. This is just <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/tutorial\\/improving-a-flickr-plugin-with-jquery\\/\\\">another example of how I have used jQuery to improve a WordPress plugin on my site<\\/a>.<\\/p>\\n\\n<p>You can see this in action on my site, or <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/fixing-twitter-plugin\\/\\\">take a look at the demo<\\/a>.\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/play\\/fixing-twitter-plugin\\/\\\" class=\\\"more-link\\\">See Demo<\\/a><\\/p>\\n<\\/div>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:15','2014-08-08 19:32:27','d7935b6a-2680-42c0-98dc-4bbe1cad6ea8',1),(120,138,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"no-more-pixel-perfectionism-in-ie-6\",\"postDate\":1234370139,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I do just like <a href=\\\"http:\\/\\/www.456bereastreet.com\\/archive\\/200902\\/no_more_pixel_perfectionism_in_ie_6\\/\\\">Roger Johansson says<\\/a>: I make sites perfectly usable in IE, but <strong>not necessarily exactly the same<\\/strong>. As long as everything is accessible, it&rsquo;s good enough for me.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:15','2014-08-08 19:32:27','510cbac4-af3b-4cac-830e-ca307591b991',1),(121,139,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"10-harsh-truths-about-corporate-websites\",\"postDate\":1234305066,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>The legendary Paul Boag gives us a <a href=\\\"http:\\/\\/www.smashingmagazine.com\\/2009\\/02\\/10\\/10-harsh-truths-about-corporate-websites\\/\\\">reality check<\\/a>. While it&rsquo;s hard to believe, I think I agree with all of them.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:15','2014-08-08 19:32:27','9e1d7de3-50c4-4648-8227-a3bc518d9cf4',1),(122,140,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"42-web-design-companies-designs-that-move-me\",\"postDate\":1233942835,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>There are so many <a href=\\\"http:\\/\\/designmovesme.com\\/42-web-design-companies\\/\\\">web design companies that have amazing websites<\\/a>. I felt inspired after looking through these. Now it&rsquo;s just a matter of execution&hellip;<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:15','2014-08-08 19:32:27','cd7128f5-ac90-450d-9b9b-c73928cd6ee5',1),(123,141,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"setting-body-ids-in-expression-engine\",\"postDate\":1233731337,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p><a href=\\\"http:\\/\\/expressionengine.com\\/\\\">Expression Engine<\\/a> has become a popular choice to power many sites. I have just begun experimenting with it, and I have been very impressed. One thing that I have been interested in determining was to figure out if I could set an id on the body like I do when building other sites. I have already written one article showing how to do this in <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/tutorial\\/set-a-body-id\\/\\\">PHP and WordPress<\\/a>, but this will show how to do it dynamically in Expression Engine.<\\/p>\\n<!--more-->\\n<h2>Why are Body Ids Useful?<\\/h2>\\n<p>Body ids can be useful for styling sections differently, displaying certain parts of a dynamic template, displaying current navigation states, and many other things.<\\/p>\\n\\n<h3>A Simple Example<\\/h3>\\n<p>Let&rsquo;s say that I want to have my font size be 14 pixels, <strong>except on the homepage<\\/strong>. It would be as easy as this:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\nbody&nbsp;&#123;&nbsp;font-size:&nbsp;14px;&nbsp;&#125;<br \\/>body#home&nbsp;&#123;&nbsp;font-size:&nbsp;12px;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p><strong>Pretty useful.<\\/strong> By using body ids, we now have a unique hook for each section of the website.<\\/p>\\n\\n<h2>Why not Body Classes?<\\/h2>\\n<p>I do utilize body classes as well. I typically use the body id to indicate the section, then other various items for the body classes.<\\/p>\\n\\n<h3>For Example<\\/h3>\\n<p>For my own blog, I have some pages that I want to have a left gutter on it so that I can push images, quotes, etc. into the column. I also have another class that indicates when it is a blog article page. So, I can just continue to use multiple classes on the body to help me control the width and layout of the page.<\\/p>\\n\\n<p>Here is what the body element looks like on a blog article on my site:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&lt;body&nbsp;id=\\\"blog\\\"&nbsp;class=\\\"subpage&nbsp;leftGutter&nbsp;article\\\"&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>The <strong>subpage class<\\/strong> just indicates that it is not the homepage. Not completely necessary since I already have a specific id on the homepage, but it can sometimes become useful.<\\/p>\\n\\n<p>The <strong>leftGutter class<\\/strong> is used to push the content area to the right and make it narrower. Then, I can pull elements into the left-hand gutter as well.<\\/p>\\n\\n<p>The <strong>article class<\\/strong> is useful because some of the markup for the blog entry information is the same as the homepage and archive pages. Using this class, I can be more specific with my styles to change the way that these elements are displayed on the blog article page.<\\/p>\\n\\n<p>I always try and add classes and id attributes as high up in the tree as possible. This let&rsquo;s me utilize descendant selectors in the CSS without having to add additional classes and ids lower down.<\\/p>\\n\\n<h2>Setting the Body Id in Expression Engine<\\/h2>\\n<p>I want to have complete control over the body id, so I want to be able to have it set dynamically and also be able to set it statically.<\\/p>\\n\\n<p>So my thought behind this is that first, I want to check to see if the body id was set statically. When I say statically, I mean passing the variable in as an attribute on my embed statement. Next, I will then set the body id dynamically.<\\/p>\\n\\n<h3>Setting the Id Statically<\\/h3>\\n<p>In order to make changes to the overall website structure simpler, I have a header template the sits in the includes template group. So in all of the other template groups, I embed the header on the page:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&#123;embed=\\\"includes\\/header\\\"&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Then, if for some reason I want to specifically pass in a body id, I can just change it to this:<\\/p>\\n\\n<pre><code>&#123;embed=\\\"includes\\/header\\\" <strong>body_id=\\\"contact-us\\\"<\\/strong>&#125;<\\/code><\\/pre>\\n\\n<p>So the first step in the header is to check to see if the <strong>embed:body_id<\\/strong> variable is set:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;body<br \\/>&#123;if&nbsp;embed:body_id&#125;<br \\/>&nbsp;id=\\\"&#123;embed:body_id&#125;\\\"<br \\/>&#123;\\/if&#125;<br \\/>&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n<p class=\\\"note\\\"><em>Note: Line wrapping added for readability.<\\/em><\\/p>\\n\\n<h3>Dynamically Setting the Id<\\/h3>\\n<p>If we are not statically setting the body id, we want to then do it dynamically. My thinking is that I will take advantage of Expression Engine&rsquo;s <a href=\\\"http:\\/\\/expressionengine.com\\/docs\\/templates\\/globals\\/url_segments.html\\\">URL segments<\\/a> to determine which section we are in.<\\/p>\\n\\n<p>Here is an example of URL segments using the following URL:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\nhttp:\\/\\/ee.trevordavis.net\\/index.php\\/about\\/me\\/education\\/&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<ul>\\n <li>Segment 1 = <strong>about<\\/strong><\\/li>\\n <li>Segment 2 = <strong>me<\\/strong><\\/li>\\n <li>Segment 3 = <strong>education<\\/strong><\\/li>\\n<\\/ul>\\n\\n<p>Then, we can reference each segment like so:<\\/p>\\n\\n<ul>\\n <li>Segment 1 = <strong>{segment_1}<\\/strong><\\/li>\\n <li>Segment 2 = <strong>{segment_2}<\\/strong><\\/li>\\n <li>Segment 3 = <strong>{segment_3}<\\/strong><\\/li>\\n<\\/ul>\\n\\n<p>So basically what we want to do is assign the body id the value of <strong>{segment_1}<\\/strong> if it is not empty. So continuing on our example:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&lt;body<br \\/>&#123;if&nbsp;embed:body_id&#125;<br \\/>&nbsp;id=\\\"&#123;embed:body_id&#125;\\\"<br \\/>&#123;if:elseif&nbsp;segment_1&#125;<br \\/>&nbsp;id=\\\"&#123;segment_1&#125;\\\"<br \\/>&#123;\\/if&#125;<br \\/>&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p class=\\\"note\\\"><em>Note: Line wrapping added for readability.<\\/em><\\/p>\\n\\n<p><strong>But wait, what about the homepage?<\\/strong> The homepage will have nothing for the value of <strong>{segment_1}<\\/strong>, so we can just put in an else statement:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&lt;body<br \\/>&#123;if&nbsp;embed:body_id&#125;<br \\/>&nbsp;id=\\\"&#123;embed:body_id&#125;\\\"<br \\/>&#123;if:elseif&nbsp;segment_1&#125;<br \\/>&nbsp;id=\\\"&#123;segment_1&#125;\\\"<br \\/>&#123;if:else&#125;<br \\/>&nbsp;id=\\\"home\\\"<br \\/>&#123;\\/if&#125;<br \\/>&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p class=\\\"note\\\"><em>Note: Line wrapping added for readability.<\\/em><\\/p>\\n\\n<p>Here is the line of code without any line wrapping:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;body&#123;if&nbsp;embed:body_id&#125;&nbsp;id=\\\"&#123;embed:body_id&#125;\\\"&#123;if:elseif&nbsp;segment_1&#125;&nbsp;id=\\\"&#123;segment_1&#125;\\\"&#123;if:else&#125;&nbsp;id=\\\"home\\\"&#123;\\/if&#125;&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>I created a <a href=\\\"http:\\/\\/ee.trevordavis.net\\/index.php\\/\\\">demo Expression Engine site<\\/a> to test this functionality.<\\/p>\\n\\n<p><a href=\\\"http:\\/\\/ee.trevordavis.net\\/index.php\\/\\\" class=\\\"more-link\\\">View Demo Site<\\/a><\\/p>\\n\\n<h2>Walking Through the Demo Site<\\/h2>\\n<p>Since we have body ids for each section and an id on each list item in the navigation, I have created the current state for the navigation with a few simple line of CSS:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\nbody#home&nbsp;ul#primaryNav&nbsp;li#homeNav&nbsp;a,<br \\/>body#about&nbsp;ul#primaryNav&nbsp;li#aboutNav&nbsp;a,<br \\/>body#services&nbsp;ul#primaryNav&nbsp;li#servicesNav&nbsp;a,<br \\/>body#contact-us&nbsp;ul#primaryNav&nbsp;li#contactNav&nbsp;a&nbsp;&#123;<br \\/>&nbsp;background:&nbsp;#B3602D;<br \\/>&nbsp;border-top-color:&nbsp;#B3602D;<br \\/>&nbsp;color:&nbsp;#fff;<br \\/>&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n<p class=\\\"note\\\"><em>Note: Line wrapping added for readability.<\\/em><\\/p>\\n\\n<p>I also want to show the sidebar on all of the subpages, so I just need 1 more conditional:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&#123;if&nbsp;embed:body_id&nbsp;||&nbsp;segment_1&#125;<br \\/>&nbsp;&lt;div&nbsp;id=\\\"sidebar\\\"&gt;<br \\/>&nbsp;&lt;\\/div&gt;<br \\/>&#123;\\/if&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>This is checking to see if {embed:body_id} or {segment_1} are not empty, and displaying the sidebar if one or both are set.<\\/p>\\n\\n<p>These are just a few examples of using a body id in Expression Engine, but the possibilities are endless.<\\/p>\\n\\n<h2>One More Thing<\\/h2>\\n<p>Another thing that I was trying to figure out was how to create a variable that I could reuse in multiple embed files. So what I want to do is in my conditional statement, determine that the body id should be and assign it to a variable. Then, I want to be able to access that variable in the footer without have to use the same conditional statement.<\\/p>\\n\\n<p><strong>Is this possible?<\\/strong> I was messing around with the <strong>{assign_variable}<\\/strong> tag, but that didn&rsquo;t seem to do the job because it can only be used in the same template. <strong>Anyone know how to do this?<\\/strong> I&rsquo;m relatively new to Expression Engine, so I am still learning. <\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:15','2014-08-08 19:32:27','8df3eed3-ffb7-4df2-87d2-82401cfa207e',1),(124,142,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"im-a-weekly-nettuts-writer\",\"postDate\":1233698083,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>As I noted in my <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/tutorial\\/exactly-how-to-create-a-custom-jquery-accordion\\/\\\">last post<\\/a>, I submitted a tutorial to <a href=\\\"http:\\/\\/nettuts.com\\/\\\">NETTUTS<\\/a> to be considered as a weekly writer. I am very happy to announce that <strong>they chose me<\\/strong>!<\\/p>\\n<p>In my second article, <a href=\\\"http:\\/\\/nettuts.com\\/tutorials\\/javascript-ajax\\/creating-a-filterable-portfolio-with-jquery\\/\\\">Creating a &ldquo;Filterable&rdquo; Portfolio with jQuery<\\/a>, I take a look at creating a portfolio that can be filtered by category.<\\/p>\\n<!--more-->\\n<p>This tutorial was kind of inspired by the effect that I created on <a href=\\\"http:\\/\\/www.matrixgroup.net\\/portfolio\\/\\\">my company&rsquo;s portfolio<\\/a>.<\\/p>\\n\\n<h2>How will this effect my web site?<\\/h2>\\n<p>Yes, I am not going to be able to write articles as frequently on my blog, but I am still going to be posting some articles. I will also post a note each week discussing my weekly NETTUTS article.<\\/p>\\n<p>I hope you all enjoy the articles.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:15','2014-08-08 19:32:27','33f636c5-12e1-41a3-aa21-17b1616e936c',1),(125,143,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"twitter-chatter-during-the-super-bowl\",\"postDate\":1233665491,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>The New York Times created an <a href=\\\"http:\\/\\/www.nytimes.com\\/interactive\\/2009\\/02\\/02\\/sports\\/20090202_superbowl_twitter.html\\\">interactive information graph of tweets during the super bowl<\\/a>. I love how at halftime, there was an explosion of Springsteen tweets.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:16','2014-08-08 19:32:27','bec15f19-dcfc-48b2-a085-7908648a59ba',1),(126,144,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"webaim-screenreader-surveythe-results-are-in\",\"postDate\":1233570954,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p><a href=\\\"http:\\/\\/www.webstandards.org\\/2009\\/01\\/31\\/webaim-screenreader-survey-results\\/\\\">The WebAIM screenreader survey results are in<\\/a>. Not surprisingly: 76% of users always or often navigating by headings; 72% of screen reader users reported that Flash is very or somewhat difficult.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:16','2014-08-08 19:32:27','e73fb937-07f8-45dd-89c8-11b2adac0832',1),(127,145,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"how-we-reduced-chargebacks-by-30\",\"postDate\":1233174973,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Jason Fried discusses <a href=\\\"http:\\/\\/www.37signals.com\\/svn\\/posts\\/1545-how-we-reduced-chargebacks-by-30-as-a-percentage-of-sales\\\">how they reduced chargebacks by 30%<\\/a>. My favorite part of this is how 37Signals determines the problem and quickly finds the simple solution to it.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:16','2014-08-08 19:32:27','3ea799f5-7269-494e-b3c6-6a20d6aefdc0',1),(128,146,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"sprite-optimization\",\"postDate\":1233173921,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Dave Shea is <a href=\\\"http:\\/\\/mezzoblue.com\\/archives\\/2009\\/01\\/27\\/sprite_optim\\/\\\">starting to notice the use of huge CSS Sprites<\\/a>. I think I am in his state of mind: optimize when possible, but I&rsquo;m not too interested in making one of those huge sprites.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:16','2014-08-08 19:32:27','3578339d-3c2a-40c7-9d97-ab94d6799b4d',1),(129,147,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"my-first-wordpress-plugin\",\"postDate\":1232973659,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>In a recent project at work, I had to integrate WordPress and bbPress. It proved to be a little more difficult than I anticipated, and I had to write my first WordPress plugin: <a href=\\\"http:\\/\\/wordpress.org\\/extend\\/plugins\\/add-bbpress-default-role\\/\\\">Add bbPress Default Role<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:16','2014-08-08 19:32:27','1cc9837b-5925-4ff3-9a6d-b89847d5fd9e',1),(130,148,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"exactly-how-to-create-a-custom-jquery-accordion\",\"postDate\":1232555258,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Yesterday, I saw that <a href=\\\"http:\\/\\/nettuts.com\\/articles\\/news\\/a-staff-writer-position-has-opened\\/\\\">NETTUTS was looking for another staff writer<\\/a>. I figured that I would give it a shot and write a tutorial about creating a custom jQuery accordion (just like the one on the sidebar of my website). Well what do you know, <a href=\\\"http:\\/\\/nettuts.com\\/tutorials\\/javascript-ajax\\/exactly-how-to-create-a-custom-jquery-accordion\\/\\\">they published it<\\/a>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:16','2014-08-08 19:32:27','0829822f-704e-47b4-b6f0-00448a6feeb1',1),(131,149,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"a-list-apart-issue-276\",\"postDate\":1232445212,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p><a href=\\\"http:\\/\\/www.alistapart.com\\/issues\\/276\\\">This issue<\\/a> focuses around one of the biggest problems in web development: education, or lack thereof. I know I would have loved to actually go to school for web development.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:16','2014-08-08 19:32:27','c1c6816b-bdde-4e15-8f0d-ae511f561265',1),(132,150,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"design-share-an-event-series\",\"postDate\":1232041142,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Viget&rsquo;s write up about the <a href=\\\"http:\\/\\/www.viget.com\\/inspire\\/design-share-event-series\\/\\\">design share event<\\/a> that I attended and <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/news\\/design-share\\/\\\">summarized<\\/a>. This one with video!<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:16','2014-08-08 19:32:27','00a3200f-2c2b-4f29-8f9a-1c838ff556dc',1),(133,151,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"web-development-project-estimator\",\"postDate\":1231838839,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>&ldquo;<a href=\\\"http:\\/\\/estimator.astuteo.com\\/\\\">A simple tool<\\/a> that allows web designers and site developers to quickly and thoroughly estimate the time and materials required for a proposed web project.&rdquo; Yes, all of this could be accomplished through other programs, but this is a pretty nice interface.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:16','2014-08-08 19:32:27','152002d1-323e-43f1-b4df-a2aa41ce4feb',1),(134,152,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"use-jquery-to-enhance-your-wordpress-comment-form\",\"postDate\":1231807649,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I have already completed a couple of tutorials on forms and jQuery (<a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/tutorial\\/ajax-forms-with-jquery\\/\\\">Ajax Forms with jQuery<\\/a> and <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/tutorial\\/flexible-and-semantic-forms-with-a-little-jquery\\/\\\">Flexible and Semantic Forms with a Little jQuery<\\/a>), but I wanted to show another example of using a simple jQuery script to enhance functionality. This example will be about the comment form on a WordPress powered site.<\\/p>\\n<!--more-->\\n<p><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/01\\/wordpress-validation.gif\\\" alt=\\\"WordPress Validation Screenshot\\\" width=\\\"330\\\" height=\\\"106\\\" class=\\\"leftSide pullLeft col6 frame\\\" \\/>Depending upon your configuration, WordPress will validate the comment form for required fields. In my configuration, I want to make sure that users fill in their name and email address If you submit my comment form without those, WordPress will perform server side validation.<\\/p>\\n\\n<p>But, do you really want users to see this error page? <strong>Wouldn&rsquo;t it be so much better if we used to JavaScript to validate on the client side so that they never have to leave the form<\\/strong>?<\\/p>\\n\\n<p>I think so. Before we get started, I created <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/wordpress-comment-form\\/\\\">a sample of the WordPress comment form<\\/a>.<\\/p>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/play\\/wordpress-comment-form\\/\\\" class=\\\"more-link\\\">See Example Page<\\/a><\\/p>\\n\\n<h2>Creating the Markup<\\/h2>\\n<p>I have tweaked my markup somewhat from the default WordPress comment form, so you will need to make changes to account for your markup. Here is the markup for my form:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&lt;form&nbsp;action=\\\"#\\\"&nbsp;method=\\\"post\\\"&nbsp;id=\\\"commentform\\\"&gt;<br \\/>&nbsp;&lt;p&nbsp;class=\\\"required\\\"&gt;*&nbsp;Denotes&nbsp;Required&nbsp;Field&lt;\\/p&gt;<br \\/>&nbsp;&lt;ol&nbsp;class=\\\"forms\\\"&gt;<br \\/>&nbsp;&nbsp;&lt;li&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;label&nbsp;for=\\\"author\\\"&gt;Name&nbsp;&lt;span&nbsp;class=\\\"required\\\"&gt;*&lt;\\/span&gt;&lt;\\/label&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type=\\\"text\\\"&nbsp;class=\\\"requiredField\\\"&nbsp;name=\\\"author\\\"&nbsp;id=\\\"author\\\"&nbsp;size=\\\"22\\\"&nbsp;\\/&gt;<br \\/>&nbsp;&nbsp;&lt;\\/li&gt;<br \\/>&nbsp;&nbsp;&lt;li&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;label&nbsp;for=\\\"email\\\"&gt;E-Mail&nbsp;&lt;span&nbsp;class=\\\"required\\\"&gt;*&lt;\\/span&gt;&lt;\\/label&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type=\\\"text\\\"&nbsp;&nbsp;class=\\\"requiredField\\\"&nbsp;name=\\\"email\\\"&nbsp;id=\\\"email\\\"&nbsp;size=\\\"22\\\"&nbsp;\\/&gt;<br \\/>&nbsp;&nbsp;&lt;\\/li&gt;<br \\/>&nbsp;&nbsp;&lt;li&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;label&nbsp;for=\\\"url\\\"&gt;Website&lt;\\/label&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type=\\\"text\\\"&nbsp;name=\\\"url\\\"&nbsp;id=\\\"url\\\"&nbsp;size=\\\"22\\\"&nbsp;\\/&gt;<br \\/>&nbsp;&nbsp;&lt;\\/li&gt;<br \\/>&nbsp;&nbsp;&lt;li&nbsp;class=\\\"textarea\\\"&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;label&nbsp;for=\\\"comment\\\"&gt;Comments&nbsp;&lt;span&nbsp;class=\\\"required\\\"&gt;*&lt;\\/span&gt;&lt;\\/label&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;textarea&nbsp;&nbsp;class=\\\"requiredField\\\"&nbsp;name=\\\"comment\\\"&nbsp;id=\\\"comment\\\"&nbsp;cols=\\\"100%\\\"&nbsp;rows=\\\"10\\\"&gt;&lt;\\/textarea&gt;<br \\/>&nbsp;&nbsp;&lt;\\/li&gt;<br \\/>&nbsp;&nbsp;&lt;li&nbsp;class=\\\"subscribe-to-comments\\\"&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type=\\\"checkbox\\\"&nbsp;name=\\\"subscribe\\\"&nbsp;id=\\\"subscribe\\\"&nbsp;value=\\\"subscribe\\\"&nbsp;&nbsp;\\/&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;label&nbsp;for=\\\"subscribe\\\"&gt;Notify&nbsp;me&nbsp;of&nbsp;followup&nbsp;comments&nbsp;via&nbsp;e-mail&lt;\\/label&gt;<br \\/>&nbsp;&nbsp;&lt;\\/li&gt;<br \\/>&nbsp;&nbsp;&lt;li&nbsp;class=\\\"buttons\\\"&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;button&nbsp;type=\\\"submit\\\"&nbsp;name=\\\"submit\\\"&nbsp;id=\\\"submit\\\"&gt;Add&nbsp;Comment&nbsp;&amp;raquo;&lt;\\/button&gt;<br \\/>&nbsp;&nbsp;&lt;\\/li&gt;<br \\/>&nbsp;&lt;\\/ol&gt;<br \\/>&lt;\\/form&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>I don&rsquo;t think there is much that I need to discuss about that markup; it is pretty standard. The only thing to mention is the class name of <strong>requiredField<\\/strong> on the form fields that I want to be required. <em>Note: I also removed the action on the form so that the sample form cannot really be submitted to the database.<\\/em><\\/p>\\n\\n<h2>The jQuery<\\/h2>\\n<p>I of course am going to show this example using jQuery, but you could create something comparable with any other JavaScript library or just with some plain old JavaScript.<\\/p>\\n\\n<p>Once the document is loaded, let&rsquo;s start by adding a function for when the comment form is submitted:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'form#commentform\').submit(function()&nbsp;&#123;<br \\/>&nbsp;&amp;hellip;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Next, we want to remove any errors if they are showing, and create a flag that will let us know if an error has occured:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'form#commentform\').submit(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&lt;strong&gt;$(\'form#commentform&nbsp;.error\').remove();<br \\/>&nbsp;&nbsp;var&nbsp;hasError&nbsp;=&nbsp;false;&lt;\\/strong&gt;<br \\/>&nbsp;&nbsp;&amp;hellip;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Ok, here is where we really start to do some coding. I want to take each form field that has a class of <strong>requiredField<\\/strong>, check to see if it is empty, copy the name of the label (<em>and remove the required asterisk<\\/em>), traverse to the parent list item, and append the error message. Here is where we will also set the hasError flag so that we know an error has occurred:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'form#commentform\').submit(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;$(\'form#commentform&nbsp;.error\').remove();<br \\/>&nbsp;&nbsp;var&nbsp;hasError&nbsp;=&nbsp;false;<br \\/>&nbsp;&nbsp;&lt;strong&gt;$(\'.requiredField\').each(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;if(jQuery.trim($(this).val())&nbsp;==&nbsp;\'\')&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;labelText&nbsp;=&nbsp;$(this).prev(\'label\').text().replace(\'&nbsp;*\',\'\');<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;$(this).parent().append(\'&lt;span&nbsp;class=\\\"error\\\"&gt;\'+labelText+\'&nbsp;is&nbsp;a&nbsp;required&nbsp;field.&lt;\\/span&gt;\');<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;hasError&nbsp;=&nbsp;true;<br \\/>&nbsp;&nbsp;&nbsp;&#125;<br \\/>&nbsp;&nbsp;&#125;);&lt;\\/strong&gt;<br \\/>&nbsp;&nbsp;&amp;hellip;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Finally, you want to check the <strong>hasError<\\/strong> variable to determine whether or not you should submit the form to the server:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'form#commentform\').submit(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;$(\'form#commentform&nbsp;.error\').remove();<br \\/>&nbsp;&nbsp;var&nbsp;hasError&nbsp;=&nbsp;false;<br \\/>&nbsp;&nbsp;$(\'.requiredField\').each(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;if(jQuery.trim($(this).val())&nbsp;==&nbsp;\'\')&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;labelText&nbsp;=&nbsp;$(this).prev(\'label\').text().replace(\'&nbsp;*\',\'\');<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;$(this).parent().append(\'&lt;span&nbsp;class=\\\"error\\\"&gt;\'+labelText+\'&nbsp;is&nbsp;a&nbsp;required&nbsp;field.&lt;\\/span&gt;\');<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;hasError&nbsp;=&nbsp;true;<br \\/>&nbsp;&nbsp;&nbsp;&#125;<br \\/>&nbsp;&nbsp;&#125;);<br \\/>&nbsp;&nbsp;&lt;strong&gt;if(hasError)&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;return&nbsp;false;<br \\/>&nbsp;&nbsp;&#125;&lt;\\/strong&gt;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n<p class=\\\"note\\\"><em>Note: The end of the script is slightly different on the example form because I did not want to actually submit the form.<\\/em><\\/p>\\n\\n<h2>Conclusion<\\/h2>\\n<p>Just another simple example of how we can improve the user experience by using jQuery. Like usual, there are jQuery plugins out there that can do the same thing, but I think it is important to understand how to do things yourself. Plus, that is only 17 lines of JavaScript compared to much, much more for a plugin.<\\/p>\\n\\n<p>Anyone have any ideas on how to improve the script?<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:16','2014-08-08 19:32:27','79c01c78-8ad0-4b18-9657-c6777d0ab084',1),(135,153,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"css-testing-of-selectors-and-pseudo-selectors\",\"postDate\":1231709583,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p><a href=\\\"http:\\/\\/kimblim.dk\\/css-tests\\/selectors\\/\\\">A list of selectors and their supported browsers<\\/a>. There seems to be a trend of the non-supported ones&hellip;<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:16','2014-08-08 19:32:27','a3a705ce-2d1b-4e17-9a32-955088e3ac82',1),(136,154,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"the-state-of-the-web-2008\",\"postDate\":1231494261,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>The <a href=\\\"http:\\/\\/www.webdirections.org\\/the-state-of-the-web-2008\\/\\\">detailed report from the State of the Web Survey<\\/a> has been compiled. Wow, 62% of the people using JavaScript libraries are using jQuery; I love it.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:16','2014-08-08 19:32:27','5f1b5f8a-11a4-4ca4-a2ca-80b8cf422a2f',1),(137,155,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"design-share\",\"postDate\":1231468779,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I had the pleasure of being invited to <strong>Design Share<\\/strong> at <a href=\\\"http:\\/\\/viget.com\\/\\\">Viget Labs<\\/a> Wednesday night. The idea of the event was that 6 presenters would each give a 5 minute presentation on design, and then there was a question and answer period. It was especially great since I am not really a designer. Always great to learn new things.<\\/p>\\n<!--more-->\\n\\n<h2><a href=\\\"http:\\/\\/www.brian-talbot.com\\/\\\" class=\\\"inline\\\">Brian Talbot<\\/a> National Geographic<\\/h2>\\n<p>Brian started the night off by discussing the process of bringing the National Geographic <a href=\\\"http:\\/\\/www.thegreenguide.com\\/\\\">Green Guide<\\/a> online. It was quite an undertaking since they were taking a print publication and creating a supporting website.<\\/p>\\n<p>Usually, something gets lost in translation going from print to the web. So, they wanted to still have these <strong>interesting layouts and help tie in the site to the printed collateral<\\/strong>. They also wanted to get the community involved in providing information and commentary.<\\/p>\\n\\n<p>I think a lot of the screenshots that he showed us are not in production yet, but they looked great. There were charts, information organization in a sensible manor, and nice simple layouts.<\\/p>\\n\\n<h2><a href=\\\"http:\\/\\/www.thirstyinteractive.com\\/\\\" class=\\\"inline\\\">Jay Moore<\\/a> Thirsty Interactive<\\/h2>\\n<p>Next, Jay discussed his &ldquo;<strong>Papa Bear, Mama Bear, &amp; Baby Bear<\\/strong>&rdquo; approach to mood boards. The example he used was from his experience in building the mood boards for the <a href=\\\"http:\\/\\/www.bered.com\\/\\\">AOL Red<\\/a> redesign.<\\/p>\\n\\n<h3>Papa Bear Mood Board<\\/h3>\\n<p>This is the &ldquo;safety&rdquo; board. It&rsquo;s comfortable because it was similar to the previous design. They wanted to show that they incorporated elements to meet the goals of the project.<\\/p>\\n\\n<h3>Mama Bear Mood Board<\\/h3>\\n<p>With this board, they do not expect it to be chosen. It&rsquo;s edgier and purposely a little bit too far over the top. The idea of this board is that it will help to generate thought and ideas.<\\/p>\\n\\n<h3>Baby Bear Mood Board<\\/h3>\\n<p>This board is kind of the best of the Mama &amp; Papa bear boards. It is that happy medium. It has the familiar feel of the Papa bear board, but that edginess that will help to cater to the teen audience.<\\/p>\\n\\n<p>Of course, the final decision was to use elements from each board.<\\/p>\\n\\n<p>The most interesting part of this talk was that <strong>real design elements were actually worked into the mood boards<\\/strong>. I haven&rsquo;t seen too many mood boards, but all of the ones I had seen were very abstract. This was a nice change.<\\/p>\\n\\n<h2><a href=\\\"http:\\/\\/www.ericlohman.com\\/\\\" class=\\\"inline\\\">Eric Lohman<\\/a> AKQA<\\/h2>\\n<p>Eric had the opportunity to help re-brand and redesign the <a href=\\\"http:\\/\\/www.nhl.com\\/\\\">NHL<\\/a> website. Before his company was involved, the NHL had no real brand; they had all of these different banners with different treatments of their logo. They helped to standardize the logo and provide a simple system for expanding it.<\\/p>\\n\\n<p><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2009\\/01\\/nhl-team-logos.gif\\\" alt=\\\"NHL Team Logos\\\" width=\\\"220\\\" height=\\\"220\\\" class=\\\"leftSide pullLeft col4\\\" \\/>So AKQA developed mood boards, and <strong>the entire design concept was inspired by one image: black ice<\\/strong>. This is where the dark concept came from. It really gives the site a sleek look, and it makes the large action shots really pop.<\\/p>\\n\\n<p>Another difficult task that they encountered was dealing with the teams logos. They were all odd shaped and nothing tied them all together. They decided to do some intense cropping to gain consistency between the logos.<\\/p>\\n\\n<p>Finally, Eric talked about adding more interactivity to the site. You can see game highlights, watch games live, and even look through an enormous photo gallery. The new NHL site is a tremendous design success.<\\/p>\\n\\n<h2><a href=\\\"http:\\/\\/caviarfrenchfries.tumblr.com\\/\\\" class=\\\"inline\\\">Ari Kushimoto<\\/a> CaviarFrenchFries <\\/h2>\\n<p>Ari was tasked with developing 3 mood boards for an intranet that had a Web 2.0 feel (yuck, I hate saying that). Of course she had a tight deadline. This is where she found that her bookmarking service really paid off. <strong>All of that time she spent bookmarking cool sites and ideas really paid off and saved time<\\/strong>.<\\/p>\\n\\n<p>She took screenshots, organized into different folders, and then got started on the mood boards. She setup a consistent grid for the boards, and this made it easier to swap things in and out.<\\/p>\\n\\n<p>There was some good discussion afterward about good tools that help to organize screenshots: <a href=\\\"http:\\/\\/www.realmacsoftware.com\\/littlesnapper\\/\\\">LittleSnapper<\\/a> and <a href=\\\"http:\\/\\/derailer.org\\/paparazzi\\/\\\">Paparazzi<\\/a><\\/p>\\n\\n<h2><a href=\\\"http:\\/\\/www.robsoule.com\\/\\\" class=\\\"inline\\\">Rob Soul&eacute;<\\/a> Viget Labs<\\/h2>\\n<p>Rob talked about the Viget design process. The project begins by sending a couple of surveys to the client. The surveys ask some abstract questions like &ldquo;What kind of car would your company be&rdquo; and &ldquo;What magazine(s) describe your company&rdquo;. These surveys help the client to focus on their thoughts of their brand and <strong>help to give the designers a better idea of what the client is looking for<\\/strong>.<\\/p>\\n\\n<p>Once a project is ready to be designed, a lead designer is assigned the project, and they sit down with 2 other designers. They discuss 3 directions that they want to go in and discuss elements that they want to include in the mood boards. While this is going on, the user experience designer is working on the wireframes.<\\/p>\\n\\n<p>One thing that I thought was really interesting was that they discuss specific elements to add to the mood boards. So for example, a submit button for a form, a headline, and the navigation. While sometimes they also do abstract mood boards, I think <strong>it seems more useful to real elements<\\/strong> that you would see on a site.<\\/p>\\n\\n<h2><a href=\\\"http:\\/\\/sixtwothree.org\\/\\\" class=\\\"inline\\\">Jason Garber<\\/a> Mixx<\\/h2>\\n<p>When Jason used to work at AOL, he was involved in creating <a href=\\\"http:\\/\\/ficlets.com\\/\\\">Ficlets<\\/a> which is basically an online community for short story writers. It became popular relatively quickly, and they had a solid community. A few years later&hellip;Jason and the others who helped to create Ficlets no longer work at AOL, and suddenly, AOL decided they are going to shut down Ficlets.<\\/p>\\n<p>It is not really clear what the reasoning is, basically AOL just sucks. Well, Jason and the others who created it didn&rsquo;t want the site to go away. It was successful and had a solid community. So Jason and friends decided to basically recreate it.<\\/p>\\n<p>This is quite an opportunity for anyone creating a website. <strong>They were able to examine the way that users were using Ficlets and found some ways to improve it<\\/strong>. They are facing some tough decisions trying to determine what to do with past Ficlets&rsquo; stories and the community. Somehow, they need to transport the community from Ficlets to <a href=\\\"http:\\/\\/ficly.com\\/\\\">Ficly<\\/a>, which will be the new home starting on January 15th.<\\/p>\\n\\n<h2>Conclusion<\\/h2>\\n<p>It was very interesting to hear about the process and experience of so many talented people. I think the format of the 5 minute presentation also helped to focus the discussion. All in all, it was a good time.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:58:16','2014-08-08 19:32:27','21f5598f-5b1b-4d92-90de-675ea08f1e4b',1),(138,156,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"jason-santa-maria-is-leaving-happy-cog\",\"postDate\":1231242524,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Probably my favorite designer out there right now <a href=\\\"http:\\/\\/jasonsantamaria.com\\/articles\\/leaving-happy-cog\\/\\\">is going freelance<\\/a>. Hey Jason, want to come work at my company instead?<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:09','2014-08-08 19:32:27','886eacf8-54be-44ab-b939-c8b2c0010d39',1),(139,157,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"a-plea-for-wordpress-help\",\"postDate\":1231204447,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I love using WordPress to power websites.<\\/p>\\n\\n<p>While it began strictly as a blogging platform, it has evolved into a pretty solid CMS, but there is one little thing that has been bugging me for a while now.<\\/p>\\n<!--more-->\\n<p>With the launch of my redesigned site, I was interested in using the <a href=\\\"http:\\/\\/wordpress.org\\/extend\\/plugins\\/wp-pagenavi\\/\\\">WP-PageNavi plugin<\\/a> because I think it provides much better paging than the default WordPress previous\\/next.<\\/p>\\n\\n<p>The problem is that WordPress includes <strong>\\/category\\/<\\/strong> in the URL, and I hate it. For example, on my <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/\\\">blog page<\\/a>, you can click the older entries link at the bottom of the content area, and you can see that the link points to here:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\nhttp:\\/\\/trevordavis.net\\/blog\\/page\\/2\\/&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>But, you will notice that you actually get redirected to:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\nhttp:\\/\\/trevordavis.net\\/category\\/blog\\/page\\/2\\/&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>I had to do this because <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/page\\/2\\/\\\">\\/blog\\/page\\/2\\/<\\/a> returned a 404 error. You can see this by going <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/page\\/3\\/\\\">directly to the third page<\\/a>.<\\/p>\\n\\n<h2>Some Suggested Fixes<\\/h2>\\n<p>I read through <a href=\\\"http:\\/\\/wordpress.org\\/extend\\/ideas\\/topic.php?id=359\\\">a couple<\\/a> of <a href=\\\"http:\\/\\/wordpress.org\\/support\\/topic\\/98005\\\">forum posts<\\/a>  discussing the problem, but none of the fixes mentioned seemed to work.<\\/p>\\n<p>The most discussed suggestion was to change the category base permalink to <strong>\\/.<\\/strong>, but that did not work for me. Surprisingly, some people said it worked for them. That was pretty bizarre to me, so I kept looking.<\\/p>\\n<p>Another suggestion was to edit a core WordPress file, which I do not want to do.<\\/p>\\n\\n<h2>Plugins to Fix the Problem?<\\/h2>\\n<p>I came across 3 plugins that were supposed to fix the problem, but none of them worked for me either.<\\/p>\\n<ul>\\n <li><a href=\\\"http:\\/\\/wordpress.org\\/extend\\/plugins\\/top-level-cats\\/\\\">Top Level Categories<\\/a><\\/li>\\n <li><a href=\\\"http:\\/\\/wordpress.org\\/extend\\/plugins\\/decategorizer\\/\\\">Decategorizer<\\/a><\\/li>\\n <li><a href=\\\"http:\\/\\/www.brianshoff.com\\/wordpress\\/category-base-removal-plugin.htm\\\">Category Base Killer<\\/a><\\/li>\\n<\\/ul>\\n\\n<h2>My Idea<\\/h2>\\n<p>So I am not the greatest with regular expressions and htaccess and all that jazz, but my thinking is that I can use the <a href=\\\"http:\\/\\/wordpress.org\\/extend\\/plugins\\/redirection\\/\\\">Redirection plugin<\\/a> to use a pass-through to rewrite any link like this:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n\\/blog\\/page\\/(*)\\/&nbsp;\\n\\n<\\/code><\\/div>\\n<p>To this:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n\\/blog\\/page\\/$1\\/&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p><em>Is that not possible?<\\/em> I could not get it to work. Does anyone know how to get something like this to work? <strong>WordPress team, why has this been a problem for so long?<\\/strong><\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','61caed45-3a8c-4b38-a2a8-46733672d55c',1),(140,158,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"tabinta\",\"postDate\":1230659788,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"When editin<p>g stuff in WordPress, I was always so annoyed that I could not tab in the textareas. <a href=\\\"https:\\/\\/addons.mozilla.org\\/en-US\\/firefox\\/addon\\/3955\\/\\\">Tabinta<\\/a> Firefox plugin to the rescue.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','6552f41a-cfdd-4f52-aec4-1e32213da143',1),(141,159,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"design-decisions-the-new-highrise-signup-chart\",\"postDate\":1230638927,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p><a href=\\\"http:\\/\\/www.37signals.com\\/svn\\/posts\\/1496-design-decisions-the-new-highrise-signup-chart\\\">Jason Fried discusses the many design iterations<\\/a> for the Highrise signup chart. <a href=\\\"http:\\/\\/www.highrisehq.com\\/signup\\\">What they ended up with<\\/a> is very appealing and accomplishes they goals they seemed to set out.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','08b0edc5-c6ae-4c58-a084-47b44a57df05',1),(142,160,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"wordpress-cheat-sheet\",\"postDate\":1230070267,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>This <a href=\\\"http:\\/\\/wpcandy.com\\/articles\\/tutorials\\/the-wordpress-help-sheet.html\\\">WordPress cheat sheet<\\/a> seems like it could be pretty useful. I think there are some important functions that are left off though, and it&rsquo;s definitely geared more towards beginners.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','8245276c-b510-4913-a9a4-d77861ea92ac',1),(143,161,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"wordpress-art-direction-plugin\",\"postDate\":1229898491,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Inspired by <a href=\\\"http:\\/\\/jasonsantamaria.com\\/\\\">Jason Santa Maria&rsquo;s &ldquo;art directed&rdquo; site<\\/a>, Noel Jackson decided to create an <a href=\\\"http:\\/\\/noel.io\\/wordpress-art-direction-plugin\\/\\\">art direction plugin for WordPress<\\/a>, which allows you to add per post styling. Interesting.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','51341fa1-d725-4839-b8da-933dced96924',1),(144,162,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"jeffrey-zeldman-understanding-web-design\",\"postDate\":1229697421,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>A video of <a href=\\\"http:\\/\\/www.aiga.org\\/content.cfm\\/video-gain-2008-zeldman\\\">Jeffrey Zeldman presenting his talk on Understanding Web Design<\\/a>. I saw this presentation at <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/web\\/an-event-apart-chicago\\/\\\">An Event Apart<\\/a>, and I am still amazed at how great of a speaker he is.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','5e7890f8-a39f-4df7-b68f-78f93750e800',1),(145,163,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"google-pushing-users-away-from-ie\",\"postDate\":1229680857,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>When users use <a href=\\\"http:\\/\\/www.techradar.com\\/news\\/internet\\/google-pushing-users-away-from-ie--496216\\\">Gmail in Internet Explorer<\\/a>, a red link appears at the top right of the page that says &ldquo;Get faster Google Mail&rdquo;. The link takes you to a <a href=\\\"http:\\/\\/mail.google.com\\/support\\/bin\\/answer.py?&amp;answer=107906&amp;hl=en-GB\\\">page suggesting faster browsers<\\/a>. Love it.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','19ca994e-ea19-4805-8434-38a36660f9bd',1),(146,164,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"the-death-throes-of-print\",\"postDate\":1229596996,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Jason Santa Maria wonders if <a href=\\\"http:\\/\\/jasonsantamaria.com\\/articles\\/the-death-throes-of-print\\/\\\">print really is nearing its death<\\/a>. I still can&rsquo;t imagine reading a book online though.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','c014107c-fedb-4494-b3a3-da9c25c41f94',1),(147,165,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"using-jquery-clone\",\"postDate\":1229592815,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I love how I can use jQuery to solve all of my problems. When I was working on a website for <a href=\\\"http:\\/\\/www.thenationaltree.org\\/\\\">The Lighting of the National Christmas Tree<\\/a>, I had to create a page that displayed all of the ornaments. Thank god for the jQuery <a href=\\\"http:\\/\\/docs.jquery.com\\/Manipulation\\/clone\\\">clone()<\\/a> method, which saved me loads of time and effort.<\\/p>\\n<!--more-->\\n<h2>The Situation<\\/h2>\\n<p>I was on a tight deadline, and had to figure out some way to layout all of the state ornaments. Not to mention the fact that I had to crop and resize 56 images to 2 different sizes. Yes, I know there are only 50 states, but the US territories were included as well.<\\/p>\\n<p>So the layout had to be easy enough for everyone to see all the ornaments and be able to click to get a more detailed photo and some information about the ornament. I really was not interested in creating 56 separate pages with information about each ornament, so I went scouring through the jQuery documentation to see how I could copy elements.<\\/p>\\n<p>Before I get started describing what I had to do, <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/using-jquery-clone-for-a-lightbox\\/\\\">here is a demo page that I created<\\/a>.<\\/p>\\n<h2>My Solution<\\/h2>\\n<p>So basically, this is what I wanted to happen when an ornament was clicked:<\\/p>\\n<ol>\\n<li>Get the source of the larger image to be shown<\\/li>\\n<li>Copy the description text about the ornament<\\/li>\\n<li>Append the image and text and open it in a modal window<\\/li>\\n<\\/ol>\\n<p>The styling of the example is nothing special, so I will stick to explaining the script.<\\/p>\\n<h3>The Script<\\/h3>\\n<p>First, we want all of this to happen after the document is loaded and when the ornament links are clicked:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'ul.ornaments&nbsp;a\').click(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;return&nbsp;false;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n<p>Next, we want to setup the modal window with a couple of empty divs: <em>(Note: line breaks added for readability)<\\/em><\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(\'body\').append(\'&lt;div&nbsp;id=\\\"overlay\\\"&gt;&lt;\\/div&gt;<br \\/>&nbsp;&lt;div&nbsp;id=\\\"modal\\\"&gt;<br \\/>&nbsp;&nbsp;&lt;div&nbsp;id=\\\"modalInner\\\"&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;a&nbsp;href=\\\"#\\\"&nbsp;id=\\\"close\\\"&nbsp;title=\\\"Close\\\"&gt;Close&lt;\\/a&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=\\\"modalImageColumn\\\"&gt;&lt;\\/div&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=\\\"modalTextColumn\\\"&gt;&lt;\\/div&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=\\\"clearing\\\"&gt;&lt;\\/div&gt;<br \\/>&nbsp;&nbsp;&lt;\\/div&gt;<br \\/>&nbsp;&lt;\\/div&gt;\');&nbsp;\\n\\n<\\/code><\\/div>\\n<p>Since IE6 doesn&rsquo;t support fixed positioning, we need to get the actual height of the page so we can apply that height to the overlay:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\nif($.browser.msie&nbsp;&amp;&amp;&nbsp;$.browser.version&nbsp;&lt;=&nbsp;6.0)&nbsp;&#123;<br \\/>&nbsp;var&nbsp;windowHeight&nbsp;=&nbsp;$(document).height();<br \\/>&nbsp;$(\'#overlay\').height(windowHeight);<br \\/>&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n<p>Next, we set the opacity of the overlay, start to fade it in, position the modal window, and start to fade it in.<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(\'#overlay\').css(\'opacity\',&nbsp;0.5).fadeIn(\'fast\');<br \\/>$(\'#modal\').fadeIn(\'slow\');&nbsp;&nbsp;<br \\/>var&nbsp;scrollPos&nbsp;=&nbsp;$(window).scrollTop()&nbsp;+&nbsp;50;&nbsp;&nbsp;<br \\/>$(\'div#modal\').css(\'top\',scrollPos+\'px\');&nbsp;\\n\\n<\\/code><\\/div>\\n<p>The order of these things can be moved around some, but this is what I ended up doing, and everything looked good.<\\/p>\\n<p>Next, we want to close and remove the modal window when the close button is clicked or the background overlay is clicked:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(\'div#modal&nbsp;a#close,div#overlay\').bind(\'click\',&nbsp;function()&nbsp;&#123;<br \\/>&nbsp;$(\'div#modal\').fadeOut(\'fast\',function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;$(\'div#overlay\').fadeOut(\'fast\',function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$(this).remove();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \\/>&nbsp;&nbsp;&#125;);<br \\/>&nbsp;&nbsp;$(this).remove();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \\/>&nbsp;&#125;);<br \\/>&nbsp;return&nbsp;false;<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n<p>Next, we grab the url of the link that was clicked, which goes to the full size image, and append the image to the modal window. Once the image has been loaded, we fade it in:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\nvar&nbsp;imgUrl&nbsp;=&nbsp;$(this).attr(\'href\');<br \\/>$(\'div#modalImageColumn\').append(\'&lt;img&nbsp;src=\\\"\'+imgUrl+\'\\\"&nbsp;alt=\\\"\\\"&nbsp;class=\\\"frame\\\"&nbsp;height=\\\"400\\\"&nbsp;id=\\\"ornament\\\"&nbsp;width=\\\"400\\\"&nbsp;\\/&gt;\');<br \\/>$(\'img#ornament\').load(function()&nbsp;&#123;<br \\/>&nbsp;$(this).fadeIn();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n<p>Finally, we get to use the clone() method. We target the div with the class of <strong>stateDescription<\\/strong> that is a sibling of the link we clicked, clone it, and append it to the modal window:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(this).siblings(\'.stateDescription\').clone().appendTo(\'div#modalTextColumn\');&nbsp;\\n\\n<\\/code><\\/div>\\n<h2>Conclusion<\\/h2>\\n<p>Pretty cool stuff if I say so myself. I don&rsquo;t think there are any jQuery plugins out there that would have helped me achieve this, which is why it is important to actually understand jQuery.<\\/p>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/play\\/using-jquery-clone-for-a-lightbox\\/\\\" class=\\\"more-link\\\">See Demo<\\/a><\\/p>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2008\\/12\\/modal.js\\\">Here is the full script to download<\\/a>. You can also take a look at the <a href=\\\"http:\\/\\/www.thenationaltree.org\\/visit-santa\\/pathway-of-peace\\/\\\">final product on the National Christmas Tree site<\\/a>.<\\/p>\\n\\n<p>But, I would encourage you to actually understand jQuery instead of just grabbing code and using it.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','8a6d0083-3168-47be-bf5b-158a334c8102',1),(148,166,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"version-3-launched\",\"postDate\":1229524009,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Well, I finally think my redesign is good enough for the public eye. There are definitely some tweaks that I need to make, but it&rsquo;s good enough for now.<\\/p>\\n\\n<p>I plan on tweaking stuff for the rest of the week and doing some clean up on some of the older articles.<\\/p>\\n<!--more-->\\n\\n<p>This goal of this design was to adhere to a very strict grid, and I used the 16 column <a href=\\\"http:\\/\\/960.gs\\/\\\">960 grid<\\/a>.<\\/p>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/news\\/version-3-launched\\/?grid=true\\\" class=\\\"viewGrid more-link\\\">View Grid<\\/a> <em>(click on the grid to remove it)<\\/em><\\/p>\\n\\n<p>I also wanted to have a stronger focus on some of the things that I can do with jQuery. Check out the accordion and recent work in the sidebar and the comments on the blog articles.<\\/p>\\n\\n<p>Well, that is enough for now. I&rsquo;m sure I will have more to talk about later, but I have to run. Please give me your feedback. I by no means call myself a designer, which is why I tried to go simplistic.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','d765656d-88b9-4381-a7f6-6477d41c9aa1',1),(149,167,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"a-list-apart-issue-274\",\"postDate\":1229476234,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p><a href=\\\"http:\\/\\/www.alistapart.com\\/issues\\/274\\\">This issue<\\/a> has 2 excellent articles focused on content strategy. &ldquo;A website without a content strategy is like a speeding vehicle without a driver.&rdquo;<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','207b4073-6c2f-4c64-af56-7f382430db1d',1),(150,168,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"redesign\",\"postDate\":1229475235,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Just a quick note to everyone that I am planning on launching my redesign tomorrow at some point. Some things are defintely going to need some clean up after launch, but I just feel like it is at a point where small things shouldn&rsquo;t hold it up.<\\/p>\\n\\n<p>So if something looks broken, I will be fixing it soon.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','cfaa866a-9e5e-4f3a-9eec-f26df0d0f9cd',1),(151,169,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-59\",\"postDate\":1229269725,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Nice, 2 days off this week, so hopefully I will be able to get my redesign finished up. Here are a few interesting links from this past week:<\\/p>\\n<ul>\\n<li><a href=\\\"http:\\/\\/cameronmoll.com\\/archives\\/2008\\/12\\/four_resources_when_starting_a_project\\/\\\">Four resources to consider when starting a project<\\/a>\\n<p class=\\\"last\\\">Cameron gives a nice list of resources to use before starting a project:<\\/p>\\n<ol>\\n<li>Precedent: Who&rsquo;s done it already and how?<\\/li>\\n<li>External data.<\\/li>\\n<li>Internal data &amp; knowledge.<\\/li>\\n<li>Educated guesses.<\\/li>\\n<\\/ol>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.maxdesign.com.au\\/2008\\/12\\/12\\/sign-in\\/\\\">Sign in, register, join?<\\/a>\\n<p>This is a really interesting collection of data. What terms are used for new and existing users? Another interesting thing that I found was people using &ldquo;Login&rdquo; vs. &ldquo;Log in&rdquo;.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/visitmix.com\\/Articles\\/Web-Standards-Where-the-ROI-is\\\">Web Standards: Where the ROI is<\\/a>\\n<p>Sometimes it&rsquo;s hard to sell web standards to people, but Molly gives some excellent points to help back us up.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','7fcf2f48-084d-4893-a5df-0788c9200dea',1),(152,170,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"unobtrusive-javascript-print-link-with-jquery\",\"postDate\":1228897806,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>There are times when I have to implement designs that have print links on them. While I may think they are useless, I still have to make them work as they are a part of an approved comp. Sure, it is easy to have a link and then add an onclick event to launch the print window, but is that the right thing to do?<\\/p>\\n<!--more-->\\n<p>Clicking a JavaScript print link does nothing more than launch the browser&rsquo;s print window. If a person has JavaScript disabled, nothing will happen when they click a link like this:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;a&nbsp;href=\\\"#\\\"&nbsp;onclick=\\\"window.print();&nbsp;return&nbsp;false;\\\"&gt;Print&lt;\\/a&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Ideally, we do not want to have things on a page that do not work without JavaScript enabled. So the solution is to write the print link into the DOM using JavaScript, then attach a click event to the link. Luckily, I use jQuery on every project, so it makes the process much easier.<\\/p>\\n\\n<h2>The Solution<\\/h2>\\n<p>In this example, we are going to prepend a list item with a link to an unordered list with the id of <strong>tools<\\/strong>. Then, we attach a click event to the link we have just added to the DOM. Finally, we <strong>return false<\\/strong> to override the action of the link.<\\/p>\\n\\n<p><strong>Here is the script:<\\/strong><\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'ul#tools\').prepend(\'&lt;li&nbsp;class=\\\"print\\\"&gt;&lt;a&nbsp;href=\\\"#print\\\"&gt;Click&nbsp;me&nbsp;to&nbsp;print&lt;\\/a&gt;&lt;\\/li&gt;\');<br \\/>&nbsp;$(\'ul#tools&nbsp;li.print&nbsp;a\').click(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;window.print();<br \\/>&nbsp;&nbsp;return&nbsp;false;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Take a look at the <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/javascript-print-link\\/\\\">demo page<\\/a> to see it in action. The script is nothing complex; it is just another example of using jQuery to improve a user&rsquo;s experience.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','2cf99a53-f0c1-4e54-ba57-65b7da372fdd',1),(153,171,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-58\",\"postDate\":1228775093,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Man, it&rsquo;s tough to get work done on my own site when I am so busy with freelance work. Slowly but surely, I am making progress, and I am hoping that by having some days off this month, I will be able to get it done soon. Here are the links that I found interesting this week:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.airbagindustries.com\\/archives\\/airbag\\/cholesterol.php\\\">Cholesterol.<\\/a>\\n<p>I think having debate in the workplace is so important to reaching the best decision. This is why I think Obama will be successful in office; he is not just surrounding himself with &ldquo;yes&rdquo; men.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/psdtuts.com\\/articles\\/9-information-design-tips-to-make-you-a-better-web-designer\\/\\\">9 Information Design Tips to Make You a Better Web Designer<\\/a>\\n<p>Some nice tips that are focused more on the organization side than the design side.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/jasonsantamaria.com\\/articles\\/cultivating-conversations\\/\\\">Cultivating Conversations<\\/a>\\n<p>Jason brings up the point that sometimes comments become overwhelming on blog posts. He suggests that the author should use &ldquo;milemarker&rdquo; comments so that readers can get a quick snapshot of the comments so far.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/surveys.webdirections.org\\/index.php?sid=38693\\\">The State of the Web 2008<\\/a>\\n<p>Do you make websites? Take the survey.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/freelanceswitch.com\\/finding\\/six-valuable-things-web-design-clients-wont-tell-you\\/\\\">Six Valuable Things Web Design Clients Won&rsquo;t Tell You<\\/a>\\n<p>I wish clients would admit things like this. I guess the solution to that is to educate the client.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.zeldman.com\\/2008\\/12\\/04\\/20-signs-you-dont-want-that-web-design-project\\/\\\">20 signs you don&rsquo;t want that web design project<\\/a>\\n<p>Wow, I can&rsquo;t believe some of these things actually happened.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.designobserver.com\\/archives\\/entry.html?id=38855\\\">Chris Pullman: What I&rsquo;ve Learned <\\/a>\\n<p>Chris shares ten important lessons that he learned while working for WGBH for 35 years.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.miltonglaser.com\\/pages\\/milton\\/essays\\/es3.html\\\">Ten Things I Have Learned<\\/a>\\n<p>Milton Glaser&rsquo;s talk from 2001 was also linked around this week. It&rsquo;s great to see so many tips from these guys with so much experience.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.alistapart.com\\/issues\\/273\\\">A List Apart: Issue 273<\\/a>\\n<p>I know some about IA, but I definitely learned some new ideas while reading <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/flexiblefueleducatingtheclientonia\\\">Flexible Fuel: Educating the Client on IA<\\/a>. I really hadn&rsquo;t heard much about agile design, but <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/gettingrealaboutagiledesign\\\">Getting Real About Agile Design<\\/a> was helpful in learning more about it.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','53a3375e-9b63-412c-b3a7-67d6740ef33d',1),(154,172,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-57\",\"postDate\":1228180784,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>We need to have 4 day weekends more often. I got so much work done on my redesign. I&rsquo;m currently in the process of dealing with IE6, then I am going to start creating the theme. So there is a possibility that I will have something launched sometime this week. Just a few interesting items from this past week:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.questionablecharacters.com\\/\\\">Questionable Characters<\\/a>\\n<p>I found this site so amusing. The premise is that you ask a question, and you get two witty responses from the two designers running the site.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/fontfeed.com\\/archives\\/nyu-researchers-discover-defining-factor-for-legibility\\/\\\">NYU Researchers Discover Defining Factor for Legibility<\\/a>\\n<p>There are plenty of tweaks you can make to refine your typography, but NYU researchers claim that spacing is the most important factor for legibility. So let&rsquo;s all think about increasing our margins and line height.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.37signals.com\\/svn\\/posts\\/1431-mixed-content-warning-how-i-loathe-thee\\\">&ldquo;Mixed content warning&rdquo;, how I loathe thee!<\\/a>\\n<p>Ugh, I hate those stupid warnings! David brings up a good point:<\\/p>\\n<blockquote><p>This is why it would be ever so wonderful if you could refer to a non-SSL asset from an SSL page. That way you could say \\u00e2\\u20ac\\u0153this stuff is private, don\\u00e2\\u20ac\\u2122t share it\\u00e2\\u20ac\\u009d when serving over SSL and at the same time take advantage of HTTP caching for things that pose no security risk, like drag_handle.gif.<\\/p><\\/blockquote>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/24ways.org\\/\\\">24 Ways<\\/a>\\n<p>I still can&rsquo;t believe is December already. But at least we have 24 ways to impress your friends to get us through the month. We already have 2 great articles.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.gerrymcgovern.com\\/nt\\/2008\\/nt-2008-11-24-content-migration.htm\\\">Web content migration: disastrous strategy<\\/a>\\n<p>Is there anything worse than content migrations? Well, maybe content audits. Regardless, Gerry brings up some good points, and I love the milk analogy. I think that the whole process of content migrations should be re-evaluated.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','68f5474d-40fe-442b-9bd5-99df0ec05ee7',1),(155,173,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"my-2008-web-thanksgiving-list\",\"postDate\":1227796672,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Happy Thanksgiving to all! I thought I would take this opportunity to say what I am thankful for on the web. <strong>I am thankful for:<\\/strong><\\/p>\\n\\n<ul>\\n<li><strong><a href=\\\"http:\\/\\/www.zeldman.com\\/\\\">Jeffrey Zeldman<\\/a> and <a href=\\\"http:\\/\\/meyerweb.com\\/\\\">Eric Meyer<\\/a> (and others)<\\/strong>\\n<p>They really helped to spearhead the Web Standards movement, and without them, I probably wouldn&rsquo;t be in the field today.<\\/p>\\n<\\/li>\\n<li><strong><a href=\\\"http:\\/\\/www.simplebits.com\\/publications\\/bulletproof\\/\\\">Bulletproof Web Design<\\/a><\\/strong>\\n<p>This is one of the first web development books I had ever read, and it definitely helped to provide a strong foundation to build on. Thank god for Dan Cederholm&rsquo;s brilliance.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><strong><a href=\\\"http:\\/\\/twitter.com\\/\\\">Twitter<\\/a><\\/strong>\\n<p>What I first saw as a silly little web app, really has become a great networking tool. I can post a question and someone is always around to answer.<\\/p>\\n<\\/li>\\n<li><strong><a href=\\\"http:\\/\\/www.cssmastery.com\\/\\\">CSS Mastery<\\/a><\\/strong>\\n<p>I really took a big step forward in my ability after reading this book. Instead of just being a novice at CSS, I feel like I can tackle anything now.<\\/p>\\n<\\/li>\\n<li><strong><a href=\\\"http:\\/\\/code.google.com\\/p\\/ie7-js\\/\\\">Dean Edwards&rsquo; IE7 Script<\\/a><\\/strong>\\n<p>I can&rsquo;t tell you how many times I have used it. While I have begun to use it less and less, it saved my life when slicing early in my career.<\\/p>\\n<\\/li>\\n<li><strong><a href=\\\"http:\\/\\/wordpress.org\\/\\\">WordPress<\\/a><\\/strong>\\n<p>It really is a flexible CMS. I honestly try and suggest it for every single site I am creating.<\\/p> \\n<\\/li>\\n<li><strong><a href=\\\"http:\\/\\/jquery.com\\/\\\">jQuery<\\/a><\\/strong>\\n<p>I am in love with it. I knew some JavaScript before, but  after easily learning jQuery, I feel much more comfortable writing JavaScript now.<\\/p>\\n<\\/li>\\n<\\/ul>\\n\\n<p><strong>So what are you thankful for?<\\/strong><\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','ef97ea09-1d4a-450d-aa8f-1c9a3444f0b1',1),(156,174,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-56\",\"postDate\":1227575476,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I&rsquo;m really looking forward to this Thanksgiving break. I&rsquo;ve been working on some blog articles and the redesign of my site. So stay tuned, changes are coming soon hopefully. Here is what I found interesting this week:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.alistapart.com\\/issues\\/272\\\">A List Apart: Issue 272<\\/a>\\n<p>Two solid articles from A List Apart again, but I thought <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/thisishowthewebgetsregulated\\\">This is How the Web Gets Regulated<\\/a> was especially interesting. There are definitely holes in web accessibility, and people like Joe Clark are helping to fill those holes. <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/amoreuseful404\\\">A More Useful 404<\\/a> was an interesting concept, but I&rsquo;m not sure how I feel about it being done with Perl and SSI.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.37signals.com\\/svn\\/posts\\/1409-heres-a-demo-of-some-thoughtful-ui-on-ffffoundcom\\\">Demo of some thoughtful UI on Ffffound.com<\\/a>\\n<p>Wow, I had heard of Ffffound but didn&rsquo;t know that it had so much thought put into the UI. Definitely some great minds behind it.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.readwriteweb.com\\/archives\\/college_stops_giving_students_new_email_accounts.php\\\">College Stops Giving Students New Email Accounts: Start Of New Trend?<\\/a>\\n<p>Definitely a smart move at Boston College. It definitely seems unnecessary to give students another email account when they probably already have at least one.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/stylizedweb.com\\/2008\\/11\\/16\\/10-steps-to-a-client-friendly-wordpress-cms\\/\\\">10 Steps to a Client Friendly WordPress CMS<\\/a>\\n<p>WordPress is a great choice as a CMS for powering small sites, but for the non-techie user, it can be a little challenging. Here are a few tips to help make it easier for them.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/mezzoblue.com\\/archives\\/2008\\/11\\/24\\/now_boarding\\/\\\">Now Boarding<\\/a>\\n<p>Dave Shea decided that he was going to try and fly without using a paper boarding pass, and he was only going to use the digital version of the boarding pass on his iPhone. This definitely seems like it is going to be the way boarding passes are handled in the future, but we still may be a little ways away from that.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','74f01fe8-db10-4b55-8990-f22131047499',1),(157,175,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-55\",\"postDate\":1226970798,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Just another busy week and some interesting links from the week:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.456bereastreet.com\\/archive\\/200811\\/writing_good_alt_text\\/\\\">Writing good alt text<\\/a>\\n<p>Roger Johansson provides some instructions for writing good alt text.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/cssglobe.com\\/post\\/3181\\/100-css-compatibility-or-degrade-correctly\\\">100% CSS compatibility or degrade correctly?<\\/a>\\n<p>In my opinion, the correct answer is to degrade correctly. The only problem is trying to sell the client on that idea.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/cameronmoll.com\\/archives\\/2008\\/11\\/showering_and_thinking\\/\\\">Why thinking in the shower may be an ideal model for &ldquo;creative pause&rdquo;<\\/a>\\n<p>I definitely get a lot of good thinking done in the shower. Someone just needs to invent some way of writing stuff in the shower.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.google.com\\/webmasters\\/docs\\/search-engine-optimization-starter-guide.pdf\\\">Google Search Engine Optimization Starter Guide<\\/a>\\n<p>This is a good beginner&rsquo;s guide to SEO. Even though there is nothing new or profound here, it is always interested to see what Google recommends as good practice.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.protonotes.com\\/\\\">Protonotes<\\/a>\\n<p>This application provides the ability to add notes to prototypes and comps. I thought this would be useful for our company when we send them to clients.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.themaninblue.com\\/experiment\\/JS-909\\/\\\">JS-909<\\/a>\\n<p>Cameron Adams created a drum machine using straight-up JavaScript. That&rsquo;s pretty hot.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','9cb7c7ef-0364-4e1f-a245-077634a0b53d',1),(158,176,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"how-to-preload-images-when-you-cant-use-css-sprites\",\"postDate\":1226486517,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I have already shown <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/tutorial\\/the-6-most-important-css-techniques-you-need-to-know\\/#cssSprites\\\">how to use css sprites<\\/a>, but there are times when you just cannot use them. Sometimes you still want the benefit of preloading the image, so you have to get creative.<\\/p>\\n<!--more-->\\n<h2>An Example<\\/h2>\\n<div class=\\\"leftSide pullLeft col1\\\">\\n<a href=\\\"http:\\/\\/trevordavis.net\\/play\\/css-sprites\\/\\\"><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2008\\/11\\/sprite-vert.gif\\\" alt=\\\"CSS Sprite\\\" class=\\\"imageRight frame\\\" height=\\\"40\\\" width=\\\"21\\\" \\/><\\/a>\\n<\\/div>\\n<p>I have created a <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/css-sprites\\/\\\">demo of a CSS sprite in action<\\/a>. The sprite has the two images sitting on top of each other, and each link is using the image as a background image and then shifting the position of it when hovering.<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\na.spriteVert&nbsp;&#123;&nbsp;<br \\/>&nbsp;background:&nbsp;url(http:\\/\\/trevordavis.net\\/images\\/content\\/2008\\/11\\/sprite-vert.gif)&nbsp;no-repeat&nbsp;top&nbsp;left;<br \\/>&nbsp;padding-left:&nbsp;30px;<br \\/>&#125;<br \\/>a.spriteVert:hover&nbsp;&#123;&nbsp;background-position:&nbsp;bottom&nbsp;left;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>It works great in the first example, but <strong>what happens if the user resizes their text?<\\/strong> The sprite starts to break. When I am building a site, I am always thinking with the <a href=\\\"http:\\/\\/simplebits.com\\/publications\\/bulletproof\\/\\\">bulletproof mentality of Dan Cederholm<\\/a>, so this is just not an acceptable solution.<\\/p>\\n\\n<p>Now, we obviously couldn&rsquo;t position the images next to each other because we would still have a problem when shifting the image around.<\\/p>\\n\\n<h2>The Solution<\\/h2>\\n<p>Typically when you are using CSS sprites, there is another element containing the anchor. Whether it&rsquo;s a list item, paragraph, div, etc; <strong>this solution will work unless you have a background image on that element as well<\\/strong>.<\\/p>\\n\\n<h3>Example<\\/h3>\\n<div class=\\\"leftSide pullLeft col1\\\"><a href=\\\"http:\\/\\/trevordavis.net\\/play\\/css-sprites\\/preload-image\\/\\\"><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2008\\/11\\/sprite-hover.gif\\\" alt=\\\"Background image for hover state\\\" class=\\\"leftSide frame\\\" height=\\\"20\\\" width=\\\"21\\\" \\/><\\/a><a href=\\\"http:\\/\\/trevordavis.net\\/play\\/css-sprites\\/preload-image\\/\\\"><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2008\\/11\\/sprite-off.gif\\\" alt=\\\"Background image for unactive state\\\" class=\\\"leftSide frame\\\" height=\\\"20\\\" width=\\\"21\\\" \\/><\\/a><\\/div>\\n<p>I have created a second <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/css-sprites\\/preload-image\\/\\\">demo that &ldquo;fixes&rdquo; the first example<\\/a>. The idea behind it is that instead of combining the images into 1 image, you split it into 2. Then you <strong>place the image that is being shown on hover as the background image on another element<\\/strong> (preferably a containing element), just positioned off the screen.<\\/p>\\n<p>Then when you hover, you switch the background image, which has already been preloaded, so you don&rsquo;t get that &ldquo;white flicker&rdquo;. That may be a little hard to understand, so I&rsquo;ll give an example.<\\/p>\\n\\n<h4>The Markup<\\/h4>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;p&nbsp;class=\\\"spriteContainer\\\"&gt;&lt;a&nbsp;href=\\\"#\\\"&nbsp;class=\\\"spriteVert\\\"&gt;Hover&nbsp;Over&nbsp;Me&lt;\\/a&gt;&lt;\\/p&gt;<br \\/>&lt;p&nbsp;class=\\\"spriteContainer\\\"&gt;&lt;a&nbsp;href=\\\"#\\\"&nbsp;class=\\\"spriteVert&nbsp;spriteVert2\\\"&gt;Hover&nbsp;Over&nbsp;Me&lt;\\/a&gt;&lt;\\/p&gt;<br \\/>&lt;p&nbsp;class=\\\"spriteContainer\\\"&gt;&lt;a&nbsp;href=\\\"#\\\"&nbsp;class=\\\"spriteVert&nbsp;spriteVert3\\\"&gt;Hover&nbsp;Over&nbsp;Me&lt;\\/a&gt;&lt;\\/p&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n<p><em>Note: The extra classes of spriteVert2 and spriteVert3 are just used to change the font size.<\\/em><\\/p>\\n\\n<h4>The CSS<\\/h4>\\n<div class=\\\"codeblock\\\"><code>\\np.spriteContainer&nbsp;&#123;&nbsp;<br \\/>&nbsp;background:&nbsp;url(http:\\/\\/trevordavis.net\\/images\\/content\\/2008\\/11\\/sprite-hover.gif)&nbsp;no-repeat&nbsp;-9999px&nbsp;-9999px;<br \\/>&#125;<br \\/>a.spriteVert&nbsp;&#123;<br \\/>&nbsp;background:&nbsp;url(http:\\/\\/trevordavis.net\\/images\\/content\\/2008\\/11\\/sprite-off.gif)&nbsp;no-repeat&nbsp;top&nbsp;left;<br \\/>&nbsp;padding-left:&nbsp;30px;<br \\/>&#125;<br \\/>a.spriteVert:hover&nbsp;&#123;&nbsp;<br \\/>&nbsp;background-image:&nbsp;url(http:\\/\\/trevordavis.net\\/images\\/content\\/2008\\/11\\/sprite-hover.gif);<br \\/>&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<h4>More Explanation<\\/h4>\\n<p>So looking at the previous example, I am adding the background image that I want to appear on hover as the <strong>background image on the paragraph with a class of spriteContainer<\\/strong>, and I am positioning it way off the screen.<\\/p>\\n<p>Then when I hover over an anchor with a class of spriteVert, <strong>I change the background image to be the one from the paragraph<\\/strong> with a class of spriteContainer.<\\/p>\\n\\n<h2>Conclusion<\\/h2>\\n<p>While this is not as ideal as using CSS sprites because you increase the number of hits to your server, it can help to eliminate the white flicker that you get if the image is not preloaded.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:10','2014-08-08 19:32:27','2e5bea5f-cb5f-4f05-9483-12497d88f75e',1),(159,177,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-54\",\"postDate\":1226369603,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Well, unfortunately I&rsquo;m still doing weekly link round-ups. That means that my redesign still isn&rsquo;t finished. Hopefully I will have more time to finish it up soon. Here are the links that I found interesting this past week:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.37signals.com\\/svn\\/posts\\/1375-in-the-past-historic-front-page-moments\\\">QUESTION: In the past, historic front-page moments<\\/a>\\n<p>This is a great question considering the historic moment we had last week. We had people lining up for hours to buy newspapers, but were people taking screenshots of websites?<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.digital-web.com\\/articles\\/extract_know_your_site\\/\\\">Extract: Know Your Site<\\/a>\\n<p>We get to read an excerpt from Paul Boag&rsquo;s book <em>Website Owner&rsquo;s Manual<\\/em> about analyzing your website.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.alistapart.com\\/issues\\/271\\\">A List Apart: Issue 271<\\/a>\\n<p>This was an excellent article this week with <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/writingcontentthatworksforaliving\\\">Writing Content that Works for a Living<\\/a> and <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/progressiveenhancementwithjavascript\\\">Progressive Enhancement with JavaScript<\\/a>. Well written content and unobtrusive JavaScript, is there anything better?<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.robertnyman.com\\/obtrusive-javascript-checker\\/\\\">Obtrusive JavaScript Checker<\\/a>\\n<p>This plugin will traverse a webpage and highlight obtrusive JavaScript.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.andyrutledge.com\\/web-02.php\\\">Web 0.2<\\/a>\\n<p>Andy Rutledge describes how he thinks the economy will affect web development firms and freelancers.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:11','2014-08-08 19:32:28','252cd87b-3334-4ad2-a70f-9dea632c6d55',1),(160,178,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"an-event-apart-chicago\",\"postDate\":1225924848,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I was lucky enough to have my company pay for myself and my two colleagues, <a href=\\\"http:\\/\\/gdarb.com\\/\\\">Brad<\\/a> and <a href=\\\"http:\\/\\/seeyouin1984.com\\/\\\">Adrian<\\/a>, to go to <a href=\\\"http:\\/\\/aneventapart.com\\/events\\/2008\\/chicago\\/\\\">An Event Apart Chicago<\\/a>. Like my <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/web\\/an-event-apart-boston-summary\\/\\\">An Event Apart Boston Summary<\\/a>, I thought I would create a similar post. This is going to end up being a <strong>really long post<\\/strong>, so I would recommend reading it in pieces or skimming. I am going to split it up into two pages so that the page does not get even more ridiculously long. So be sure to go on to the next page after reading the first one.<\\/p>\\n<!--more-->\\n<h2>Understanding Web Design &ndash; Jeffrey Zeldman<\\/h2>\\n<p>Zeldman is such an amazing speaker and web evangelist. He first begins by asking the question &ldquo;What does a web designer need most?&rdquo; CSS? PHP? Ruby on Rails? Nope. Empathy (ok, he joked that we need Advil too).<\\/p>\\n\\n<p>He described this more by showing a screenshot of the old <a href=\\\"http:\\/\\/real.com\\/\\\">RealPlayer<\\/a> site and labeling everything that looked like a link. The truth was, not that many of them were actually links. The web designer for RealPlayer has to respond to two different internal strategies: help a user find the free player and sell the free player. Those two strategies are basically competing and fight against each other. As Zeldman says, &ldquo;It&rsquo;s <strong>rough out there<\\/strong> for a web designer&rdquo;.<\\/p>\\n\\n<p>The key to good design is that the user needs to be able to use the website with a short learning curve. Like Steve Krug says, &ldquo;<strong>Don&rsquo;t make me think<\\/strong>&rdquo;. He uses another site, <a href=\\\"http:\\/\\/www.consumersearch.com\\/\\\">Consumer Search<\\/a>, as an example. Take a look at the site. Doesn&rsquo;t it look like a phishing website? We have no clue what this site actually does.<\\/p>\\n\\n<h3>College? What for?<\\/h3>\\n<p>Another hard part of being a web designer is the lack of good education programs for the field. Just because someone can learn how to use Photoshop, it does not mean they are a designer. &ldquo;Teaching <strong>Excel<\\/strong> is not the same as teaching <strong>business<\\/strong>&rdquo;.<\\/p>\\n\\n<p>After reviewing all of the data from the <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/news\\/i-took-the-web-design-survey-2007\\/\\\">2007 Web Design Survey<\\/a>, Zeldman wonders if education is even relevant. 47% of people surveyed said that what they studied in college was unrelated to what they do today. I can&rsquo;t remember how I responded, but very little of what I learned in college do I use today. They also determined that as income increases, relevance decreases. This actually makes sense since the more money you make, the longer you have been out of college. Technology changes. Fast.<\\/p>\\n\\n<h3>No Respect<\\/h3>\\n<p>Think about when you meet someone who says they are an architect or surgeon, you are usually pretty impressed with the person. But think about when people meet web designers, they think that they just play on the internet. No respect.<\\/p>\\n\\n<p>But did we bring this onto ourselves? There is no standardization of titles, no standardization of departmental organization, and not that much money in the web field.<\\/p>\\n\\n<h3>In Search of Excellence<\\/h3>\\n<p>Another problem with the perception of the web, I that non-web people don&rsquo;t understand it. All they here in the news is how important Facebook&rsquo;s redesign is, how MySpace is adding music to profiles, how much money some startup got, and other crap like that. Is that really what&rsquo;s important?<\\/p>\\n\\n<p>So fine, maybe they so all these sites that claim they have won awards. Take the <a href=\\\"http:\\/\\/www.coca-cola.com\\/\\\">Coca Cola<\\/a> site. Really? Award winning? Some kind of rainbow exploding from a bottle? Go ahead and disable JavaScript and try to visit the site. Yeah, you can&rsquo;t get past the first page. Award winning (note the sarcasm).<\\/p>\\n\\n<h3>Web Design is Different<\\/h3>\\n<p>The web is different than print design. Comparing illustration to web sites it just wrong. People spend time on normal web sites usually: their bank, insurance, news, etc. sites. Nobody spends time on the Coca Cola website.<\\/p>\\n\\n<p>&ldquo;Good design is <em>invisible<\\/em>. Good web design is about the character of the content, not the character of the designer.&rdquo; Nobody comes to your site to see your &ldquo;awesome&rdquo; stock photo. They come for the words.<\\/p>\\n\\n<h3>12 Tips to Empathetic Web Design<\\/h3>\\n<ol>\\n<li>Start with the user \\/ <em>your passion<\\/em>.<\\/li>\\n<li>Know yourself, know what your limitations are.<\\/li>\\n<li>Find the right clients (job) &ndash; during initial client meetings, shows your true personality. If the clients don&rsquo;t like it, tell them to take a hike.<\\/li>\\n<li>Sell ideas, not pixels!<\\/li>\\n<li>Saying &ldquo;I don\'t know&rdquo; is okay. Just tell them you&rsquo;ll find out later.<\\/li>\\n<li>Build trust. Show that you really care about the project, ask questions.<\\/li>\\n<li>Bring out the big guns, reference articles by experts when necessary, it gives clients reassurance.<\\/li>\\n<li>Create a paper trail. Always be able to refer back to something.<\\/li>\\n<li>Never underprice your work.<\\/li>\\n<li><a href=\\\"http:\\/\\/www.no-spec.com\\/\\\">Say no to SPEC<\\/a>.<\\/li>\\n<li>Say no to rush jobs. Lack of planning on your part does not constitute an emergency on my part.<\\/li>\\n<li>End with the user \\/ your passion.<\\/li>\\n<\\/ol>\\n\\n<p>Man, Zeldman is awesome. I&rsquo;m glad that he&rsquo;s on our side.<\\/p>\\n\\n<h2>Debug \\/ Reboot &ndash; Eric Meyer<\\/h2>\\n<p>This was one of the more technical talks of the conference, and it was a good one. Eric first started by showing a code snippet:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&lt;p&gt;&lt;a&nbsp;href=\\\"\\\"&gt;&lt;\\/a&gt;&lt;\\/p&gt;&nbsp;<br \\/>&lt;p&gt;&lt;img&nbsp;src=\\\"\\\"&nbsp;alt=\\\"\\\"&nbsp;title=\\\"\\\"&nbsp;\\/&gt;&lt;\\/p&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Yep, perfectly valid. According to a validator. Validators can&rsquo;t tell you everything. This is why good web development will never be able to be completely done by machines. But validators really are just tools for us to use to make sure we are doing things correcty.<\\/p>\\n\\n<h3>Debug CSS<\\/h3>\\n<p>I had previously read Eric&rsquo;s article about <a href=\\\"http:\\/\\/meyerweb.com\\/eric\\/thoughts\\/2007\\/09\\/07\\/diagnostic-styling\\/\\\">Diagnostic Styling<\\/a>, but I guess I didn&rsquo;t really think too much about using it. This could definitely be useful when creating pages, but it is <strong>definitely not for production use<\\/strong>. It can easily be added as a user stylesheet using the web developer toolbar.<\\/p>\\n\\n<p>A couple of new CSS things that I learned were the <a href=\\\"http:\\/\\/www.w3.org\\/TR\\/css3-selectors\\/#empty-pseudo\\\">empty<\\/a> and <a href=\\\"http:\\/\\/www.w3.org\\/TR\\/css3-selectors\\/#negation\\\">not pseudo selectors<\\/a>. The <strong>empty pseudo selector<\\/strong> will select elements that do not have any nodes as children, text included. So it could be useful to use on some content management systems that generate a lot of extra empty elements. Here is an example of hiding all empty paragraphs:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\np:empty&nbsp;&#123;&nbsp;display:&nbsp;none;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>The <strong>not pseudo selector<\\/strong> will select elements that are not something. To better explain that, here is an example of giving a border to all images that do not have an alt attribute defined:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\nimg:not(&#91;alt&#93;)&nbsp;&#123;&nbsp;border:&nbsp;2px&nbsp;solid&nbsp;red;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>With debug CSS, there are some times when you style all of a type of element, then override the style for the elements that have what you are looking for. This example should explain it a little better:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\nth&nbsp;&#123;&nbsp;border:&nbsp;1px&nbsp;solid&nbsp;red;&nbsp;&#125;<br \\/>th&#91;scope=\\\"col\\\"&#93;,&nbsp;th&#91;scope=\\\"row\\\"&#93;&nbsp;&#123;&nbsp;border:&nbsp;none;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>So what is happening here is that you are styling all table header cells with a red border, then table header cells that have a scope attribute will have no border. Which accomplishes the goal of giving all table header cells without a scope attribute of col or row a red border.<\\/p>\\n\\n<p>The important thing about Eric&rsquo;s debug CSS is that you should modify it to fit your situation. Eric is just creating this to show an example of what is possible, not to be the only solution. So get creative.<\\/p>\\n\\n<p>Another point that Eric made when debugging CSS, was to use the outline property instead of a border. Since borders affect the layout of elements, they can sometimes change the layout of the page. But outlines do not affect the layout, which I didn&rsquo;t realize until now.<\\/p>\\n\\n<h3>Reboot CSS (not reset)<\\/h3>\\n<p>Eric then went on to talk about his infamous <a href=\\\"http:\\/\\/meyerweb.com\\/eric\\/thoughts\\/2008\\/01\\/15\\/resetting-again\\/\\\">reset stylesheet<\\/a>. The main point of this part of Eric&rsquo;s discussion was that you should not just drop in his reset stylesheet if there is an more effective way to accomplish the same thing.<\\/p>\\n\\n<p>For example, don&rsquo;t set the ol and ul list-style equal to none if you are just going to redefine it later to have a list-style. Instead, turn the reset into a baseline. Modify the reset stylesheet to suit your project, don&rsquo;t use his reset stylesheet without modifying anything. Don&rsquo;t reset then re-style, reboot instead.<\\/p>\\n\\n<p>Eric reinforced this point by saying he did not like the use of CSS frameworks. He thinks everyone should create their own &ldquo;framework&rdquo;. He said that once you get into someone else&rsquo;s framework and try to modify their code, you have to change the way that you think about coding and try to think like the person who created the framework. He also thinks that they end up being bloated.<\\/p>\\n\\n<p>His reset CSS has evolved over time after just thinking about the concept more. For example, he changed it so that it does not use <strong>font: inherit<\\/strong> because of lack of support in IE. He also stopped using generated content to add quotes to the quote and blockquote elements. He compared relying on a browser to generate content to relying on a browser to have JavaScript enabled. There are still some browsers that do not support generated content, and if the quotes are important enough, they should be in the actual content.<\\/p>\\n\\n<h2>Storytelling by Design &ndash; Jason Santa Maria<\\/h2>\\n<p>Jason has been one of my favorite designers for a while now. With his <a href=\\\"http:\\/\\/jasonsantamaria.com\\/\\\">recently redesigned site<\\/a>, he has reaffirmed how great of a designer he is.<\\/p>\\n\\n<p>As a child we are taught to look for the meaning from images in stories, this is called <strong>graphic resonance<\\/strong>. Images are used to reinforce the story. Remember the saying, a picture can tell a thousands words?. Yeah, that&rsquo;s what he was talking about.<\\/p>\\n\\n<p>Designers need to consider themselves as the narrator. The first example that Jason gave was of Charles Joseph Minard&rsquo;s <a href=\\\"http:\\/\\/www.edwardtufte.com\\/tufte\\/graphics\\/poster_OrigMinard.gif\\\">Map of Napoleon&rsquo;s March<\\/a>. This information could have easily been represented as a bar graph, but Charles&rsquo; map has much more impact. Seeing how Napoleon&rsquo;s troops dwindle in size really help us to visualize the magnitude of what happened.<\\/p>\\n\\n<p>The second example Jason gave was the article in <em>Wired<\\/em> magazine, <a href=\\\"http:\\/\\/www.wired.com\\/wired\\/archive\\/14.08\\/spamking.html\\\">The Sleazy Life and Nasty Death of Russia&rsquo;s Spam King<\\/a>. He showed the spread from the actual printed magazine, and they really captured the feeling of the article. But then he showed how the article was translated onto the web, and it was quite boring. &ldquo;Basically, we&rsquo;ve distilled the stories down to just content&rdquo;.<\\/p>\\n\\n<p>We all know that <strong>content is king<\\/strong>, but that doesn&rsquo;t mean we can&rsquo;t enhance the content and tell a story with images. As David Carson said, <strong>&ldquo;Design can&rsquo;t not communicate&rdquo;<\\/strong>.<\\/p>\\n\\n<p><a href=\\\"http:\\/\\/www.jasonsantamaria.com\\/\\\">Jason&rsquo;s own site<\\/a> is an incredible example of telling a story with each blog entry. Jason is basically &ldquo;art directing&rdquo; each article on its own.<\\/p>\\n\\n<h3>Why Are We Plagued By Sameness?<\\/h3>\\n<p>There is so much of the web today that is so similar. Logos look the same. Sites all have similar layouts. Web designers complain that they are restricted by the browser, but is that really the reason why everything is similar? There are plenty of sites that really break from the mold: <a href=\\\"http:\\/\\/noonebelongsheremorethanyou.com\\/\\\">No One Belongs Here More Than You<\\/a>, <a href=\\\"http:\\/\\/abriefmessage.com\\/\\\">A Brief Message<\\/a>, <a href=\\\"http:\\/\\/www.fray.com\\/\\\">Fray<\\/a>, and <a href=\\\"http:\\/\\/www.jasonsantamaria.com\\/\\\">Jason&rsquo;s site<\\/a> just to name a few.<\\/p>\\n\\n<p>Armin Vit recently inquired <a href=\\\"http:\\/\\/www.underconsideration.com\\/speakup\\/archives\\/004033.html\\\">Landmark Web Sites, Where Art Thou?<\\/a> Well, a simple reason is because the web really is young. Now is when we are going to start seeing landmark websites. There are still advancements to be made, and still new stuff to figure out. There isn&rsquo;t only one way to present information. Jason realized that when designing, you always start from a blank slate, whether it&rsquo;s a piece of paper or a blank Photoshop canvas.<\\/p>\\n\\n<h3>The Nature of the Medium<\\/h3>\\n<p>Jason then went on to describe four common principles of the web:<\\/p>\\n\\n<ol>\\n<li>The metaphorical page<\\/li>\\n<li>Ubiquity &amp; WYSIWYG<\\/li> \\n<li>Collections of pages<\\/li>\\n<li>Layout<\\/li>\\n<\\/ol>\\n\\n<h4>The metaphorical page<\\/h4>\\n<p>If we take a look back in history, the canvas that designers has changed drastically, from stone, to paper, to digital canvases. But still, it is all starting from a blank slate. The web is the one place that is basically infinite. It&rsquo;s fluid. Most of the web runs on a single fixed dimension: width. It&rsquo;s not like we are given a 8&prime;x10&prime; book cover to design. The web really has no finite value.<\\/p>\\n\\n<p>Jason gave the example of Ladislav Sutnar, who created the two page spread. Ladislav probably could not fit everything on one page, so he decided to break the convention and spread it across two pages. &ldquo;If you have new problems, look for new solutions&rdquo;.<\\/p>\\n\\n<h4>Ubiquity &amp; WYSIWYG<\\/h4>\\n<p>Another reason why the web is so different is because we have no idea what kind of device people will be looking at websites on. With a printed newspaper, there is only one way to look at it. With advancing technology, people can visit websites online, on an iPhone, screen-reader, and more. When people click something on a website, things can happen. The web is an experience.<\\/p>\\n\\n<h4>Collections of pages<\\/h4>\\n<p>With a book, you can flip to the last page and see what you have ahead of you. With websites, there is no real way to grasp the depth. Take a look at <a href=\\\"http:\\/\\/harpers.org\\/archive\\\">Harper&rsquo;s Magazine&rsquo;s Archive<\\/a>. Sure, you can grasp that there are 158 years and 12 months per year, but there are tons of articles per month. You cannot ever grasp how large the site is without clicking into every article. By the time you finished with that, there would probably be new articles.<\\/p>\\n\\n<h4>Layout<\\/h4>\\n<p>Most people have probably heard of the <a href=\\\"http:\\/\\/en.wikipedia.org\\/wiki\\/Golden_ratio\\\">golden ratio<\\/a> and the <a href=\\\"http:\\/\\/en.wikipedia.org\\/wiki\\/Rule_of_thirds\\\">rule of thirds<\\/a>. But again, since the web can be viewed on so many different devices, they do not always apply. &ldquo;Design ideals rely on predictable dimensions&rdquo; But on the web, we can&rsquo;t predict what dimension that will be.<\\/p>\\n\\n<h3>Conclusion<\\/h3>\\n<p>As Jason summed it up, he said that &ldquo;Design for the web has been chiefly driven forward by the technology rather than the message. The form of design should be driven by the story.&rdquo; So the question is: <strong>how do you stand out from all the other crap online?<\\/strong>\\n\\n\\n<h2>Design Criteria: Actionable Ideas &ndash; Sarah Nelson<\\/h2>\\n<p>I had never heard of Sarah Nelson before, and I was a little worried because she was presenting right before lunch. It ended up being a great presentation, and she had me captivated the entire time.<\\/p>\\n\\n<h2>What are Design Criteria?<\\/h2>\\n<p>Design Criteria are a set of 5-7 short, memorable strategic directives your team can use to focus design activities, and unlike project goals, success metrics brand statements, universal design principles or mission statements, design criteria emphasize specific rules your team will follow when tackling the problem at hand.<\\/p>\\n\\n<p>Instead of looking at design criteria as a constraint, we should look at them as freedom. They help us generate ideas, evaluate ideas, make decisions, and move forward. Here are a few examples of familiar constraints that Sarah gave:<\\/p>\\n\\n<ul>\\n<li>Budget<\\/li>\\n<li>Time<\\/li>\\n<li>People<\\/li>\\n<li>Information<\\/li>\\n<li>Media<\\/li>\\n<li>Resources<\\/li>\\n<\\/ul>\\n\\n<p>Sarah also gave an example of some constraining tools:<\\/p>\\n\\n<ul>\\n<li>Mission Statements<\\/li>\\n<li>Brand Guidelines<\\/li>\\n<li>Personas\\/Demographics<\\/li>\\n<li>Design Principles\\/Best Practices<\\/li>\\n<\\/ul>\\n\\n<p>These tools are used to help designers to focus their designs. If design constraints are defined well at the beginning of a project, it makes creating the actual design much easier.<\\/p>\\n\\n<p>I&rsquo;m sure everyone has heard of the term &ldquo;think outside the box&rdquo; well Sarah said that before you can think outside the box, you have to know and define the box. The problem is, we don&rsquo;t work alone, so we cannot define the box ourselves. Once we all understand the box, we can use that as a platform to generate ideas and figure out which ideas are the most actionable.<\\/p>\\n\\n<h3>The Creative Process<\\/h3>\\n<p>The creative process is comprised of divergence and convergence approaches, which each have a very distinct way of thinking.<\\/p>\\n\\n<h4>Divergence<\\/h4>\\n<p>You use a divergent approach when you are trying to discover new things. This is the process where there is no wrong answer, and you are really just in discovery mode. This is comprised of research activities. The next step is to determine what is actionable and find the &ldquo;solution&rdquo;.<\\/p>\\n\\n<h4>Convergence<\\/h4>\\n<p>This is when you are seeking a conclusion. You are examining the actionable ideas and solving the problem. The point of design is to solve a problem.<\\/p>\\n\\n<p>I found Sarah&rsquo;s talk to be very interesting. As I have never been formally trained in graphic design, it is important for me to understand the process.<\\/p>\\n\\n<h2>On-the-Spot Usability Reviews &ndash; Robert Hoekman, Jr.<\\/h2>\\n<p>Instead of having a formal presentation, Robert took websites suggested from the crowd and did a usability review.<\\/p>\\n\\n<p>The 3 most important things when determining the usability of a site is the purpose, benefit, and usage. Before creating a site, we must determine what a person would want to find.<\\/p>\\n\\n<p>When using large branding images on a site they should be considered billboards on a highway. Do they convey the message when driven by at 60 mph? To help this, less and more concise text is preferable. <strong>Do the images help to tell the story of the content?<\\/strong><\\/p>\\n\\n<p>When you have a form with many steps, there should be some sort of progress meter to let the user know what they are up against. If you can avoid them, select menus on forms are generally bad for usability. Out of sight, out of mind.<\\/p>\\n\\n<p>When creating calls to actions, people generally do better when they think about doing instead of structure. So when things are organized by task, instead of object, users succeed more.<\\/p>\\n\\n<h3>5 Second Usability Test<\\/h3>\\n<p>This is a similar idea to the billboard example. It is a quick and easy way to determine the usability of a page. Robert suggests the following steps:<\\/p>\\n\\n\\n<ol>\\n<li>Take a page and show it to someone for 5 seconds<\\/li>\\n<li>Take it away and ask them to write down everything they remember about the page<\\/li>\\n<li>One of the things they write down should be the most important thing that you want them to do<\\/li>\\n<\\/ol>\\n\\n<p>If the user does not list the most important thing you are trying to convey on the page, then you are in trouble and should re-evaluate the page. An easy way to do this is to use the website <a href=\\\"http:\\/\\/fivesecondtest.com\\/\\\">Five Second Test<\\/a>.<\\/p>\\n\\n<p>Robert created a test and had everyone take the test. One interesting thing about it was that he twittered the link. Twitter is such a simple tool, and it was perfect for this situation.<\\/p>\\n\\n\\n<h2>Designing the Details: Web-App UI Design Beyond the Basics &ndash; Jason Fried<\\/h2>\\n\\n<p>The basis of Jason&rsquo;s talk was the idea of <strong>craftsmanship<\\/strong>. He started with the comparison of an Ikea desk to a desk made by a craftsman. Sure, the Ikea desk is perfectly usable, but it feels a little cheap. The desk made by the craftsman is sturdy and solid. So if we just add a little bit of craftsmanship to our design, we can vastly improve them.<\\/p>\\n\\n<h3>Weak, Normal, Strong<\\/h3>\\n<p>On the web, there is normal text, and emphasized (strong) text, but there is no de-emphasized element. So how do we de-emphasize? Using design of course.<\\/p>\\n\\n<p>For example, instead of making everything emphasized, de-emphasize something by giving it a lighter color. Most people focus on the normal and emphasized text, but not enough focus on the weak. Jason then went through some of the 37 Signals applications to show us examples.<\\/p>\\n\\n<h3>Think About the Flow, Anticipate the Next Action<\\/h3>\\n<p>Jason discussed how the functionality of iPrioritize and Ta-da List were very similar, but Ta-da List thinks about what the user wants to do next. Ta-da list takes less clicks and streamlines the process of using the application.<\\/p>\\n\\n<p>You should consider the <strong>before, during, and next<\\/strong> actions of the application flow. If a user goes to a page with a form on it, focus the first form field so they don&rsquo;t have to click anywhere. You should always focus the user&rsquo;s attention on the next thing you think they want to do.<\\/p>\\n\\n<h3>The Details<\\/h3>\\n<p>It&rsquo;s amazing how much little details can make a difference. Designers should consider words as important as pixels. Copywriting is an integral part of interface design. For example, if you are doing a search for contacts, and only 1 contact is returned, say that <strong>1 contact<\\/strong> was found. if 10 were found, say that <strong>10 contact<\\/strong> were found. Just one simple letter. All it takes is a little bit of extra coding.<\\/p>\\n\\n<p><strong>Write in your applications like you talk<\\/strong>. For example, use the phrase, &ldquo;who can see this person&rdquo; instead of &ldquo;permissions&rdquo;. Always be clear over clever. Instead of &ldquo;advanced search&rdquo;, use &ldquo;search by city, state, country, zip, phone, or email&rdquo;. Think about how you would say something in real conversation, make it more human-like. Label the button &ldquo;Save This Item&rdquo; instead of &ldquo;Save Item&rdquo;.<\\/p>\\n\\n<p>When developing an application, you definitely do not want to spent too much time at the beginning on these small details. The flow and functionality should be established, then work on the fine details. Jason said at 37 Signals they use sharpies instead of pencils when sketching at the beginning of the process. <\\/p>\\n\\n<p>When you have to explain something, like instructions for a form, use 3 sentences. The sentences should be structured as follows:<\\/p>\\n\\n<ol>\\n<li>Explain what is going to happen<\\/li>\\n<li>Give an example<\\/li>\\n<li>Provide a suggestion\\/recommendation<\\/li>\\n<\\/ol>\\n\\n<p><strong>Timing is everything<\\/strong>. If you have a drop down menu, allow for a mistake when hovering. If the hover off of it for a second, then hover back over it, don&rsquo;t make the menu disappear.<\\/p>\\n\\n\\n<p><strong>Have a photographic memory<\\/strong>. If someone is entering a lot of items in a row, remember the settings from the last time they entered it. It is most likely that they will want to have the same preferences checked.<\\/p>\\n\\n<p><strong>Give the user feedback on that just happened<\\/strong>. Gracefully fade something out instead of quickly hiding it. Give a slight flash of yellow before fading back to white. Give the user an update in words so that they know what happened.<\\/p>\\n\\n<p><strong>Not everything needs to be equally obvious<\\/strong>. There are two different users: regular users and power users. You do not need to make advanced tasks obvious for everyone. As long as regular users can accomplish the same task through a different path, it&rsquo;s not a problem. For example, not many people know that in Backpack, you can drag items to the sidebar to create a new page.<\\/p>\\n\\n<p>There is a lot of planning you can do for an application, but you never know if a product is going to be any good until you actually use it. So like the popular saying: <a href=\\\"http:\\/\\/en.wikipedia.org\\/wiki\\/Dogfooding\\\">eat your own dogfood<\\/a>.<\\/p>\\n\\n<h2>Underpants Over My Trousers &ndash; Andy Clarke<\\/h2>\\n<p>I had never heard Andy talk, but I loved his book <em>Transcending CSS<\\/em>. His talk was a little contradictory to what most of the &ldquo;experts&rdquo; say, but I thought it was great. His talk was centered around the thought that we can gain inspiration for designing from comic books.<\\/p>\\n\\n<p>Every time you pick up a new comic book, you have to learn how to read it. Taking the inverse of Steve Krug&rsquo;s &ldquo;<strong>Don&rsquo;t Make Me Think<\\/strong>&rdquo; mentality, Andy suggests that we should engage the user and make them think. Obviously he is not suggesting that we make things hard to understand; he just thinks that we can create much more interesting and compelling layouts.<\\/p>\\n\\n<p>Andy recommends that you stick to a grid, and be uniform, but then break out to enforce a specific, dramatic message. What goes on between the panels is just as important as what happens in them. Comics make the user be creative and fill in the story between the panels. He recommended reading Scot McCloud&rsquo;s <em>Understanding Comic Books<\\/em> to understand a lot of techniques that are used in comic books.<\\/p>\\n\\n<p>Not everyone visits your website be going to the homepage first. Just as not everyone starts reading a comic from the beginning of the series. Make all of your pages unique. Don&rsquo;t get stuck in a template.<\\/p>\\n\\n<p>Andy&rsquo;s talk was definitely more inspirational than anything. It was quite interesting to see the examples of comics and examining the way that they flow from panel to panel.<\\/p>\\n\\n<h2>Special Adobe Session: Web Workflow with the Adobe Creative Suite &ndash; Adam Pratt<\\/h2>\\n<p>This was a different kind of session, more like a sponsor session, but it was interesting to see some of the new stuff in Creative Suite 4. Adam popped open the different applications and gave us a quick overview of the new stuff.<\\/p>\\n\\n<p>First off, Adam said that Flash is on 98% of devices (not just computers, phones as well). Probably on of the most anticipated features in Photoshop is the content aware scaling. Basically, you can cram more parts of the photo into a smaller area without squishing or stretching it. I also noticed that Photoshop added the tabbed interface that a lot of the other Adobe applications already had.<\\/p>\\n\\n<p>Flash can run natively in all CS4 application. So that means you can run things like Adobe Kuler in Photoshop to get color scheme ideas.<\\/p>\\n\\n<p>You can also get real time screen sharing with up to 2 people . As long as one person has CS4, the others just need flash and an internet connection. You can give control to the others that do not have CS4. You can see everything on the computer, not just CS4 applications.<\\/p>\\n\\n<p>You can drop a PSD in Dreamweaver, and when the PSD changes, you can update the image in Dreamweaver with just the click of a button. When you open a file in Dreamweaver, it also pulls in all CSS and JS that are being called on the page. In it&rsquo;s live code mode, it is now running Webkit. You can freeze JavaScript, and use the code navigation to see where the styles come from.<\\/p>\\n\\n<p>Now if CS4 weren&rsquo;t so damn expensive, that&rsquo;d be great.<\\/p>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/web\\/an-event-apart-chicago\\/2\\/\\\">Continue to Page 2 &raquo;<\\/a><\\/p>\\n<!--nextpage-->\\n\\n<h2>Eric Meyer Live Code Workshop<\\/h2>\\n<p>Eric gave attendees the opportunity to submit CSS problems they were having, and he would go through and help them fix it. I didn&rsquo;t have any unresolved issues, so I just enjoyed listening to what Eric had to say. Nothing groundbreaking, but there are a few points that I took away.<\\/p>\\n\\n<p>One thing that I guess I don&rsquo;t really think about is setting a background color on the body element if the design calls for white. If a browser changed their default background color, then the design could drastically change.<\\/p>\\n\\n<p>There has been some talk recently about using absolute font sizes since a lot of the newer browsers have full page zoom functionality. I have actually decided the switch to use absolute font sizes and to &ldquo;<a href=\\\"http:\\/\\/danielmall.com\\/archives\\/2007\\/04\\/20\\/soft_serve.php\\\">soft serve<\\/a>&rdquo; relative sizes to IE6. Eric suggested to use an absolute font size as the base size and then relative sizes from there on out. I&rsquo;m not sure if I agree with that though, because you may not want all font sizes to be affected by changing the base size.<\\/p>\\n\\n<p>There are a couple of ways to contain floats: float the container or assign the container a property of overflow with a value of hidden or auto. Using the overflow property feels a little bit like a hack, but it gets the job done. I&rsquo;m not really clear on why this actually contains the float, and I wonder if browsers will break this functionality at any point.<\\/p>\\n\\n<p>Surprising as it may be, Eric even advocated using a table for laying out a form. Although, I really do prefer using an <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/tutorial\\/flexible-and-semantic-forms-with-a-little-jquery\\/\\\">ordered list for laying out forms<\\/a>.<\\/p>\\n\\n<p>Someone even asked if Eric knew a way to remove the yellow background on form fields that the Google Toolbar automatically adds to fields it knows how to fill in. He came to the conclusion that you could probably remove it with JavaScript, but it could destroy any focus background color that a user could have setup. Also, if the user has the Google Toolbar installed, then that probably means they may use the ability to automatically fill in the forms.<\\/p>\\n\\n<h2>Design Lessons in Chess &ndash; Rob Weychert<\\/h2>\\n<p>Who would have thought that you could learn design lessons from learning chess? Well Rob Weychert did of course, and he shared his lessons with us. First, he started with a couple of basic correlations between chess and web design.<\\/p>\\n\\n<h3>Chronology<\\/h3>\\n<p>Chess involves playing the beginning, middle, and end game. Web design has a similar chronology: information architecture, visual design, and the site build out. Just as you need to research your opponent before playing them, you need to do research to begin any project.<\\/p>\\n\\n<h3>Opponents<\\/h3>\\n<p>In chess, you are only playing one opponent, but when working on a website, you are typically facing three opponents: the users, the client, and your colleagues. You want to limit the users&rsquo;s options on the web site and help them focus on the task at hand. With the client, you want to work together with them to reach the goal of the web site. It is important to surround yourself with colleagues that will challenge you. Collaborating and challenging each other is the best way to grow in this industry.\\n\\n<h3>The Lessons<\\/h3>\\n<p>Rob then went on to describe the 8 lessons that he learned from playing chess.<\\/p>\\n\\n<h4>1. Content is King<\\/h4>\\n<p>We have all heard it before, but sometimes it is easy to lose sight of this. In chess, the game is decided on the king. It is easy to get so focused on the king that you forget about the rest of the pieces. Sometimes we are so wrapped up in AJAX, jQuery, Photoshop, etc that we forget that the foundation of a website is its content. Yes, the other stuff is important, but the content is what needs to be served. So use your design to enhance the content.<\\/p>\\n\\n<h4>2. Know Your Story<\\/h4>\\n<p>Rob gave us the example of project that needed to be like a newspaper from a specific time period. So what did Rob do? He researched the project by looking at old newspaper ads. Then to top it off, he used a typeface that really existed in the era.<\\/p>\\n\\n<h4>3. Think Ahead<\\/h4>\\n<p>The web is constantly changing, and there are many ways for users to receive the content. It is not like a static medium like newspapers or books. You must plan for content to change and grow.<\\/p>\\n\\n<h4>4. Don&rsquo;t Get too Attached<\\/h4>\\n<p>While you think you may have come up with a great idea, keep looking, the changes are that you will probably come up with a better idea.<\\/p>\\n\\n<h4>5. Act with Purpose<\\/h4>\\nFamous chess player Siegbert Tarrasch said &ldquo;One badly-placed piece makes your whole position bad&rdquo;. What Rob took from this was that we should be able to justify every one of the decisions we make. He broke down his slide design and gave reasoning behind every single one of his decisions.<\\/p>\\n\\n<h4>6. Obey Circumstance<\\/h4>\\n<p>Don&rsquo;t put the solution before the problem and rely on your old bag of tricks. Each problem should come with its own solution.<\\/p>\\n\\n<h4>7. Principles are Your Friends. Except When They&rsquo;re Not<\\/h4>\\n<p>Principles are great to provide a foundation for a project. The best place to be is in the middle ground: you want to understand the principles, but understand with experience how to break them. Ralph Waldo Emerson said &ldquo;The man who knows how will always have a job. The man who also knows why will always be his boss.&rdquo;<\\/p>\\n\\n<h4>8. The Journey is as Important as the Goal<\\/h4>\\n<p>In order to succeed, you need to have failures. You should learn something from every project, whether you fail or succeed. With this knowledge, you should be able to use a process of elimination to become successful.<\\/p>\\n\\n<h2>Implementing Design: Bulletproof A-Z &ndash; Dan Cederholm<\\/h2>\\n<p>Derek Powazek was actually scheduled to talk, but he was unable to attend so Dan Cederholm stepped in. I enjoyed Dan&rsquo;s talk last year at An Event Apart, and he definitely did not disappoint this year.<\\/p>\\n\\n<p>Dan&rsquo;s entire talk focused around the idea of <strong>craftsmanship<\\/strong> in implementation. He wanted to take a look at ideas for <strong>bulletproofness<\\/strong>, <strong>progressive enrichment<\\/strong> (basically really cool stuff that doesn&rsquo;t work in IE), and <strong>reexamining past methods<\\/strong>.<\\/p>\\n\\n<p>To show these ideas, Dan created a website called <a href=\\\"http:\\/\\/icedorhot.com\\/\\\">Iced or Hot<\\/a>, and decided to come up with something for every letter of the alphabet.<\\/p>\\n\\n<h3>a: Anchor Links with Meta Information<\\/h3>\\n<p>On the right hand side of Iced or Hot, there is a list of popular drinks. Dan decided to include the number of drinks within the anchor tag. Instead of absolutely positioning the number of drinks within the anchor and risk overlap with a really long drink name, Dan just floated the number of drinks to avoid collision.<\\/p>\\n\\n<h3>b: Border-Radius<\\/h3>\\n<p>While CSS3 is still not officially implemented in all browsers, there are some browsers that are offering vendor specific properties (-webkit-border-radius, -moz-border-radius) to achieve CSS3 properties. So if you want to add rounded corners to something, and do not want to deal with slicing all those images, then just use border-radius. It degrades fine, and most of the time, rounded corners are kind of like an added bonus. This could also be useful when prototyping, before slicing the real images (if the corners are necessary in all browsers). Dan used these properties in a few places on Iced or Hot.<\\/p>\\n\\n<h3>c: Color Transparency with RGBa<\\/h3>\\n<p>Browsers are starting to implement the opacity property (or a vendor specific version), but the problem with opacity is that it is applied to all of the element&rsquo;s children. When you apply RGBa to an element, it will not affect its children. The one downside to RGBa is that it does not look like you can use hex values anymore, which are probably the more commonly used and easier to remember values. You would apply a .7 transparent black background like so: <code>background-color: rgba(0,0,0,.7)<\\/code>. Again, this might be something that is great for prototyping, but then in implementation, you would use PNGs.<\\/p>\\n\\n<h3>d: Do Websites Need to Look Exactly the Same in Every Browser<\\/h3>\\n<p><a href=\\\"http:\\/\\/dowebsitesneedtolookexactlythesameineverybrowser.com\\/\\\">NO!<\\/a>. It&rsquo;s great to work with decision makers who get it. These tiny visual enhancements that do not affect layout should not be necessary in every browser.<\\/p>\\n\\n<h3>e: Easy-Clearing Floats<\\/h3>\\n<p>Dan has been using the <a href=\\\"http:\\/\\/positioniseverything.net\\/easyclearing.html\\\">clearfix<\\/a> method of clearing, but has decided that naming the class clearfix might not be the best idea. Instead, he names the class group. While the clearfix method is just one of many methods for clearing floats, it looks like it will work in IE8 because it will support generated content.<\\/p>\\n\\n<h3>f: Frameworks<\\/h3>\\n<p>Dan writes his own. Instead of using some bloated framework that someone else has written, Dan has created his own &ldquo;framework&rdquo; that he uses from project to project.<\\/p>\\n\\n<h3>g: Gridlasticnus (grid layout using ems)<\\/h3>\\n<p>We all know that grids should be used to help structure your designs, but you can use an em-based layout to ensure ultimate flexibility. Dan then gave a couple of tips when creating an em-based layout:<\\/p>\\n\\n<ul>\\n<li>Set a max-width on the outermost container (max-width: 100%;)<\\/li>\\n<li>Try to avoid setting font-size and width on same element<\\/li>\\n<li>Think from the outside in<\\/li>\\n<\\/ul>\\n\\n<h3>h: Horizontal Grid? Sure. Vertical Grid? Sort of.<\\/h3>\\n<p>When designers design comps, they typically design columns to be equal and blocks of text to be the same height as an image. In reality, the actual content will not be the same. So in order to have the appearance of a vertical grid, use classed groups for the columns so that the tops of the columns can align.<\\/p>\\n\\n<h3>i: IE8, Still Refuses to Resize Text Set in Pixels<\\/h3>\\n<p>WTF? Yes, IE does have the page zoom functionality, but if someone goes in and changes the text size, it will not scale absolute units. So do we stick with relative units? I am going to use absolute units and <a href=\\\"http:\\/\\/www.danielmall.com\\/archives\\/2007\\/04\\/20\\/soft_serve.php\\\">soft serve<\\/a> relative units to IE.<\\/p>\\n\\n<h3>j: jQuery<\\/h3>\\n<p>It has a familiar CSS-like syntax and is really powerful. jQuery is my language of choice as well.<\\/p>\\n\\n<h3>k: Kitty<\\/h3>\\n<p>Dan realized that trying to come up with 26 items was really hard. So he decided to show a picture of his cat.<\\/p>\\n\\n<h3>l: .last<\\/h3>\\n<p>On the Iced or Hot popular drinks list, Dan has a bottom border, margin, and padding on each list item. On the last list item, he did not want any of them. So he created a class of last which zeroed out all of those properties. He then used jQuery to add a class of last to the last-child of the list. This is such an elegant solution until we get full CSS3 support.<\\/p>\\n\\n\\n<h3>m: Must Skip a Few Letters if We&rsquo;re Going to Get Through This<\\/h3>\\n<p>In order to save time, Dan skipped m-r.<\\/p>\\n\\n<h3>s: Shifting Backgrounds (Parallax Backgrounds for the Lazy)<\\/h3>\\n<p><a href=\\\"http:\\/\\/www.silverbackapp.com\\/\\\">Silverback<\\/a> made the parallax background popular, and it&rsquo;s pretty simple to do. Basically all you need to do is to position the background with a negative percentage. The header of Iced or Hot uses a subtle parallax background.<\\/p>\\n\\n<h3>t: A Testimonial for Reset.css<\\/h3>\\n<p>Dan found out that on the mtv.com redesign, he used <code>margin: 0<\\/code> and <code>padding: 0<\\/code> a total of 155 times. if he would have just used a reset at the beginning, he would have saved himself a lot of those instances.<\\/p>\\n\\n<h3>u: Your Stats<\\/h3>\\n<p>You may be asked when you can drop support for a certain browser. The answer should be found by looking at your statistics. Global statistics might be very different from your own, so you have to consider those with a grain of salt.<\\/p>\\n\\n\\n<h2>The In-House Designer &ndash; Cameron Moll<\\/h2>\\n\\n<p>Cameron Moll decided to share the lessons that he has learned working as an in-house designer.<\\/p>\\n\\n<h3>Lesson One &ndash; &ldquo;Let&rsquo;s take that offline.&rdquo;<\\/h3>\\n<p>I&rsquom sure you&rsquo;ve heard the phrase &ldquo;<strong>Let&rsquo;s take that offline<\\/strong>&rdquo;? Well, who knew that so much of a designer&rsquo;s time should be spent not designing. Khoi Vinh broke down how he thought he should successfully spend his time when he was &ldquo;doing design&rdquo;, and he concluded that he should spend 20% of his time doing the actual work, 40% working on the publicity of the design, and 40% creating relationships.<\\/p>\\n\\n<p><strong>Lesson Learned:<\\/strong> Create relationships that will engender trust and confidence in your work as a designer. Remember, it&rsquo;s 40% of your job.<\\/p>\\n\\n<h3>Lesson Two &ndash; &ldquo;Let&rsquo;s take a 5-minute bio break.&rdquo;<\\/h3>\\n<p>Cameron gave an example of communicating with his IT department, and he was asking for an email alias to be created. The IT department emailed him and asked what he would like it to be called. Cameron then responded with &ldquo;is dl-mobile available?&rdquo; The IT department then asked the person who created the aliases to create an alias for the following address:  dl-mobile-available@.<\\/p>\\n\\n<p>Cameron recommended reading <em>The Anatomy of Peace<\\/em> to understand how to deal with conflicts.<\\/p>\\n\\n<p><strong>Lesson Learned:<\\/strong> Great communication skills create the shortest distance between an initial idea and a successful user experience. Besides, it\\u00e2\\u20ac\\u2122s another 40% of your job.<\\/p>\\n\\n<h3>Lesson Three &ndash; &ldquo;Who owns that action item?&rdquo;<\\/h3>\\n<p>Cameron showed us this quote from Paola Antonelli: &ldquo;Ideas are a dollar a pound. Greatness \\nis in picking which ones you want to make happen&rdquo;. He decided to modify it a little:  &ldquo;Ideas are a dollar a pound. Wisdom is in picking which ones you want to make happen. Greatness is in making them happen&rdquo;.<\\/p>\\n\\n<p>You should not fall into the trap of thinking that you cannot make a difference in your organization.<\\/p>\\n\\n<p><strong>Lesson Learned:<\\/strong> Smallify the organization. Develop &amp; foster relationships with change makers, not just decision makers.<\\/p>\\n\\n<h3>Lesson Four &ndash; &ldquo;Let&rsquo;s not try to boil the ocean.&rdquo;<\\/h3>\\n<p>You should always present things low fidelity. People get too distracted by small things that only the designer should worry about, like color, typography, etc.<\\/p>\\n\\n<p><strong>Lesson Learned:<\\/strong> Bring people along in your thinking. Paint the big picture, and then avoid the &ldquo;illusion of agreement&rdquo; by prototyping early and often. Remove fidelity when it isn&rsquo;t necessary for agreement.<\\/p>\\n\\n<h3>Lesson Five &ndash; &ldquo;Do we have the bandwidth?&rdquo;<\\/h3>\\n<p>You should always try and build on your knowledge and capabilities. Cameron recommends having an annual and weekly design review. They hold in-house workshops and have a budget for conferences. You should always be looking to improve yourself.<\\/p>\\n\\n<p>You want to establish influential relationships with as many people as possible: internal departments, local colleges &amp; universities, vendors, etc.<\\/p>\\n\\n<p>At Cameron&rsquo;s company, the designers have a <a href=\\\"http:\\/\\/northtemple.com\\/\\\">blog<\\/a>.<\\/p>\\n\\n<p><strong>Lesson Learned:<\\/strong> Establish the culture and environment \\nnecessary for good design to flourish.<\\/p>\\n\\n<h3>Lesson Six &ndash; &ldquo;We&rsquo;re determined to leverage our synergy with this new initiative.&rdquo;<\\/h3>\\n\\n<p>Create an inspirational culture and environment. The surroundings in the office should help to inspire yourself and others. Work from home sometime. Change your surroundings.<\\/p>\\n\\n<p><strong>Lesson Learned:<\\/strong> Uninspiring workplaces are a detriment to creativity only if you allow them to be. Find inspiration everywhere.<\\/p>\\n\\n<h3>Lesson Seven &ndash; &ldquo;I just got dilberted. Again.&rdquo;<\\/h3>\\n\\n<p><strong>Lesson Learned:<\\/strong> Know when to exit. It&rsquo;s as simple as that.<\\/p>\\n\\n\\n<h2>The Arts &amp; Crafts of Web Design or What Would William Do? &ndash; Curt Cloninger<\\/h2>\\n<p>I didn&rsquo;t know Curt by name, but apparently I read one of his books. Curt did his presentation a little differently than everyone else, he actually wrote his presentation in HTML and linked to images when necessary. Curt based his presentation on William Morris, who helped to spearhead the English arts and crafts movement.<\\/p>\\n\\n<h3>1. Stay True to Nature and Materials<\\/h3>\\n<p>Remember people, this is the web. There is no need to simulate physical material (wood, metal, etc) on the screen. Typography should be seen as a material. Push CSS typography. There are a lot of text properties that are rarely used. Behavior should be seen as a material. It should look like it does what it does. Interstitial animation should help to tell the story of progressing through the site.<\\/p>\\n\\n<h3>2. Unite Art (Design) and Hand Craft<\\/h3>\\n<p>Everything that you touch should be great. If you have to slice someone else&rsquo;s design, do it ingeniously. Push the limits of possibility.<\\/p>\\n \\n<h3>3. Unite the Microcosmic and Macrocosmic<\\/h3>\\n<p>If it doesn&rsquo;t need to be scalable, don&rsquo;t automate it. Make each section of a website different and unique.<\\/p>\\n\\n<h3>4. Value Utility. Value Beauty.<\\/h3>\\n<p>&ldquo;Have nothing in your house that you do not know to be useful or believe to be beautiful.&rdquo; Anyone can build a cookie cutter site with templates; the added value is beauty and customization. Add small ornamentation to the site and show your real craftsmanship.<\\/p>\\n\\n<h3>5. Enjoy Work<\\/h3>\\n<p>Outsource or mechanize the un-pleasurable, but try and do as much of the entire process yourself at least once. This will help you when you are trying to find someone to do that job for you.<\\/p>\\n\\n<h3>6. Redesign the Whole World<\\/h3>\\n<p>If current goods and tools are unsatisfactory, make your own.<\\/p>\\n\\n<blockquote>\\n<p>&ldquo;Life doesn\'t simply happen to us; we produce it&hellip;&rdquo;<\\/p>\\n<p>&ndash;<cite>Bruce Mau<\\/cite><\\/p>\\n<\\/blockquote>\\n\\n<h2>Designing the Next Generation of Web Apps &ndash; Jeffrey Veen<\\/h2>\\n<p>The future of the web is very bright. There are web applications released every day. All of the web applications revolve around entering and digesting data. The future of the web is going to be creating these tools that will enable users to participate and interact with the data. As designers, we need to design the data so that it will be easy to digest and interact with. Then, you should use filters to clarify the data. Like many of the other presenters said, it&rsquo;s easy to lose track of the fact that design is just communication.<\\/p>\\n\\n<p>So where do we get our sources of inspiration? History, the current state of things, who users are, etc. Jeff gave the example of John Snow, who was a physician in Britain researching a cholera outbreak. John used a map to illustrate that the source was actually a water pump and not airborne like everyone else thought.<\\/p>\\n\\n<p>Inspiration should come from everywhere. Jeff got the inspiration for the Google Analytics graph from watching <em>Raiders of the Lost Ark<\\/em>. Visuals are most impacful than numbers.<\\/p>\\n\\n<blockquote>\\n<p>Statistics can feel abstract and anesthetizing, making it difficult to connect with and make meaning.<\\/p>\\n<p>&ndash;<cite>Chris Jordan<\\/cite><\\/p>\\n<\\/blockquote>\\n\\n<p>The designer&rsquo;s job is to find a story in the data and to remove everything that isn&rsquo;t telling the story. The difference between print and interactive designers is that interactive designers have to give up some control to their users. People can resize their text; they can change their screen size; they have much more control then someone reading the newspaper.<\\/p>\\n\\n\\n<p>Jeff made three specific points about design:<\\/p>\\n<ul>\\n<li>storytelling is enabling users to discover<\\/li>\\n<li>visual cues allow for interactivity<\\/li>\\n<li>instead of editing, allow for filtering<\\/li>\\n<\\/ul>\\n\\n<p>Jeff also recommended some books:<\\/p>\\n<ul>\\n<li>The Ghost Map<\\/li>\\n<li>Edward Tufte&rsquo;s books<\\/li>\\n<li>Visualizing Data<\\/li>\\n<li>Mental Models<\\/li>\\n<\\/ul>\\n\\n<h2>A Panel Apart<\\/h2>\\n<p>The last session was really just an opportunity for people to ask questions to Jeffrey Zeldman, Eric Meyer, Cameron Moll, and Jeffrey Veen. It was certainly interesting to hear what they had to say about the current state of web design.<\\/p>\\n\\n<h2>Conclusion<\\/h2>\\n<p>I absolutely loved the conference. I always feel inspired when I come back to work. I would certainly recommend the Event Apart conferences to anyone.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:11','2014-08-08 19:32:28','db9a0583-7a60-4f83-8632-1ab4f0d8383a',1),(161,179,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"change-we-can-believe-in\",\"postDate\":1225884367,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2008\\/11\\/change-we-can-believe-in.gif\\\" alt=\\\"change-we-can-believe-in\\\" width=\\\"468\\\" height=\\\"119\\\" \\/><\\/p>\\n\\n<p>Thank you America for doing the <strong>right thing<\\/strong>.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:11','2014-08-08 19:32:28','169e54cb-0f2f-4977-bde1-ec9e8157e9c3',1),(162,180,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-53\",\"postDate\":1225762580,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Another busy week for me. I&rsquo;ve finally finished my review of my experience at <a href=\\\"http:\\/\\/aneventapart.com\\/events\\/2008\\/chicago\\/\\\">An Event Apart Chicago<\\/a>, and I will be publishing it later this week. Yes, I know it&rsquo;s weeks late, but it is really long and was helpful in helping me remember what I learned. So, here are the links I found interesting last week:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/attackadgenerator.com\\/a\\/editor\\\">Attack Ad Generator<\\/a>\\n<p>A political attack ad generator full jQuery goodness.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/freesitevalidator.com\\/\\\">Free Site Validator<\\/a>\\n<p>Scan your entire website to search for validation errors. Although, when I tried it, it didn&rsquo;t seem to get further than the home page. Good idea in concept at least.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/jontangerine.com\\/log\\/2008\\/10\\/font-face-in-ie-making-web-fonts-work\\\">@font-face in IE: Making Web Fonts Work<\\/a>\\n<p>Jon Tangerine discuses how the current state of @font-face embedding and how to implement it.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.boxesandarrows.com\\/view\\/prototyping-with\\\">Prototyping with XHTML<\\/a>\\n<p>Really nice overview of the process of prototyping. It&rsquo;s not anything we don&rsquo;t already know, but it&rsquo;s nice to see the entire process described in words.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.smashingmagazine.com\\/2008\\/10\\/29\\/expressionengine-developers-toolbox\\/\\\">Expression Engine Developer&rsquo;s Toolbox<\\/a>\\n<p>Expression Engine seems to be the hot new thing and for good reasons. I have begun to play with a little bit, but I am trying to learn as much as possible about it.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:11','2014-08-08 19:32:28','3f214045-c394-4619-81d0-944208b799b5',1),(163,181,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-52\",\"postDate\":1225153049,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Well hopefully this is going to be one of my last weekly round-ups. In my redesign, I am going to have an area made especially for asides where I can just post a link and a little description. The problem is just finding time to finish my design. So here are the links I enjoyed in the past week:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/particletree.com\\/features\\/interfaces-and-color-blindness\\/\\\">Be Kind to the Color Blind<\\/a>\\n<p>Chris Campbell, who has a color vision deficiency, shares techniques to make sure that your designs are still effective to those who have vision issues with color.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/meyerweb.com\\/eric\\/thoughts\\/2008\\/10\\/22\\/javascript-will-save-us-all\\/\\\">JavaScript Will Save Us All<\\/a>\\n<p>Since browser development is so slow, Eric talks about utilizing JavaScript to extend the browser to support CSS3.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.digital-web.com\\/articles\\/everything_you_know_about_CSS_Is_wrong\\/\\\">Everything You Know About CSS Is Wrong<\\/a>\\n<p>Rachel Andrew&rsquo;s discusses how we will be able to utilize the table value of the display property to make layout much easier.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.alistapart.com\\/issues\\/270\\\">A List Apart: Issue 270<\\/a>\\n<p>Aaron Gustafson discusses <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/progressiveenhancementwithcss\\\">Progressive Enhancement with CSS<\\/a> and the A List Apart readers provide <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/workingfromhomereadersrespond\\\">some tips from working from home<\\/a>. I&rsquo;m not sure I agree with Aaron&rsquo;s technique of using multiple stylesheets. I think using just one makes it easier to manage, but to each his own.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.darrenhoyt.com\\/2008\\/10\\/22\\/creating-custom-listings-with-expression-engine-part-ii\\/\\\">Creating Custom Listings with Expression Engine, Part II<\\/a>\\n<p>I have been trying to learn as much about EE as possible, and this tutorial definitely give some insight on how to customize it and utilize its power.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/jasonsantamaria.com\\/articles\\/on-the-subject-of-design\\/\\\">On the Subject of Design<\\/a>\\n<p>This is just a simple list of design books that Jason recommends, but I just love the way he lays things out.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.guardian.co.uk\\/help\\/insideguardian\\/2008\\/oct\\/22\\/full-fat-rss-feed-upgrade\\\">Upgrading our RSS feeds<\\/a>\\n<p>The Guardian becomes the first major newspaper to provide full RSS feeds. According to my <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/web\\/still-publishing-summary-rss-feeds\\/\\\">poll from last week<\\/a>, this makes sense.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.wilsonminer.com\\/posts\\/2008\\/oct\\/20\\/relative-readability\\/\\\">Relative readability<\\/a>\\n<p>Wilson Miner discusses why 16 pixels is the most readable font size to use on the web.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/forabeautifulweb.com\\/blog\\/about\\/is_css3_rgba_ready_to_rock\\/\\\">Is CSS3 RGBa ready to rock? (screencast)<\\/a>\\n<p>Andy Clarke talks about Dan Cederholm&rsquo;s talk at An Event Apart Chicago on RGBa. I had never really heard of it until Dan talked about it, but it sounds really promising.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:11','2014-08-08 19:32:28','f374848f-8fb1-4e8b-94c4-4b772c8623e1',1),(164,182,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-5051\",\"postDate\":1224496856,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Well again, I am slow getting a blog post written. I have 4 drafts saved right now! I spent last weekend at <a href=\\\"http:\\/\\/aneventapart.com\\/events\\/2008\\/chicago\\/\\\">An Event Apart Chicago<\\/a>, and I really enjoyed myself. So, here are some links from the past 2 weeks:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/dev.opera.com\\/articles\\/view\\/automatic-numbering-with-css-counters\\/\\\">Automatic numbering with CSS Counters<\\/a>\\n<p>Wow, I never knew this existed. Although if a user does not have a CSS capable browser, you better make sure the numbers are not essential to the content.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.digital-web.com\\/articles\\/concept_design_tools\\/\\\">Concept Design Tools<\\/a>\\n<p>I love the backup software example.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.snook.ca\\/archives\\/javascript\\/jquery-bg-image-animations\\/\\\">Using jQuery for Background Image Animations<\\/a>\\n<p>Jonathan Snook shows how some simple jQuery can add some interesting hover effects.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.thinkvitamin.com\\/features\\/design\\/designing-user-centric-web-sites\\\">Designing User-Centric Web Sites<\\/a>\\n<p>A discussion about creating a <em>user-centric<\\/em> site. In the future, this definitely seems like it is going to be the direction that a lot of websites are going to go in.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/gmailblog.blogspot.com\\/2008\\/10\\/new-in-labs-stop-sending-mail-you-later.html\\\">New in Labs: Stop sending mail you later regret<\\/a>\\n<p>A new Labs feature, Mail Goggles, will try to prevent you from sending those late night drunk emails. It asks you to solve math problems when sending emails late at night on the weekends.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.cabel.name\\/2008\\/10\\/on-wedding-design.html\\\">On Wedding Design<\\/a>\\n<p>While I&rsquo;m not a big design nerd, I found this recap of Cabel&rsquo;s wedding and all of the design he did for it really interesting. I definitely want a photo booth at my wedding!<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/mezzoblue.com\\/archives\\/2008\\/10\\/07\\/zoom\\/\\\">Zoom<\\/a>\\n<p>Dave Shea starts a good discussion about whether browsers using page zoom will change the way that we slice websites. I actually have begun sizing my text absolutely and &ldquo;<a href=\\\"http:\\/\\/danielmall.com\\/archives\\/2007\\/04\\/20\\/soft_serve.php\\\">soft-serving<\\/a>&rdquo; relative units to IE6.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.airbagindustries.com\\/archives\\/airbag\\/foxworthy.php\\\">Foxworthy<\\/a>\\n<p>I&rsquo;m definitely a perfectionist, not a purist.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.alistapart.com\\/issues\\/269\\\">A List Apart: Issue 269<\\/a>\\n<p>I love that Aaron Gustafson compares the web to an M&amp;M in his article entitled <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/understandingprogressiveenhancement\\\">Understanding Progressive Enhancement<\\/a>. Zeldman gets sentimental and talks about A List Apart after <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/tenyears\\\">Ten Years<\\/a>.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:11','2014-08-08 19:32:28','63386390-db80-4a86-a110-049da944a5a8',1),(165,183,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"still-publishing-summary-rss-feeds\",\"postDate\":1224114428,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>While there is no &ldquo;correct&rdquo; choice in the full vs. summary RSS feed debate, I came across a situation this weekend that reinforced my opinion for full feeds.<\\/p>\\n<!--more-->\\n<p>The past few days, I was at <a href=\\\"http:\\/\\/aneventapart.com\\/events\\/2008\\/chicago\\/\\\">An Event Apart Chicago<\\/a>, and I only had access internet access on Monday and Tuesday during the day. Now, I wanted to read my RSS feeds at other times, so I took my Google Reader offline with <a href=\\\"http:\\/\\/gears.google.com\\/\\\">Gears<\\/a>, and started to read through them.<\\/p>\\n\\n<p>This worked great until I got to feeds that only gave a summary. How was I supposed to read the article? Stop begging for page views and give me the content.<\\/p>\\n\\n<p>I guess it&rsquo;s just one more thing to consider when trying to decide whether to choose full vs. summary. Have your own opinion? Vote below.<\\/p>\\n\\n<h2>Which do you prefer?<\\/h2>\\n[polldaddy poll=1001137]\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:11','2014-08-08 19:32:28','575a565a-1397-4181-a518-9e45d66d9260',1),(166,184,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-4849\",\"postDate\":1222906157,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Let me first apologize for being a terrible blogger. Two weeks without a word from me. I have been very busy at work, doing a bunch of freelance, and working on the redesign for this site.<\\/p>\\n\\n<p>I also took a two day trip to New York for work to attend a gala for the <a href=\\\"http:\\/\\/www.nationalparks.org\\/\\\">National Park Foundation<\\/a>. So basically, this is two weeks worth of links in one blog article.<\\/p>\\n\\n<p>I&rsquo;m hoping to launch the redesign before I head to <a href=\\\"http:\\/\\/aneventapart.com\\/events\\/2008\\/chicago\\/\\\">An Event Apart<\\/a> on the 11th. So here it is, some interesting stuff from the past 2 weeks:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.markboulton.co.uk\\/journal\\/comments\\/design_by_community\\/\\\">Design By Community<\\/a>\\n<p>I agree that design by committee doesn&rsquo;t work, but Mark discusses design by <strong>community<\\/strong>, and it looks like it has some promise.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.airbagindustries.com\\/archives\\/airbag\\/hire.php\\\">Hire.<\\/a>\\n<p>Airbag created an awesome <a href=\\\"http:\\/\\/rfp.airbagindustries.com\\/\\\">RFP<\\/a> form to improve the communication at the beginning of projects.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/mezzoblue.com\\/archives\\/2008\\/09\\/17\\/anchor_butto\\/\\\">Anchor Buttons<\\/a>\\n<p>Dave Shea plays with the button element. While the buttons look basically the same in all browsers, I know that <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/tutorial\\/input-vs-button\\/\\\">there are some programmatic issues using the button element<\\/a>. We have also found that some version of Windows Mobile don&rsquo;t support it.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.zeldman.com\\/2008\\/09\\/18\\/a-list-apart-is-changing\\/\\\">A List Apart is changing<\\/a>\\n<p>There are only so many ground-breaking CSS tricks that can be come up with. Expanding the topics of A List Apart&rsquo;s articles to cater to <strong>all<\\/strong> people who build websites seems like a great move.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/forabeautifulweb.com\\/blog\\/about\\/time_to_stop_showing_clients_static_design_visuals\\/\\\">Time to stop showing clients static design visuals<\\/a>\\n<p>While I think Andy Clarke has a good idea here, I don&rsquo;t think it is very realistic. It is just a very risky move to basically create the sliced template before the design has even been signed off on. You would really need to have some trusting clients.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.alistapart.com\\/issues\\/268\\\">A List Apart: Issue 268<\\/a>\\n<p>So A List Apart starts off with the new direction in fine fashion with <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/webstandards2008\\\">Web Standards 2008: Three Circles of Hell<\\/a> and <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/testdriven\\\">Test-Driven Progressive Enhancement<\\/a>. Molly&rsquo;s article gives a great insider&rsquo;s perspective on some of the groups that are working to continue the advancement of web standards.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/forabeautifulweb.com\\/blog\\/about\\/five_css_design_browser_differences_i_can_live_with\\/\\\">Five CSS design browser differences I can live with<\\/a>\\n<p>I agree totally with Andy here. I think as long as what you are doing with advanced CSS selectors is not essential to being able to read the content, I say we go for it. There is only one problem: clients. I guess we will just have to work hard trying to educate our clients.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/ajaxian.com\\/archives\\/jquery-finds-its-way-into-microsoft-and-nokia-stacks\\\">jQuery finds its way into Microsoft and Nokia stacks<\\/a>\\n<p>It&rsquo;s great to see jQuery getting usage from some big names; it can only do good things for the library.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/jeffcroft.com\\/blog\\/2008\\/sep\\/30\\/when-can-we-stop-talking-about-supporting-browsers\\/\\\">When can we stop talking about &ldquo;supporting&rdquo; certain browsers?<\\/a>\\n<p>I think Jeff makes a great point here: if you know what you are doing with web development, your sites should be &ldquo;supported&rdquo; in <strong>all<\\/strong> browsers.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.thinkvitamin.com\\/features\\/webapps\\/the-future-of-web-apps-in-an-integrated-world\\\">The Future Of Web Apps In An Integrated World<\\/a>\\n<p>This is an awesome article discussing what our world could be like if our phones could control everything. I want to live in that world.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:11','2014-08-08 19:32:28','5ecf707f-29fb-40ba-97f1-be4863dc0f3e',1),(167,185,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"web-designer-guide\",\"postDate\":1221609359,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>About a week ago, I was asked if I wanted to be included in Web Hosting Search&rsquo;s <a href=\\\"http:\\/\\/www.webhostingsearch.com\\/web-design-companies.php\\\">Web Designer Guide<\\/a>. The project seems like a great idea, and below is a quote from the organizer, Eva, about the project:<\\/p>\\n\\n<blockquote>\\n<p>&ldquo;This guide will aide visitors in finding a web designer in their local area. Say you want to start a website and sell hats and you are based in Tennessee but you have no idea how to make a website. Well, you can look at our list of designers, find one in Tennessee and connect. Instead of searching on Google everywhere, this list already has great designers since WHS has contact with every company listed. We also geographically separated them since many people want to work with someone in their area.&rdquo;<\\/p>\\n<\\/blockquote>\\n\\n<p>You can read more about the project <a href=\\\"http:\\/\\/www.webhostingsearch.com\\/blogs\\/hosting-events\\/?p=16\\\">on their blog<\\/a>. It&rsquo;s pretty cool to even be asked to be included, and I&rsquo;m interested to see how the guide will grow.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:11','2014-08-08 19:32:28','1c244d36-e563-485b-9453-0fcdb5ffe8e2',1),(168,186,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-472\",\"postDate\":1221528232,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Ah, football season is so great. It&rsquo;s hard to get any work done on my redesign when there is so much football on TV though. Oh well, here is what I found interesting this week:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/jeffcroft.com\\/blog\\/2008\\/sep\\/11\\/two-thousand-twenty-two\\/\\\">Two thousand twenty two<\\/a>\\n<p>This post by Jeff is kind of like a tragic comedy. While it is laughable how ridiculous it is that it will take that long for the HTML 5 spec to become &ldquo;Proposed Recommendation&rdquo;, it is also sad how long it takes for advances in browsers to actually happen.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.zeldman.com\\/2008\\/09\\/12\\/dear-aiga-where-are-the-web-designers\\/\\\">Dear AIGA, where are the web designers?<\\/a>\\n<p>Jeffrey Zeldman points out that AIGA is really not catering to Web Designers. I think they need to reevaluate their thinking because the Web is almost more important than any other form of media these days.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/freelanceswitch.com\\/money\\/how-to-keep-the-freelancing-spark-without-burning-out\\/\\\">How To Keep The Freelancing Spark (Without Burning Out)<\\/a>\\n<p>Some nice tips to keep in mind to prevent from burning out. This is especially important to people like me who have a full-time job and freelance on the side.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.zeldman.com\\/2008\\/09\\/15\\/a-modest-proposal\\/\\\">A modest proposal<\\/a>\\n<p>While Zeldman&rsquo;s proposal will never happen, this article really shows why he is such a prominent figure in the Web community. Even though this is not a web related article, he is such a great communicator.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.smashingmagazine.com\\/2008\\/09\\/15\\/wordpress-developers-toolbox\\/\\\">WordPress Developer&rsquo;s Toolbox<\\/a>\\n<p>WordPress is my tool of choice these days, and this is a nice collection of resources.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:11','2014-08-08 19:32:28','a7855f12-210e-4086-8ad9-6ff83391caea',1),(169,187,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"make-your-content-smarter-with-jquery\",\"postDate\":1221095144,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>At work today, we were asked by a client to add a link to download Adobe Acrobat onto every page that had a PDF linked on it. Since the site was mostly static, with some content coming from the content management system, we were not interested in adding it to all of the static pages and changing the programming of the CMS output pages.<\\/p>\\n<!--more-->\\n<p><a href=\\\"http:\\/\\/seeyouin1984.com\\/\\\">My co-worker<\\/a> and I decided that the best way to do it would be with JavaScript. Since the site was already using jQuery, our company&rsquo;s library of choice, it turned out to be quite a simple task. If you just want to get to the code, <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jquery-pdf-links\\/\\\">take a look at the demo<\\/a>.<\\/p>\\n<h2>The Idea<\\/h2>\\n<ol>\\n<li>We add the link to download Adobe Acrobat to the site&rsquo;s template<\\/li>\\n<li>We hide the link using CSS<\\/li>\\n<li>We use jQuery to see if there are any links on the page linking to a PDF<\\/li>\\n<li>If there are, we use jQuery to show the link<\\/li>\\n<\\/ol>\\n<h2>The Execution<\\/h2>\\n<p>Ok, simple enough, just add the link to the source of the document:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;p&nbsp;id=\\\"acrobatDownload\\\"&gt;&lt;a&nbsp;href=\\\"http:\\/\\/www.adobe.com\\/products\\/acrobat\\/readstep2.html\\\"&gt;Download&nbsp;Adobe&nbsp;Acrobat&nbsp;to&nbsp;view&nbsp;the&nbsp;PDFs&nbsp;on&nbsp;this&nbsp;page&lt;\\/a&gt;&lt;\\/p&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Then, hide it with CSS:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n#acrobatDownload&nbsp;&#123;&nbsp;display:&nbsp;none;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<h3>The jQuery<\\/h3>\\n<p>First, we want to check and see if any of the links on the page end with <strong>.pdf<\\/strong>. Then, if there are any, we fade in the link:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;if($(\'a&#91;href$=.pdf&#93;\').length&nbsp;&gt;&nbsp;0)&nbsp;&#123;<br \\/>&nbsp;&nbsp;$(\'#acrobatDownload\').fadeIn(\'slow\');<br \\/>&nbsp;&#125;<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n<p>I have created <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jquery-pdf-links\\/\\\">a demo page with a PDF link on it<\\/a> to see this in action.<\\/p>\\n\\n<h2>Conclusion<\\/h2>\\n<p>I can&rsquo;t even imagine how much time and hassle we saved ourselves by doing this with JavaScript. Plus, it could provide useful to someone who doesn&rsquo;t have Acrobat (although I can&rsquo;t imagine that there are many).<\\/p>\\n\\n<p>The concept is actually quite simple, and my mind is grinding away trying to think of other ways to use jQuery to do things like this.<\\/p>\\n\\n<p>Can you all think of anything?<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:11','2014-08-08 19:32:28','1044515e-6f25-4d3c-8010-3f94e21e0b6c',1),(170,188,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-47\",\"postDate\":1220919350,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>It is amazing how fast these weeks have been flying by. I have a couple of &ldquo;real&rdquo; blog posts that I have been working on, and I need to finish them up and get them published. Here are a few things that I found interesting in the last week:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/labs.mozilla.com\\/2008\\/08\\/introducing-ubiquity\\/\\\">Introducing Ubiquity<\\/a>\\n<p>After watching the <a href=\\\"http:\\/\\/adaptivepath.com\\/aurora\\/\\\">Aurora<\\/a> concept videos, it is great to see something similar already be in development.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.devlounge.net\\/publishing\\/finding-harmony-between-categories-and-tags-on-blogs\\\">Finding Harmony Between Categories and Tags on Blogs<\\/a>\\n<p>Using categories and tags effectively is an integral part to information organization on blogs.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.idolhands.com\\/personal\\/obama-is-restful\\/\\\">Obama is RESTful<\\/a>\\n<p>I love that we are comparing presidential candidates based on their websites. Obama wins.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/snook.ca\\/archives\\/opinion\\/shelf-life\\/\\\">The Shelf Life of a Web Site<\\/a>\\n<p>After just redesigning our company website, Jonathan Snook brings up an interesting question on the shelf life of technology.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:11','2014-08-08 19:32:28','af393ea8-790b-4f03-b647-dfd583908887',1),(171,189,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-46\",\"postDate\":1220312415,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Ah, long weekends are the best. I got a lot of freelance work done, and I&rsquo;m hoping to finish up the couple of projects I am working on so that I can redesign my site. Here is what I found interesting this week:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.smashingmagazine.com\\/2008\\/08\\/26\\/how-simple-web-design-helps-your-business\\/\\\">How Simple Web Design Helps Your Business<\\/a>\\n<p>This is a list showing how some nice design decisions have helped these e-commerce sites.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.digital-web.com\\/articles\\/web_design_by_designers\\/\\\">Web Design by Designers<\\/a>\\n<p>When award-winning design firms design their website, they should let their work be the focus of the site.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.alistapart.com\\/issues\\/266\\\">A List Apart: Issue 266<\\/a>\\n<p>Aaron Rester discusses a new way of thinking when developing a site in <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/mappingmemory\\\">Mapping Memory: Web Designer as Information Cartographer<\\/a>, and Dave Shea shows us how to add a little &ldquo;flair&rdquo; to CSS Sprites with jQuery in <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/sprites2\\\">CSS Sprites2 &ndash; It&rsquo;s JavaScript Time<\\/a>.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.guardian.co.uk\\/technology\\/2008\\/aug\\/28\\/internet.captcha\\\">How Captcha was foiled: Are you a man or a mouse?<\\/a>\\n<p>Spam is obviously one of the biggest issues on the web, but are we attacking it incorrectly with captcha? Some think we are: Matt Mullenweg&rsquo;s answer is to focus on the content rather than the user.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:11','2014-08-08 19:32:28','5d66cc72-a248-4828-86c1-c8d5c71ab5a2',1),(172,190,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-45\",\"postDate\":1219709702,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Hopefully I am getting down to the last month of so of doing these weekly round-ups. On my new site, I plan on having an aside section for posting a link and a short blurb. Here are a few links that I found interesting this week:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/nettuts.com\\/site-builds\\/build-your-first-facebook-app\\/\\\">Build Your First Facebook App<\\/a>\\n<p>While there is an abundance of Facebook Apps (and a lot of annoying ones), this is a nice tutorial about creating them.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/mezzoblue.com\\/archives\\/2008\\/08\\/18\\/sneakernet_s\\/\\\">Sneakernet SVN<\\/a>\\n<p>Dave Shea describes his technique of <strong>source control<\\/strong>. While using an USB key may not be the most elegant solution, it works for him. Source control is a major issue, and I think we will see more and more elegant solutions in the future.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/nettuts.com\\/html-css-techniques\\/10-principles-of-the-css-masters\\/\\\">10 Principles of the CSS Masters<\\/a>\\n<p>This is kind of like my post about <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/tutorial\\/the-6-most-important-css-techniques-you-need-to-know\\/\\\">The 6 Most Important CSS Techniques You Need To Know<\\/a>. So much so that a part of the article was even included.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:11','2014-08-08 19:32:28','7756c1a3-a3df-404b-8b19-c8bdd393c971',1),(173,191,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"jquery-tabbed-navigation\",\"postDate\":1219107530,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>It seems like more and more these days, JavaScript tabbed interfaces are being used. There are plenty of scripts out there, but I think it is important to be able to do things yourself. A lot of JavaScript &ldquo;plugins&rdquo; that you will find online will give you way more than you really need, and you may understand how to use it, but you will not really understand what it is really doing.<\\/p>\\n\\n<p>First, I thought I would walk through creating a tabbed navigation script with jQuery, and then modifying it so that it works without JavaScript.<\\/p>\\n<!--more-->\\n<p>If you want to skip ahead, <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/javascript-tabbed-navigation\\/\\\">take a look at the sample jQuery tabbed interface<\\/a>.<\\/p>\\n\\n<h2>The Markup<\\/h2>\\n<p>I&rsquo;m going to set this up using classes so that it is possible to use this multiple times on a page. There are two different pieces to the markup: the navigation and the actual content for the tabs.<\\/p>\\n\\n<h3>The Navigation<\\/h3>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;ul&nbsp;class=\\\"tabNav\\\"&gt;<br \\/>&nbsp;&lt;li&nbsp;class=\\\"current\\\"&gt;&lt;a&nbsp;href=\\\"#\\\"&gt;Tab&nbsp;1&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&gt;&lt;a&nbsp;href=\\\"#\\\"&gt;Tab&nbsp;2&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&gt;&lt;a&nbsp;href=\\\"#\\\"&gt;Tab&nbsp;3&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&gt;&lt;a&nbsp;href=\\\"#\\\"&gt;Tab&nbsp;4&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&gt;&lt;a&nbsp;href=\\\"#\\\"&gt;Tab&nbsp;5&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&lt;\\/ul&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n<p>Pretty straightforward, just an un-ordered list. The JavaScript will accommodate any number of tabs. Notice that the first tab has a class of <strong>current<\\/strong>. This will be the class to style to show the active tab.<\\/p>\\n\\n<h3>The Tab Content<\\/h3>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;div&nbsp;class=\\\"tabContainer\\\"&gt;<br \\/>&nbsp;&lt;div&nbsp;class=\\\"tab&nbsp;current\\\"&gt;<br \\/>&nbsp;&nbsp;&amp;hellip;Content&nbsp;for&nbsp;Tab&nbsp;1&amp;hellip;<br \\/>&nbsp;&lt;\\/div&gt;<br \\/>&nbsp;&lt;div&nbsp;class=\\\"tab\\\"&gt;<br \\/>&nbsp;&nbsp;&amp;hellip;Content&nbsp;for&nbsp;Tab&nbsp;2&amp;hellip;<br \\/>&nbsp;&lt;\\/div&gt;<br \\/>&nbsp;&lt;div&nbsp;class=\\\"tab\\\"&gt;<br \\/>&nbsp;&nbsp;&amp;hellip;Content&nbsp;for&nbsp;Tab&nbsp;3&amp;hellip;<br \\/>&nbsp;&lt;\\/div&gt;<br \\/>&nbsp;&lt;div&nbsp;class=\\\"tab\\\"&gt;<br \\/>&nbsp;&nbsp;&amp;hellip;Content&nbsp;for&nbsp;Tab&nbsp;4&amp;hellip;<br \\/>&nbsp;&lt;\\/div&gt;<br \\/>&nbsp;&lt;div&nbsp;class=\\\"tab\\\"&gt;<br \\/>&nbsp;&nbsp;&amp;hellip;Content&nbsp;for&nbsp;Tab&nbsp;5&amp;hellip;<br \\/>&nbsp;&lt;\\/div&gt;<br \\/>&lt;\\/div&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n<p>Again, pretty straightforward: a container and a div for each of the tabs&rsquo; content. A couple of things to note: the first tab content also has a class of <strong>current<\\/strong>, and the tabs&rsquo; content divs need to appear in the same order as the navigation.<\\/p>\\n\\n<h2>Some Basic CSS<\\/h2>\\n<p>I&rsquo;m not going to explain how I completely style my example, but I will highlight the necessary styles for the tabs to work.<\\/p>\\n\\n<p>To highlight the active tab, this is what you want to style:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\nul.tabNav&nbsp;li.current&nbsp;a&nbsp;&#123;&nbsp;&amp;hellip;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>In order to hide all of the tabs&rsquo; contents except for the active tab, these are the styles that are necessary:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\ndiv.tabContainer&nbsp;div.tab&nbsp;&#123;&nbsp;display:&nbsp;none;&nbsp;&#125;<br \\/>div.tabContainer&nbsp;div.current&nbsp;&#123;&nbsp;display:&nbsp;block;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<h2>The JavaScript<\\/h2>\\n<p>Ok, this is definitely the meat of the post. Since I wanted this to be as generic and simple as possible, I made heavy use of the <a href=\\\"http:\\/\\/docs.jquery.com\\/Traversing\\/parent\\\">parent<\\/a> and <a href=\\\"http:\\/\\/docs.jquery.com\\/Traversing\\/children\\\">children<\\/a> selectors.<\\/p>\\n\\n<p>So to start, we want to <strong>add onclick events to the tabs<\\/strong>:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&#123;<br \\/>&nbsp;$(\'ul.tabNav&nbsp;a\').click(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&amp;hellip;<br \\/>&nbsp;&nbsp;return&nbsp;false;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>When each tab is clicked, we want to see which tab was clicked on so that we can show the appropriate content. So we count the previous number of siblings of the parent (the list item) and store it in the <strong>curChildIndex<\\/strong> variable:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&#123;<br \\/>&nbsp;$(\'ul.tabNav&nbsp;a\').click(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&lt;strong&gt;var&nbsp;curChildIndex&nbsp;=&nbsp;$(this).parent().prevAll().length&nbsp;+&nbsp;1;&lt;\\/strong&gt;<br \\/>&nbsp;&nbsp;&amp;hellip;<br \\/>&nbsp;&nbsp;return&nbsp;false;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Next, we want to remove the class of current from the currently selected tab, and add the class of current to the tab we just clicked:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&#123;<br \\/>&nbsp;$(\'ul.tabNav&nbsp;a\').click(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;var&nbsp;curChildIndex&nbsp;=&nbsp;$(this).parent().prevAll().length&nbsp;+&nbsp;1;<br \\/>&nbsp;&nbsp;&lt;strong&gt;$(this).parent().parent().children(\'.current\').removeClass(\'current\');<br \\/>&nbsp;&nbsp;$(this).parent().addClass(\'current\');&lt;\\/strong&gt;<br \\/>&nbsp;&nbsp;&amp;hellip;<br \\/>&nbsp;&nbsp;return&nbsp;false;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>The final step is to hide the tab content that is currently showing and to show the tab content that matches the tab that was just clicked on. This is where we will make use of the <strong>curChildIndex<\\/strong> variable and the <a href=\\\"http:\\/\\/docs.jquery.com\\/Selectors\\/nthChild\\\">nth Child Selector<\\/a>:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&#123;<br \\/>&nbsp;$(\'ul.tabNav&nbsp;a\').click(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;var&nbsp;curChildIndex&nbsp;=&nbsp;$(this).parent().prevAll().length&nbsp;+&nbsp;1;<br \\/>&nbsp;&nbsp;$(this).parent().parent().children(\'.current\').removeClass(\'current\');<br \\/>&nbsp;&nbsp;$(this).parent().addClass(\'current\');<br \\/>&nbsp;&nbsp;&lt;strong&gt;$(this).parent().parent().next(\'.tabContainer\').children(\'.current\').slideUp(\'fast\',function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$(this).removeClass(\'current\');<br \\/>&nbsp;&nbsp;&nbsp;$(this).parent().children(\'div:nth-child(\'+curChildIndex+\')\').slideDown(\'normal\',function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;$(this).addClass(\'current\');<br \\/>&nbsp;&nbsp;&nbsp;&#125;);<br \\/>&nbsp;&nbsp;&#125;);&lt;\\/strong&gt;<br \\/>&nbsp;&nbsp;return&nbsp;false;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>The previous snippet of the code is traversing from the clicked tab ,<strong>(this)<\\/strong>, to the current content that has a class of <strong>current<\\/strong>, sliding that up, and removing the class of current. Once that is complete, we are selecting the tab content that matches the tab clicked, sliding it down, and adding the class of current.<\\/p>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/play\\/javascript-tabbed-navigation\\/\\\">Take a look at the sample jQuery tabbed interface<\\/a> to see it in action.<\\/p>\\n\\n<h2>Making it Work for Non-JavaScript Users<\\/h2>\\n<p>Now, that works great, but what about people who don&rsquo;t have JavaScript enabled? Sure it&rsquo;s a very small number, but we still want to account for those people.<\\/p>\\n<p>Most other JavaScript tab scripts use JavaScript to hide the non-active tab content sections or to write in the tabbed navigation, but then you get that flash of changing content. My idea is to use CSS to hide the non active tab content (which I discussed earlier) and pass a parameter into the URL to select which tab to show.<\\/p>\\n<h3>The Code<\\/h3>\\n<p>Below is the new code for the tab navigation:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;ul&nbsp;class=\\\"tabNav\\\"&gt;<br \\/>&nbsp;&lt;li&lt;?php&nbsp;if(!isset($_GET&#91;\'tab\'&#93;))&nbsp;echo&nbsp;\'&nbsp;class=\\\"current\\\"\';?&gt;&gt;&lt;a&nbsp;href=\\\"\\\"&gt;Tab&nbsp;1&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&lt;?php&nbsp;if(isset($_GET&#91;\'tab\'&#93;)&nbsp;&amp;&amp;&nbsp;$_GET&#91;\'tab\'&#93;&nbsp;==&nbsp;2)&nbsp;echo&nbsp;\'&nbsp;class=\\\"current\\\"\';?&gt;&gt;&lt;a&nbsp;href=\\\"?tab=2\\\"&gt;Tab&nbsp;2&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&lt;?php&nbsp;if(isset($_GET&#91;\'tab\'&#93;)&nbsp;&amp;&amp;&nbsp;$_GET&#91;\'tab\'&#93;&nbsp;==&nbsp;3)&nbsp;echo&nbsp;\'&nbsp;class=\\\"current\\\"\';?&gt;&gt;&lt;a&nbsp;href=\\\"?tab=3\\\"&gt;Tab&nbsp;3&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&lt;?php&nbsp;if(isset($_GET&#91;\'tab\'&#93;)&nbsp;&amp;&amp;&nbsp;$_GET&#91;\'tab\'&#93;&nbsp;==&nbsp;4)&nbsp;echo&nbsp;\'&nbsp;class=\\\"current\\\"\';?&gt;&gt;&lt;a&nbsp;href=\\\"?tab=4\\\"&gt;Tab&nbsp;4&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&lt;?php&nbsp;if(isset($_GET&#91;\'tab\'&#93;)&nbsp;&amp;&amp;&nbsp;$_GET&#91;\'tab\'&#93;&nbsp;==&nbsp;5)&nbsp;echo&nbsp;\'&nbsp;class=\\\"current\\\"\';?&gt;&gt;&lt;a&nbsp;href=\\\"?tab=5\\\"&gt;Tab&nbsp;5&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&lt;\\/ul&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Basically, I am checking to see if the variable <strong>tab<\\/strong> is set in the URL, and determining the value of it. I also use the same logic for the tab content. <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/javascript-tabbed-navigation\\/?tab=3\\\">This is the example page with tab 3 displaying<\\/a>. So basically, if the user does not have JavaScript, it would reload the entire page and display the correct tab.<\\/p>\\n\\n<h2>Conclusion<\\/h2>\\n<p>This was just a simple example of jQuery, and the possibilities are endless. Instead of being so quick to use a plugin or someone&rsquo;s code, try to do it yourself. You will become a much better programmer because of it. Even if you aren&rsquo;t doing things as efficiently as possible, you will learn something new every time.\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:11','2014-08-08 19:32:28','b5b88b27-00fe-4291-958c-f7208be926c7',1),(174,192,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-44\",\"postDate\":1219017032,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Another busy week with freelance,  but hopefully I&rsquo;ll be able to finish them up shortly so I can work more on my redesign\\/realign. My hope is to finish it before I go to <a href=\\\"http:\\/\\/aneventapart.com\\/events\\/2008\\/chicago\\/\\\">An Event Apart Chicago<\\/a> in October. Just a few interesting things I found this week:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.thinkvitamin.com\\/features\\/webapps\\/developing-a-better-cms\\\">Developing a better CMS<\\/a>\\n<p>This is an interesting article describing the process of creating the CMS <strong>Firerift<\\/strong>. Firerift looks interesting, but the website unfortunately doesn&rsquo;t give enough details.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.simplebits.com\\/notebook\\/2008\\/08\\/14\\/ampersands.html\\\">Use the Best Available Ampersand<\\/a>\\n<p>As Dan has discussed before, you should always use the best possible ampersand. He gives a nice collection of great looking ampersands.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:11','2014-08-08 19:32:28','83528af7-be52-4885-b513-228a77324526',1),(175,193,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-43\",\"postDate\":1218505234,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>It&rsquo;s hard to believe that it&rsquo;s already the middle of August. This week was a bit crazy: managing two freelance projects and getting <a href=\\\"http:\\/\\/www.matrixgroup.net\\/\\\">my company website launched<\\/a>. My CEO agreed that if we got the site launched by Friday, she would send myself and my fellow Front-End Developers to <a href=\\\"http:\\/\\/aneventapart.com\\/events\\/2008\\/chicago\\/\\\">An Event Apart Chicago<\\/a>. So yeah, that&rsquo;s going to be awesome. Now, here is what I found interesting this week:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/adaptivepath.com\\/aurora\\/\\\">Aurora Concept Video<\\/a>\\n<p>Adaptive Path created videos for the Mozilla Labs concept browser series. This whole series was really cool, but I think that the user interaction is a long time from showing up. I also wonder how &ldquo;non-technical&rdquo; users would respond to an interface like this.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/web\\/why-is-there-no-float-center\\/\\\">Why is there no float: center?<\\/a>\\n<p>I posed this very simple question last week, and there was some <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/web\\/why-is-there-no-float-center\\/#comments\\\">great discussion<\\/a> that ended up happening.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/psdtuts.com\\/drawing\\/create-a-citrus-fruit-design-from-scratch-in-photoshop\\/\\\">Create a Citrus Fruit Design From Scratch in Photoshop<\\/a>\\n<p>And this is why I will never be a graphic designer. How do you even do that? So amazing.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.thinkvitamin.com\\/features\\/biz\\/the-5-hidden-costs-of-running-a-cms\\\">The 5 hidden costs of running a CMS<\\/a>\\n<p>I think these are definitely costs that are not really considered when deciding whether to power your site by a CMS, and which CMS to use.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.techcrunch.com\\/2008\\/08\\/06\\/an-evolving-cultural-curiosity-we-need-a-fake-follow\\/\\\">An Evolving Cultural Curiosity: We Need A Fake Follow<\\/a>\\n<p>This is an excellent point that Michael brings up. On Twitter, if someone chooses to follow you, but you do not follow them, there is this sense of rejection from the person who decided to follow you. But honestly, they have no idea what your life is like. Maybe you are just so busy, that you only care to follow your closest friends. I think this is something that Twitter and other social networking sites should seriously consider.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:11','2014-08-08 19:32:28','fc6be40a-32a1-441e-bb5c-51e103ee8e8f',1),(176,194,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"why-is-there-no-float-center\",\"postDate\":1217978537,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>When they were writing the specifications for CSS, why didn&rsquo;t they allow things to be <strong>floated center<\\/strong>?<\\/p>\\n<!--more-->\\n<p>I was looking through an old site at work this week, that was developed long before me, and I saw someone tried to do this: <strong>float: center<\\/strong>. So that got me thinking, why would they include the specification to float left and right, but not center?<\\/p>\\n\\n<p>Imagine the posibilities&hellip;the following are just a couple of simple examples of what could be possible, <strong>they are not meant to be used in a production environment<\\/strong>.<\\/p>\\n<ul>\\n<li><a href=\\\"http:\\/\\/trevordavis.net\\/play\\/float-center\\/\\\">Float an Image Between Two Columns<\\/a>\\n<p>In this example, I just floated the image to the right, and gave it a -100px right margin (half the width of the image). Then I just added an empty div to the right hand column, floated it left, and gave it a height and width.<\\/p><\\/li>\\n<li><a href=\\\"http:\\/\\/trevordavis.net\\/play\\/float-center\\/image-align-center\\/\\\">Float an Image in the Middle of One Column<\\/a>\\n<p>This one is really hacky. I absolutely positioned the image, chose a monospaced font, and then added non-breaking spaces so that the image was no longer covering the text.<\\/p><\\/li>\\n<\\/ul>\\n\\n<p>I think being able to float something in the center could really make pages more interesting. I would be curious to know if there was any specific explanation for why you cannot float to the center.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:11','2014-08-08 19:32:28','752ff583-40e6-40d2-91ef-c93ad323e1c1',1),(177,195,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"hiring-web-designers-and-developers\",\"postDate\":1217935749,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>My company, <a href=\\\"http:\\/\\/www.matrixgroup.net\\/\\\">Matrix Group International<\\/a>, is currently looking to hire Web Designers, Web Developers, Python Software Engineers, a Product Manager, and an Executive Assistant to the CEO.<\\/p>\\n<p>We are located just outside of Old Town Alexandria, VA. We are having <a href=\\\"http:\\/\\/www.matrixgroup.net\\/events\\/index.cfm?fa=details&Calendar_ID=30358\\\">an Open House on Friday from 4-7pm<\\/a>. So if you or anyone you know could fill those spots, come join us on Friday.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:12','2014-08-08 19:32:28','d8cf3916-7062-4332-999d-d9b902699aa7',1),(178,196,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-42\",\"postDate\":1217894997,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I just found out today that if we get our company website launched by Wednesday, our company is going to send myself and the other Front-End Developers to <a href=\\\"http:\\/\\/aneventapart.com\\/events\\/2008\\/chicago\\/\\\">An Event Apart Chicago<\\/a>, so that&rsquo;s pretty awesome. Just a few links from this week:<\\/p>\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.smashingmagazine.com\\/2008\\/07\\/31\\/a-small-survey-of-big-blogs-further-findings\\/\\\">A Small Study Of Big Blogs: Further Findings<\\/a>\\n<p>After an article last week discussing some of the findings from a survey of the 50 most popular blogs, Smashing Magazine reveals more.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/patterntap.com\\/\\\">Pattern Tap<\\/a>\\n<p>Great collection of web design patterns.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/blueflavor.com\\/blog\\/2008\\/aug\\/04\\/time-web-forward-movement\\/\\\">Time for a Web-Forward Movement<\\/a>\\n<p>I definitely agree with what Kenny has to say. I feel like there was this huge push for standards a few years ago, and it has really started to slow down. <strong>We should not be satisfied!<\\/strong> There is still so much more to do.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:12','2014-08-08 19:32:28','964af25d-6ff8-4a05-baef-40e607b5b422',1),(179,197,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"i-took-the-2008-survey-for-people-who-make-websites\",\"postDate\":1217326483,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p><a href=\\\"http:\\/\\/alistapart.com\\/articles\\/survey2008\\\"><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2008\\/07\\/i-took-the-2008-survey.gif\\\" alt=\\\"I Took The 2008 Survey\\\" width=\\\"180\\\" height=\\\"46\\\" class=\\\"imageRight frame\\\" \\/><\\/a>It&rsquo;s that time of the year again, <a href=\\\"http:\\/\\/alistapart.com\\/articles\\/survey2008\\\">the A List Apart 2008 Survey<\\/a> is out.<\\/p>\\n<p>It only takes a few minutes to fill out, and the data compiled at the end is awesome. I look forward to seeing the results in the next few weeks.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:12','2014-08-08 19:32:28','c7cc6de0-970d-4fe9-add1-8a43b20df686',1),(180,198,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-41\",\"postDate\":1217288677,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Well, another week and weekend flew by. I&rsquo;m finally starting to work on my redesign\\/realign, and I hope that I can get it launched in not too long. Here is what I found interesting this week:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/meyerweb.com\\/eric\\/thoughts\\/2008\\/07\\/23\\/any-element-linking-demo\\/\\\">Any-Element Linking Demo<\\/a>\\n<p>Eric Meyer created a demo of his proposed &ldquo;any-element&rdquo; linking. This could be an awesome addition to HTML 5 (although who knows how long it will take to actually be implemented).<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.37signals.com\\/svn\\/posts\\/1149-modal-overlays-beyond-the-dialog-box\\\">Modal overlays beyond the dialog box<\\/a>\\n<p>Modal overlays definitely have become an integral part of the web these days. This is a nice discussion about good and bad uses.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/getfirebug.com\\/lite.html\\\">Firebug Lite<\\/a>\\n<p>Instead of only being able to use Firebug in Firefox, you can use the lite version (a bit of JavaScript) to utilize Firebug functionality in other browsers. It was definitely finicky, but it&rsquo;s a big upgrade from other debugging tools.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.silverbackapp.com\\/\\\">Silverback<\\/a>\\n<p>The much anticipated Silverback finally launched. I&rsquo;m going to have to find the right time to use that 30 day trial. This looks so awesome.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.smashingmagazine.com\\/2008\\/07\\/24\\/a-small-study-of-big-blogs\\/\\\">A Small Design Study Of Big Blogs<\\/a>\\n<p>Blogs are obviously a huge part of the web. Smashing Magazine takes the time to examine the 50 most popular Technorati blogs to investigate design trends and more. Definitely a good read.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:12','2014-08-08 19:32:28','960a3937-1b2b-4089-8315-0a5a2e100c33',1),(181,199,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"flexible-and-semantic-forms-with-a-little-jquery\",\"postDate\":1216772445,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>While they may not be that pretty, forms are one of the most important parts of a web site. <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/tutorial\\/css-forms\\/\\\">I have already written an article on CSS Forms<\\/a>, that was over a year ago, and I have developed much better techniques.<\\/p>\\n\\n<p>There are other <a href=\\\"http:\\/\\/www.lukew.com\\/resources\\/articles\\/web_forms.html\\\">great resources for information about form design<\\/a>, and I will take this information into account when I am showing the flexibility of my method of marking up and styling forms.<\\/p>\\n<!--more-->\\n<h2>The Markup<\\/h2>\\n<p>After previously using a <strong>definition list<\\/strong> to mark up my forms, I have switched to using an <strong>ordered list<\\/strong> now. I switched for two main reasons:<\\/p>\\n\\n<ul>\\n<li>The list item of the ordered list provides a containing clearing element that the definition list does not provide.<\\/li>\\n<li>Semantically, it just makes more sense. A form is really just a list of form fields to fill out. Forms are typically meant to be filled out in order, hence the ordered list instead of un-ordered list (I think this could be debated, but in the long run, either one is more semantic than anything else).<\\/li>\\n<\\/ul>\\n\\n<p>I have decided to create just a <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/forms-revisited\\/\\\">simple un-styled form<\\/a> to use as an example. Here is what the markup of the page is:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;ol&nbsp;class=\\\"forms\\\"&gt;<br \\/>&nbsp;&lt;li&gt;&lt;label&nbsp;for=\\\"name\\\"&gt;Name&lt;\\/label&gt;&lt;input&nbsp;type=\\\"text\\\"name=\\\"name\\\"&nbsp;id=\\\"name\\\"&nbsp;\\/&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&gt;&lt;label&nbsp;for=\\\"email\\\"&gt;Email&lt;\\/label&gt;&lt;input&nbsp;type=\\\"text\\\"&nbsp;name=\\\"email\\\"&nbsp;id=\\\"email\\\"&nbsp;\\/&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&gt;&lt;label&nbsp;for=\\\"city\\\"&gt;City&lt;\\/label&gt;&lt;input&nbsp;type=\\\"text\\\"&nbsp;name=\\\"city\\\"&nbsp;id=\\\"city\\\"&nbsp;\\/&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&gt;&lt;label&nbsp;for=\\\"state\\\"&gt;State&lt;\\/label&gt;&lt;input&nbsp;type=\\\"text\\\"&nbsp;name=\\\"state\\\"&nbsp;id=\\\"state\\\"&nbsp;\\/&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&gt;&lt;label&nbsp;for=\\\"zip\\\"&gt;Zip&lt;\\/label&gt;&lt;input&nbsp;type=\\\"text\\\"&nbsp;name=\\\"zip\\\"&nbsp;id=\\\"zip\\\"&nbsp;\\/&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&nbsp;class=\\\"grouping\\\"&gt;&lt;label&gt;Sign&nbsp;Up&nbsp;for&nbsp;the&nbsp;Following&lt;\\/label&gt;<br \\/>&nbsp;&nbsp;&lt;ul&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;input&nbsp;type=\\\"checkbox\\\"&nbsp;name=\\\"info1\\\"&nbsp;id=\\\"info1\\\"&nbsp;\\/&gt;&lt;label&nbsp;for=\\\"info1\\\"&gt;Information&nbsp;1&lt;\\/label&gt;&lt;\\/li&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;input&nbsp;type=\\\"checkbox\\\"&nbsp;name=\\\"info2\\\"&nbsp;id=\\\"info2\\\"&nbsp;\\/&gt;&lt;label&nbsp;for=\\\"info2\\\"&gt;Information&nbsp;2&lt;\\/label&gt;&lt;\\/li&gt;<br \\/>&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;input&nbsp;type=\\\"checkbox\\\"&nbsp;name=\\\"info3\\\"&nbsp;id=\\\"info3\\\"&nbsp;\\/&gt;&lt;label&nbsp;for=\\\"info3\\\"&gt;Information&nbsp;3&lt;\\/label&gt;&lt;\\/li&gt;<br \\/>&nbsp;&nbsp;&lt;\\/ul&gt;<br \\/>&nbsp;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&gt;&lt;label&nbsp;for=\\\"message\\\"&gt;Message&lt;\\/label&gt;&lt;textarea&nbsp;name=\\\"message\\\"&nbsp;id=\\\"message\\\"&gt;&lt;\\/textarea&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&nbsp;class=\\\"buttons\\\"&gt;&lt;button&nbsp;type=\\\"submit\\\"&nbsp;name=\\\"submit\\\"&nbsp;id=\\\"submit\\\"&gt;Submit&lt;\\/button&gt;&lt;\\/li&gt;<br \\/>&lt;\\/ol&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Even without any style applied, the form is still completely usable.<\\/p>\\n\\n<h2>Styling the Forms<\\/h2>\\n<p>There are really 3 main styles of laying out forms:<\\/p>\\n<ul>\\n<li>Labels above the form field<\\/li>\\n<li>Labels to the side of the form field, jagged right<\\/li>\\n<li>Labels to the side of the form field, jagged left<\\/li>\\n<\\/ul>\\n\\n<p>Again, like I said, I am not going to go through the pros and cons of each method, I am going to show how easy it is to switch between the methods using my markup.<\\/p>\\n\\n<h3>Labels Above the Form Field<\\/h3>\\n<p>This is by far the easiest method. Here is the CSS used to style my <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/forms-revisited\\/forms-styled-labels-stacked\\/\\\">example form<\\/a>:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\nol.forms&nbsp;&#123;&nbsp;float:&nbsp;left;&nbsp;list-style:&nbsp;none;&nbsp;width:&nbsp;100%;&nbsp;&#125;<br \\/>ol.forms&nbsp;li&nbsp;&#123;&nbsp;<br \\/>&nbsp;clear:&nbsp;both;&nbsp;<br \\/>&nbsp;float:&nbsp;left;&nbsp;<br \\/>&nbsp;margin:&nbsp;0&nbsp;0&nbsp;10px;&nbsp;<br \\/>&nbsp;width:&nbsp;100%;&nbsp;<br \\/>&#125;<br \\/>ol.forms&nbsp;label&nbsp;&#123;&nbsp;cursor:&nbsp;pointer;&nbsp;display:&nbsp;block;&nbsp;font-weight:&nbsp;bold;&nbsp;&#125;<br \\/>ol.forms&nbsp;input,&nbsp;ol.forms&nbsp;textarea&nbsp;&#123;&nbsp;<br \\/>&nbsp;font:&nbsp;inherit;<br \\/>&nbsp;padding:&nbsp;2px;<br \\/>&nbsp;width:&nbsp;300px;<br \\/>&#125;<br \\/>ol.forms&nbsp;textarea&nbsp;&#123;&nbsp;height:&nbsp;250px;&nbsp;&#125;<br \\/>ol.forms&nbsp;li.grouping&nbsp;&#123;&nbsp;margin-bottom:&nbsp;0;&nbsp;&#125;<br \\/>ol.forms&nbsp;li.grouping&nbsp;ul&nbsp;&#123;&nbsp;list-style:&nbsp;none;&nbsp;&#125;<br \\/>ol.forms&nbsp;li.grouping&nbsp;ul&nbsp;label&nbsp;&#123;&nbsp;<br \\/>&nbsp;display:&nbsp;inline;<br \\/>&nbsp;font-weight:&nbsp;normal;<br \\/>&nbsp;margin:&nbsp;0&nbsp;0&nbsp;0&nbsp;10px;<br \\/>&#125;<br \\/>ol.forms&nbsp;li.grouping&nbsp;ul&nbsp;input&nbsp;&#123;&nbsp;width:&nbsp;auto;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Really nothing too complicated. In my opinion, I don&rsquo;t like stacking the label over the form field; I think it just makes the form too long.<\\/p>\\n\\n<h3>Labels to the Side of the Form Field, Jagged Right<\\/h3>\\n<p>I like this layout of forms the best. I think it presents the form in a clear way so that you can just scan right through the form fields. With just a few changes to the CSS, you can float the labels to the left of the form fields. The changes are marked in bold:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\nol.forms&nbsp;&#123;&nbsp;float:&nbsp;left;&nbsp;list-style:&nbsp;none;&nbsp;width:&nbsp;100%;&nbsp;&#125;<br \\/>ol.forms&nbsp;li&nbsp;&#123;&nbsp;<br \\/>&nbsp;clear:&nbsp;both;<br \\/>&nbsp;float:&nbsp;left;<br \\/>&nbsp;margin:&nbsp;0&nbsp;0&nbsp;10px;<br \\/>&nbsp;width:&nbsp;100%;<br \\/>&#125;<br \\/>ol.forms&nbsp;label&nbsp;&#123;&nbsp;<br \\/>&nbsp;cursor:&nbsp;pointer;<br \\/>&nbsp;display:&nbsp;block;<br \\/>&nbsp;&lt;strong&gt;float:&nbsp;left;&lt;\\/strong&gt;<br \\/>&nbsp;font-weight:&nbsp;bold;<br \\/>&nbsp;&lt;strong&gt;margin:&nbsp;0&nbsp;10px&nbsp;0&nbsp;0;<br \\/>&nbsp;width:&nbsp;90px;&lt;\\/strong&gt;<br \\/>&#125;<br \\/>ol.forms&nbsp;input,&nbsp;ol.forms&nbsp;textarea&nbsp;&#123;&nbsp;<br \\/>&nbsp;font:&nbsp;inherit;<br \\/>&nbsp;padding:&nbsp;2px;<br \\/>&nbsp;width:&nbsp;300px;<br \\/>&#125;<br \\/>ol.forms&nbsp;textarea&nbsp;&#123;&nbsp;height:&nbsp;250px;&nbsp;&#125;<br \\/>&lt;strong&gt;ol.forms&nbsp;li.grouping&nbsp;label&nbsp;&#123;&nbsp;margin:&nbsp;0;&nbsp;width:&nbsp;auto;&nbsp;&#125;&lt;\\/strong&gt;<br \\/>ol.forms&nbsp;li.grouping&nbsp;&#123;&nbsp;margin-bottom:&nbsp;0;&nbsp;&#125;<br \\/>ol.forms&nbsp;li.grouping&nbsp;ul&nbsp;&#123;&nbsp;list-style:&nbsp;none;&nbsp;&lt;strong&gt;margin-left:&nbsp;100px;&lt;\\/strong&gt;&nbsp;&#125;<br \\/>ol.forms&nbsp;li.grouping&nbsp;ul&nbsp;label&nbsp;&#123;&nbsp;<br \\/>&nbsp;display:&nbsp;inline;<br \\/>&nbsp;&lt;strong&gt;float:&nbsp;none;&lt;\\/strong&gt;<br \\/>&nbsp;font-weight:&nbsp;normal;<br \\/>&nbsp;margin:&nbsp;0&nbsp;0&nbsp;0&nbsp;10px;<br \\/>&nbsp;&lt;strong&gt;width:&nbsp;auto;&lt;\\/strong&gt;<br \\/>&#125;<br \\/>ol.forms&nbsp;li.grouping&nbsp;ul&nbsp;input&nbsp;&#123;&nbsp;width:&nbsp;auto;&nbsp;&#125;<br \\/>&lt;strong&gt;ol.forms&nbsp;li.buttons&nbsp;&#123;&nbsp;float:&nbsp;none;&nbsp;margin-left:&nbsp;100px;&nbsp;width:&nbsp;auto;&nbsp;&#125;&lt;\\/strong&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/play\\/forms-revisited\\/forms-styled-labels-left\\/\\\">Take a look at the example with the fields on the left<\\/a>. Depending upon your label length, you may need to increase the width of the labels so that it does not span more than one line, but that is an easy enough change.<\\/p>\\n\\n<h3>Labels to the Side of the Form Field, Jagged Left<\\/h3>\\n<p>Now with two changes to the CSS, you can easily switch to having the labels jagged left, which puts them closer to the form input. The changes needed are highlighted in bold:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\nol.forms&nbsp;label&nbsp;&#123;&nbsp;<br \\/>&nbsp;cursor:&nbsp;pointer;<br \\/>&nbsp;display:&nbsp;block;<br \\/>&nbsp;float:&nbsp;left;<br \\/>&nbsp;font-weight:&nbsp;bold;<br \\/>&nbsp;margin:&nbsp;0&nbsp;10px&nbsp;0&nbsp;0;<br \\/>&nbsp;&lt;strong&gt;text-align:&nbsp;right;&lt;\\/strong&gt;<br \\/>&nbsp;width:&nbsp;90px;<br \\/>&#125;<br \\/>ol.forms&nbsp;li.grouping&nbsp;label&nbsp;&#123;&nbsp;margin:&nbsp;0;&nbsp;&lt;strong&gt;text-align:&nbsp;left;&lt;\\/strong&gt;&nbsp;width:&nbsp;auto;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p><a href=\\\"http:\\/\\/trevordavis.net\\/play\\/forms-revisited\\/forms-styled-labels-right\\/\\\">Here is the example of the form with the labels jagged left<\\/a>.<\\/p>\\n\\n<h3>Taking it a Step Further with More CSS and a Little jQuery<\\/h3>\\n<p>Since I like the form layout with labels to the side and jagged right, I am going to use <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/forms-revisited\\/forms-styled-labels-left\\/\\\">this one<\\/a> to customize the display a little, and then add in some jQuery functionality.<\\/p>\\n\\n<h4>Improving the Display<\\/h4>\\n<p>When looking at the form, it may be confusing to have all form fields be the same width. It is helpful to the user to modify the width to suit the data that will be entered.<\\/p>\\n\\n<p>For example, there is no reason that the zip code, city, and state fields should be so long, so let&rsquo;s add a class to each one to shorten it to the length of the data that will probably be entered. Here is the modified markup:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&lt;li&gt;<br \\/>&nbsp;&lt;label&nbsp;for=\\\"city\\\"&gt;City&lt;\\/label&gt;<br \\/>&nbsp;&lt;input&nbsp;type=\\\"text\\\"&nbsp;name=\\\"city\\\"&nbsp;id=\\\"city\\\"&nbsp;class=\\\"medium\\\"&nbsp;\\/&gt;<br \\/>&lt;\\/li&gt;<br \\/>&lt;li&gt;<br \\/>&nbsp;&lt;label&nbsp;for=\\\"state\\\"&gt;State&lt;\\/label&gt;<br \\/>&nbsp;&lt;input&nbsp;type=\\\"text\\\"&nbsp;name=\\\"state\\\"&nbsp;id=\\\"state\\\"&nbsp;class=\\\"small\\\"&nbsp;\\/&gt;<br \\/>&lt;\\/li&gt;<br \\/>&lt;li&gt;<br \\/>&nbsp;&lt;label&nbsp;for=\\\"zip\\\"&gt;Zip&lt;\\/label&gt;<br \\/>&nbsp;&lt;input&nbsp;type=\\\"text\\\"&nbsp;name=\\\"zip\\\"&nbsp;id=\\\"zip\\\"&nbsp;class=\\\"extraSmall\\\"&nbsp;\\/&gt;<br \\/>&lt;\\/li&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Then we just have to add those 3 classes to the CSS:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\nol.forms&nbsp;.extraSmall&nbsp;&#123;&nbsp;width:&nbsp;50px;&nbsp;&#125;<br \\/>ol.forms&nbsp;.small&nbsp;&#123;&nbsp;width:&nbsp;100px;&nbsp;&#125;<br \\/>ol.forms&nbsp;.medium&nbsp;&#123;&nbsp;width:&nbsp;150px;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Here is what <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/forms-revisited\\/forms-styled-labels-left-customized-more\\/\\\">the form looks like with that little bit of extra style<\\/a>. I also added in some help text, a notation for required fields, and the associated CSS; so take a look at the code to see that.<\\/p>\\n\\n<h4>Adding a Little jQuery<\\/h4>\\n<p>Obviously you have read my article about <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/tutorial\\/ajax-forms-with-jquery\\/\\\">AJAX forms with jQuery<\\/a>, which discusses how to add AJAX functionality to a form in a degradable way. So the following code assumes that you are going to be doing server side validation of the form as well.<\\/p>\\n\\n<p>Since there are required fields in this form, I add a class of <strong>required<\\/strong> to the form and to each parent list item of required input fields.<\\/p>\\n\\n<p>First, we want our JavaScript to execute when the form with a class of required is submitted:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'form.required\').submit(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&amp;hellip;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>If there are any error messages still displaying from before, we want to hide them. Also, let&rsquo;s disable the submit button so just in case, the form cannot be submitted twice. I am also creating a variable that I will be using later to determine if there is an error or not:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'form.required\').submit(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&lt;strong&gt;$(\'form.required&nbsp;span.error\').remove();<br \\/>&nbsp;&nbsp;$(\'form.required&nbsp;li.buttons&nbsp;button\').attr(\'disabled\',\'disabled\');<br \\/>&nbsp;&nbsp;var&nbsp;hasError&nbsp;=&nbsp;false;&lt;\\/strong&gt;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Now, we want to check each form field that has a parent list item with a class of <strong>required<\\/strong>:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'form.required\').submit(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;$(\'form.required&nbsp;span.error\').remove();<br \\/>&nbsp;&nbsp;$(\'form.required&nbsp;li.buttons&nbsp;button\').attr(\'disabled\',\'disabled\');<br \\/>&nbsp;&nbsp;var&nbsp;hasError&nbsp;=&nbsp;false;<br \\/><br \\/>&nbsp;&nbsp;&lt;strong&gt;jQuery.each($(\'form.required&nbsp;ol.forms&nbsp;li.required\'),function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&amp;hellip;<br \\/>&nbsp;&nbsp;&#125;);&lt;\\/strong&gt;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>There are a lot of other jQuery plugins that validate forms, but most of the time, it will just alert the user that the field is required. Instead of doing that, I am going to grab the text from the label element and display that in the error message:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'form.required\').submit(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;$(\'form.required&nbsp;span.error\').remove();<br \\/>&nbsp;&nbsp;$(\'form.required&nbsp;li.buttons&nbsp;button\').attr(\'disabled\',\'disabled\');<br \\/>&nbsp;&nbsp;var&nbsp;hasError&nbsp;=&nbsp;false;<br \\/><br \\/>&nbsp;&nbsp;jQuery.each($(\'form.required&nbsp;ol.forms&nbsp;li.required\'),function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&lt;strong&gt;var&nbsp;labelText&nbsp;=&nbsp;$(this).children(\'label\').text();<br \\/>&nbsp;&nbsp;&nbsp;labelText&nbsp;=&nbsp;labelText.replace(\'&nbsp;*\',\'\');&lt;\\/strong&gt;<br \\/>&nbsp;&nbsp;&#125;);<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Now, we have two different structures of form fields for each list item: a single form field and a grouping of checkboxes or radio buttons. We have to do things a little bit different for each one:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'form.required\').submit(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;$(\'form.required&nbsp;span.error\').remove();<br \\/>&nbsp;&nbsp;$(\'form.required&nbsp;li.buttons&nbsp;button\').attr(\'disabled\',\'disabled\');<br \\/>&nbsp;&nbsp;var&nbsp;hasError&nbsp;=&nbsp;false;<br \\/><br \\/>&nbsp;&nbsp;jQuery.each($(\'form.required&nbsp;ol.forms&nbsp;li.required\'),function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;var&nbsp;labelText&nbsp;=&nbsp;$(this).children(\'label\').text();<br \\/>&nbsp;&nbsp;&nbsp;labelText&nbsp;=&nbsp;labelText.replace(\'&nbsp;*\',\'\');<br \\/><br \\/>&nbsp;&nbsp;&nbsp;&lt;strong&gt;if($(this).hasClass(\'grouping\'))&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&amp;hellip;&nbsp;<br \\/>&nbsp;&nbsp;&nbsp;&#125;&nbsp;else&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&amp;hellip;<br \\/>&nbsp;&nbsp;&nbsp;&#125;&lt;\\/strong&gt;<br \\/>&nbsp;&nbsp;&#125;);<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>First, let&rsquo;s focus on the case when there is a grouping. We want to loop through each input and see if it is checked. If it is, we just increment a counter. Then, if the counter equals zero, meaning we have no fields checked, we display an error message:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'form.required\').submit(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;$(\'form.required&nbsp;span.error\').remove();<br \\/>&nbsp;&nbsp;$(\'form.required&nbsp;li.buttons&nbsp;button\').attr(\'disabled\',\'disabled\');<br \\/>&nbsp;&nbsp;var&nbsp;hasError&nbsp;=&nbsp;false;<br \\/><br \\/>&nbsp;&nbsp;jQuery.each($(\'form.required&nbsp;ol.forms&nbsp;li.required\'),function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;var&nbsp;labelText&nbsp;=&nbsp;$(this).children(\'label\').text();<br \\/>&nbsp;&nbsp;&nbsp;labelText&nbsp;=&nbsp;labelText.replace(\'&nbsp;*\',\'\');<br \\/><br \\/>&nbsp;&nbsp;&nbsp;if($(this).hasClass(\'grouping\'))&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;strong&gt;var&nbsp;numSelected&nbsp;=&nbsp;0;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;jQuery.each($(this).find(\'input\'),function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($(this).attr(\'checked\')&nbsp;==&nbsp;true)&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;numSelected++;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;);<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;if(numSelected&nbsp;==&nbsp;0)&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(this).append(\'&lt;span&nbsp;class=\\\"error\\\"&gt;You&nbsp;must&nbsp;select&nbsp;from&nbsp;\'+labelText+\'.&lt;\\/span&gt;\');<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hasError&nbsp;=&nbsp;true;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;&lt;\\/strong&gt;<br \\/>&nbsp;&nbsp;&nbsp;&#125;&nbsp;else&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&amp;hellip;<br \\/>&nbsp;&nbsp;&nbsp;&#125;<br \\/>&nbsp;&nbsp;&#125;);<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>That seems easy enough, and it&rsquo;s even easier for the single input fields. We just check to see if the value is empty, and if it is, display the error message:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'form.required\').submit(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;$(\'form.required&nbsp;span.error\').remove();<br \\/>&nbsp;&nbsp;$(\'form.required&nbsp;li.buttons&nbsp;button\').attr(\'disabled\',\'disabled\');<br \\/>&nbsp;&nbsp;var&nbsp;hasError&nbsp;=&nbsp;false;<br \\/><br \\/>&nbsp;&nbsp;jQuery.each($(\'form.required&nbsp;ol.forms&nbsp;li.required\'),function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;var&nbsp;labelText&nbsp;=&nbsp;$(this).children(\'label\').text();<br \\/>&nbsp;&nbsp;&nbsp;labelText&nbsp;=&nbsp;labelText.replace(\'&nbsp;*\',\'\');<br \\/><br \\/>&nbsp;&nbsp;&nbsp;if($(this).hasClass(\'grouping\'))&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;numSelected&nbsp;=&nbsp;0;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;jQuery.each($(this).find(\'input\'),function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($(this).attr(\'checked\')&nbsp;==&nbsp;true)&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;numSelected++;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;);<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;if(numSelected&nbsp;==&nbsp;0)&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(this).append(\'&lt;span&nbsp;class=\\\"error\\\"&gt;You&nbsp;must&nbsp;select&nbsp;from&nbsp;\'+labelText+\'.&lt;\\/span&gt;\');<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hasError&nbsp;=&nbsp;true;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br \\/>&nbsp;&nbsp;&nbsp;&#125;&nbsp;else&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;strong&gt;if(jQuery.trim($(this).children(\'input,&nbsp;textarea\').val())&nbsp;==&nbsp;\'\')&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(this).append(\'&lt;span&nbsp;class=\\\"error\\\"&gt;Please&nbsp;enter&nbsp;your&nbsp;\'+labelText+\'.&lt;\\/span&gt;\');<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hasError&nbsp;=&nbsp;true;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;&lt;\\/strong&gt;<br \\/>&nbsp;&nbsp;&nbsp;&#125;<br \\/>&nbsp;&nbsp;&#125;);<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>To finish up, we just check to see if the <code><strong>hasError<\\/strong><\\/code> variable is true. Since this is just a demo form, I just add an alert if the form would submit successfully:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'form.required\').submit(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;$(\'form.required&nbsp;span.error\').remove();<br \\/>&nbsp;&nbsp;$(\'form.required&nbsp;li.buttons&nbsp;button\').attr(\'disabled\',\'disabled\');<br \\/>&nbsp;&nbsp;var&nbsp;hasError&nbsp;=&nbsp;false;<br \\/><br \\/>&nbsp;&nbsp;jQuery.each($(\'form.required&nbsp;ol.forms&nbsp;li.required\'),function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;var&nbsp;labelText&nbsp;=&nbsp;$(this).children(\'label\').text();<br \\/>&nbsp;&nbsp;&nbsp;labelText&nbsp;=&nbsp;labelText.replace(\'&nbsp;*\',\'\');<br \\/><br \\/>&nbsp;&nbsp;&nbsp;if($(this).hasClass(\'grouping\'))&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;numSelected&nbsp;=&nbsp;0;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;jQuery.each($(this).find(\'input\'),function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($(this).attr(\'checked\')&nbsp;==&nbsp;true)&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;numSelected++;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;);<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;if(numSelected&nbsp;==&nbsp;0)&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(this).append(\'&lt;span&nbsp;class=\\\"error\\\"&gt;You&nbsp;must&nbsp;select&nbsp;from&nbsp;\'+labelText+\'.&lt;\\/span&gt;\');<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hasError&nbsp;=&nbsp;true;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br \\/>&nbsp;&nbsp;&nbsp;&#125;&nbsp;else&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;if(jQuery.trim($(this).children(\'input,&nbsp;textarea\').val())&nbsp;==&nbsp;\'\')&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(this).append(\'&lt;span&nbsp;class=\\\"error\\\"&gt;Please&nbsp;enter&nbsp;your&nbsp;\'+labelText+\'.&lt;\\/span&gt;\');<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hasError&nbsp;=&nbsp;true;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br \\/>&nbsp;&nbsp;&nbsp;&#125;<br \\/>&nbsp;&nbsp;&#125;);<br \\/><br \\/>&nbsp;&nbsp;&lt;strong&gt;if(hasError)&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$(\'form.required&nbsp;li.buttons&nbsp;button\').removeAttr(\'disabled\');<br \\/>&nbsp;&nbsp;&nbsp;return&nbsp;false;<br \\/>&nbsp;&nbsp;&#125;&nbsp;else&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;alert(\'The&nbsp;form&nbsp;would&nbsp;submit&nbsp;now\');<br \\/>&nbsp;&nbsp;&nbsp;$(\'form.required&nbsp;li.buttons&nbsp;button\').removeAttr(\'disabled\');&nbsp;\\/\\/Remove&nbsp;this&nbsp;line&nbsp;if&nbsp;using&nbsp;for&nbsp;real<br \\/>&nbsp;&nbsp;&nbsp;return&nbsp;false;&nbsp;\\/\\/Change&nbsp;this&nbsp;to&nbsp;true&nbsp;when&nbsp;using&nbsp;it&nbsp;for&nbsp;real<br \\/>&nbsp;&nbsp;&#125;&lt;\\/strong&gt;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Go ahead and take a look at the <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/forms-revisited\\/forms-styled-labels-left-customized-more\\/\\\">demo form<\\/a> to see it in action.<\\/p>\\n\\n<h2>Conclusion<\\/h2>\\n<p>With a well structured form, you can easily customize it to your liking with just a little bit of CSS. Then, by using some custom jQuery code, you can easily customize how you would like to have the form validation appear.<\\/p>\\n<p>With a little more work, you could easily add in validation for things like form elements expecting an email address, zip codes, phone numbers, etc. I will have to save that for another post since this one is quite long.<\\/p>\\n\\n<p>What do you all think? How do you structure your forms? Which layout of forms do you prefer and why?<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:12','2014-08-08 19:32:28','0e498641-75e0-4bb4-9576-564c3538588e',1),(182,200,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-40\",\"postDate\":1216601939,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Well, I finally got a site launched that had been stressing me out, now I only have my company website to stress me out for the next two weeks. Here is what I found interesting this week:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.digital-web.com\\/articles\\/smart_CSS_aint_always_sexy_CSS\\/\\\">Smart CSS Ain&rsquo;t Always Sexy CSS<\\/a>\\n<p>This was a pretty interesting read. I think one interesting point that Martin brought up was that most of the time, editing HTML is quicker than editing CSS. A lot of times, it may just be easier to add a new class\\/id and add some new CSS instead of editing existing code.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.37signals.com\\/svn\\/posts\\/1141-western-spaghetti\\\">Western Spaghetti<\\/a>\\n<p>This video is just awesome. How long did this take to make?<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.twinhelix.com\\/css\\/iepngfix\\/\\\">IE PNG Fix<\\/a>\\n<p>Interesting, this IE PNG script gives support for background position and repeat.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/ejohn.org\\/blog\\/firebuggin\\/\\\"> Firebuggin&rsquo;<\\/a>\\n<p>Nice, John Resig is going to be spending half of his time at Mozilla working on Firebug. After seeing how amazing jQuery is, I can&rsquo;t wait to see what he does for Firebug.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:12','2014-08-08 19:32:28','edd9bce7-eb73-422d-84fc-9592eeb3557e',1),(183,201,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-39\",\"postDate\":1216169807,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Wow, I must say it is hard writing blog posts, doing freelance work, and being crazy busy at my day job. I&rsquo;ve got one post in the works, and hopefully I will be able to finish it up next week. Here is what I found interesting last week (and the beginning of this week):<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/nettuts.com\\/javascript-ajax\\/adding-form-validation-to-wordpress-comments-using-jquery\\/\\\">Adding Form Validation to WordPress Comments using jQuery<\\/a>\\n<p>I had actually been considering writing a post like this. With a just a few short lines of JavaScript, you give users a much better experience when trying to submit a comment. (Note: see my comment form as another example.)<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.zeldman.com\\/2008\\/07\\/14\\/your-us-tax-dollars-at-work\\/\\\">Your US tax dollars at work<\\/a>\\n<p>So the <a href=\\\"http:\\/\\/www.cra.org\\/ccc\\/\\\">Computing Community Consortium<\\/a> launched their website the other day, at it was a blatant rip-off of <a href=\\\"http:\\/\\/alistapart.com\\/\\\">A List Apart<\\/a>. They have since changed it, but you can <a href=\\\"http:\\/\\/floatingsun.net\\/2008\\/07\\/13\\/inspiration-or-imitation\\\">check out the screenshots here<\\/a>. It wasn&rsquo;t even like they just designed it to look similar, they straight up stole the mark-up and CSS. I will say that the CCC handled it correctly, but how did they let it happen in the first place?<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/wordpress.org\\/development\\/2008\\/07\\/wordpress-26-tyner\\/\\\">WordPress 2.6<\\/a>\\n<p>The WordPress team was able to launch version 2.6 a month before it was supposed to! Not any huge differences, but there are some nice small changes. I would recommend taking a few minutes to watch the video. I love the redesigned plugins page and the post revisions.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/alistapart.com\\/issues\\/263\\\">A List Apart: Issue 263<\\/a>\\n<p>Only one real article in this issue: <a href=\\\"http:\\/\\/alistapart.com\\/articles\\/walkingthelinewhenyouworkfromhome\\\">Walking the Line When You Work from Home<\\/a>, but it is a great article describing how to succeed while working at home.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:12','2014-08-08 19:32:28','55e0ab9f-d745-4f1f-a450-20a6273dd48b',1),(184,202,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-38\",\"postDate\":1215473174,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Only found a couple of interesting things to read this past week, must have been the fact that I am working on 2 sites that need to launch next week.<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.alistapart.com\\/issues\\/262\\\">A List Apart: Issue 262<\\/a>\\n<p>I have been exposed to subversion a lot in the past few months, so it was interesting to read <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/collaboratewithsubversion\\\">Collaborate and Connect with Subversion<\\/a>. There are definitely pros as well as cons to using it. I kind of skimmed <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/getoutbindingsituations\\\">Getting Out of Binding Situations in JavaScript<\\/a>, but it seemed interesting.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.smashingmagazine.com\\/2008\\/07\\/01\\/should-links-open-in-new-windows\\/\\\">Should Links Open In New Windows?<\\/a>\\n<p>No way! This article provides some good information from &ldquo;the experts&rdquo; about why links should not open in a new window.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:12','2014-08-08 19:32:28','176a0439-e82e-4232-8a54-771bfd77b9e0',1),(185,203,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"when-planning-your-site-content-become-the-user\",\"postDate\":1215390366,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>On Friday, I needed to get a small coffee table for my living room, so I decided to head to <a href=\\\"http:\\/\\/ikea.com\\/\\\">Ikea<\\/a>. I love Ikea, not only because their website is full of web standards goodness, but also because they make some really nice and affordable furniture.<\\/p>\\n\\n<p>Since Friday was the 4th of July, I wasn&rsquo;t sure what the hours would be. I logged onto their website, <a href=\\\"http:\\/\\/www.ikea.com\\/webapp\\/wcs\\/stores\\/servlet\\/IkeaNearYouView?storeId=12&amp;catalogId=11001&amp;langId=-1&amp;StoreName=woodbridge\\\">found the store closest to me<\\/a>, and was getting ready to call and find out the hours.<\\/p>\\n<!--more-->\\n<p>To my delight, I not only found the normal store hours, <strong>but also found the holiday store hours<\\/strong>.<\\/p>\\n\\n<p>Wow, that is quite a rarity. It is rare to even find the normal store hours on their websites, but holiday hours too? Quite impressive.<\\/p>\\n\\n<p>What the folks at Ikea have done is the simplest (and probably most important) method to having a successful website: <strong>put yourself in the users&rsquo; shoes<\\/strong>. I&rsquo;m sure at some point during their web site strategy development they thought: if we provide our store hours on the web site, then we will get less phone calls at the store about the hours, thus allowing the employees to focus more on the customers in the store.<\\/p>\\n\\n<p>So what is the lesson here? With every decision you make about your website, think about the goal of the website, and make sure your decision will help to achieve that goal.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:12','2014-08-08 19:32:28','c24e15bf-07fd-4f31-bc2f-2cad53d2e635',1),(186,204,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-37\",\"postDate\":1214870914,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>So I think I am going to stop doing weekly link round-ups once i launch my redesign\\/realign. I think I want to have more of like &ldquo;asides&rdquo;, where I will just post an interesting link with a little blurb much more frequently. But the redesign is still a little ways off, so here is what I found interesting this past week:<\\/p>\\n<ul>\\n<li><a href=\\\"http:\\/\\/fadtastic.net\\/2008\\/06\\/23\\/get-out-of-a-creative-slump\\/\\\">Get out of a Creative Slump<\\/a>\\n<p>Even though I am not really a designer, I feel like I am definitely in a creative slump when trying to create this new design. Some of these tips are definitely useful for stirring up that creativity.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/freelanceswitch.com\\/finding\\/learning-when-to-say-no\\/\\\">Learning When to Say No<\\/a>\\n<p>Probably the single most important part of freelancing.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.andyrutledge.com\\/the-employable-web-designer.php\\\">The Employable Web Designer<\\/a>\\n<p>Andy discusses how web design students should rightly be worried about whether their education will prepare them for the &ldquo;real world&rdquo;.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.thewebsiteisdown.com\\/salesguy.html\\\">Sales Guy vs. Web Dude<\\/a>\\n<p>Absolutely hilarious video with a guy working tech support.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/nettuts.com\\/working-with-cmss\\/hack-together-a-user-contributed-link-feed-with-wordpress-comments\\/\\\">Hack Together a User Contributed Link Feed with WordPress Comments<\\/a>\\n<p>Nice tutorial showing the flexibility of WordPress while creating a user contributed feed.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:12','2014-08-08 19:32:28','fbd00a14-9e82-41fc-b4d9-dc3e34ad399b',1),(187,205,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"wordpress-tips-and-ideas-learned-from-implementation\",\"postDate\":1214349763,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Recently, I had to slice and implement <a href=\\\"http:\\/\\/www.thematrixfiles.net\\/\\\">a blog for the CEO of my company<\\/a>. I decided to go with WordPress because that is what I have become enamored with recently, when <a href=\\\"http:\\/\\/www.wirelesscareer.com\\/\\\">I created a job board<\\/a> using it. I used some features of WordPress that I had never used before, so I figured I would talk about them so that others could learn how to use them as well.<\\/p>\\n<!--more-->\\n<h2>Multiple Loops<\\/h2>\\n<p>The blog contained a main blog section, along with a &ldquo;Favorites&rdquo; section in the sidebar, that would be used to list anything: favorite websites, books, etc. I didn&rsquo;t think that using just the basic WordPress blogroll or a third party bookmarking site would give the CEO enough flexibility to mark whatever she wanted as a favorite. So I decided to just create a separate category for Favorites.<\\/p>\\n\\n<p>In the footer of the site, there is also information about the last 6 projects that we had worked on. I definitely did not want those to be static. Since we complete projects almost daily, I wanted &ldquo;non-technical&rdquo; people to be able to update them. So I decided to create a separate category for those.<\\/p>\\n\\n<p>So in total, I had 3 categories: Blog, Favorites, and Projects.<\\/p>\\n\\n<p>I figured I would just end up having the main loop in the content area, a loop in the sidebar, and a loop in the footer. I had never really done a site with multiple loops, but after reading <a href=\\\"http:\\/\\/codex.wordpress.org\\/The_Loop#Multiple_Loops\\\">the documentation<\\/a>, it didn&rsquo;t look too complicated. So the key to having multiple loops is to use the <a href=\\\"http:\\/\\/codex.wordpress.org\\/Template_Tags\\/query_posts\\\">query_posts<\\/a> template tag.<\\/p>\\n\\n<h3>The Main Blog Loop<\\/h3>\\n<p>The Blog category has an id of 1. So all you have to do is call the query_posts template tag before you loop through the entries:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;?php&nbsp;query_posts(\'cat=1\');<br \\/>&nbsp;if&nbsp;(have_posts())&nbsp;:&nbsp;<br \\/>&nbsp;&nbsp;while&nbsp;(have_posts())&nbsp;:&nbsp;the_post();&nbsp;?&gt;<br \\/>&nbsp;&nbsp;&nbsp;&amp;hellip;<br \\/>&nbsp;&nbsp;&lt;?php&nbsp;endwhile;<br \\/>&nbsp;endif;&nbsp;?&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Then the Favorites and Project categories are basically the same, you just plug in the correct category id into the <strong>query_posts<\\/strong> template tag.<\\/p>\\n\\n<h3>Paging with Multiple Loops<\\/h3>\\n<p>So since we are using the <strong>query_posts<\\/strong> template tag, it messes up the paging of the main loop. So, in the main blog loop, we need to use the ternary operator to add in the paging argument:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;?php<br \\/>&nbsp;$paged&nbsp;=&nbsp;(get_query_var(\'paged\'))&nbsp;?&nbsp;get_query_var(\'paged\')&nbsp;:&nbsp;1;<br \\/>&nbsp;query_posts(\\\"cat=1&amp;paged=$paged\\\");<br \\/>?&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n<p>So those two lines would replace the previous call to the <strong>query_posts<\\/strong> template tag that we used for the main loop.<\\/p>\\n\\n<h2>Read More Links<\\/h2>\\n<p>When I had first implemented the blog, we were using the read more links (whenever they were added into the post) for all posts. Later in the implementation process, I was told that the most recent article should always show the full post.<\\/p>\\n<p>I wasn&rsquo;t sure how the heck I could do that, but after some Googling I figured it out. Basically what we need to do is just create a simple counter to see if we are on the first post. If we are, we set a global $more variable equal to 1. So I define the $count variable and set it equal to 1, then I have this at the beginning of the main loop:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;?php<br \\/>if&nbsp;(is_home())&nbsp;&#123;<br \\/>&nbsp;global&nbsp;$more;<br \\/>&nbsp;if($count&nbsp;==&nbsp;1)&nbsp;$more&nbsp;=&nbsp;1;<br \\/>&nbsp;else&nbsp;$more&nbsp;=&nbsp;0;<br \\/>&nbsp;$count++;<br \\/>&#125;<br \\/>?&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<h3>Wait a Minute&hellip;<\\/h3>\\n<p>So I was all ready to publish this article, when I found out today that the first article on my CEO&rsquo;s blog was still showing the read more link. From what I discovered, it looked like both the <strong>is_home()<\\/strong> and <strong>is_front_page()<\\/strong> conditional tags were not registering as true when on the homepage. For the life of me, I could not figure out why this was happening.<\\/p>\\n<p>So this was a little bit of a hacky solution, but it was all that I could think of quickly. I had this code before the loop:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;?php<br \\/>&nbsp;if($_SERVER&#91;\'REQUEST_URI\'&#93;&nbsp;==&nbsp;\'\\/\')&nbsp;&#123;&nbsp;<br \\/>&nbsp;&nbsp;$isHomepage&nbsp;=&nbsp;true;<br \\/>&nbsp;&#125;<br \\/>?&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>So essentially, I was setting up my own flag to see if it was the homepage. What that is doing is checking the URL to see if it is the root of the site or not. Then I modifed the if statement in my other code to be:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;?php<br \\/>&nbsp;if&nbsp;(isset($isHomepage)&nbsp;&amp;&amp;&nbsp;$isHomepage&nbsp;=&nbsp;true)&nbsp;&#123;<br \\/>&nbsp;&nbsp;global&nbsp;$more;<br \\/>&nbsp;&nbsp;if($count&nbsp;==&nbsp;1)&nbsp;$more&nbsp;=&nbsp;1;<br \\/>&nbsp;&nbsp;else&nbsp;$more&nbsp;=&nbsp;0;<br \\/>&nbsp;&nbsp;$count++;<br \\/>&nbsp;&#125;<br \\/>?&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>I&rsquo;m not sure if there is a better solution, but I think the reason the <strong>is_home()<\\/strong> and <strong>is_front_page()<\\/strong> conditions don&rsquo;t work is because of calling the <strong>query_posts<\\/strong> template tag, because they worked before the call.<\\/p>\\n\\n<h2>Custom Fields<\\/h2>\\n<p>I had used custom fields before, and they are amazingly powerful in being able to extend WordPress functionality. For my CEO&rsquo;s blog, I used 4 custom fields:<\\/p>\\n<ul>\\n<li>favoriteThumbnail<\\/li>\\n<li>favoriteUrl<\\/li>\\n<li>projectThumbnail<\\/li>\\n<li>projectUrl<\\/li>\\n<\\/ul>\\n<h3>Favorites&rsquo; Custom Fields<\\/h3>\\n<p>The favorites are supposed to be little blurbs about something that my CEO likes, whether it is a book, website, etc. So the idea is that it is not supposed to be a full blog post, just a little blurb. So instead of linking to the WordPress post, we link to the <strong>favoriteUrl<\\/strong> custom field. Here is how the favoriteUrl custom field is being used (this is called within The Loop):<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;?php&nbsp;<br \\/>$favoriteUrl&nbsp;=&nbsp;get_post_meta($post-&gt;ID,&nbsp;\\\"favoriteUrl\\\",&nbsp;true);<br \\/>if($favoriteUrl&nbsp;!=&nbsp;\'\')&nbsp;&#123;&nbsp;?&gt;<br \\/>&nbsp;&lt;a&nbsp;href=\\\"&lt;?=$favoriteUrl&nbsp;?&gt;\\\"&nbsp;class=\\\"heading\\\"&gt;&lt;strong&gt;&lt;?php&nbsp;the_title();&nbsp;?&gt;&lt;\\/strong&gt;&lt;\\/a&gt;<br \\/>&lt;?php&nbsp;&#125;&nbsp;else&nbsp;&#123;&nbsp;?&gt;<br \\/>&nbsp;&lt;strong&nbsp;class=\\\"heading\\\"&gt;&lt;?php&nbsp;the_title();&nbsp;?&gt;&lt;\\/a&gt;<br \\/>&lt;?php&nbsp;&#125;&nbsp;?&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>So basically what I am doing there is first calling in the favoriteUrl custom field and assigning it to the $favoriteUrl variable. Then, I check to make sure it is not empty (meaning the custom field was not entered). If it is entered, I output the link to the URL. If not, I still do not link to the WordPress post, I just display the title in bold.<\\/p>\\n\\n<p>The favoriteThumbnail is pretty self explanatory and is called in the same way as the favoriteUrl. The reason I wanted to use a custom field for the thumbnail instead of just adding the image to the post content is because the design called for the image to be floated next to the title and because I wanted to link the image to the favoriteUrl. This way, when my CEO is adding a favorite, she does not have to worry about floating the image and linking it to the favoriteUrl.<\\/p>\\n\\n<h3>Projects&rsquo; Custom Fields<\\/h3>\\n<p>Both of the Projects&rsquo; custom fields are used similarly to the Favorities&rsquo; custom fields. The projectThumbnail custom field is just used to show the most recent 6 projects in the footer. Nothing complicated, just showing and linking the photo to the WordPress post.<\\/p>\\n\\n<p>Until our new company website gets launched, we are linking to the short WordPress post which gives a little description about the project. The projectUrl outputs the URL to the project at the end of the post. Once our company website is finished, I will just modify the custom field to link directly from the footer to its respective page in our portfolio.<\\/p>\\n\\n<h2>Conclusion<\\/h2>\\n<p>I really enjoyed doing this implementation. While it was just a simple blog, it is always great to learn a couple of new tricks\\/techniques. Any other WordPress tips that you have found useful?<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:12','2014-08-08 19:32:28','5697c0ab-fd7d-432b-9346-c3e4712b69bd',1),(188,206,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-36\",\"postDate\":1214169190,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I actually got started on my redesign\\/realign this weekend. I think I want to have a larger focus on my portfolio, and not just my blog. But god is it hard to redesign when you aren&rsquo;t a designer. Hopefully it will all turn out well in the end. Here is what I found interesting this week:<\\/p>\\n<ul>\\n<li><a href=\\\"http:\\/\\/jasonsantamaria.com\\/articles\\/a-new-day\\/\\\">A New Day<\\/a>\\n<p>As much as I love <a href=\\\"http:\\/\\/v3.jasonsantamaria.com\\/\\\">Jason Santa Maria&rsquo;s last design<\\/a>, I think his new direction\\/design is really interesting.<\\/p><\\/li>\\n<li><a href=\\\"http:\\/\\/www.subtraction.com\\/archives\\/2008\\/0617_spacing_is_e.php\\\">Spacing Is Everything<\\/a>\\n<p>Khoi Vinh shows what Gmail would look like with a little bit of spacing. I actually think it might look better, but he caught some backlash from the commentors saying that there would be less messages &ldquo;above the fold&rdquo;. But I think that you rarely look below the fold when looking for a message, and even if you did, you would be more likely to use the search instead.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.alistapart.com\\/issues\\/261\\\">A List Apart: Issue 261<\\/a>\\n<p>I was pretty excited to finally see a CSS article in A List Apart, <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/fauxabsolutepositioning\\\">Faux Absolute Positioning<\\/a>. It had been quite a while. I was actually really disappointed with it though. It seems like extraneous markup, and I don&rsquo;t really see the advantages. The second article in the issue, <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/sketchingincode\\\">Sketching in Code: the Magic of Prototyping<\\/a>, brings up a much more important issue. Prototyping is probably the most important part of the process of developing web applications.<\\/p>\\n<\\/li>\\n\\n<li><a href=\\\"http:\\/\\/www.digital-web.com\\/articles\\/education_of_freaks_and_geeks\\/\\\">The Education of Geeks and Freaks<\\/a>\\n<p>I think the current state of the education of web development is awful. I know how hard it must be to stay on top of new technologies and be a teacher, but still, it needs to improve. It&rsquo;s great to hear that some schools are starting to take the right step and teaching <strong>new technologies<\\/strong>.<\\/p>\\n<\\/li>\\n\\n<li><a href=\\\"http:\\/\\/nettuts.com\\/site-builds\\/from-psd-to-html-building-a-set-of-website-designs-step-by-step\\/\\\">From PSD to HTML, Building a Set of Website Designs Step by Step<\\/a>\\n<p>I kind of skimmed this article because it was really just a discussion about what I do when I slice a site. From what I saw, it seemed like a pretty decent description.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:53','2014-08-08 19:32:28','e699f023-0464-405c-a408-05190332128b',1),(189,207,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"jquery-table-striping-bug\",\"postDate\":1213749358,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I have been using <a href=\\\"http:\\/\\/jquery.com\\/\\\">jQuery<\\/a> to do table striping, and up until today, I have not had any problems with it.<\\/p>\\n\\n<p>I had just been using the <a href=\\\"http:\\/\\/docs.jquery.com\\/Selectors\\/even\\\">:even<\\/a> and <a href=\\\"http:\\/\\/docs.jquery.com\\/Selectors\\/odd\\\">:odd<\\/a> selectors to add classes to each table row.<\\/p>\\n<!--more-->\\n<p>Here is the code that I have been using:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&#123;<br \\/>&nbsp;$(\\\"table.striped&nbsp;tbody&nbsp;tr:odd\\\").addClass(\\\"odd\\\");<br \\/>&nbsp;$(\\\"table.striped&nbsp;tbody&nbsp;tr:even\\\").addClass(\\\"even\\\");<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n<p>Seems easy enough. Then I just styled the odd table rows like so:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\ntable.striped&nbsp;tr.odd&nbsp;td&nbsp;&#123;&nbsp;background-color:&nbsp;#f0f0f4;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n<p>One thing to note is that the <strong>:even<\\/strong> and <strong>:odd<\\/strong> selectors are zero-indexed, so the <strong>first table row will have a class of even, and not odd<\\/strong>. <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jquery-table-striping\\/\\\">Here is an example showing this simple striping<\\/a>.<\\/p>\\n\\n<h2>Multiple Striped Instances<\\/h2>\\n<p>The situation that I had today had two different tables that were being striped. So based on the code, you would think that there wouldn&rsquo;t be a problem. <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jquery-table-striping\\/multiple-striping-instances\\/\\\">Here is the example with two striped tables on the same page<\\/a>.<\\/p>\\n\\n<p>Weird, so it looks like the first table row in the second striped table has a class of even instead of odd. I thought that the client may not like that because the two tables were not consistent, so I tried to think of another way to do the striping.<\\/p>\\n\\n<h2>The nth Child<\\/h2>\\n<p>So based on the documentation, it looks like <a href=\\\"http:\\/\\/docs.jquery.com\\/Selectors\\/nthChild#index\\\">the nth child selector<\\/a> would be the solution. I just modified my JavaScript like so:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&#123;<br \\/>&nbsp;$(\\\"table.striped&nbsp;tbody&nbsp;tr:nth-child(odd)\\\").addClass(\\\"odd\\\");<br \\/>&nbsp;$(\\\"table.striped&nbsp;tbody&nbsp;tr:nth-child(even)\\\").addClass(\\\"even\\\");<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n<p>As a note, <strong>the nth child selector is not zero indexed<\\/strong>, so the first table row will have a class of odd instead of even. <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jquery-table-striping\\/using-nth-child\\/\\\">Here is the fixed example<\\/a>.<\\/p>\\n\\n<h2>Conclusion<\\/h2>\\n<p>From what I can tell, this does not appear to be a browser problem, but a bug in jQuery. I have checked this in Firefox, Safari, IE6 and IE7.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:53','2014-08-08 19:32:28','a4dd02e4-5964-4213-8cf4-f324f0900ad8',1),(190,208,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-35\",\"postDate\":1213658293,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>It is pretty sad how much my life depends on the internet. I got to work early today and left early, with plans on writing a couple of blog posts and working on my redesigned logo. But of course, my power went out. So right now, I am sitting Border&rsquo;s, and I caved and bought an hour of internet time. Oh well. Here are a few links I found interesting this week:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/northtemple.com\\/1608\\\">The Accessibility Checklist I Vowed I&rsquo;d Never Write<\\/a>\\n<p>This is an awesome checklist with some guidelines to keep in mind when considering the accessibility of a site.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.subtraction.com\\/archives\\/2008\\/0609_investing_st.php\\\">Investing Strategies for iPhone Customers<\\/a>\\n<p>Wow, that&rsquo;s a pretty powerful graph. Really shows how much the value of technology drops the instant you walk out of the store. As awesome as the iPhone looks, I would never buy it on the AT&amp;T network. The only way I would buy it were if it were available on Verizon.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/veerle.duoh.com\\/blog\\/comments\\/design_critiquing\\/\\\">Design Critiquing<\\/a>\\n<p>Veerle talks about a very important part of the design process: critiquing. I sometimes find it hard to say why I don&rsquo;t like certain things. I guess that is the downside of not having any professional design training.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.37signals.com\\/svn\\/posts\\/1080-you-have-to-treat-your-employees-like-customers\\\">&ldquo;You have to treat your employees like customers&rdquo;<\\/a>\\n<p>This is a great quote:<\\/p>\\n<blockquote><p>&ldquo;When employees are trusted and treated like adults, they appreciate it just as much. The result: loyal employees who want to stick around forever.&rdquo;<\\/p><\\/blockquote>\\n<\\/li>\\n<\\/ul>\\n\\n<p>I am hoping this week that I can finish up an article discussing some cool new things I found out about WordPress while implementing my <a href=\\\"http:\\/\\/www.thematrixfiles.net\\/\\\">CEO&rsquo;s blog<\\/a>, so be on the lookout for that.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:53','2014-08-08 19:32:28','8d35b35a-7bc3-4b26-8d95-5b0e6ca8efe1',1),(191,209,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-34\",\"postDate\":1213055357,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>It has been crazy times at work recently. I am in the process of slicing three sites at the same time. In all the madness, this is what I found interesting last week:<\\/p>\\n<ul>\\n<li><a href=\\\"http:\\/\\/meyerweb.com\\/eric\\/thoughts\\/2008\\/06\\/02\\/the-missing-link\\/\\\">The Missing Link<\\/a>\\n<p>I love that we have Eric Meyer fighting on our side. Eric discusses how the <code>href<\\/code> attribute should be allowed on many elements instead of a few. He even goes on to <a href=\\\"http:\\/\\/meyerweb.com\\/eric\\/html-xhtml\\/html5-linking.html\\\">show examples<\\/a> and discuss the pros and cons.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.alistapart.com\\/issues\\/260\\\">A List Apart: Issue 260<\\/a>\\n<p>Another couple of solid articles from A List Apart: <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/writingainterfacestyleguide\\\">Writing an Interface Style Guide<\\/a> and <a href=\\\"http:\\/\\/www.alistapart.com\\/articles\\/savingthespark\\\">Saving the Spark: Developing Creative Ideas<\\/a>.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.markboulton.co.uk\\/journal\\/comments\\/design_isnt_about_tools\\/\\\">Design isn&rsquo;t about tools<\\/a>\\n<p>This was kind of the end of a great discussion from <a href=\\\"http:\\/\\/www.37signals.com\\/svn\\/posts\\/1061-why-we-skip-photoshop\\\">37 Signals<\\/a> and <a href=\\\"http:\\/\\/jeffcroft.com\\/blog\\/2008\\/jun\\/04\\/why-we-dont-skip-photoshop\\/\\\">Jeff Croft<\\/a>. I think I agree with most of Jeff&rsquo;s points. I think it definitely depends upon the product that you are trying to make, and I think 37 Signals has nailed down their simplistic style, so Photoshop is not necessary.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:53','2014-08-08 19:32:28','953c1404-ba1f-4cb9-8072-3403dd6b75c5',1),(192,210,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"improving-a-flickr-plugin-with-jquery\",\"postDate\":1212713274,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>For a while, I have been using the <a href=\\\"http:\\/\\/wordpress.org\\/extend\\/plugins\\/flickr-rss\\/\\\">flickrRSS<\\/a> WordPress plugin to show my recent flickr photos in the <a href=\\\"http:\\/\\/trevordavis.net\\/#flickr\\\">footer of my site<\\/a>. Since I have become more comfortable using <a href=\\\"http:\\/\\/jquery.com\\/\\\">jQuery<\\/a>, I thought I would use it to make the plugin better.<\\/p>\\n<!--more-->\\n<p>I created a <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/wordpress-flickr-plugin\\/\\\">demo page<\\/a>. to see what the markup generated from the plugin normally is. The markup is just an unordered list, and I have done some basic CSS so that it looks halfway decent.<\\/p>\\n<p>Each photo just links to the original Flickr page with the photo on it. I kind of didn&rsquo;t like that because if someone wanted to see the larger version, they would have to leave my site just to see it.<\\/p>\\n<a href=\\\"http:\\/\\/farm3.static.flickr.com\\/2123\\/2543094667_2ddfec7c73_s.jpg\\\"><img src=\\\"http:\\/\\/farm3.static.flickr.com\\/2123\\/2543094667_2ddfec7c73_s.jpg\\\" alt=\\\"I Love My Birthday Present\\\" class=\\\"imageRight frame\\\" height=\\\"75\\\" width=\\\"75\\\" \\/><\\/a>\\n<h2>Digging into the Flickr Photos<\\/h2>\\n<p>If we take a look at the square image of me hugging my new TV, we can see that it is 75x75. Now if we take a closer look at the filename <strong>2543094667_2ddfec7c73_s.jpg<\\/strong>, we see that there is a _s at the end. Let&rsquo;s take a look at the other photo sizes there are:<\\/p>\\n<ul>\\n<li><a href=\\\"http:\\/\\/farm3.static.flickr.com\\/2123\\/2543094667_2ddfec7c73_t.jpg\\\" rel=\\\"lightbox[set]\\\">Thumbnail<\\/a>: _t.jpg<\\/li>\\n<li><a href=\\\"http:\\/\\/farm3.static.flickr.com\\/2123\\/2543094667_2ddfec7c73_m.jpg\\\" rel=\\\"lightbox[set]\\\">Small<\\/a>: _m.jpg<\\/li>\\n<li><a href=\\\"http:\\/\\/farm3.static.flickr.com\\/2123\\/2543094667_2ddfec7c73.jpg\\\" rel=\\\"lightbox[set]\\\">Medium<\\/a>: .jpg<\\/li>\\n<li><a href=\\\"http:\\/\\/farm3.static.flickr.com\\/2123\\/2543094667_2ddfec7c73_b.jpg\\\" rel=\\\"lightbox[set]\\\">Large<\\/a>: _o.jpg<\\/li>\\n<\\/ul>\\n<p>The medium sized photo looks like a nice size to display. What if instead of linking the small square photos to their respective Flickr page, we open the medium sized photo in a lightbox.<\\/p>\\n\\n<h2>Lightbox<\\/h2>\\n<p>The lightbox that I use is a hacked up version of the <a href=\\\"http:\\/\\/famspam.com\\/facebox\\\">Facebox script<\\/a>. I modified it a little to use table-less markup and for the entire page to grey out. The lightbox is launched by setting the <strong>rel<\\/strong> attribute equal to <strong>lightbox<\\/strong>.<\\/p>\\n<p>Another modification I would like to make is to enable the lightbox to work in sets. Kind of like the <a href=\\\"http:\\/\\/www.lokeshdhakar.com\\/projects\\/lightbox2\\/\\\">Lightbox 2<\\/a> script, but that is for another day.<\\/p>\\n<p>The reason I like the Facebox script is because you can also have inline content and content loaded via an AJAX call.<\\/p>\\n\\n<h2>Tweaking the Flickr Markup<\\/h2>\\n<p>Since I do not want to modify the flickrRSS plugin to change the markup, I will just use jQuery to change the markup on body load.<\\/p>\\n<p>So there are two things that I want to do:<\\/p>\\n<ul>\\n<li>Add <code>rel=\\\"lightbox\\\"<\\/code> to each link containing the Flickr photo<\\/li>\\n<li>Change the <code>href<\\/code> to link to the <strong>medium image<\\/strong> instead of linking to the Flickr page<\\/li>\\n<\\/ul>\\n<h3>The Code<\\/h3>\\n<p>First, let&rsquo;s add the <code>rel=\\\"lightbox\\\"<\\/code> attribute to each of the links that are descendants of <code>ul#flickr<\\/code> on body load:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'ul#flickr&nbsp;a\').each(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;$(this).attr(\'rel\',\'lightbox\');&nbsp;<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Next, let&rsquo;s change the link to be the medium photo. We will do this by copying the source of the image, and then replacing <strong>_s.jpg<\\/strong> with <strong>.jpg<\\/strong>:\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'ul#flickr&nbsp;a\').each(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;$(this).attr(\'rel\',\'lightbox\');&nbsp;<br \\/>&nbsp;&nbsp;var&nbsp;imgSrc&nbsp;=&nbsp;$(this).children().attr(\'src\');<br \\/>&nbsp;&nbsp;$(this).attr(\'href\',imgSrc.replace(\'_s.jpg\',\'.jpg\'))<br \\/>&nbsp;&#125;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Next, we just initiate the lightbox script by targeting links that have a rel attribute of <strong>lightbox<\\/strong>:\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&nbsp;&#123;<br \\/>&nbsp;$(\'ul#flickr&nbsp;a\').each(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;$(this).attr(\'rel\',\'lightbox\');&nbsp;<br \\/>&nbsp;&nbsp;var&nbsp;imgSrc&nbsp;=&nbsp;$(this).children().attr(\'src\');<br \\/>&nbsp;&nbsp;$(this).attr(\'href\',imgSrc.replace(\'_s.jpg\',\'.jpg\'))<br \\/>&nbsp;&#125;);<br \\/><br \\/>&nbsp;$(\'a&#91;rel*=lightbox&#93;\').facebox();<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n<p>I have <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/wordpress-flickr-plugin\\/enhancing-the-plugin-with-jquery\\/\\\">modified the first demo page<\\/a> to show this new functionality (although you can just look at <a href=\\\"http:\\/\\/trevordavis.net\\/#flickr\\\">my footer<\\/a> too).<\\/p>\\n\\n<p>It&rsquo;s pretty cool how just a few lines of jQuery can drastically improve the user experience.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:53','2014-08-08 19:32:28','cfd26a52-d919-43d8-bbdc-529f59eb7dc3',1),(193,211,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-33\",\"postDate\":1212404757,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Yeah, so I had an awesome birthday weekend. My girlfriend bought me a 46 inch HDTV for my birthday! Also, Sunday was my two year anniversary at <a href=\\\"http:\\/\\/www.matrixgroup.net\\/\\\">Matrix<\\/a>. Crazy how time flies. Here is the stuff that I found interesting this past week:<\\/p>\\n<ul>\\n<li><a href=\\\"http:\\/\\/fadtastic.net\\/2008\\/05\\/26\\/getting-design-approval-the-single-mockup-theory\\/\\\">Getting Design Approval: The Single Mockup Theory<\\/a>\\n<p>I think that by providing only one mockup for clients to react to, it gives them the opportunity to get a feeling for the site and what goal it is trying to accomplish. When you show them multiple mockups, I think that the client really starts to compare the designs more, without thinking about the goal of the mockup.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.andyrutledge.com\\/pre-bid-discussions.php\\\">Pre-bid Discussions<\\/a>\\n<p>I think knowing how and when to turn down projects is a great skill to have.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/nettuts.com\\/news\\/unraveling-the-secrets-of-wordpress-commentsphp-file\\/\\\">Unraveling the Secrets of WordPress&rsquo; Comments.php File<\\/a>\\n<p>Nothing new or groundbreaking, just a solid breakdown of the WordPress comments.php file.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.smashingmagazine.com\\/2008\\/05\\/29\\/applying-divine-proportion-to-web-design\\/\\\">Applying Divine Proportion To Your Web Designs<\\/a>\\n<p>I love how thousands year old principles are still present in design today.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.37signals.com\\/svn\\/posts\\/1053-luke-dean-kamens-wonderful-prosthetic-robot-arm\\\">Luke: Dean Kamen\'s wonderful prosthetic robot arm<\\/a>\\n<p>Ok, after just watching <a href=\\\"http:\\/\\/www.imdb.com\\/title\\/tt0387808\\/\\\">Idiocracy<\\/a>, it got my worried about how our world really could be getting dumber. After watching this video, it at least gives me hope that we aren&rsquo;t. This is truly amazing.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.thinkvitamin.com\\/features\\/biz\\/good-products-dont-make-up-for-bad-service-but-they-help\\\">Good products don\\u00e2\\u20ac\\u2122t make up for bad service&hellip;but they help<\\/a>\\n<p>I love when normal everyday experiences can be learned from on how to improve your web product\\/service.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:53','2014-08-08 19:32:28','a2b2d562-941f-4f2e-9cb2-cef66cc54942',1),(194,212,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"i-picked-a-macbook-pro\",\"postDate\":1212188390,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I had been receiving a decent amount of traffic to the article: <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/news\\/macbook-vs-macbook-pro-help-me-decide\\/\\\">MacBook vs MacBook Pro, Help Me Decide!<\\/a>, so I thought I would give a quick update so people would know which I chose.<\\/p>\\n<!--more-->\\n<p><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2008\\/05\\/macbook-pro.jpg\\\" alt=\\\"MacBook Pro photo\\\" class=\\\"imageRight\\\" height=\\\"140\\\" width=\\\"228\\\" \\/>I did finally decide to go with the MacBook Pro. I think the screen size was one of the biggest factors for me. 15 inch vs 13 inch doesn&rsquo;t seem like that much, but when looking at them next to each other, it is a huge difference. The MacBook also felt much cheaper than the Pro. I also think the backlit keyboard, while maybe not something I use all the time (although I am right now), is a really nice feature.<\\/p>\\n<p>I also decided to go with the matte screen. When looking at the glossy vs. matte next to each other, the colors on the glossy definitely pop more, but from what I heard, if you are going to be doing any kind of design work, the matte gives truer colors.<\\/p>\\n<p>I am absolutely 100% happy with my purchase and would recommend the MacBook Pro to anyone who is looking for an awesome laptop. I love it. I am also in love with the two finger scrolling. Sometimes when I am on another laptop, I try and scroll with two fingers, and I kind of want to cry when it does nothing.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:53','2014-08-08 19:32:28','0fa8bad6-e518-459b-b6c4-7f273e3f9ecc',1),(195,213,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-32\",\"postDate\":1211839004,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Gotta love a nice long weekend and the short week that follows. Here are the interesting things that I read this week:<\\/p>\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.techcrunch.com\\/2008\\/05\\/20\\/netflix-roku-free-is-such-a-beautiful-word\\/\\\">Netflix Roku: Free Is Such A Beautiful Word<\\/a>\\n<p>Nice, so Netflix is going to offer a $100 box that will stream movies free for Netflix subscribers.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/mezzoblue.com\\/archives\\/2008\\/05\\/21\\/handoff\\/\\\">Handoff<\\/a>\\n<p>Dave Shea describes his process of handing off his designs.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/alistapart.com\\/issues\\/259\\\">A List Apart: Issue 259<\\/a>\\n<p>This issue featured two really good articles: <a href=\\\"http:\\/\\/alistapart.com\\/articles\\/thecureforcontent-delaysyndrome\\\">The Cure for Content-Delay Syndrome<\\/a> and <a href=\\\"http:\\/\\/alistapart.com\\/articles\\/whydidyouhireme\\\">Why Did You Hire Me?<\\/a>. Both articles are really well thought out and address some lingering issues in the web development world.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.digital-web.com\\/articles\\/design_decisions_vs_audience_considerations\\/\\\">Design Decisions vs. Audience Considerations<\\/a>\\n<p>Good article discussing the process of making audience-centered design decisions.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.nihilogic.dk\\/labs\\/mariokart\\/\\\">JavaScript Super Mario Kart<\\/a>\\n<p>People are doing some really awesome JavaScript stuff recently.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/planetozh.com\\/projects\\/lightbox-clones\\/\\\">The Lightbox Clones Matrix<\\/a>\\n<p>Informative table showing different lightbox scripts. Shows which lightboxes support which type of elements, which library they use, and other information about the script.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:53','2014-08-08 19:32:28','59c6ad85-d2d7-4dc4-8f13-36f886c7e9de',1),(196,214,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"input-vs-button\",\"postDate\":1211397240,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>My latest redesign project at work was for <a href=\\\"http:\\/\\/www.grouplogic.com\\/\\\">Group Logic<\\/a>. Another company did the design and created static HTML templates. My role was to create a single header and footer to make maintaining the site easier, and to wrap the store and other dynamic applications in the new design.<\\/p>\\n<p>The company who designed it used images for the form buttons, and I found some interesting things while implementing them.<\\/p>\\n<!--more-->\\n<h2>A Disclaimer<\\/h2>\\n<p>I think before you design form buttons to be images, you should seriously consider just styling the buttons with CSS. Just think about all of the images you will have to maintain. Is the value of the image button style really that great that you will deal with all of that hassle? In my opinion, it&rsquo;s not. But whatever, to each <strong>his<\\/strong> own (you like that <a href=\\\"http:\\/\\/monadology.net\\/\\\">Nate<\\/a>?). Ok, enough with the disclaimer, now on to the good stuff.<\\/p>\\n\\n<h2>Some Options<\\/h2>\\n<p>Ok, so I decided that there were 3 options for implementing these buttons:<\\/p>\\n<ol>\\n<li>Use <code>&lt;input type=\\\"submit\\\" \\/&gt;<\\/code> and use an image replacement technique (that I didn&rsquo;t think would work in Safari).<\\/li>\\n<li>Use <code>&lt;input type=\\\"image\\\" \\/&gt;<\\/code> and have the image source as an attribute.<\\/li>\\n<li>Use <code>&lt;button type=\\\"submit\\\"&gt;&lt;\\/button&gt;<\\/code> and insert the image within the button element. <\\/li>\\n<\\/ol>\\n\\n<h3>My Decision<\\/h3>\\n<p>With ease of implementation in mind (since the time line was short), I decided to go with option 2: <code>&lt;input type=\\\"image\\\" \\/&gt;<\\/code>. Everything went fine until we decided to test in IE (6 and 7). Apparently, the value from the button does not get passed onto the server. After some Googling around, I found out that this is a well known problem, and the only way to get this to work is by using JavaScript. Whenever I code something with JavaScript, I want to make sure that it works without JavaScript. So that solution would not work.<\\/p>\\n\\n<h3>The Next Option<\\/h3>\\n<p>Next, I went with option 3: <code>&lt;button type=\\\"submit\\\"&gt;&lt;\\/button&gt;<\\/code>. I really did not know much about the <code>button<\\/code> element until I read <a href=\\\"http:\\/\\/particletree.com\\/features\\/rediscovering-the-button-element\\/\\\">Rediscovering the Button Element<\\/a> a year ago.<\\/p>\\n<p>Again, that option worked fine in everything, except IE6 this time (in IE7, it passed in the entire source of the image as the value, but we could find a way to make that work). Apparently, if you have multiple button elements with the same name attributes, the value that comes out from the server in IE6 is the value from the last element on the form.<\\/p>\\n\\n<p>Ok, maybe that was confusing. The <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/input-vs-button\\/\\\">example page<\\/a> might clarify some. The first example is just <code>&lt;input type=\\\"submit\\\" \\/&gt;<\\/code>. The second example is <code>&lt;input type=\\\"image\\\" \\/&gt;<\\/code>. Finally, the third example is <code>&lt;button type=\\\"submit\\\"&gt;&lt;\\/button&gt;<\\/code>.<\\/p>\\n\\n<p>Be sure to try that in IE6 and IE7 to see the problems I explained.<\\/p>\\n\\n<h3>A Third Try?<\\/h3>\\n<p>Ok, this sucks, obviously I went with option 1 this time: <code>&lt;input type=\\\"submit\\\" \\/&gt;<\\/code>. We know from the <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/input-vs-button\\/\\\">first example on the previous page<\\/a> that the value is at least passed through to the server properly in all browsers. Now the fun part is just trying to style the buttons in all browsers.<\\/p>\\n\\n<h2>Stying the Input Element<\\/h2>\\n<p>Let&rsquo;s assign a class to all of the buttons we are going to style, and just add some basic styles to the button:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\ninput.buttons&nbsp;&#123;<br \\/>&nbsp;background:&nbsp;none&nbsp;no-repeat&nbsp;top&nbsp;left;<br \\/>&nbsp;border:&nbsp;none;<br \\/>&nbsp;cursor:&nbsp;pointer;<br \\/>&nbsp;display:&nbsp;block;<br \\/>&nbsp;height:&nbsp;25px;<br \\/>&nbsp;overflow:&nbsp;hidden;<br \\/>&nbsp;padding:&nbsp;0;<br \\/>&nbsp;margin:&nbsp;0&nbsp;2px&nbsp;0&nbsp;0;<br \\/>&nbsp;text-indent:&nbsp;-9999px;<br \\/>&nbsp;width:&nbsp;auto;<br \\/>&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Most of that should be pretty self explanatory. So let&rsquo;s now add in the background images for the 3 buttons and give them a width:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\ninput.updateCart&nbsp;&#123;&nbsp;background-image:&nbsp;url(update-cart.gif);&nbsp;width:&nbsp;107px;&nbsp;&#125;<br \\/>input.continueShopping&nbsp;&#123;&nbsp;background-image:&nbsp;url(continue-shopping.gif);&nbsp;width:&nbsp;146px;&nbsp;&#125;<br \\/>input.proceedCheckout&nbsp;&#123;&nbsp;background-image:&nbsp;url(proceed-to-checkout.gif);&nbsp;width:&nbsp;156px;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>The images are actually CSS Sprites so let&rsquo;s add in the hover effect:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\ninput.buttons:hover&nbsp;&#123;&nbsp;background-position:&nbsp;0&nbsp;-25px;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Sweet, let&rsquo;s <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/input-vs-button\\/regular-input\\/\\\">take a look at the page<\\/a>. Nice, it even looks good in Safari. Of course, it&rsquo;s broken in IE 6 and IE 7.<\\/p>\\n\\n<p><img src=\\\"http:\\/\\/trevordavis.net\\/images\\/content\\/2008\\/05\\/buttons-ie.gif\\\" alt=\\\"Strange effect on buttons in IE\\\" class=\\\"imageCenter\\\" height=\\\"25\\\" width=\\\"413\\\" \\/><em>Check out the weird buttons in IE<\\/em><\\/p>\\n\\n<h3>Fixing for IE<\\/h3>\\n<p>Ok, so I had no idea how to even attack this problem. So I started playing around, and finally came up with this:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\ninput.buttons&nbsp;&#123;&nbsp;font-size:&nbsp;0;&nbsp;line-height:&nbsp;25px;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>So I just serve those properties to IE6 and IE7. Beautiful, <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/input-vs-button\\/regular-input-fixed-for-ie\\/\\\">it works now<\\/a>.<\\/p>\\n\\n<h3>One Last Thing<\\/h3>\\n<p>So we were able to get these buttons working in all browsers. There is just one minor thing that bugged me. The hover effect does not work on the buttons in IE6. How about we use <a href=\\\"http:\\/\\/jquery.com\\/\\\">jQuery<\\/a> to fix that for IE6:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&#123;<br \\/>&nbsp;$(\'input.buttons\').hover(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$(this).css(\'background-position\',\'0&nbsp;-25px\');<br \\/>&nbsp;&nbsp;&#125;,<br \\/>&nbsp;&nbsp;function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$(this).css(\'background-position\',\'0&nbsp;0\');<br \\/>&nbsp;&nbsp;&#125;<br \\/>&nbsp;);<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Nice, <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/input-vs-button\\/regular-input-hover-fixed-for-ie\\/\\\">it works in IE6<\\/a>. So yeah, that was really long. But form buttons are always a fun topic to get working across all browsers. Anyone have anything they would do differently?<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:53','2014-08-08 19:32:28','c9363ac2-5769-482c-9d55-807968112bdb',1),(197,215,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-31\",\"postDate\":1211148949,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>After a busy week at work, it&rsquo;s great to relax during the weekend. Even though I was getting <a href=\\\"http:\\/\\/monicafdavis.com\\/\\\">my sister&rsquo;s website<\\/a> finished, I always enjoy slicing a site. Here are a few things I found interesting this week:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/astheria.com\\/design\\/initial-impressions-of-silverback\\\">Initial Impressions of Silverback<\\/a>\\n<p>There has already been a lot written about the <a href=\\\"http:\\/\\/www.silverbackapp.com\\/\\\">Silverback website<\\/a>, but no one has really been clear on what the application actually is. This is a nice review from one of the beta testers, and it looks amazing. Basically you can create a user testing environment with a Mac, and that&rsquo;s all you need.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.themaninblue.com\\/experiment\\/Cubescape\\/\\\">Cubescape<\\/a>\\n<p>Ok, this is some seriously awesome JavaScript. You can create your own &ldquo;isometric pixel picture&rdquo;. I&rsquo;m sure this took quite a time investment to create this.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.37signals.com\\/svn\\/posts\\/1018-designing-is-not-a-profession-but-an-attitude\\\">&ldquo;Designing is not a profession but an attitude&rdquo;<\\/a>\\n<p>I love this way of thinking. Being a Front-End Developer is not just a job for me, it&rsquo;s basically my life. It&rsquo;s funny how I&rsquo;ll just be out somewhere, and I&rsquo;ll think about how something would be marked up. If you have read <a href=\\\"http:\\/\\/www.transcendingcss.com\\/\\\">Transcending CSS<\\/a>, you may know what I mean.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/nettuts.com\\/misc\\/build-a-wordburner-email-newsletter-manager-using-wordpress-and-feedburner\\/\\\">Build a &lsquo;WordBurner&rsquo; Email Newsletter Manager using WordPress and FeedBurner<\\/a>\\n<p>Interesting tutorial explaining how to use a normal WordPress category to create an email newsletter.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/zenhabits.net\\/2008\\/05\\/a-letter-to-my-son-on-starting-out-in-life\\\">A Letter to My Son, on Starting Out In Life<\\/a>\\n<p>Great letter with some life hints from Leo to his son. I have really enjoyed reading his site recently.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:53','2014-08-08 19:32:28','7ddadd11-a498-439a-bad5-74e96c02f844',1),(198,216,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-30\",\"postDate\":1210549515,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Wow, I was actually able to get some sleep this weekend. Too bad I didn&rsquo;t have any time to do freelance work or work on the redesign for my site. Oh well, at least there was a lot of interesting things that I read this week:<\\/p>\\n<ul>\\n<li><a href=\\\"http:\\/\\/mezzoblue.com\\/archives\\/2008\\/05\\/05\\/image_replac\\/\\\">Image Replacement + Google<\\/a>\\n<p>Good to know, Google won&rsquo;t penalize you for using image replacement properly. This is something we all assumed but were never really clear on.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.seomoz.org\\/blog\\/the-web-developers-seo-cheat-sheet\\\">The Web Developer&rsquo;s SEO Cheat Sheet<\\/a>\\n<p>Nothing that we don&rsquo;t know already, but a nice round up of basic SEO information for beginners.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/veerle.duoh.com\\/blog\\/comments\\/does_flash_irks_me\\/\\\">Does Flash irk me?<\\/a>\\n<p>I agree with Veerle in that it is important to evaluate the goals of a project. While most flash on the web does nothing for me, there are things like <a href=\\\"http:\\/\\/wiki.novemberborn.net\\/sifr\\\">sIFR<\\/a> that are awesome.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/alistapart.com\\/issues\\/258\\\">A List Apart: Issue 258<\\/a>\\n<p>Another couple of interesting articles from A List Apart: <a href=\\\"http:\\/\\/alistapart.com\\/articles\\/fromlittlethings\\\">Community: From Little Things, Big Things Grow<\\/a> and <a href=\\\"http:\\/\\/alistapart.com\\/articles\\/zebrastripingdoesithelp\\\">Zebra Striping: Does it Really Help?<\\/a>. I thought the Zebra Striping article was especially interesting.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/patthorntonfiles.com\\/blog\\/?p=261\\\">Web natives need to lead Web operations<\\/a>\\n<p>I agree; it is very important for web people to be making decisions about the web. While one can easily become a &ldquo;web person&rdquo;, it is not something that happens instantly. The web is a complex place.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.useit.com\\/alertbox\\/percent-text-read.html\\\">How Little Do Users Read?<\\/a>\\n<p>While not surprising, Jakob Nielsen says that users typically don&rsquo;t read very much on the web. This is why it&rsquo;s important to use frequent headings and to break up the text into smaller chunks.<\\/p>\\n<p>Conversely, I also thought that an article by Andy Rutledge, <a href=\\\"http:\\/\\/www.andyrutledge.com\\/volume-doesnt-matter.php\\\">Volume Doesn&rsquo;t Matter<\\/a>, presented an interesting &ldquo;argument&rdquo; to the other side. If a page is designed well and the topic is interesting to the user, I think they will be very likely to do more than scan the text.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:53','2014-08-08 19:32:28','73a55160-963f-4ad9-916b-0a2e3c9242ec',1),(199,217,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"set-a-body-id-using-php\",\"postDate\":1210208925,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>One of the first things I do when I am creating the markup for a new site, is to set a body id. You may wonder what I mean when I say &ldquo;set a body id&rdquo;. What I mean is to dynamically check the url to figure out which section you are in. This tutorial will show how to do this dynamically using PHP, and also how to integrate it into WordPress.<\\/p>\\n<!--more-->\\n<h2>Why Should I Set a Body Id?<\\/h2>\\n<p>There are plenty of reasons why you should, here are a few:<\\/p>\\n<ul>\\n<li>Maybe your design has different colors depending upon which section you are in. Instead of having to touch the markup, you can just modify the CSS depending upon the id on the <code>body<\\/code>.<\\/li>\\n<li>You can control the current states for your navigation.<\\/li>\\n<li>Maybe the markup on your homepage is a little different than subpages, so instead of creating a different template, just stick in an if statement.<\\/li>\\n<\\/ul>\\n\\n<h2>Setting Up the Code<\\/h2>\\n<p>So typically, you setup your navigation to match your directory structure. Ex: Top level navigation is <strong>about<\\/strong>, and there is a folder on the root called <strong>about<\\/strong>. So the easiest thing to do, is just check the url and determine which section you are in. This is the code that sets the body id on my site:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&lt;?php<br \\/>function&nbsp;setBodyId()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;$path&nbsp;=&nbsp;$_SERVER&#91;\'REQUEST_URI\'&#93;;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;if(!isset($bodyId))&nbsp;&#123;<br \\/>&nbsp;&nbsp;if(eregi(\'^\\/about\\/\',$path)&nbsp;==&nbsp;1)&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$bodyId&nbsp;=&nbsp;\'about\';<br \\/>&nbsp;&nbsp;&#125;&nbsp;else&nbsp;if(eregi(\'^\\/blog\\/\',$path)&nbsp;==&nbsp;1)&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$bodyId&nbsp;=&nbsp;\'blog\';<br \\/>&nbsp;&nbsp;&#125;&nbsp;else&nbsp;if(eregi(\'^\\/contact\\/\',$path)&nbsp;==&nbsp;1)&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$bodyId&nbsp;=&nbsp;\'contact\';<br \\/>&nbsp;&nbsp;&#125;&nbsp;else&nbsp;if(eregi(\'^\\/work\\/\',$path)&nbsp;==&nbsp;1)&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$bodyId&nbsp;=&nbsp;\'work\';<br \\/>&nbsp;&nbsp;&#125;&nbsp;else&nbsp;if(eregi(\'^\\/play\\/\',$path)&nbsp;==&nbsp;1)&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$bodyId&nbsp;=&nbsp;\'play\';<br \\/>&nbsp;&nbsp;&#125;&nbsp;else&nbsp;if&nbsp;($path&nbsp;==&nbsp;\'\')&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$bodyId&nbsp;=&nbsp;\'home\';<br \\/>&nbsp;&nbsp;&#125;&nbsp;else&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$bodyId&nbsp;=&nbsp;\'general\';<br \\/>&nbsp;&nbsp;&#125;<br \\/>&nbsp;&#125;<br \\/>&nbsp;&nbsp;&nbsp;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$bodyId;<br \\/>&#125;<br \\/>?&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Sure, you could do this dynamically and pull in the top level folder from the url, but I have found there are too many situations that arise where you want multiple sections to have the same body id, or you want to set other variables section by section. So I stick with this method, and it has been successful.<\\/p>\\n\\n<h2>My Example<\\/h2>\\n<p>My example is going to be a little different because it is in a subsection of my site. So here is the code I am using to control setting the body id in the example:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;?php<br \\/>function&nbsp;exampleSetBodyId()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;$path&nbsp;=&nbsp;$_SERVER&#91;\'REQUEST_URI\'&#93;;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;if(!isset($bodyId))&nbsp;&#123;<br \\/>&nbsp;&nbsp;if(eregi(\'^\\/play\\/set-a-body-id\\/about\\/\',$path)&nbsp;==&nbsp;1)&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$bodyId&nbsp;=&nbsp;\'about\';<br \\/>&nbsp;&nbsp;&#125;&nbsp;else&nbsp;if(eregi(\'^\\/play\\/set-a-body-id\\/blog\\/\',$path)&nbsp;==&nbsp;1)&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$bodyId&nbsp;=&nbsp;\'blog\';<br \\/>&nbsp;&nbsp;&#125;&nbsp;else&nbsp;if(eregi(\'^\\/play\\/set-a-body-id\\/contact\\/\',$path)&nbsp;==&nbsp;1)&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$bodyId&nbsp;=&nbsp;\'contact\';<br \\/>&nbsp;&nbsp;&#125;&nbsp;else&nbsp;if(eregi(\'^\\/play\\/set-a-body-id\\/work\\/\',$path)&nbsp;==&nbsp;1)&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$bodyId&nbsp;=&nbsp;\'work\';<br \\/>&nbsp;&nbsp;&#125;&nbsp;else&nbsp;if(eregi(\'^\\/play\\/set-a-body-id\\/play\\/\',$path)&nbsp;==&nbsp;1)&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$bodyId&nbsp;=&nbsp;\'play\';<br \\/>&nbsp;&nbsp;&#125;&nbsp;else&nbsp;if&nbsp;($path&nbsp;==&nbsp;\'\\/play\\/set-a-body-id\\/\')&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$bodyId&nbsp;=&nbsp;\'home\';<br \\/>&nbsp;&nbsp;&#125;&nbsp;else&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$bodyId&nbsp;=&nbsp;\'general\';<br \\/>&nbsp;&nbsp;&#125;<br \\/>&nbsp;&#125;<br \\/>&nbsp;&nbsp;&nbsp;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$bodyId;<br \\/>&#125;<br \\/>$bodyId&nbsp;=&nbsp;exampleSetBodyId();<br \\/>?&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>So in the <code>$bodyId<\\/code> variable, you have the value of the body id, so just print the variable on the <code>body<\\/code> tag:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&lt;body&nbsp;id=\\\"&lt;?=$bodyId;&nbsp;?&gt;\\\"&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<h3>Some Practical Uses<\\/h3>\\n<p>As I discussed at the beginning of the post, there are a lot of benefits to having a body id set on every page. This is the <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/set-a-body-id\\/\\\">demo section<\\/a> that I am discussing below.<\\/p>\\n<h4>Different Colors Per Section<\\/h4>\\n<p>If you click through the navigation in the example, you can see the colors are different for each section. This can be easily accomplished without changing any markup through the power of <strong>descendant selectors.<\\/strong> Here is the part of the CSS that is controlling the color of the borders:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\ndiv#content&nbsp;&#123;&nbsp;border:&nbsp;1px&nbsp;solid&nbsp;#000;&nbsp;&#125;<br \\/>ul#nav&nbsp;&#123;&nbsp;border-top:&nbsp;1px&nbsp;solid&nbsp;#000;&nbsp;&#125;<br \\/>body#home&nbsp;div#content,&nbsp;body#home&nbsp;ul#nav&nbsp;&#123;&nbsp;border-color:&nbsp;#FF6600;&nbsp;&#125;<br \\/>body#about&nbsp;div#content,&nbsp;body#about&nbsp;ul#nav&nbsp;&#123;&nbsp;border-color:&nbsp;#429C19;&nbsp;&#125;<br \\/>body#blog&nbsp;div#content,&nbsp;body#blog&nbsp;ul#nav&nbsp;&#123;&nbsp;border-color:&nbsp;#54D0ED;&nbsp;&#125;<br \\/>body#work&nbsp;div#content,&nbsp;body#work&nbsp;ul#nav&nbsp;&#123;&nbsp;border-color:&nbsp;#A81919;&nbsp;&#125;<br \\/>body#play&nbsp;div#content,&nbsp;body#play&nbsp;ul#nav&nbsp;&#123;&nbsp;border-color:&nbsp;#400152;&nbsp;&#125;<br \\/>body#contact&nbsp;div#content,&nbsp;body#contact&nbsp;ul#nav&nbsp;&#123;&nbsp;border-color:&nbsp;#F8DC0C;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Here is the part that is changing the color of the <code>h1<\\/code>:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\nbody#home&nbsp;h1&nbsp;&#123;&nbsp;color:&nbsp;#FF6600;&nbsp;&#125;<br \\/>body#about&nbsp;h1,&nbsp;&#123;&nbsp;color:&nbsp;#429C19;&nbsp;&#125;<br \\/>body#blog&nbsp;h1&nbsp;&#123;&nbsp;color:&nbsp;#54D0ED;&nbsp;&#125;<br \\/>body#work&nbsp;h1&nbsp;&#123;&nbsp;color:&nbsp;#A81919;&nbsp;&#125;<br \\/>body#play&nbsp;h1&nbsp;&#123;&nbsp;color:&nbsp;#400152;&nbsp;&#125;<br \\/>body#contact&nbsp;h1&nbsp;&#123;&nbsp;color:&nbsp;#F8DC0C;&nbsp;&#125;&lt;\\/pre&gt;&lt;\\/code&gt;<br \\/><br \\/>&lt;p&gt;Obviously&nbsp;this&nbsp;is&nbsp;not&nbsp;the&nbsp;most&nbsp;beautiful&nbsp;example,&nbsp;but&nbsp;hopefully&nbsp;the&nbsp;idea&nbsp;makes&nbsp;sense.&lt;\\/p&gt;<br \\/><br \\/>&lt;h4&gt;Current&nbsp;State&nbsp;on&nbsp;Navigation&lt;\\/h4&gt;<br \\/>&lt;p&gt;There&nbsp;are&nbsp;different&nbsp;ways&nbsp;to&nbsp;set&nbsp;the&nbsp;current&nbsp;state&nbsp;on&nbsp;the&nbsp;navigation,&nbsp;but&nbsp;by&nbsp;assigning&nbsp;an&nbsp;id&nbsp;to&nbsp;each&nbsp;navigation&nbsp;element,&nbsp;you&nbsp;can&nbsp;use&nbsp;descendant&nbsp;selectors&nbsp;again.&nbsp;Here&nbsp;is&nbsp;the&nbsp;markup:&lt;\\/p&gt;<br \\/>&#91;code&#93;&lt;ul&nbsp;id=\\\"nav\\\"&gt;<br \\/>&nbsp;&lt;li&nbsp;id=\\\"homeNav\\\"&gt;&lt;a&nbsp;href=\\\"\\/play\\/set-a-body-id\\/\\\"&gt;Home&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&nbsp;id=\\\"aboutNav\\\"&gt;&lt;a&nbsp;href=\\\"\\/play\\/set-a-body-id\\/about\\/\\\"&gt;About&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&nbsp;id=\\\"blogNav\\\"&gt;&lt;a&nbsp;href=\\\"\\/play\\/set-a-body-id\\/blog\\/\\\"&gt;Blog&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&nbsp;id=\\\"workNav\\\"&gt;&lt;a&nbsp;href=\\\"\\/play\\/set-a-body-id\\/work\\/\\\"&gt;Work&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&nbsp;id=\\\"playNav\\\"&gt;&lt;a&nbsp;href=\\\"\\/play\\/set-a-body-id\\/play\\/\\\"&gt;Play&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&nbsp;&lt;li&nbsp;id=\\\"contactNav\\\"&gt;&lt;a&nbsp;href=\\\"\\/play\\/set-a-body-id\\/contact\\/\\\"&gt;Contact&lt;\\/a&gt;&lt;\\/li&gt;<br \\/>&lt;\\/ul&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Then, we use the following CSS to change the background color and text color when we are in that section:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\nbody#home&nbsp;ul#nav&nbsp;li#homeNav&nbsp;a&nbsp;&#123;&nbsp;background:&nbsp;#FF6600;&nbsp;&#125;<br \\/>body#about&nbsp;ul#nav&nbsp;li#aboutNav&nbsp;a&nbsp;&#123;&nbsp;background:&nbsp;#429C19;&nbsp;&#125;<br \\/>body#blog&nbsp;ul#nav&nbsp;li#blogNav&nbsp;a&nbsp;&#123;&nbsp;background:&nbsp;#54D0ED;&nbsp;&#125;<br \\/>body#work&nbsp;ul#nav&nbsp;li#workNav&nbsp;a&nbsp;&#123;&nbsp;background:&nbsp;#A81919;&nbsp;&#125;<br \\/>body#play&nbsp;ul#nav&nbsp;li#playNav&nbsp;a&nbsp;&#123;&nbsp;background:&nbsp;#400152;&nbsp;&#125;<br \\/>body#contact&nbsp;ul#nav&nbsp;li#contactNav&nbsp;a&nbsp;&#123;&nbsp;background:&nbsp;#F8DC0C;&nbsp;&#125;<br \\/>body#home&nbsp;ul#nav&nbsp;li#homeNav&nbsp;a,&nbsp;body#about&nbsp;ul#nav&nbsp;li#aboutNav&nbsp;a,&nbsp;body#blog&nbsp;ul#nav&nbsp;li#blogNav&nbsp;a,&nbsp;body#contact&nbsp;ul#nav&nbsp;li#contactNav&nbsp;a&nbsp;&#123;&nbsp;color:&nbsp;#000;&nbsp;&#125;<br \\/>body#work&nbsp;ul#nav&nbsp;li#workNav&nbsp;a,&nbsp;body#play&nbsp;ul#nav&nbsp;li#playNav&nbsp;a&nbsp;&#123;&nbsp;color:&nbsp;#fff;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<h4>Slightly Different Homepage Markup<\\/h4>\\n<p>Typically the markup for homepages are slightly different. But, if you are using one header and footer template for the entire site, you probably don&rsquo;t want to create another template just for the homepage. So since we have the body id that tells us when we are on the homepage, we can just write a simple <code>if<\\/code> statement:<\\/p>\\n\\n<div class=\\\"codeblock\\\"><code>\\n&lt;?php&nbsp;if($bodyId&nbsp;==&nbsp;\'home\')&nbsp;&#123;&nbsp;?&gt;<br \\/>&nbsp;&amp;hellip;PUT&nbsp;YOUR&nbsp;HOMEPAGE&nbsp;SPECIFIC&nbsp;ELEMENTS&nbsp;HERE&amp;hellip;&nbsp;<br \\/>&lt;?php&nbsp;&#125;&nbsp;?&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<h2>Make it Work with WordPress<\\/h2>\\n<p>So just take the <strong>setBodyId function<\\/strong> that we defined earlier, and add it to your WordPress theme functions (functions.php).<\\/p>\\n\\n<p>After you have added the function, we want to add actions to <a href=\\\"http:\\/\\/codex.wordpress.org\\/Hook_Reference\\/wp_head\\\">wp_head<\\/a> and <strong>wp_footer<\\/strong> (for some reason there isn&rsquo;t a WordPress Hook Reference for wp_footer, but it is essentially the same as wp_head, just in the footer). Here is how we add our function to those hooks:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\nadd_action(\'wp_head\',&nbsp;\'setBodyId\');<br \\/>add_action(\'wp_footer\',&nbsp;\'setBodyId\');&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Then, in your header, just call the <strong>wp_head<\\/strong> hook, and call our function:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;?php&nbsp;wp_head();&nbsp;$bodyId&nbsp;=&nbsp;setBodyId();&nbsp;?&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>There you have it, you have the body id defined in the <code>$bodyId<\\/code> variable, and you can do with it what you want.<\\/p>\\n\\n<h2>Other Thoughts<\\/h2>\\n<p>I think by setting an id (or class) on such a high level element gives you a lot of control over its descendants. Another interesting idea that I heard was to use <a href=\\\"http:\\/\\/jquery.com\\/\\\">jQuery<\\/a> to determine the browser and version that the user is using, then add a class on the body. That way you could differ your CSS depending on which class is on the <code>body<\\/code>. That idea would eliminate the need for conditional comments (at least for users with JavaScript enabled).<\\/p>\\n\\n<p>So hopefully this tutorial shows you an easy way to make some site-wide tasks simpler, and I am interested to see if other people have ideas for what to do with body ids.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:53','2014-08-08 19:32:28','2989807c-a2de-4c82-9731-a98c675105b6',1),(200,218,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-29\",\"postDate\":1209857971,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Got great news at work this week: a redesigned site that was supposed to launch on the 6th, is now getting pushed back to the 13th. Maybe I will have time in the coming week to take a few minutes to not feel stressed out and rushed. So in my limited free time this week, here are some things that I found interesting:<\\/p>\\n\\n<ul>\\n<li><a href=\\\"http:\\/\\/psdtuts.com\\/interface-tutorials\\/create-a-sleek-high-end-web-design-from-scratch\\/\\\">Create a Sleek, High-End Web Design from Scratch<\\/a>\\n<p>This was a great article going step-by-step designing a website. I am really finding these design articles interesting since I am in the process of working on the next redesign for my site. There was also a partnering article, <a href=\\\"http:\\/\\/nettuts.com\\/site-builds\\/build-a-sleek-portfolio-site-from-scratch\\/\\\">Build a Sleek Portfolio Site from Scratch<\\/a> that discussing the slicing of the site. Nothing ground breaking, but a nice step-by-step guide for a beginner.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.zeldman.com\\/2008\\/04\\/27\\/content-outsourcing-and-the-disappearing-personal-site\\/\\\">The vanishing personal site<\\/a>\\n<p>This is an interesting article discussing something that I have recently begun to see as well. Some people&rsquo;s personal sites just have links to their accounts on the numerous social networking sites. The article even spurred an article from Six Apart: <a href=\\\"http:\\/\\/www.sixapart.com\\/blog\\/2008\\/04\\/hell_no_personal_sites_arent_d.html\\\">Hell no, personal sites aren&rsquo;t dead!<\\/a>. I don&rsquo;t believe that personal sites are <strong>dead<\\/strong>, but I agree with Zeldman&rsquo;s comment that they are <strong>vanishing<\\/strong>.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/veerle.duoh.com\\/blog\\/comments\\/starting_with_css_and_bug_fixing_tips\\/\\\">Starting with CSS and bug fixing tips<\\/a>\\n<p>This is a great resource for people just getting into web development. Veerle provides a bunch of links, recommended books, and strategies for fixing CSS bugs. Definitely will become a great starting point for a lot of people.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:53','2014-08-08 19:32:28','6a68ac4c-1c46-4caf-80b6-b2ac9d14ad69',1),(201,219,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-28\",\"postDate\":1209159499,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Man am I happy it&rsquo;s the weekend. Have been working on a project at work that has a real short deadline, so I&rsquo;ve been busy. I&rsquo;m looking forward to Sunday because I&rsquo;m running a 10 mile race and going to the Wizards playoff game. There were a lot of interesting things that I found this week:<\\/p>\\n<ul>\\n<li><a href=\\\"http:\\/\\/alistapart.com\\/issues\\/257\\\">A List Apart: Issue 257<\\/a>\\n<p>I&rsquo;ve heard a lot about Ruby on Rails, but I never really looked too much into it. After reading <a href=\\\"http:\\/\\/alistapart.com\\/articles\\/creatingmoreusinglesseffortwithrubyonrails\\\">Creating More Using Less Effort with Ruby on Rails<\\/a> and <a href=\\\"http:\\/\\/alistapart.com\\/articles\\/gettingstartedwithrubyonrails\\\">Getting Started with Ruby on Rails<\\/a>, it really makes me want to learn more about it. Obviously, I don&rsquo;t think I will become a hardcore programmer, but I would like be able to work with it in the future.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.smashingmagazine.com\\/2008\\/04\\/23\\/5-principles-and-ideas-of-setting-type-on-the-web\\/\\\">5 Principles And Ideas Of Setting Type On The Web<\\/a>\\n<p>Nice set of guidelines and resources for working with type on the web.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/jeffcroft.com\\/blog\\/2008\\/apr\\/23\\/who-owns-javascript\\/\\\">But who owns Javascript?<\\/a>\\n<p>This is definitely an issue at my company. Is it front-end developers or back-end developers who should be doing the JavaScript? Personally, I think that front-end developers should handle all &ldquo;presentational&rdquo; JavaScript, and back-end developers should handle any JavaScript that is interacting with any data. Although, that line I think is somewhat flexible, as I have shown <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/tutorial\\/ajax-forms-with-jquery\\/\\\">how simple it is to create an AJAX form<\\/a>.<\\/p>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.andyrutledge.com\\/criticism.php\\\">Criticism: Myths and Childishness<\\/a>\\n<p>I love how Andy doesn&rsquo;t hold back. He just says it how it is. This is definitely something I&rsquo;m starting to understand more and more as I get more experience.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.smashingmagazine.com\\/2008\\/04\\/24\\/5-more-principles-of-effective-web-design\\/\\\">Five More Principles Of Effective Web Design<\\/a>\\n<p>Some nice tips and resources here. These articles are really interesting to me right now as I am working on the next design for my site.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.sitepoint.com\\/blogs\\/2008\\/04\\/25\\/css-gradients-transforms-animations-and-masks\\/\\\">CSS Gradients, Transforms, Animations, and Masks<\\/a>\\n<p>The latest version of WebKit has added some pretty cool CSS properties. If only all browser makers would continue to advance their browser as fast as WebKit does, it would be a much better world on the web.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/psdtuts.com\\/designing-tutorials\\/working-within-limitations-to-achieve-great-designs\\/\\\">Working Within Limitations to Achieve Great Designs<\\/a>\\n<p>Some nice minimalist strategies for achieving great designs.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:53','2014-08-08 19:32:28','c1b5c71b-08d5-4d69-b361-dda460269a8d',1),(202,220,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"weekly-link-round-up-27\",\"postDate\":1208650453,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>Busy week, both freelance wise and work wise. The good news is that the NBA playoffs are starting, so let&rsquo;s all cheer for the Wizards. This is what I found interesting this week:<\\/p>\\n<ul>\\n<li><a href=\\\"http:\\/\\/ma.tt\\/2008\\/04\\/securityfocus-sql-injection-bogus\\/\\\">SecurityFocus SQL Injection Bogus<\\/a>\\n<p>So apparently Security Focus published a false report about a security hole in WordPress. It&rsquo;s good to know how much WordPress stays on top of these security issues, as they become more and more prevalent. As Matt recommends, one of the most important things to do is to stay up to date with the WordPress updates.<\\/p>\\n<\\/li>\\n\\n<li><a href=\\\"http:\\/\\/snook.ca\\/archives\\/html_and_css\\/no_css_reset\\/\\\">No CSS Reset<\\/a>\\n<p>This sparked an interesting discussing over on <a href=\\\"http:\\/\\/meyerweb.com\\/eric\\/thoughts\\/2008\\/04\\/17\\/crafting-ourselves\\/\\\">Eric Meyer&rsquo;s blog<\\/a>. Personally, I do not use a CSS reset. I do zero out the margin and padding on all block level elements, but not by using the universal selector. In the end, I think Eric makes a great point:<\\/p>\\n<blockquote>\\n<p>So it&rsquo;s no surprise that we, as a community, keep building and sharing solutions to problems we encounter. Discussions about the merits of those solutions in various situations are also no surprise. Indeed, they&rsquo;re exactly the opposite: the surest and, to me, most hopeful sign that web design\\/development continues to mature as a profession, a discipline, and a craft. It&rsquo;s evidence that we continue to challenge ourselves and each other to advance our skills, to keep learning better and better how better to do what we love so much.<\\/p>\\n<p><strong>I wouldn&rsquo;t have it any other way.<\\/strong><\\/p>\\n<\\/blockquote>\\n<\\/li>\\n<\\/ul>\\n<!--more-->\\n<ul>\\n<li><a href=\\\"http:\\/\\/www.smashingmagazine.com\\/2008\\/04\\/17\\/web-form-design-modern-solutions-and-creative-ideas\\/\\\">Web Form Design: Modern Solutions and Creative Ideas<\\/a>\\n<p>Nice collection of interesting forms. It is always nice to see people getting really creative with them. I especially like the one on <a href=\\\"http:\\/\\/o.rang.es\\/contact\\/\\\">Edward Pistachio&rsquo;s site<\\/a>, although it is not very usable.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/robgoodlatte.com\\/2008\\/04\\/18\\/passionless-pre-professionals\\/\\\">Passionless Pre-Professionals<\\/a>\\n<p>I think this is a huge issue with our society. Everyone&rsquo;s mentality is to do what they can to get a job that will make them a lot of money, instead of what will make them happy. Thank god that I absolutely love working with the web.<\\/p>\\n<\\/li>\\n<li><a href=\\\"http:\\/\\/www.andyrutledge.com\\/calculating-hours.php\\\">Calculating Hours &ndash; the Client Factors<\\/a>\\n<p>A great article giving some guidelines on how to price a project. I really think that one good point that Andy makes is that sometimes, there are clients that you should just not accept projects from. The hard part is evaluating that early on.<\\/p>\\n<\\/li>\\n<\\/ul>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:53','2014-08-08 19:32:28','4faa75ce-f0d5-4595-8dd3-79c6e79d6e63',1),(203,221,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"creepy-critters-css-off\",\"postDate\":1208358265,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>I meant to post this a little while ago, but I participated in a <a href=\\\"http:\\/\\/cssoff.com\\/2008\\/04\\/05\\/april-5-2008-critters\\/\\\">CSS Off<\\/a> about 2 weeks ago.<\\/p>\\n\\n<p>The idea is: you get a PSD file, and you have 24 hours to slice it. <a href=\\\"http:\\/\\/trevordavis.net\\/critters\\/\\\">This was my entry.<\\/a><\\/p>\\n\\n<p>Looking back on it, I think there were some things I would have done differently, but I am pretty happy with my submission. I&rsquo;m interested to see who wins.<\\/p>\\n\\n<p>I look forward to the next one and encourage others to participate. Even if you don&rsquo;t win, it&rsquo;s good practice.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:53','2014-08-08 19:32:28','913bdba9-390d-4aaf-ab11-a0ec2c0a6925',1),(204,222,4,1,1,NULL,'{\"authorId\":1,\"title\":{\"title\":{}},\"slug\":\"handling-wordpress-trackbacks-with-jquery\",\"postDate\":1208213672,\"expiryDate\":null,\"enabled\":1,\"fields\":{\"2\":\"<p>So after having a ton of trackbacks in a recent article, <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/tutorial\\/the-6-most-important-css-techniques-you-need-to-know\\/\\\">The 6 Most Important CSS Techniques You Need To Know<\\/a>, I thought that it was kind of breaking up the flow of the comments.<\\/p>\\n\\n<p>I didn&rsquo;t necessarily want to completely remove them because I thought that some people might be interested in them. These are the steps that I want to take:<\\/p>\\n\\n<ol>\\n<li>Assign a class to all trackbacks<\\/li>\\n<li>Hide them all with CSS<\\/li>\\n<li>Add a jQuery visibility toggle<\\/li>\\n<\\/ol>\\n\\n<!--more-->\\n\\n<h2>1) Assign a Class to All Trackbacks<\\/h2>\\n<p>In your <strong>comments.php<\\/strong> theme file, find a line that looks like this:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;li&nbsp;id=\\\"comment-&lt;?php&nbsp;comment_ID()&nbsp;?&gt;\\\"&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n<p>And replace it with this:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n&lt;li&nbsp;class=\\\"&lt;?php&nbsp;if(get_comment_type()&nbsp;!=&nbsp;\'comment\')&nbsp;echo&nbsp;\'trackback\';&nbsp;?&gt;\\\"&nbsp;id=\\\"comment-&lt;?php&nbsp;comment_ID()&nbsp;?&gt;\\\"&gt;&nbsp;\\n\\n<\\/code><\\/div>\\n<h3>Explanation<\\/h3>\\n<p>The get_comment_type function returns either <strong>comment<\\/strong>, <strong>trackback<\\/strong>, or <strong>pingback<\\/strong>. Since I want to hide everything except comments, I filter out anything that <strong>does not equal comment<\\/strong>, so I assign a class of trackback to that list item.<\\/p>\\n\\n<h2>2) Hide them All with CSS<\\/h2>\\n<p>Ok, easy enough, just add the following to your stylesheet:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\nol.commentlist&nbsp;li.trackback&nbsp;&#123;&nbsp;display:&nbsp;none;&nbsp;&#125;&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>That should be pretty self explanatory.<\\/p>\\n\\n<h2>3) Add a jQuery Visibility Toggle<\\/h2>\\n<p>The logic of the JavaScript will be as follows:<\\/p>\\n<ol>\\n<li>Check to see if there are any list items with a class of trackback.<\\/li>\\n<li>Add a link to Show\\/Hide trackbacks.<\\/li>\\n<li>Add a click event to the Show\\/Hide trackback link.<\\/li>\\n<li>Update the text of the link accordingly.<\\/li>\\n<\\/ol>\\n\\n<p>First, let&rsquo;s execute the JavaScript once the document is ready:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Next, let&rsquo;s check to see if there are any elements with a class of trackback:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&#123;<br \\/>&nbsp;if($(\'.trackback\').length&nbsp;&gt;&nbsp;0)&nbsp;&#123;<br \\/>&nbsp;<br \\/>&nbsp;&#125;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>Next, if there are trackbacks on the page, insert a link to show trackbacks:<\\/p>\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&#123;<br \\/>&nbsp;if($(\'.trackback\').length&nbsp;&gt;&nbsp;0)&nbsp;&#123;<br \\/>&nbsp;&nbsp;$(\'#comments\').after(\'&lt;a&nbsp;href=\\\"#\\\"&nbsp;id=\\\"toggleTrackbacks\\\"&gt;(Show&nbsp;Trackbacks)&lt;\\/a&gt;\');<br \\/>&nbsp;&#125;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>I am adding the show\\/hide trackback link after the heading with an id of <strong>comments<\\/strong>.<\\/p>\\n\\n<p>Finally, I want to add in the <strong>click<\\/strong> event to the link, and toggle the text depending upon if the trackbacks are visible or not:\\n<div class=\\\"codeblock\\\"><code>\\n$(document).ready(function()&#123;<br \\/>&nbsp;if($(\'.trackback\').length&nbsp;&gt;&nbsp;0)&nbsp;&#123;<br \\/>&nbsp;&nbsp;$(\'#comments\').after(\'&lt;a&nbsp;href=\\\"#\\\"&nbsp;id=\\\"toggleTrackbacks\\\"&gt;(Show&nbsp;Trackbacks)&lt;\\/a&gt;\');<br \\/>&nbsp;&nbsp;$(\'#toggleTrackbacks\').click(function()&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;$(\'.trackback\').slideToggle(\'slow\');<br \\/>&nbsp;&nbsp;&nbsp;if($(\'#toggleTrackbacks\').text()&nbsp;==&nbsp;\'(Show&nbsp;Trackbacks)\')&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;$(\'#toggleTrackbacks\').text(\'(Hide&nbsp;Trackbacks)\');<br \\/>&nbsp;&nbsp;&nbsp;&#125;&nbsp;else&nbsp;&#123;<br \\/>&nbsp;&nbsp;&nbsp;&nbsp;$(\'#toggleTrackbacks\').text(\'(Show&nbsp;Trackbacks)\');<br \\/>&nbsp;&nbsp;&nbsp;&#125;<br \\/>&nbsp;&nbsp;&nbsp;return&nbsp;false;<br \\/>&nbsp;&nbsp;&#125;);<br \\/>&nbsp;&#125;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \\/>&#125;);&nbsp;\\n\\n<\\/code><\\/div>\\n\\n<p>So basically, I am adding the jQuery <strong>slideToggle<\\/strong> effect when the show\\/hide trackbacks link is clicked. Then, if the text in the show\\/hide trackbacks link is <strong>Show Trackbacks<\\/strong>, I change it to <strong>Hide Trackbacks<\\/strong>, and the opposite when the text is Hide Trackbacks.<\\/p>\\n\\n<p>I have grabbed some of the comments from <a href=\\\"http:\\/\\/trevordavis.net\\/blog\\/tutorial\\/the-ultimate-png-guide\\/\\\">The Ultimate PNG Guide<\\/a> so you can <a href=\\\"http:\\/\\/trevordavis.net\\/play\\/jquery-collapse-trackbacks\\/\\\">see a demo of this in action<\\/a>.<\\/p>\\n\\n<p>I love how simple jQuery is.<\\/p>\",\"4\":{\"website\":{}}}}','2014-01-19 12:59:53','2014-08-08 19:32:28','7a3b6e9f-d539-4aa9-a8d4-eab2c8e12eb7',1),