Tag Archive: gallery

Cool People from Fall 2008

I wish I could go back and change the past, but I can’t, so this is where we stand. At least we have memories.

All photos and editing herein by Richard X. Thripp, Aug-Dec 2008.

20080825-155830rxt-02.jpg

20080827-191955rxt-02.jpg

20080827-202742rxt-02.jpg

20080829-155859rxt-02.jpg

20080903-155320rxt-02.jpg

20080904-113419rxt-02.jpg

20080916-195038rxt-02.jpg

Post to Twitter Post to Bebo Post to Delicious Post to Digg Post to Facebook Post to FriendFeed Post to Google Buzz Send Gmail Post to LinkedIn Post to MySpace Post to Ping.fm Post to Reddit Post to Slashdot Post to Squidoo Post to StumbleUpon

Dynamic Galleries and Random Images for Wordpress Photoblogs

By Richard X. Thripp at 2008-05-17T02:58:55Z in Photography Articles, with these tags: computer science, gallery, guides, thripp.com, wordpress, 7 Comments. 1088 words.

I was looking for ways to optimize my website . . . to make it quicker and easier for me to maintain and update, while being fun to browse for my visitors. The problem with the old gallery and random photos at the top of each page, was that I had to make the thumbnails and update the page and database for both (I was using the this randomizer plugin for Wordpress), each time I added a photo. It was good because I’d crop, scale down, and sharpen each image to look its best, but the extra work was too much. I found the Post Thumb plugin is the perfect solution. I installed it, set it to make 100×70 thumbnails, and then added this code to my blog header:

<?php the_random_thumb(”link=p&limit=5&category=8″); >

That makes it show five random photos from the category for my photos, linking to the page for each instead of the file. The great thing here is that the thumbnail folder and accompanying MySQL table is updated automatically, so photos are added to the pool as soon as I publish them. A random photos section is good for the casual browser, who just looks at what catches his eye.

Next, I wanted to create a dynamic gallery and random image page. I added the Exec-PHP plugin so I could use PHP code in pages and posts, but found that Wordpress inserts a line break between each thumbnail, against my wishes. For that, I added this modified version of Text Control by Jeff Minard, then setting it to not auto-format the gallery and random pages.

The code for page one of the gallery is:

<?php the_recent_thumbs(”subfolder=g&width=200&height=160&link=p&limit=60&category=8″); ?>

and for page two:

<?php the_recent_thumbs(”subfolder=g&width=200&height=160&link=p&limit=60&offset=60&category=8″); ?>

The

Post to Twitter Post to Bebo Post to Delicious Post to Digg Post to Facebook Post to FriendFeed Post to Google Buzz Send Gmail Post to LinkedIn Post to MySpace Post to Ping.fm Post to Reddit Post to Slashdot Post to Squidoo Post to StumbleUpon

ShareThis   Printable Version      
More stuff:   Quick Post on HDR    Upgraded to Wordpress 2.5    Today’s Outage  

7 Comments — join the discussion.