Archive for November, 2004

iTunes plugin for WordPress

Thursday, November 25th, 2004

WP iTunes
Display what’s currently playing on your iTunes on your blog.
[via Weblog Tools Collection]

Conditional text despite content not being echoed

Monday, November 22nd, 2004

One of the things Christine had asked me to add to pixelog, was, when no “previous” entry was available - to have the text still show up, but be “greyed out”. I remembered a post Alex King had made on the hackers mailing list about capturing the text that some functions typically echo into a variable. What he suggested was to do the following:

<?php
ob_start();
the_title();
$my_title = ob_get_contents();
ob_end_clean();
print($my_title);
?>

This was the trick I needed. Here’s the code I used do the “greyed out” effect. (The issue here, if you don’t know - is that next_post() will simply echo nothing if there is no next post)

<?php
//determine if there is a next post
ob_start();
next_post();
$nextpost = ob_get_contents();
ob_end_clean();
//now print the appropriate link or greyed out text
if ($nextpost) {
next_post(’&laquo; % | ‘,’previous’,'no’);
} else { ?>
<span class=”grey”>&laquo; previous</span> |
<?php } ?>

(Yes I know I’m using the text “previous” with the next_post function… that had to do with her preference of displaying the photos)

External Links Wordpress Plugin

Monday, November 22nd, 2004

You know how some people have those little icons next to their links - and you can do that with CSS auto-magically on all links, but it doesn’t work with IE. Here’s a plugin that will add a class to all links so you can have that little icon show up for IE as well.

External Links Wordpress Plugin
[via del.icio.us]

Update 11/6/05 - link removed, page no longer exists.

Flickr Gallery

Sunday, November 21st, 2004

Flickr Gallery Plugin
[via weblogtoolscollection]

Red Alt - WordPress Index Builder

Sunday, November 21st, 2004

Red Alt - WordPress Index Builder

TodayAgo plugin updated

Wednesday, November 17th, 2004

Pssst.. hey! lots of updates to the TodayAgo plugin.

WordPress Design Sandbox

Friday, November 12th, 2004

WordPress Design Sandbox
If you want to work on a design for your WordPress blog, here’s a static version of the default layout so you can tweak the stylesheet locally. Great idea.
[via WeblogToolsCollection]

Anatomy of a WordPress Theme

Thursday, November 11th, 2004

This link is going around - but I still want to save it for myself…

Anatomy of WordPress theme
A list of templates that you can create for a theme (for WordPress 1.3)

ASP: Look up / translation script

Wednesday, November 10th, 2004

I should create a category called “saved my ass”! This script would fall under it.

I was asked to create a “look up” tool that would sort of “translate” one piece of text to another. The user would enter in the first piece of text, and then they’d be given the “value”. Oh, and this list updates every few months or so.

At first I started looking into creating a database, and writing a script that would update that database - problem was that creating and accessing a database for this project was going to be time consuming and difficult. A server-side script would have been the best solution under the circumstances. A few hours this morning searching around turned up this “dictionary” script.

I’m actually being given the the text and values in excel, so I just need to create a sort of “template” in excel that formats everything so it will look like the code - and then I just copy and paste it all into the ASP file.

So here’s kind of what I have in my file:

SET TextToNumber=CreateObject(”Scripting.Dictionary”)
TextToNumber.Add “name”, “292949″
TextToNumber.Add “date”, “123414″
etc. etc…

Then my form looks like this:

<form name=”textlookup” action=”lookup.asp” method=”post”>
Text: <input type=”text” name=”text” value=”" /><br>
<input type=”submit” name=”submit” value=”Look Up Text Number” /></form>
Text: <% Response.Write(Request.Form(”text”)) %><br>
Number: <%
TextValue=Request.Form(”text”)
NumberValue=TextToNumber(TextValue)
Response.Write(NumberValue)
%>

IPod envy

Saturday, November 6th, 2004

Breaking the standard format here to do some good ol’ fashion begging…

After hearing that this offer was legit - and Christine DID in fact get her free ipod, I figured I’d give it a try too. So, here’s my pathetic plea: Please click here and help me get a free ipod. Pretty please with sugah on top! :D [link removed because the more this goes on - the more this stinks of SCAM!!!!!!]

Updated afterwards: Just so you know, you’ll have to sign up and act on one of their offers. I think the two most interesting ones are for the ink and Blockbuster. I did Blockbuster. You only have to stay a “member” for the two week (free) trial period, and then you can cancel and it still counts. So, you get to watch (at least) three movies for free… Seeing how I have tons of time to watch movies (not) I’ll probably cancel after those two weeks are up.

Thanks everyone who’ve signed up so far!! :D

UPDATEI just posted this in the comments, but wanted to add it to the post as well…Well if you’d like to know the catch it’s this: I have had PLENTY of people sign up, however, only 3 are marked as having completed the offer. Some of these people I know for a FACT have actually completed the offer, yet they haven’t updated the accounts. I contacted their customer service, and I got an automated response back. Stinks of SCAM to me…