Free PHP List Files in a Directory Script

Posted: March 19th, 2010 | No Comments

After finding a bunch of ugly scripts to display files in a directory, I finally created my own. It’s two simple files: index.php and icons.png. (might switch to .gif soon)  Grab the files at the address below and beautify your file listings.

Get it now at: http://www.halgatewood.com/free/file-directory-list/

I’ve also added a ‘freebies’ section to the lower right of the sidebar —–>
Check it out.

Read more »


Enable WebShop Tab in eZ Publish 4.3 admin

Posted: March 18th, 2010 | No Comments

A release candidate for eZ Publish 4.3 was posted the other day.  One of the new defaults is less tabs in the top navigation. Here is how you can bring back the tabs.

Navigate to the setup tab across the top:

Read more »


Why 37signals skips Photoshop

Posted: March 12th, 2010 | No Comments

Just re-read this article on SVN and this line below just jumped out and hit me, because I just did the exact same thing this week.  This company always make me think about my workflow.  Time to acquire a copy of rework.

Photoshop is repeating yourself. Ok, so you’ve spent 3 days on a mockup in Photoshop. Now what? Now I have to make it all over again in HTML/CSS. Wasted time. Just build it in HTML/CSS and spend that extra time iterating, not rebuilding. If you’re not fast enough in HTML/CSS, then spend the time learning how to create in HTML/CSS faster. It’s time well spent.

via Why we skip Photoshop – (37signals).


eZPublish – Get Image File from Object using PHP

Posted: March 10th, 2010 | 2 Comments

Your doing some actually PHP in eZ Publish (in a module, class or whatever) and you need to find the image data for the Image Attribute of an object, here is what to do:

$node = eZContentObjectTreeNode::fetch( $node_id );
$dataMap = $node->dataMap();

$image_attribute = $dataMap['image'];
$image_array = $image_attribute->Content()->attribute('original');

$image_url = $image_array['url'];
  1. First get into the DataMap of your object or node.
  2. Change the ‘image’ of $dataMap['image'] to whatever the attribute_identifier of your image is.
  3. Change the ‘original’ of $image_pathobj->Content()->attribute(‘original‘); to whichever size of image you need to get.  The image array contents all the good information of that image, i.e. height, width, filesize, etc.
  4. Use the ‘url’ to get a full path to your image. Slap a “/” on the front or use ezurl() to display.

If you want to see the available image sizes, you can check them by debugging this value:

$image_sizes = $image_attribute->Content()->attributes();

Tallscreen Video

Posted: March 6th, 2010 | No Comments

I was playing around at lunch the other day and came up with this little site: tallscreen.1915studios.com

It gives you a properly formatted iPhone TallScreen video player.

Upload your tallscreen video to YouTube and then put your YouTube URL in the bar at the top.

Send the link to your friends, rinse and repeat.

Have fun…