Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Warning: Cannot modify header information - headers already sent by (output started at /home/themes/public_html/forums/bb-includes/db-mysql.php:12) in /home/themes/public_html/forums/my-templates/kakumei-variant/rss2.php on line 1
ThemeShaper Forums Topic: Comment Layout http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Sat, 30 May 2015 02:16:36 +0000 nono_kaki on "Comment Layout" http://forums.themeshaper.com/topic/comment-layout#post-18421 Mon, 17 Jan 2011 10:21:46 +0000 nono_kaki 18421@http://forums.themeshaper.com/ <p>@helgatheviking<br /> Thanks for the suggestion. :D </p> helgatheviking on "Comment Layout" http://forums.themeshaper.com/topic/comment-layout#post-18406 Sun, 16 Jan 2011 16:18:25 +0000 helgatheviking 18406@http://forums.themeshaper.com/ <p>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. </p> nono_kaki on "Comment Layout" http://forums.themeshaper.com/topic/comment-layout#post-18404 Sun, 16 Jan 2011 16:10:19 +0000 nono_kaki 18404@http://forums.themeshaper.com/ <p>Hi all,<br /> I'm from Indonesia, nice to meet you all.</p> <p>I wanna add the <em>target attribute</em> on function thematic_commenter_link() but I don't know how to.</p> <p>Anyone please help me??</p> <p>Sorry for my bad english</p> <p>Thanks before </p> helgatheviking on "Comment Layout" http://forums.themeshaper.com/topic/comment-layout#post-18278 Wed, 12 Jan 2011 14:03:18 +0000 helgatheviking 18278@http://forums.themeshaper.com/ <p>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 "please help" 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. </p> <p>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. </p> <p>the function is called thematic_comment_form_args.</p> <p>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.</p> <pre><code>function add_city_to_comment_form($fields){ $fields[&#39;city&#39;] = &#39;&lt;div id=&quot;form-section-url&quot; class=&quot;form-section&quot;&gt;&lt;div class=&quot;form-label&quot;&gt;&lt;label for=&quot;url&quot;&gt;&#39; . __( &#39;City&#39;, &#39;thematic&#39; ) . &#39;&lt;/label&gt;&lt;/div&gt;&#39; . &#39;&lt;div class=&quot;form-input&quot;&gt;&lt;input id=&quot;url&quot; name=&quot;city&quot; type=&quot;text&quot; value=&quot;&#39; . esc_attr( $commenter[&#39;comment_author_city&#39;] ) . &#39;&quot; size=&quot;30&quot; maxlength=&quot;50&quot; tabindex=&quot;5&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;!-- #form-section-url .form-section --&gt;&#39;, return $fields; }</code></pre> <p>add_filter('thematic_comment_form_args','add_city_to_comment_form');</p> <p>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. </p> <p><a href="http://codex.wordpress.org/Function_Reference/wp_get_current_commenter" rel="nofollow">http://codex.wordpress.org/Function_Reference/wp_get_current_commenter</a></p> <p>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. </p> pritee on "Comment Layout" http://forums.themeshaper.com/topic/comment-layout#post-18272 Wed, 12 Jan 2011 07:36:32 +0000 pritee 18272@http://forums.themeshaper.com/ <p>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...<br /> -------------------------------<br /> Name *</p> <p>Email *</p> <p>Website</p> <p>Comment<br /> -------------------------- </p> helgatheviking on "Comment Layout" http://forums.themeshaper.com/topic/comment-layout#post-17041 Tue, 16 Nov 2010 15:16:14 +0000 helgatheviking 17041@http://forums.themeshaper.com/ <p>check out this: <a href="http://themeshaper.com/wordpress-theme-comments-template-tutorial/" rel="nofollow">http://themeshaper.com/wordpress-theme-comments-template-tutorial/</a><br /> it is admittedly a little confusing (ok a lot confusing) ,however, so i can't guarantee it will actually help. </p> <p>i don't know if this will help either, but i did some pretty modifications of the comments:</p> <p><a href="http://theplagueround.com/dev/blog/2008/12/01/testing-the-theme-elements/#comments" rel="nofollow">http://theplagueround.com/dev/blog/2008/12/01/testing-the-theme-elements/#comments</a></p> <p>here is all the code i used:</p> <pre><code>&lt;?php /* * Comments */ // Changes the standard text &#39;Post a Comment&#39; function childtheme_postcomment_text() { $content = __(&#39;Leave a Comment&#39;, &#39;thematic&#39;); return $content ; } add_filter(&#39;thematic_postcomment_text&#39;,&#39;childtheme_postcomment_text&#39;); // Custom callback to list comments in my style function child_comments($comment, $args, $depth) { $GLOBALS[&#39;comment&#39;] = $comment; $GLOBALS[&#39;comment_depth&#39;] = $depth; ?&gt; &lt;li id=&quot;comment-&lt;?php comment_ID() ?&gt;&quot; class=&quot;&lt;?php thematic_comment_class() ?&gt;&quot;&gt; &lt;?php thematic_abovecomment() ?&gt; &lt;?php thematic_commentmeta(TRUE); ?&gt; &lt;?php if ($comment-&gt;comment_approved == &#39;0&#39;) _e(&quot;\t\t\t\t\t&lt;span class=&#39;unapproved&#39;&gt;Your comment is awaiting moderation.&lt;/span&gt;\n&quot;, &#39;thematic&#39;) ?&gt; &lt;div class=&quot;comment-content&quot;&gt; &lt;span class=&quot;speech-bubble&quot;&gt;&lt;/span&gt; &lt;?php comment_text() ?&gt; &lt;/div&gt; &lt;?php // echo the comment reply link with help from Justin Tadlock <a href="http://justintadlock.com/" rel="nofollow">http://justintadlock.com/</a> and Will Norris <a href="http://willnorris.com/" rel="nofollow">http://willnorris.com/</a> if($args[&#39;type&#39;] == &#39;all&#39; || get_comment_type() == &#39;comment&#39;) : comment_reply_link(array_merge($args, array( &#39;reply_text&#39; =&gt; __(&#39;Reply&#39;,&#39;thematic&#39;), &#39;login_text&#39; =&gt; __(&#39;Log in to reply.&#39;,&#39;thematic&#39;), &#39;depth&#39; =&gt; $depth, &#39;before&#39; =&gt; &#39;&lt;div class=&quot;comment-reply-link&quot;&gt;&#39;, &#39;after&#39; =&gt; &#39;&lt;/div&gt;&#39; ))); endif; ?&gt; &lt;?php thematic_belowcomment() ?&gt; &lt;?php } // Creates comment meta function childtheme_override_commentmeta($print = TRUE) { global $comment_count; $content = &#39;&lt;div class=&quot;comment-meta&quot;&gt;&#39; . sprintf( __(&#39; %1$s on &lt;a href=&quot;%2$s&quot; title=&quot;Permalink to this comment&quot;&gt;%3$s at %4$s&lt;/a&gt;&#39;, &#39;thematic&#39; ), child_commenter_link(), &#39;#comment-&#39; . get_comment_ID(), get_comment_date(), get_comment_time() ); if ( get_edit_comment_link() ) { $content .= sprintf(&#39; &lt;span class=&quot;meta-sep&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;edit-link&quot;&gt; &lt;a class=&quot;comment-edit-link&quot; href=&quot;%1$s&quot; title=&quot;%2$s&quot;&gt;%3$s&lt;/a&gt;&lt;/span&gt;&#39;, get_edit_comment_link(), __( &#39;Edit comment&#39; ), __( &#39;Edit&#39;, &#39;thematic&#39; ) ); } $content .= &#39;&lt;/div&gt;&#39; . &quot;\n&quot;; return $print ? print(apply_filters(&#39;thematic_commentmeta&#39;, $content)) : apply_filters(&#39;thematic_commentmeta&#39;, $content); } // end thematic_commentmeta // Produces a link for comment author without avatar function child_commenter_link() { $commenter = get_comment_author_link(); if ( ereg( &#39;&lt;a[^&gt;]* class=[^&gt;]+&gt;&#39;, $commenter ) ) { $commenter = ereg_replace( &#39;(&lt;a[^&gt;]* class=[\&#39;&quot;]?)&#39;, &#39;\\1url &#39; , $commenter ); } else { $commenter = ereg_replace( &#39;(&lt;a )/&#39;, &#39;\\1class=&quot;url &quot;&#39; , $commenter ); } return &#39; &lt;span class=&quot;fn n&quot;&gt;&#39; . $commenter . &#39;&lt;/span&gt;&#39;; } // end thematic_commenter_link function my_callback() { $content = array (&#39;type&#39; =&gt; &#39;comment&#39;, &#39;callback&#39; =&gt; &#39;child_comments&#39;); return $content; } add_filter(&#39;list_comments_arg&#39;, &#39;my_callback&#39;); function child_commentbox_text() { $content = __(&#39;&#39;, &#39;thematic&#39;); return $content; } add_filter(&#39;thematic_commentbox_text&#39;,&#39;child_commentbox_text&#39;);</code></pre> Chris on "Comment Layout" http://forums.themeshaper.com/topic/comment-layout#post-16978 Sun, 14 Nov 2010 22:32:58 +0000 Chris 16978@http://forums.themeshaper.com/ <p>What do you need?</p> <p>Chris </p> iCristiano on "Comment Layout" http://forums.themeshaper.com/topic/comment-layout#post-16966 Sat, 13 Nov 2010 17:07:43 +0000 iCristiano 16966@http://forums.themeshaper.com/ <p>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...</p> <p>So, the solution is to create a whole new comments zone, by comments.php right? </p> vijayrajesh on "Comment Layout" http://forums.themeshaper.com/topic/comment-layout#post-11182 Sun, 04 Apr 2010 17:37:22 +0000 vijayrajesh 11182@http://forums.themeshaper.com/ <p>OMG, no replies for 10 months?</p> <p>hmm, i have similar question. Any one there to reply please? </p> mr.macian on "Comment Layout" http://forums.themeshaper.com/topic/comment-layout#post-4220 Mon, 01 Jun 2009 23:32:06 +0000 mr.macian 4220@http://forums.themeshaper.com/ <p>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 "comment-meta" div, leaving only the gravatar inside the "comment-author vcard" div. Any pointers on how to easily change the layout for comments? </p>