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 Tag: comments Help In Shaping WordPress Themes en Fri, 29 May 2015 20:14:50 +0000 initialsbr on "Replacing comments with Facebook comments" Fri, 01 Jun 2012 21:45:33 +0000 initialsbr 27273@ <p>Whoa! It did move. Sorry! Haven't been on here in too long I guess! Sorry. I'll check out your solution, helgatheviking and if it doesn't quite do the trick, I'll move this to the new forum. </p> helgatheviking on "Replacing comments with Facebook comments" Fri, 01 Jun 2012 21:14:42 +0000 helgatheviking 27272@ <p>thematic did move! whooo. but as for the facebook comments questions.... i use the awd facebook plugin for just about everything, but i think i did need to make some tweaks to get the comments to show.</p> <p>so i create a small plugin that does this in the most brain dead simple way. i hacked someone else's plugin and replaced the code with the iframe versions from fb and put in a small filter to switch out the comments template. should work right out of the box.<br /> <a href="" rel="nofollow"></a></p> <p>but you won't have the same functionality (comments counts, etc). </p> d_rec on "Replacing comments with Facebook comments" Fri, 01 Jun 2012 21:11:03 +0000 d_rec 27271@ <p>Thematic moved. Try here; <a href="" rel="nofollow"></a> </p> initialsbr on "Replacing comments with Facebook comments" Fri, 01 Jun 2012 19:23:09 +0000 initialsbr 27270@ <p>Anybody got any insight here? </p> initialsbr on "Replacing comments with Facebook comments" Thu, 10 May 2012 20:04:14 +0000 initialsbr 26955@ <p>I'm trying to replace the comments section with Facebook comments a la...</p> <p><a href="" rel="nofollow"></a></p> <p>In my functions.php I appear to have all the components working with this code...</p> <p><code>//Facebook Comments</p> <p>function remove_comments(){<br /> if (is_page()){<br /> remove_action('thematic_comments_template','thematic_include_comments',5);<br /> }<br /> }<br /> add_action('template_redirect','remove_comments');</p> <p>function fbheader () { ?&gt;<br /> &lt;meta property='fb:app_id' content='128410070627168' /&gt;<br /> &lt;?php<br /> }<br /> add_action('thematic_header', 'fbheader');</p> <p>function fbcomments() { ?&gt;<br /> &lt;div id="fbcomments"&gt;&lt;div id="fb-root"&gt;&lt;/div&gt;<br /> &lt;script src=""&gt;&lt;/script&gt;<br /> &lt;fb:comments href="&lt;?php the_permalink(); ?&gt;" width="640"&gt;&lt;/fb:comments&gt;&lt;/div&gt;<br /> &lt;?php<br /> }<br /> add_action('thematic_abovecomments', 'fbcomments');</p> <p>function fbcount () { ?&gt;<br /> &lt;iframe src=";?php the_permalink(); ?&gt;&#38;permalink=1" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:130px; height:16px;" allowTransparency="true"&gt;&lt;/iframe&gt;<br /> &lt;?php<br /> }<br /> add_action('thematic_postfooter', 'fbcount');</code></p> <p>Two concerns...</p> <p>1.) To remove the normal comments section, in my CSS, I have</p> <p><code>#comments {<br /> display:none;<br /> }</code></p> <p>Should I be using some kind of remove_action filter?</p> <p>2.) function fbcount replaces the whole postfooter and adds the Facebook-ey graphic there. I just want to either add the Facebook-ey comment count at the end of the postfooter in the same line after the tags or just make the normal comment count reference the Facebook comment count. Any suggestions? </p> bogh on "Put Comment in DIV" Fri, 27 Apr 2012 16:58:17 +0000 bogh 26685@ <p>I found my answer in library/extensions/discussion.php</p> <p>And I have made it like that:<br /> <pre><code>function open_com() { ?&gt;&lt;div class=&quot;blablabla&quot;&gt;&lt;?php } add_action(&#39;thematic_abovecomment&#39;,&#39;open_com&#39;,0); function close_com() { ?&gt;&lt;/div&gt;&lt;?php } add_action(&#39;thematic_belowcomment&#39;,&#39;close_com&#39;,0);</code></pre> <p>Thank you. </p> bogh on "Put Comment in DIV" Fri, 27 Apr 2012 16:05:58 +0000 bogh 26684@ <p>I am trying to put each comment into a DIV</p> <p>The only way I've found is that:<br /> <pre><code>// Custom callback to list comments in the Thematic style function mytheme_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; //START Opening DIV &lt;div&gt; //END Opening DIV &lt;div class=&quot;comment-author vcard&quot;&gt;&lt;?php thematic_commenter_link() ?&gt;&lt;/div&gt; &lt;div class=&quot;comment-meta&quot;&gt;&lt;?php printf(__(&#39;%1$s&#39;, &#39;thematic&#39;), get_comment_date() ); ?&gt;&lt;/div&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;?php comment_text() ?&gt; &lt;/div&gt; &lt;?php 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; //START Closing DIV &lt;div&gt; //END Closing DIV &lt;?php } function my_callback() { $content = &#39;type=comment&#38;callback=mytheme_comments&#39;; return $content; } add_filter(&#39;list_comments_arg&#39;, &#39;my_callback&#39;);</code></pre> <p>I just want to add the Opening DIV and the Closing Div, to the post's content, just like above, but without rewriting the post's content.<br /> Please tell me that is possible :)</p> <p>Maybe something like below:<br /> <pre><code>// Add Header DIVs function open_header() { ?&gt;&lt;div&gt;&lt;?php } add_action(&#39;thematic_header&#39;,&#39;open_header&#39;,0); function close_header() { ?&gt;&lt;/div&gt;&lt;?php } add_action(&#39;thematic_header&#39;,&#39;close_header&#39;,11);</code></pre> helgatheviking on "Inquiry: Can Comments Be Visible On Index (Home) Page?" Sun, 11 Mar 2012 00:13:46 +0000 helgatheviking 25816@ <p>i don't see why not, but then i've never done it. maybe override thematic_index_loop(). also, do not hack around in content-extensions.php. around here, we advise you create a proper child theme. </p> mwsmedia on "Inquiry: Can Comments Be Visible On Index (Home) Page?" Sat, 10 Mar 2012 07:05:55 +0000 mwsmedia 25810@ <p>My client would like four blog posts, with their attendant comments, to be shown on the home page of their site. In twentyeleven, I can put <code>$withcomments = 1;</code> at the top of index.php and the <code>comments_template();</code> in the loop... but I can't figure out how to make this work in the Thematic child theme I'm building.</p> <p>I tried putting <code>global $withcomments; $withcomments = 1;</code> before <code>get_header();</code> in index.php and <code>comments_template();</code> in the index loop of the content-extensions.php file, but it didn't do a thing.</p> <p>Any ideas?</p> <p>Thanks very much in advance,</p> <p>Matthew Wayne Selznick </p> SjoerdKoelewijn on "Removing comments section from Thematic" Sat, 03 Mar 2012 15:28:23 +0000 SjoerdKoelewijn 25708@ <p>Thanks Helga, that function was almost what I needed. I modified it slightly as I needed the comments removed from posts in the category 'portfolio', rather than the post-type. </p> <p>Below the function I used: </p> <pre><code>function remove_comments(){ if (is_page() OR in_category(&#39;portfolio&#39;) ){ remove_action(&#39;thematic_comments_template&#39;,&#39;thematic_include_comments&#39;,5); } } add_action(&#39;template_redirect&#39;,&#39;remove_comments&#39;);</code></pre> helgatheviking on "Add custom fields on comment template" Sun, 19 Feb 2012 16:01:05 +0000 helgatheviking 25475@ <p>fair enough. there is, admittedly, a steep learning curve. personally, i have found that my learning of hooks and filters for thematic paid huge dividends in learning how to better use both of those features w/ WP source, but i definitely understand the reluctance. i use toolbox myself a lot. sometimes it is faster to add what you need versus strip out all the thematic parts you don't want. depends on the project. </p> 1visible on "Add custom fields on comment template" Sun, 19 Feb 2012 06:20:56 +0000 1visible 25471@ <p>Hi Helgatheviking,<br /> Thanks for reply. I know this ressources, but never had them to work here.<br /> Don't know, maybe Thematic have confused my brain.<br /> Finally, the fact is I have switched my theme to Sandbox.<br /> Thematic look amazing but I don't have strudy katanas to play with.<br /> Definitly PHP job is not my game/goal.<br /> It took me 1 month to get the things I got in 1 week habitually.<br /> I prefer to have more control has possible from scratch, without having to learn again from roof to cave how a them is working.<br /> And keep my dumbly habit to copypaste &lt;?php&gt;, witch is working well for now.</p> <p>Thanks. </p> helgatheviking on "Add custom fields on comment template" Fri, 17 Feb 2012 14:28:11 +0000 helgatheviking 25433@ <p>you say 'of course', but you'd be surprised the number of people we see hacking header-extensions.php! so we have to ask. ;)</p> <p>without really getting into it i presume you'd need to look at update_comment_meta() to save the new info. </p> <p>there seem to be plenty of resources out there. 2 tuts:<br /> <a href="" rel="nofollow"></a><br /> <a href="" rel="nofollow"></a></p> <p>and a plugin that seems to do it for you:<br /> <a href="" rel="nofollow"></a> </p> middlesister on "Add comment_count to my_multiplecomments_text" Wed, 15 Feb 2012 20:19:22 +0000 middlesister 25406@ <p>If you want to display the number of comments in the sidebar, you cannot use $thematic_comment_count because it will refer to the number of comments belonging to the current post. Plus, I think it only works inside the comment loop</p> <p>Try using the good old <code>get_comments_number( $ID )</code>, and give the testimonial postID as parameter. </p> 1visible on "Add comment_count to my_multiplecomments_text" Wed, 15 Feb 2012 16:37:56 +0000 1visible 25401@ <p>Yes, that's what I have done. But the result is always "zero comments…" instead of for exemple "28 comments…".</p> <p>The fact is I have only one page with opened comments, it's a testimonial page.<br /> The query here is: how to display in the sidebar on the entire site, the number of those testimonials from this particulary page ?</p> <p>I can edit a simple html line by hand to do that, of course.<br /> But I was hoped than the Thematic power could do this by itself.</p> <p>With my noob words I'll tell something like:<br /> "It's missing the "page ID filter" to tell how many comments there are on this page." </p> 1visible on "Add custom fields on comment template" Wed, 15 Feb 2012 16:26:03 +0000 1visible 25400@ <p>HI,<br /> Yes I'm using a child theme of course.<br /> Ok, simply adding HTML fields is easy, but having the data recorded and printed is much much harder (for me).</p> <p>I'll take the time to undestand step by step what you're telling here…<br /> Thanks to you.<br /> I'll be back soon with my experiments.</p> <p>(That said, I'm surprised than nobody have speaked about extra comment fields here.) </p> em hr on "Add comment_count to my_multiplecomments_text" Wed, 15 Feb 2012 15:07:43 +0000 em hr 25399@ <p>This line from Thematic's comments.php give an example of using the global variable $thematic_comment_count to account for text strings for singular or multiple comments. </p> <p><code>&lt;h3&gt;&lt;?php printf( $thematic_comment_count &gt; 1 ? __( thematic_multiplecomments_text(), &#39;thematic&#39; ) : __( thematic_singlecomment_text(), &#39;thematic&#39; ), $thematic_comment_count ) ?&gt;&lt;/h3</code> </p> em hr on "Add custom fields on comment template" Wed, 15 Feb 2012 15:02:59 +0000 em hr 25398@ <p>Hi,</p> <p>I sincerely hope you are modifying the functions.php in a child theme.</p> <p>Are you trying to add extra fields to the comment form? </p> <p>If so then you'll need to be filtering WP's <code>comment_form_default_fields</code> and you'll need to be aware that Thematic is also filtering that via <code>thematic_comment_form_args()</code> which is found in Thematic's comments-extensions.php</p> <p>What you have posted above will not work for several reasons:<br /> - <code>thematic_form_default_fields</code> does not exist as a filter in Thematic<br /> - Your use of the "thematic" namespace in defining the function <code>thematic_add_custom_fields()</code>is wrong. You should use a unique namespace for your child theme instead like 'my_child theme_add_custom_fields()` </p> 1visible on "Add comment_count to my_multiplecomments_text" Wed, 15 Feb 2012 14:14:20 +0000 1visible 25396@ <p>Sorry but I just realize:<br /> Is there any way to print this return on sidebar ?<br /> I use PHPcode widget, the result is "0 (nobody) personnes vous offrent leur témoignage" </p> 1visible on "Add comment_count to my_multiplecomments_text" Wed, 15 Feb 2012 14:05:55 +0000 1visible 25395@ <p>"The simplest is the most difficult… unless you have the key…"<br /> Ok dear, you did it!<br /> Thank you :) </p> em hr on "Add comment_count to my_multiplecomments_text" Wed, 15 Feb 2012 13:21:47 +0000 em hr 25394@ <p>That filter feeds into printf() and you are missing the integer specifier: <code>d</code></p> <p>Try:</p> <p><code>return &#39;%d personnes vous offrent leur témoignage&#39;;</code> </p> 1visible on "Add comment_count to my_multiplecomments_text" Wed, 15 Feb 2012 12:04:39 +0000 1visible 25393@ <p>Hi again,<br /> please, how to add $comment_count &gt; 1 ? __ (…) to this? :</p> <p><code>function my_multiplecomments_text($text) {</p> <p>return 'personnes vous offrent leur témoignage';</p> <p>}<br /> add_filter('thematic_multiplecomments_text', 'my_multiplecomments_text');</code></p> <p>This function make the comment_count to disappear :(</p> <p>Sorry, I'm not a php crack (this means all my trys are falling down, bouh!). </p> 1visible on "Add custom fields on comment template" Wed, 15 Feb 2012 11:54:36 +0000 1visible 25392@ <p>Hi to all,<br /> I'm trying to add 2 custom fields under default name/mail/web fields.<br /> But cannot get it to work, and it doesn't seems to be documented for Thematic.<br /> Most tricks are online but nothing is working for Thematic (or I'm not able to get them working).<br /> I've also tried some plugins but nothing 100% working. </p> <p>My last and more probant grab and mod is, for functions.php:</p> <pre><code>function thematic_add_custom_fields($fields) { // Add a thematic-style field for the commenter location $fields[&#39;location&#39;] = &#39;&lt;div id=&quot;form-section-location&quot;&gt;&#39;; $fields[&#39;location&#39;] .= &#39;&lt;div&gt;&lt;label for=&quot;location&quot;&gt;&#39; . __( &#39;Location&#39; ) . &#39;&lt;/label&gt;&lt;/div&gt;&#39;; $fields[&#39;location&#39;] .= &#39;&lt;div&gt;&lt;input id=&quot;location&quot; name=&quot;location&quot; type=&quot;text&quot; size=&quot;30&quot; /&gt;&lt;/div&gt;&#39;; $fields[&#39;location&#39;] .= &#39;&lt;/div&gt;&#39;; return $fields; } add_filter( &#39;thematic_form_default_fields&#39;, &#39;thematic_add_custom_fields&#39; );</code></pre> <p>Without any success…</p> <p>Alternatively, how to cut out the "website" field?</p> <p>Many thanks for help.</p> <p>EDIT: of course, data for the new fields must be db stored, and displayed on front end… </p> meevil on "Thematic Comments" Sun, 12 Feb 2012 13:50:45 +0000 meevil 25338@ <p>That's done the trick! Thanks a bunch :D </p> helgatheviking on "Thematic Comments" Sat, 11 Feb 2012 22:30:12 +0000 helgatheviking 25330@ <p>oh apparently also there is CSS that you need to change</p> <pre><code>#comments-list li .avatar { position: absolute; top: 22px; left: 1.5em; width: 36px; //change to match height: 36px; //change to match }</code></pre> meevil on "Thematic Comments" Sat, 11 Feb 2012 19:20:03 +0000 meevil 25329@ <p>EDIT: Woops! Sorry for the double post, the last post didn't show up on my screen, and I can't find a way to delete this one D: </p> meevil on "Thematic Comments" Sat, 11 Feb 2012 17:42:03 +0000 meevil 25328@ <p>Helga, you're a star, thanks so much for explaining filters! Really helped, and I learned something too! :D</p> <p>I copied and pasted the code straight into my functions file, but it hasn't seemed to pass it through to the original variable.</p> <p>Do I need to call this function somewhere? </p> helgatheviking on "Thematic Comments" Sat, 11 Feb 2012 16:56:50 +0000 helgatheviking 25326@ <p>line 181 of comments-extensions.php</p> <pre><code>$avatar_size = apply_filters( &#39;avatar_size&#39;, &#39;80&#39; ); // Available filter: avatar_size</code></pre> <p>the apply_filters is our signal that we can change something w/ a filter. the process is the same every time you want to change something.</p> <p>1. troll through the extensions folder to find the thing you need to change (conveniently the functions are split into sensibly named files.. like comment-extensions.php for all the functions having to do w/ comments)</p> <p>2. determine if a filter is available or if you need to use an override. this might be a little tougher, but often both will work. in your case there isn't an override option, so you can only go w/ filter. people will often use an override b/c it is simpler to get your head around, though a filter solution will often be more elegant for small changes. </p> <p>3. create the new function in your functions.php in your case you need to target the avatar_size filter.</p> <p>filtering something always takes the same basic setup.</p> <pre><code>function gonna_filter_something($variable){ //if we need the original variable then pass it in as a function argument $variable .= &#39;bacon&#39;; //just tacked bacon on to the end of $variable //$variable = &#39;bacon&#39;; //if uncommented, sets the variable equal to bacon return $variable; //send the new version of $variable back to the apply_filters function } add_filter(&#39;target_filter&#39;,&#39;gonna_filter_something&#39;, priority#);</code></pre> <p>where priority# is the order at which this filter will be processed if there are multiple functions being added to the same filter. it defaults to 10 i think and you don't need it unless you know there are multiple actions being run. $variable name can be anything. i usually let it match the name in the original function to help me remember what it is, but it doesn't have to b/c of what is called "variable scope". it could be $apple or $bacon, b/c it only exists inside your gonna_filter_something function. </p> <p>SO, in your case:</p> <pre><code>function kia_change_avatar_size(){ //we don&#39;t need the original value return 200; //send back a really large size } add_filter(&#39;avatar_size&#39;,&#39;kia_change_avatar_size&#39;);</code></pre> <p>2.) disable threaded comments in your Settings&gt;Discussion </p> meevil on "Thematic Comments" Sat, 11 Feb 2012 13:18:10 +0000 meevil 25325@ <p>Hey guys, me again!</p> <p>Loving how powerful Thematic is, but I've hit a bit of a snag in development.</p> <p>1) How do I change the avatar size in the comments section?</p> <p>2) How do I make comment replies "Stack" underneath the original comment, instead of appearing within the original comment DIV?</p> <p>Thanks guys, you've been a great help so far! </p> helgatheviking on "No Comments Input in Child Theme" Thu, 19 Jan 2012 23:26:44 +0000 helgatheviking 24990@ <p>facepalm!! don't worry, it happens to us all. </p>