List of youtube parameters to add to youtube embed code

at 11:58 am | blabbing, web.

If you are looking for some special control over a specific Youtube video that you want to link to, you can add these parameters to the end of the youtube URL string to enable or disable functionality.

For instance. You can jump to a specific time in a video by adding the following to the end of the URL string. #t=1m24s

So this Rick Roll video can jump to 1 minute and 24 seconds into the video by changing this URL
http://www.youtube.com/watch?v=dQw4w9WgXcQ
to this
http://www.youtube.com/watch?v=dQw4w9WgXcQ#t=1m24s

Or you could make the video Autoplay by adding this to the end of the URL ?autoplay=1
So that URL for the Rick Roll will now be:
http://www.youtube.com/watch?v=dQw4w9WgXcQ#t=1m24s&autoplay=1
(You can see that i have added an & between parameters.)

So now we have a Rick Roll that will start at 1 minute 24 seconds and autoplay the video.
Here is a link to the list on the Google Youtube API page to get the full list and what each does.

Just added – Want to remove the Youtube branding from the player? add ?modestbranding=1 to the end of the URL.

Highlight admin and author comments in WordPress

May 23, 2011 at 1:18 pm | blabbing.

When you are following a list of comments in a blog post, it can be difficult to pick the comments and responses by the author or admin that can offer much needed fixes, solutions or updates.

If you are looking to make you blog comments easier to scan for you readers, you can easily change the highlighting of comments made by users or the admin by changing the code in your comments.php file. What you need to modify is the <li> or <div> that surrounds each comment in your list. In this example its an <li> tag.

Code for highlighting a comment by any user. Regular comments have a user_id of 0 so anything above that will get a highlight.

<li id="comment-<?php comment_ID() ?>" 
<?php if ($comment->user_id)
      echo "class='NAME OF CSS CLASS'"; 
?> >

Code for highlighting a comment by the admin user. The admin user_id is usually 1 in the user table.

<li id="comment-<?php comment_ID() ?>"  
<?php if (1 == $comment->user_id) 
          echo "class='NAME OF CSS CLASS'";
 ?>>

Some basic highlights to do would be to change the background-color, but you can also add background images to denote super user status like badges or icons.