Server:Server Status

My Teeth, in Images

So I went to the dentist and found out I need a million fillings and possibly a root canal. Since I posted my MRI Pics, I think it's appropriate to post my X-Rays, dontcha think?

Surfrock66's Teeth

OMFG The dark spots are like tooth AIDS.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

MMA Spot “Ultimate Fight Night 20” Staff Predictions

Monday evening's "Ultimate Fight Night 20" marks the first full live event that will be held on Spike TV in 2010. For the first time in the promotions history there will be a fight card on Monday; traditionally Fight Nights take place on Wednesdays. The event begins at 9 p.m. ET from Fairfax, Virgina.

read more...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Surfrock66’s Weekly Tweets for 2010-01-10

  • I found a business card reading "the wages of sin is death" in red letters on my fridge with bible verses on the back...we don't know how... #
  • ...or when it got there, to be honest it's freaking us out, what sane person does that? If you want to convert us say domething, don't... #
  • ...subtly hide a card with bright red "death" in my house, that's a fucking threat. You just christian jihaded me, you sicko. #
  • http://twitpic.com/wkzu8 - This is xactly how I found it; I know it's life upsidedown, but tha t's what I saw. #
  • To be clear, my outrage is not at the religious message, but the invasion of privacy that is the tactic used. It's completely inappropriate. #
  • I realized I post a lot of negative stuff; I'm not that negative. For example, I love @BoylanHeights...it's top 3 burger I've ever had. #
  • Going to the dentist, hope I get some Joe after the dentist, "is this real life?" #
  • RT @cnnbrk: Power restored at Reagan National Airport #
  • RT @MMAspot: Dana White Discusses His Thoughts On Drug Testing http://tinyurl.com/ykaddhg #
  • Rygel just sharted on me. He's in my lap, he farts, it stinks, he runs off it's so bad...there's a huge brown streak across my pants. #
  • EXTREMELY psyched for Mellow Mushroom for lunch...pizza Wednesdays is my best invention ever. Buffalo Chicken today. #
  • You know you're OCD when you make a spreadsheet to track and average the ratings for #pizzawednesday. Buffalo Chicken got a 8.4, highest yet #
  • My Ford stock hasn't been this high since March 2005. Incredible decision to buy it. #
  • Man, fillings hurt a lot. I think it's because they're temporary IRM fillings. I need a pain pill like it's going out of style. #
  • Dethklok - Bloodlines may be the perfect song. You should all listen to it. http://www.youtube.com/watch?v=i_Q-xDeTVFw #
  • Charlottesville Peeps: Trivia Night at Rapture at Downtown Mall @ 8 tonight, Jenn @sdbarbiedoll and I are going, anyone wanna go? #
  • "You may as well just paint yourself yellow, run around like a maniac and call yourself banana man." #
  • http://twitpic.com/x4rzh - There's sn official shaman with a store at the downtown mall. Win. #
  • Our trivia team name is "Wally the one eyed weaseal and his two balls" PLEASE someone get that reference! #
  • When you put "cheese" for 6 answers one round, you know you're not doing well at trivia. I won a free beer last round though. #
  • One team is named "north american baby shaking team." oh god so much win. Or fail. Or both. #
  • (via @MMASpot )
    Ken Shamrock vs. Seth Petruzelli for IUF Championship
    http://trunc.it/4gcz4 #
  • Why you should use OpenGL and not DirectX: http://digg.com/d31F1LX?t #
  • Just watched SLC Punk, not sure if I was ready for the heaviness tonite. Matt Lillard @ the end man, knocks you on your ass. Heroin Bob man. #
  • Something is extremely wrong with one of my fillings; I'm in 8/10 pain and about to go to the ER. #
  • "blue" raises no awareness, "I'm wearing a blue bra; I'm letting you know in support of breast cancer research" does. #

Powered by Twitter Tools

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Ken Shamrock vs. Seth Petruzelli For IUF Championship

UFC Hall of Fame fighter Ken "The World's Most Dangerous Man" Shamrock is set to make his MMA return March 6 against Seth "The Silverback" Petruzelli at "International Unlimited Fighting: The Return of BULUC" in Cancun, Mexico. The fight will be a five-round battle for the organization's light heavyweight belt.

read more...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Dynamic Menus in WordPress as a CMS

I've been developing a site where I'm using wordpress as a CMS more than a blog, for many reasons. I'm very familiar with it, I like the automated SEO, I think it's simple to use, etc. But one big challenge is the menu navigation and how to set it up. I want this to be automated and I don't want to have to edit the menu every time there's a new page.

To clarify the terms, there's a menu with "solutions" then "products" with 3 sub categories "indoor" "outdoor" and "media players." Plus there's a "guides" area and a "blog" area.

The menu system is handled by the category management. If a page is made that goes into the menu, you simply tag it with the category where it should go. You can click the main header of the menu to go to a page with all the posts in the category. Then you hover over the header of the menu, and I want a dropdown menu with a list of posts in there. I want to limit this to a certain number of posts, then have a button for "more" at the bottom. You can see an example here.

Let's take a look at the code at the start of my menu. This basically encapsulates the markup for the menu, and for the first dropdown. I have this in a separate "nav_menu.php" file but it could go in your header as well.

   <div id="nav_menu">
   <ul id="main-nav">
    <li id="solutions-nav" class="singlelevel"><a href="./?cat=9&amp;feature=solutions">Solutions For...</a>
     <div class="subnav">
      <ul>
        <?php query_posts('cat=9&posts_per_page=10&orderby=title&order=ASC'); ?>
       <?php while (have_posts()) : the_post(); ?>
        <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
       <?php endwhile; ?>
       <li><a href="./?cat=9">More...</a></li>
      </ul>
     </div>
    </li>

So, take a look at the php code there. First of all, important to note, this disrupts the wordpress loop so we'll need to fix it a little bit later. First, it does a post query limiting the list to one category (you can search by "category_name" but I'm a fan of the Id's) and then setting a limit to how many to pull; I chose 5 by default. Then, there's a while loop that pulls some data from each post and formats it into a listed menu entry. After the while loop closes, I throw out the "more" button which queries the whole category for posts.

If you do just that, every time you try to list posts you'll pull a list of every post you've got and it will supremely annoy you. You need to reset your post query to be able to limit it to the page at hand. At the bottom of my theme's "header.php" file, right before the posts would get displayed by "index.php," I added the following php line:

<php query_posts('cat='.@$_GET['cat'].'&p='.@$_GET['p']); ?>

This will pull the post list based on the categories selected or the specific post listed; all of my links and navigation are handled through those 2 "GET" variables so it will limit the posts queried to anything selected. Make sure to put the @ before $_GET to suppress any errors the get command gets, for example, if there's nothing passed.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -