Licensed under the GPL Version: 2.0 Author: Kates Gasis Author URI: http://katesgasis.com */ /****** EDIT THIS FIRST *********/ $cat_to_hide = 1; /********************************/ function sideblog_where($query) { global $cat_to_hide; $now = current_time('mysql'); if(is_home()){ return $query . ' AND category_id <> ' . $cat_to_hide . ' '; } return $query; } add_filter('posts_where','sideblog_where',10); function sideblog_join($query) { global $wpdb; if(is_home()){ $newquery = $query . " LEFT JOIN $wpdb->post2cat ON ($wpdb->posts.ID = $wpdb->post2cat.post_id) "; return $newquery; } return $query; } add_filter('posts_join','sideblog_join',10); function sideblog($params="title=no&permalinks=no&limit=1") { global $wpdb, $cat_to_hide; $cat_to_show = $cat_to_hide; $title = ""; $permalinks = ""; $limit = "1"; $side_blog_queries = explode("&", $params); foreach($side_blog_queries as $side_blog_query){ $attributes = explode("=", $side_blog_query); $name = strtolower($attributes[0]); $value = strtolower($attributes[1]); switch($name){ case "title": $title = $value; break; case "permalinks": $permalinks = $value; break; case "limit": $value=(int) $value; if($value <> 0 && !empty($value) && !is_null($value)){ $limit=$value; } break; } } $now = current_time('mysql'); $side_blog_contents = $wpdb->get_results("SELECT $wpdb->posts.ID, $wpdb->posts.post_title, $wpdb->posts.post_content FROM $wpdb->posts, $wpdb->post2cat WHERE $wpdb->posts.ID = $wpdb->post2cat.post_id AND $wpdb->post2cat.category_id=" . $cat_to_show . " AND $wpdb->posts.post_status='publish' AND $wpdb->posts.post_password='' AND $wpdb->posts.post_date < '" . $now . "' ORDER BY $wpdb->posts.post_date DESC LIMIT " . $limit); foreach($side_blog_contents as $side_blog_content) { $side_blog_output = "
  • "; if($title == "true"){ $side_blog_output .= "
    $side_blog_content->post_title
    \n";} $side_blog_output .= "
    $side_blog_content->post_content\n"; if($permalinks == "true"){ $side_blog_output = "$side_blog_output - ID) . "\" title=\"Permalink to $side_blog_content->post_title\">#\n";} $side_blog_output .= "
  • \n"; echo $side_blog_output; } } ?> Ravedigital | DJ, Turntables, Raves, EDM, Reviews » Blog Archive » Myspace Turntable Layout

    Myspace Turntable Layout

    September 6th, 2006

    We have created a Myspace Turntable Layout.

    To use, all you need to do is copy and paste the text and paste it into your “About Me” section when editting your profile.

    The images are hosted by ravedigital.com, so they are not as high quality, but you can also download the files with all the images and files so you can upload it to your own web server. If you want cheap web hosting, I recommend Globat.

    Copy and paste the code to your “About Me” section on your Myspace Profile.

    Download images and instructions (if you have your own web hosting) here:
    ravedigital_turntable_layout.zip

    [tag]myspace, turntable, layout[/tag]

    3 Responses to “Myspace Turntable Layout”

    1. DJ XTme Says:

      nice site…i design sites and spin too…common interests are always good…

    2. DJ XTme Says:

      forgot to ask if you know any sites to get decent records, i live in pittsburgh, came from tampa and there’s no place to get em around here. thanks…

    3. dj joey d Says:

      Excelent site, awesome dj layout!…keep it up!

      Dj Joey D , Puerto Rico

    Leave a Reply

    You must be logged in to post a comment.