weather
apartment
archives:
dynamic progress bar images
7 comment(s)
technology
02May, 2006
Tuesday
04:18PM ET

as some of you may have guessed by now, my day job does not (sadly) consist of knitting. by day, i'm a web coder/programmer for a large media/entertainment company in midtown manhattan. i basically spend all day sitting in front of a computer making websites or going to meetings and making decisions on how those websites are designed and should perform. it's a rewarding job and at the end of my day i have a website i can point to and say "i built that." i've recently hit a very tiny amount of downtime at work so i'm spending my days learning ruby (and ruby on rails) and conjuring up all types of code for gleek.net and for my friends' sites. it's the kind of downtime i really enjoy because i feel like i'm really accomplishing something instead of sitting around and staring at the walls (which is equally nice every once in a while but not every day for two weeks..)

recently, i became really annoyed with something.. you see, i have this great piece of software installed on firefox called adblock. it stops all of those annoying flash ads and image ads from showing up on websites. really, it's quite fantastic and i highly recommend installing it. it takes a bit of time to customize it but after a while, you don't notice the blank spaces on websites where ads are supposed to be. brilliant!

i digress..

anyway, so adblock puts these little tabs on top of flash files on sites so that you can easily *click* and hide away the pesky little things. the tabs, though, are annoying when they're applied to totally legitimate flash elements of a page. where i notice them the most is on knitblogs that use that handy little progress bar for keeping readers up-to-date on the status of a project (40% done, 60%, 100% etc.) what knitbloggers may not know is that not all browsers come with flash, especially if people are using their sidekick or mobile device to access your site, so they don't see them. that gave me an idea! "i'll use PHP to dynamically create progress bar images!"

and here you have it:

GLEEK.NET DYNAMIC PROGRESS BAR IMAGE v1.0

here are a few examples:

progress image

progress image

progress image

if you host your own blog or have the ability to upload files to your blog, this will probably work for you. your blog must be hosted on a server that runs PHP and has the GD library installed. i've included a test file in this zip that you can upload and find out if your server is capable or not. as for the progress bar itself, you can specify the colors (background, bar color, and text color) but the image size is set to 120 pixels wide by 20 pixels tall. all the information that you'll need to use this is in the README file.

i'm using the progress bars on my projects in progress [backpack] page ETA: i am currently not using these anywhere on the website except here on this entry since i became such a ravelry addict. if you want to take a look! i love them, of course. the outputted GIF file is much easier to manipulate than an SWF file. i can apply styles to it (put a border around the bar) and/or link it to another page because it's just an image!

download and enjoy! if you use it, please link to me and tell people where you got it. it's not necessary but it's the only credit i get for doing things like this :)

###

comments     total of 7 comments. jump to comment form


#1

 posted by Skylar

02May, 2006
Tuesday
05:31PM ET

You are a goddess in my book. I have NO IDEA what you are blogging about, yet I am incredibly impressed. I envy your programming skills.

#2

 posted by Cyndi

02May, 2006
Tuesday
06:09PM ET

Sweet! I'm in the process of migrating my blog from Blogger, and will definitely have to figure out a way to use those neat-o progress bars. :-) Thanks!

#3

 posted by Wanett

02May, 2006
Tuesday
09:02PM ET

I second that while having no clue what those acronyms mean but I am still really impressed. I'm still having trouble having my buttons link to the sites they're from. So it's safe to say that it will be a while before I have use for your lovely progress bars. = )

#4

 posted by colleen

03May, 2006
Wednesday
07:01AM ET

Wahhh, wah, wahh, wah (ala the adults in Charlie Brown). Actually, you did a good job explaining it, I'm sure that I couldn't do what you're explaining, but I almost understand it.

#5

 posted by iraida

03May, 2006
Wednesday
08:34AM ET

Awesome. I hope I can use these with typepad. I've been thinking about getting my own domain. Dunno yet. Goooo sidekick! Now I can be nosey and look at progress bars. *runs to Steph's backpack*

#6

 posted by Iraida

03May, 2006
Wednesday
06:13PM ET

OK me again. Stupid typepad doesn't do php. I'm really thinking about gettign my own domain. Which one would you suggest for blogging?

#7

 posted by DAD

11Jun, 2006
Sunday
06:12AM ET

It's probably not a good idea to tell people I'm a Lions fan.
People will question your DNA.
Dad