» deutsch deutsch

Complete Blogroll

Other blogs I’m reading and that I can recommend – for space reasons, not all are shown in the sidebar, but here instead:

2 Comments
3 Trackbacks

  1. Sagemal, wie erstellst du diese Seite inkl. der Screenshots? Von Hand oder mit einem Plugin?

    • Von Hand automatisch. :) Eine Anmeldung bei Websnapr.com für die Screenshots und ein bisschen PHP:

      function ag_one_complete_blogroll ($catid, $headline) {
      	global $wpdb;
      	$links = $wpdb->get_results(
      	   "SELECT link_url, link_name, link_description, link_id
      		FROM $wpdb->links, $wpdb->term_relationships, $wpdb->term_taxonomy
      		WHERE object_id = link_id
      			AND $wpdb->term_taxonomy.term_id = $catid
      			AND $wpdb->term_taxonomy.term_taxonomy_id = $wpdb->term_relationships.term_taxonomy_id
      			AND link_visible = 'Y'
      		ORDER BY link_name ASC");
      	if ($links) {
      		echo '<h4>' . apply_filters('link_category', $headline ) . " <small>(".count($links).")</small></h4>\n\t".
      			"<ul class=\"full-blogroll-t\">\n";
      		foreach ($links as $link) {
      			echo '<li>'.
      			'<a href="'.$link->link_url.'" title="'.$link->link_description.'" class="noicon">'.
      			'<img src="http://images.websnapr.com/?size=T&key=[API-Key]&url='.$link->link_url.'" width="90" heigh="70" alt=" " />'.
      			' <br/>'.$link->link_name.'</a></li>'."\n";
      		}
      		echo "</ul>\n<div style=\"clear:both;\"> </div>\n";
      	}
      }
      

      Und das nötige CSS dazu, zwecks float und so.

Leave a Reply

All inputs are optional. The e-mail address won't be published nor shared.

  • Moderation: Comments from first-time commentators must be approved manually before they appear.
  • Behave yourself! No insults, no illegal content, etc.! Should go without saying, don't you agree...?
  • Website: I don't mind blogs with ads, but purely commercial links are not welcome and will be deleted. Just like pure spam comments.
  • E-mail notification on new comments: You will have to activate this function once with a link in an automatically sent confirmation mail. These notifications can be disabled again with the link in every mail, of course.
  • Twitter: If you got a Twitter account, you can enter your Twitter name (with or without the @, doesn't matter) which will then be displayed next to any comment (including old ones) that contain the same e-mail address. (Which also means that you must fill in that e-mail field.)
  • Your own image (avatar)? Register at Gravatar.com with your e-mail address and upload an image – this will appear here and on many other blogs (as long as you specify your e-mail address here, of course).
  • Allowed HTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <sub> <sup> <big> <small> <u>