<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: Comment Layout</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sat, 18 May 2013 10:52:27 +0000</pubDate>

<item>
<title>nono_kaki on "Comment Layout"</title>
<link>http://themeshaper.com/forums/topic/comment-layout#post-18421</link>
<pubDate>Mon, 17 Jan 2011 10:21:46 +0000</pubDate>
<dc:creator>nono_kaki</dc:creator>
<guid isPermaLink="false">18421@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;@helgatheviking&#60;br /&#62;
Thanks for the suggestion. :D
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Comment Layout"</title>
<link>http://themeshaper.com/forums/topic/comment-layout#post-18406</link>
<pubDate>Sun, 16 Jan 2011 16:18:25 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">18406@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;nono_kaki, nice to meet you too.  please create your own thread with your specific question (which is different from the original question of this thread)- you will probably get a better response.
&#60;/p&#62;</description>
</item>
<item>
<title>nono_kaki on "Comment Layout"</title>
<link>http://themeshaper.com/forums/topic/comment-layout#post-18404</link>
<pubDate>Sun, 16 Jan 2011 16:10:19 +0000</pubDate>
<dc:creator>nono_kaki</dc:creator>
<guid isPermaLink="false">18404@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi all,&#60;br /&#62;
I'm from Indonesia, nice to meet you all.&#60;/p&#62;
&#60;p&#62;I wanna add the &#60;em&#62;target attribute&#60;/em&#62; on function thematic_commenter_link() but I don't know how to.&#60;/p&#62;
&#60;p&#62;Anyone please help me??&#60;/p&#62;
&#60;p&#62;Sorry for my bad english&#60;/p&#62;
&#60;p&#62;Thanks before
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Comment Layout"</title>
<link>http://themeshaper.com/forums/topic/comment-layout#post-18278</link>
<pubDate>Wed, 12 Jan 2011 14:03:18 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">18278@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;pritee- i think you should have started a new topic.  yeah it is comments related, but it is a different question than the OP.  also maybe i am just grumpy this morning, but all the &#34;please help&#34; posts get on my nerves.  obviously you want help or you wouldn't have posted.  the forum will get to you in its own time and so pleading for assistance doesn't get you help any sooner.    &#60;/p&#62;
&#60;p&#62;anyway, digging into the extensions folder...  please take a look around. that is where you will learn how thematic is working!!  there is a comments-extensions.php and i think that is what we're after, b/c inside that is a function that builds the comment form you are wanting to edit.  &#60;/p&#62;
&#60;p&#62;the function is called thematic_comment_form_args.&#60;/p&#62;
&#60;p&#62;and it has a variable called $fields that is an array of the current form fields!  perfect, that tells me we need to set up a filter to modify that variable.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function add_city_to_comment_form($fields){

  $fields[&#38;#39;city&#38;#39;] = &#38;#39;&#38;lt;div id=&#38;quot;form-section-url&#38;quot; class=&#38;quot;form-section&#38;quot;&#38;gt;&#38;lt;div class=&#38;quot;form-label&#38;quot;&#38;gt;&#38;lt;label for=&#38;quot;url&#38;quot;&#38;gt;&#38;#39; . __( &#38;#39;City&#38;#39;, &#38;#39;thematic&#38;#39; ) . &#38;#39;&#38;lt;/label&#38;gt;&#38;lt;/div&#38;gt;&#38;#39; . &#38;#39;&#38;lt;div class=&#38;quot;form-input&#38;quot;&#38;gt;&#38;lt;input id=&#38;quot;url&#38;quot; name=&#38;quot;city&#38;quot; type=&#38;quot;text&#38;quot; value=&#38;quot;&#38;#39; . esc_attr( $commenter[&#38;#39;comment_author_city&#38;#39;] ) . &#38;#39;&#38;quot; size=&#38;quot;30&#38;quot; maxlength=&#38;quot;50&#38;quot; tabindex=&#38;quot;5&#38;quot; /&#38;gt;&#38;lt;/div&#38;gt;&#38;lt;/div&#38;gt;&#38;lt;!-- #form-section-url .form-section --&#38;gt;&#38;#39;,

  return $fields;

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;add_filter('thematic_comment_form_args','add_city_to_comment_form');&#60;/p&#62;
&#60;p&#62;i haven't tested anything so your mileage may vary.  i can already see that $commenter['comment_author_city'] is never going to have a value b/c it won't exist in the $commenter variable of the original function.. which is defined by the wordpress function: wp_get_current_commenter and only has name, email and url.  i suppose you could filter this somehow?  i'm not sure.  i also don't know how this info is saved so i don't know how you will use that info later on in the comments.  &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/wp_get_current_commenter&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/wp_get_current_commenter&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;basically i hate the comments.  it is my least favorite thing to deal w/ in WP b/c it is by far the most difficult.
&#60;/p&#62;</description>
</item>
<item>
<title>pritee on "Comment Layout"</title>
<link>http://themeshaper.com/forums/topic/comment-layout#post-18272</link>
<pubDate>Wed, 12 Jan 2011 07:36:32 +0000</pubDate>
<dc:creator>pritee</dc:creator>
<guid isPermaLink="false">18272@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi I am using thematic theam for my blog and i want to add new field in post a comment form which is now coming out this way (see below) I just wanted to add new fields like city or country how can i do this please help...&#60;br /&#62;
-------------------------------&#60;br /&#62;
Name *&#60;/p&#62;
&#60;p&#62;Email *&#60;/p&#62;
&#60;p&#62;Website&#60;/p&#62;
&#60;p&#62;Comment&#60;br /&#62;
--------------------------
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Comment Layout"</title>
<link>http://themeshaper.com/forums/topic/comment-layout#post-17041</link>
<pubDate>Tue, 16 Nov 2010 15:16:14 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">17041@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;check out this: &#60;a href=&#34;http://themeshaper.com/wordpress-theme-comments-template-tutorial/&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/wordpress-theme-comments-template-tutorial/&#60;/a&#62;&#60;br /&#62;
it is admittedly a little confusing (ok a lot confusing) ,however, so i can't guarantee it will actually help.  &#60;/p&#62;
&#60;p&#62;i don't know if this will help either, but i did some pretty modifications of the comments:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://theplagueround.com/dev/blog/2008/12/01/testing-the-theme-elements/#comments&#34; rel=&#34;nofollow&#34;&#62;http://theplagueround.com/dev/blog/2008/12/01/testing-the-theme-elements/#comments&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;here is all the code i used:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

/*
 * Comments
 */

// Changes the standard text &#38;#39;Post a Comment&#38;#39;
function childtheme_postcomment_text() {

    $content = __(&#38;#39;Leave a Comment&#38;#39;, &#38;#39;thematic&#38;#39;);
    return $content ;
}
add_filter(&#38;#39;thematic_postcomment_text&#38;#39;,&#38;#39;childtheme_postcomment_text&#38;#39;);

// Custom callback to list comments in my style
function child_comments($comment, $args, $depth) {
    $GLOBALS[&#38;#39;comment&#38;#39;] = $comment;
	$GLOBALS[&#38;#39;comment_depth&#38;#39;] = $depth;

    ?&#38;gt;
    	&#38;lt;li id=&#38;quot;comment-&#38;lt;?php comment_ID() ?&#38;gt;&#38;quot; class=&#38;quot;&#38;lt;?php thematic_comment_class() ?&#38;gt;&#38;quot;&#38;gt;
    		&#38;lt;?php thematic_abovecomment() ?&#38;gt;

    		&#38;lt;?php thematic_commentmeta(TRUE); ?&#38;gt;
    &#38;lt;?php if ($comment-&#38;gt;comment_approved == &#38;#39;0&#38;#39;) _e(&#38;quot;\t\t\t\t\t&#38;lt;span class=&#38;#39;unapproved&#38;#39;&#38;gt;Your comment is awaiting moderation.&#38;lt;/span&#38;gt;\n&#38;quot;, &#38;#39;thematic&#38;#39;) ?&#38;gt;
            &#38;lt;div class=&#38;quot;comment-content&#38;quot;&#38;gt;
			&#38;lt;span class=&#38;quot;speech-bubble&#38;quot;&#38;gt;&#38;lt;/span&#38;gt;
        		&#38;lt;?php comment_text() ?&#38;gt;
    		&#38;lt;/div&#38;gt;
			&#38;lt;?php // echo the comment reply link with help from Justin Tadlock &#60;a href=&#34;http://justintadlock.com/&#34; rel=&#34;nofollow&#34;&#62;http://justintadlock.com/&#60;/a&#62; and Will Norris &#60;a href=&#34;http://willnorris.com/&#34; rel=&#34;nofollow&#34;&#62;http://willnorris.com/&#60;/a&#62;
				if($args[&#38;#39;type&#38;#39;] == &#38;#39;all&#38;#39; &#124;&#124; get_comment_type() == &#38;#39;comment&#38;#39;) :
					comment_reply_link(array_merge($args, array(
						&#38;#39;reply_text&#38;#39; =&#38;gt; __(&#38;#39;Reply&#38;#39;,&#38;#39;thematic&#38;#39;),
						&#38;#39;login_text&#38;#39; =&#38;gt; __(&#38;#39;Log in to reply.&#38;#39;,&#38;#39;thematic&#38;#39;),
						&#38;#39;depth&#38;#39; =&#38;gt; $depth,
						&#38;#39;before&#38;#39; =&#38;gt; &#38;#39;&#38;lt;div class=&#38;quot;comment-reply-link&#38;quot;&#38;gt;&#38;#39;,
						&#38;#39;after&#38;#39; =&#38;gt; &#38;#39;&#38;lt;/div&#38;gt;&#38;#39;
					)));
				endif;
			?&#38;gt;
			&#38;lt;?php thematic_belowcomment() ?&#38;gt;
&#38;lt;?php }

	// Creates comment meta
	function childtheme_override_commentmeta($print = TRUE) {
	global $comment_count;
		$content = &#38;#39;&#38;lt;div class=&#38;quot;comment-meta&#38;quot;&#38;gt;&#38;#39; . sprintf( __(&#38;#39; %1$s on &#38;lt;a href=&#38;quot;%2$s&#38;quot; title=&#38;quot;Permalink to this comment&#38;quot;&#38;gt;%3$s at %4$s&#38;lt;/a&#38;gt;&#38;#39;, &#38;#39;thematic&#38;#39; ),
					child_commenter_link(),
					&#38;#39;#comment-&#38;#39; . get_comment_ID(),
					get_comment_date(),
					get_comment_time() );

		if ( get_edit_comment_link() ) {
			$content .=	sprintf(&#38;#39; &#38;lt;span class=&#38;quot;meta-sep&#38;quot;&#38;gt;&#124;&#38;lt;/span&#38;gt;&#38;lt;span class=&#38;quot;edit-link&#38;quot;&#38;gt; &#38;lt;a class=&#38;quot;comment-edit-link&#38;quot; href=&#38;quot;%1$s&#38;quot; title=&#38;quot;%2$s&#38;quot;&#38;gt;%3$s&#38;lt;/a&#38;gt;&#38;lt;/span&#38;gt;&#38;#39;,
						get_edit_comment_link(),
						__( &#38;#39;Edit comment&#38;#39; ),
						__( &#38;#39;Edit&#38;#39;, &#38;#39;thematic&#38;#39; ) );
			}

		$content .= &#38;#39;&#38;lt;/div&#38;gt;&#38;#39; . &#38;quot;\n&#38;quot;;

		return $print ? print(apply_filters(&#38;#39;thematic_commentmeta&#38;#39;, $content)) : apply_filters(&#38;#39;thematic_commentmeta&#38;#39;, $content);

	} // end thematic_commentmeta

	// Produces a link for comment author without avatar
function child_commenter_link() {
	$commenter = get_comment_author_link();
	if ( ereg( &#38;#39;&#38;lt;a[^&#38;gt;]* class=[^&#38;gt;]+&#38;gt;&#38;#39;, $commenter ) ) {
		$commenter = ereg_replace( &#38;#39;(&#38;lt;a[^&#38;gt;]* class=[\&#38;#39;&#38;quot;]?)&#38;#39;, &#38;#39;\\1url &#38;#39; , $commenter );
	} else {
		$commenter = ereg_replace( &#38;#39;(&#38;lt;a )/&#38;#39;, &#38;#39;\\1class=&#38;quot;url &#38;quot;&#38;#39; , $commenter );
	}

	return &#38;#39; &#38;lt;span class=&#38;quot;fn n&#38;quot;&#38;gt;&#38;#39; . $commenter . &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
} // end thematic_commenter_link

function my_callback() {
    $content = array (&#38;#39;type&#38;#39; =&#38;gt; &#38;#39;comment&#38;#39;,
						&#38;#39;callback&#38;#39; =&#38;gt; &#38;#39;child_comments&#38;#39;);
    return $content;
}

add_filter(&#38;#39;list_comments_arg&#38;#39;, &#38;#39;my_callback&#38;#39;);

function child_commentbox_text() {
	$content = __(&#38;#39;&#38;#39;, &#38;#39;thematic&#38;#39;);
	return $content;
}
add_filter(&#38;#39;thematic_commentbox_text&#38;#39;,&#38;#39;child_commentbox_text&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>Chris on "Comment Layout"</title>
<link>http://themeshaper.com/forums/topic/comment-layout#post-16978</link>
<pubDate>Sun, 14 Nov 2010 22:32:58 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">16978@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;What do you need?&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>iCristiano on "Comment Layout"</title>
<link>http://themeshaper.com/forums/topic/comment-layout#post-16966</link>
<pubDate>Sat, 13 Nov 2010 17:07:43 +0000</pubDate>
<dc:creator>iCristiano</dc:creator>
<guid isPermaLink="false">16966@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I underestand that the Thematic comments functions can´t be easly filtered or hookered like others... the principal one, the one that makes the comment layout thematic_comments() don´t have a filter option...&#60;/p&#62;
&#60;p&#62;So, the solution is to create a whole new comments zone, by comments.php right?
&#60;/p&#62;</description>
</item>
<item>
<title>vijayrajesh on "Comment Layout"</title>
<link>http://themeshaper.com/forums/topic/comment-layout#post-11182</link>
<pubDate>Sun, 04 Apr 2010 17:37:22 +0000</pubDate>
<dc:creator>vijayrajesh</dc:creator>
<guid isPermaLink="false">11182@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;OMG, no replies for 10 months?&#60;/p&#62;
&#60;p&#62;hmm, i have similar question.  Any one there to reply please?
&#60;/p&#62;</description>
</item>
<item>
<title>mr.macian on "Comment Layout"</title>
<link>http://themeshaper.com/forums/topic/comment-layout#post-4220</link>
<pubDate>Mon, 01 Jun 2009 23:32:06 +0000</pubDate>
<dc:creator>mr.macian</dc:creator>
<guid isPermaLink="false">4220@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I've moved to thematic 0.9.5, and now I have a question regarding comment layout.  I would like to change the default comment layout.  For example, I would like to move both the comment author name and reply link inside the &#34;comment-meta&#34; div, leaving only the gravatar inside the &#34;comment-author vcard&#34; div.  Any pointers on how to easily change the layout for comments?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
