<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>WordPress DK Forum Topic: Seneste kommentarer</title>
		<link>http://wp-danmark.dk/forum/topic/seneste-kommentarer</link>
		<description>WordPress DK Forum Topic: Seneste kommentarer</description>
		<language>da-DK</language>
		<pubDate>Sat, 15 Aug 2026 22:27:46 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Søg]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://wp-danmark.dk/forum/search.php</link>
		</textInput>
		<atom:link href="http://wp-danmark.dk/forum/rss/topic/seneste-kommentarer" rel="self" type="application/rss+xml" />

		<item>
			<title>Martinb om "Seneste kommentarer"</title>
			<link>http://wp-danmark.dk/forum/topic/seneste-kommentarer#post-10985</link>
			<pubDate>fre, 19 jun 2009 12:46:48 +0000</pubDate>
			<dc:creator>Martinb</dc:creator>
			<guid isPermaLink="false">10985@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Tak Anders!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anders Saugstrup om "Seneste kommentarer"</title>
			<link>http://wp-danmark.dk/forum/topic/seneste-kommentarer#post-10984</link>
			<pubDate>fre, 19 jun 2009 12:36:08 +0000</pubDate>
			<dc:creator>Anders Saugstrup</dc:creator>
			<guid isPermaLink="false">10984@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Hej Martin&#60;/p&#62;
&#60;p&#62;Her har du et plugin der kan konfigureres til hvad som helst næsten: &#60;a href=&#34;http://wordpress.org/extend/plugins/get-recent-comments/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/get-recent-comments/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Mvh Anders Saugstrup
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Martinb om "Seneste kommentarer"</title>
			<link>http://wp-danmark.dk/forum/topic/seneste-kommentarer#post-10983</link>
			<pubDate>fre, 19 jun 2009 12:14:56 +0000</pubDate>
			<dc:creator>Martinb</dc:creator>
			<guid isPermaLink="false">10983@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Jeg vil gerne vise en liste over seneste kommentarer i min sidebar der ser ud ligesom fx. listen over kategorier her: &#60;a href=&#34;http://www.six7eight.dk&#34; rel=&#34;nofollow&#34;&#62;http://www.six7eight.dk&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Jeg har før brugt denne kode:&#60;br /&#62;
&#60;code&#62;&#38;lt;?php&#60;br /&#62;
    global $wpdb;&#60;/p&#62;
&#60;p&#62;    $sql = &#38;quot;SELECT DISTINCT ID, post_title, post_password, comment_ID,&#60;br /&#62;
    comment_post_ID, comment_author, comment_date_gmt, comment_approved,&#60;br /&#62;
    comment_type,comment_author_url,&#60;br /&#62;
    SUBSTRING(comment_content,1,30) AS com_excerpt&#60;br /&#62;
    FROM $wpdb-&#38;gt;comments&#60;br /&#62;
    LEFT OUTER JOIN $wpdb-&#38;gt;posts ON ($wpdb-&#38;gt;comments.comment_post_ID =&#60;br /&#62;
    $wpdb-&#38;gt;posts.ID)&#60;br /&#62;
    WHERE comment_approved = '1' AND comment_type = '' AND&#60;br /&#62;
    post_password = ''&#60;br /&#62;
    ORDER BY comment_date_gmt DESC&#60;br /&#62;
    LIMIT 10&#38;quot;;&#60;br /&#62;
    $comments = $wpdb-&#38;gt;get_results($sql);&#60;/p&#62;
&#60;p&#62;    $output = $pre_HTML;&#60;br /&#62;
    $output .= &#38;quot;\n
&#60;ul&#62;&#38;quot;;&#60;br /&#62;
    foreach ($comments as $comment) {&#60;/p&#62;
&#60;p&#62;    $output .= &#38;quot;\n
&#60;li&#62;&#38;quot;.strip_tags($comment-&#38;gt;comment_author)&#60;br /&#62;
    .&#38;quot;:&#38;quot; . &#38;quot;&#60;a href=&#34;\&#38;quot;&#38;quot;&#34;&#62;ID) .&#60;br /&#62;
    &#38;quot;#comment-&#38;quot; . $comment-&#38;gt;comment_ID . &#38;quot;\&#38;quot; title=\&#38;quot;on &#38;quot; .&#60;br /&#62;
    $comment-&#38;gt;post_title . &#38;quot;\&#38;quot;&#38;gt;&#38;quot; . strip_tags($comment-&#38;gt;com_excerpt)&#60;br /&#62;
    .&#38;quot;&#60;/a&#62;&#60;/li&#62;
&#38;quot;;&#60;/p&#62;
&#60;p&#62;    }&#60;br /&#62;
    $output .= &#38;quot;\n&#60;/ul&#62;
&#38;quot;;&#60;br /&#62;
    $output .= $post_HTML;&#60;/p&#62;
&#60;p&#62;    echo $output;?&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Men den fucker designet voldsomt op i IE. Det ser dog fint ud i FF.&#60;/p&#62;
&#60;p&#62;Er der nogen plugins eller kode der kan virke i både IE og FF og som bare viser kommentarene i en liste, og altså ikke på samme måde som den medfølgende 'recent comments' widget.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
