Posts Tagged ‘Programming’

This is version two of the blog, which currently contains 133 published posts. To some extent, this blog represents the creative excesses of a design enthusiast who is somewhere in the process of applying to grad school, working at a law firm and resides in the Financial District of New York City.



Advertising Biglaw Books Boston California Chicago Electronics Emory Europe Finance Food Google Hawaii Journalism Korean Law School London Los Angeles LSAT Mexico Movies Music New York North Carolina Ohio Panama Paris Programming Recipes Restaurants School Shopping Site Updates Soapbox Technology Texas Theater Travel UChicago Videogames Virginia Washington D.C. Wheel Work Writing

Meta nonsense
WP-Admin
cPanel
ASO Billing


The Plug Plugin

March 22nd, 2007

Quick update, I installed a new plugin that spits out a list of people who commented on a post and links their name back to their respective websites. It’s a comment-whoring move to let others plug their sites on yours, but oh well, seeing as how most of the traffic into my site comes in that form anyway.

If you want to do the same thing (see the “complements of” after each post on the index page?), you can download it from that site.

I made a few quick changes to the code, though. I wanted commas in-between each person, so I needed to have the script put in a comma after every entry other than the last one. In order to do so, after the script files all comment authors and URLs into the array $commenters, I assigned a new variable $count the integer one and got a count of the array. In code form:

$result = count($commenters);
$count = 1;

(Hint: $count starts at 1 to account for the fact that I don’t want a comma after the last commenter) After that, I concatenated a comma onto the string after each commenter and added one to the count, other than the last one, by adding the following line:
Read the rest of this entry »

1 Comment »

You asked for it

January 13th, 2007

I’ve never had a visitor-geared content on any of my pages. I tried doing it with the 7th version of the collective (before I closed down the whole thing), but I ended up making a very pretty layout for it that was obnoxious to edit so I never ended up doing much. Anyway, my point is, I finally added some content! There’s a new item on the navigation menu to the left, VISITOR.

Available for download is the script to implement a bookshelf of your very own. It’s not a very advanced script as it is my first, but I thought I’d make it available in case anyone was interested. I’m also working on a tutorial on how to make wordpress plugins. I’ve only got the first paragraph right now, but I need to first find a plug-in that will let me display programming code on wordpress pages, and then I’ll be able to keep working on it. Wish me luck!

2 Comments »