November 1st, 2003


Here's a snippet for anyone who wants it

Hey all. I've been playing with S2 and component for a week or so now (the tutorials here and over at s2component were a HUGE help). I've had to write a little snippet for myself, and thought someone might be able to use it. I wanted a component that was a list of communities that I frequent. I add and remove communities from this list fairly regularly, and the thought of rewriting all those href tags to get the links to work just like <lj . . .> tags do didn't sound like much fun.

So, I wrote a simple loop function to do it, which reads the community names from an array. To add or remove a community from the list, just change the array definition at the top.

Collapse )
  • Current Music
    Brother Ali -When The Beat Comes In