<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.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>Brasil &#8250; Tópico: Problema com Comentários em &quot;Pages&quot;</title>
		<link>http://br.forums.wordpress.org/topic/problema-com-comentarios-em-pages</link>
		<description>Fórum Brasileiro</description>
		<language>br</language>
		<pubDate>Sun, 26 May 2013 00:42:21 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://br.forums.wordpress.org/rss/topic/problema-com-comentarios-em-pages" rel="self" type="application/rss+xml" />

		<item>
			<title>lcrafael em "Problema com Comentários em &quot;Pages&quot;"</title>
			<link>http://br.forums.wordpress.org/topic/problema-com-comentarios-em-pages#post-5470</link>
			<pubDate>Thu, 08 Apr 2010 23:42:32 +0000</pubDate>
			<dc:creator>lcrafael</dc:creator>
			<guid isPermaLink="false">5470@http://br.forums.wordpress.org/</guid>
			<description><![CDATA[<p>Kra, segue um codigo do comments.php que funciona com certeza.</p>
<pre><code>&#60;?php // Não delete estas linhas
	if (!empty($_SERVER[&#39;SCRIPT_FILENAME&#39;]) &#38;&#38; &#39;comments.php&#39; == basename($_SERVER[&#39;SCRIPT_FILENAME&#39;]))
		die (&#39;Please do not load this page directly. Thanks!&#39;);
	if (!empty($post-&#62;post_password)) { // Se for protegido por senha
		if ($_COOKIE[&#39;wp-postpass_&#39; . COOKIEHASH] != $post-&#62;post_password) { ?&#62;
			&#60;p class=&#34;nocomments&#34;&#62;Este post é projegido por senha. Coloque a senha para ver o post.&#60;/p&#62;
			&#60;?php return;
		}
	}
	/* É a variavel para alterar no fundo */
	$oddcomment = &#39;class=&#34;alt&#34; &#39;;
?&#62;

&#60;!-- Começe a Editar aqui. --&#62;

&#60;?php if ($comments) : ?&#62;
	&#60;h3&#62;&#60;?php comments_number(&#39;Sem Comentários&#39;, &#39;Um Comentário&#39;, &#39;% Comentários&#39; );?&#62; em &#8220;&#60;?php the_title(); ?&#62;&#8221;&#60;/h3&#62;

	&#60;ul class=&#34;commentlist&#34;&#62;

	&#60;?php foreach ($comments as $comment) : ?&#62;

		&#60;li &#60;?php echo $oddcomment; ?&#62;id=&#34;comment-&#60;?php comment_ID() ?&#62;&#34;&#62;

			&#60;?php echo get_avatar( $comment, 32 ); ?&#62;
			&#60;?php comment_author_link() ?&#62;
			&#60;?php if ($comment-&#62;comment_approved == &#39;0&#39;) : echo &#34;&#60;em&#62;Seu comentário esta aguardando moderação.&#60;/em&#62;&#34;; endif; ?&#62;

			&#60;?php comment_date(&#39;F jS, Y&#39;) ?&#62;
			&#60;?php comment_time() ?&#62;
			&#60;?php edit_comment_link(&#39;edit&#39;,&#39;&#38;nbsp;&#38;nbsp;&#39;,&#39;&#39;); ?&#62;

			&#60;?php comment_text() ?&#62;

		&#60;/li&#62;

		&#60;?php $oddcomment = ( empty( $oddcomment ) ) ? &#39;class=&#34;alt&#34; &#39; : &#39;&#39;; ?&#62;

	&#60;?php endforeach; ?&#62;

	&#60;/ul&#62;

	&#60;?php else : // Isto é exibido se não houver nenhum comentario até agora ?&#62;

		&#60;?php if (&#39;open&#39; == $post-&#62;comment_status) : ?&#62;

		&#60;?php else : ?&#62;
		&#60;p class=&#34;nocomments&#34;&#62;Não estão permitidos comentários.&#60;/p&#62;

	&#60;?php endif; ?&#62;
&#60;?php endif; ?&#62;

&#60;?php if (&#39;open&#39; == $post-&#62;comment_status) : ?&#62;

&#60;h3&#62;Deixe uma resposta&#60;/h3&#62;

&#60;?php if ( get_option(&#39;comment_registration&#39;) &#38;&#38; !$user_ID ) : ?&#62;
&#60;p&#62;Você deve estar &#60;a href=&#34;&#60;?php echo get_option(&#39;siteurl&#39;); ?&#62;/wp-login.php?redirect_to=&#60;?php echo urlencode(get_permalink()); ?&#62;&#34;&#62;logado&#60;/a&#62; para colocar um comentário.&#60;/p&#62;

&#60;?php else : ?&#62;

&#60;form action=&#34;&#60;?php echo get_option(&#39;siteurl&#39;); ?&#62;/wp-comments-post.php&#34; method=&#34;post&#34; id=&#34;commentform&#34;&#62;

&#60;?php if ( $user_ID ) : ?&#62;

	&#60;p&#62;Logado como &#60;a href=&#34;&#60;?php echo get_option(&#39;siteurl&#39;); ?&#62;/wp-admin/profile.php&#34;&#62;&#60;?php echo $user_identity; ?&#62;&#60;/a&#62;. &#60;a href=&#34;&#60;?php echo get_option(&#39;siteurl&#39;); ?&#62;/wp-login.php?action=logout&#34; title=&#34;Log out of this account&#34;&#62;Sair &#38;raquo;&#60;/a&#62;&#60;/p&#62;

&#60;?php else : ?&#62;

	&#60;p class=&#34;clearfix&#34;&#62;&#60;label for=&#34;author&#34;&#62;Nome &#60;?php if ($req) echo &#34;(required)&#34;; ?&#62;&#60;/label&#62; &#60;input type=&#34;text&#34; name=&#34;author&#34; id=&#34;author&#34; value=&#34;&#60;?php echo $comment_author; ?&#62;&#34; size=&#34;22&#34; tabindex=&#34;1&#34; /&#62;&#60;/p&#62;

	&#60;p class=&#34;clearfix&#34;&#62;&#60;label for=&#34;email&#34;&#62;Email (não vai ser compartilhado&#60;?php if ($req) echo &#34;, required&#34;; ?&#62;)&#60;/label&#62; &#60;input type=&#34;text&#34; name=&#34;email&#34; id=&#34;email&#34; value=&#34;&#60;?php echo $comment_author_email; ?&#62;&#34; size=&#34;22&#34; tabindex=&#34;2&#34; /&#62;&#60;/p&#62;

	&#60;p class=&#34;clearfix&#34;&#62;&#60;label for=&#34;url&#34;&#62;Website&#60;/label&#62; &#60;input type=&#34;text&#34; name=&#34;url&#34; id=&#34;url&#34; value=&#34;&#60;?php echo $comment_author_url; ?&#62;&#34; size=&#34;22&#34; tabindex=&#34;3&#34; /&#62;&#60;/p&#62;

&#60;?php endif; ?&#62;

	&#60;p&#62;&#60;textarea name=&#34;comment&#34; id=&#34;comment&#34; cols=&#34;100%&#34; rows=&#34;10&#34; tabindex=&#34;4&#34;&#62;&#60;/textarea&#62;&#60;/p&#62;

	&#60;p class=&#34;clearfix&#34;&#62;&#60;input name=&#34;submit&#34; type=&#34;submit&#34; id=&#34;submit&#34; tabindex=&#34;5&#34; value=&#34;Submit Comment&#34; /&#62;&#60;/p&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;comment_post_ID&#34; value=&#34;&#60;?php echo $id; ?&#62;&#34; /&#62;

&#60;?php do_action(&#39;comment_form&#39;, $post-&#62;ID); ?&#62;

&#60;/form&#62;

&#60;?php endif; endif; ?&#62;</code></pre>]]></description>
					</item>
		<item>
			<title>Zucolli em "Problema com Comentários em &quot;Pages&quot;"</title>
			<link>http://br.forums.wordpress.org/topic/problema-com-comentarios-em-pages#post-5469</link>
			<pubDate>Thu, 08 Apr 2010 23:15:19 +0000</pubDate>
			<dc:creator>Zucolli</dc:creator>
			<guid isPermaLink="false">5469@http://br.forums.wordpress.org/</guid>
			<description><![CDATA[<p>O meu tema, o iBlog 2.0 tem uma opção que desabilita os comentários nas páginas adicionais.</p>
<p>Será que com você também não é isso?
</p>]]></description>
					</item>
		<item>
			<title>Zucolli em "Problema com Comentários em &quot;Pages&quot;"</title>
			<link>http://br.forums.wordpress.org/topic/problema-com-comentarios-em-pages#post-5296</link>
			<pubDate>Fri, 02 Apr 2010 20:20:01 +0000</pubDate>
			<dc:creator>Zucolli</dc:creator>
			<guid isPermaLink="false">5296@http://br.forums.wordpress.org/</guid>
			<description><![CDATA[<p>Também não consigo!
</p>]]></description>
					</item>
		<item>
			<title>arthurnobrega em "Problema com Comentários em &quot;Pages&quot;"</title>
			<link>http://br.forums.wordpress.org/topic/problema-com-comentarios-em-pages#post-5244</link>
			<pubDate>Wed, 31 Mar 2010 14:12:29 +0000</pubDate>
			<dc:creator>arthurnobrega</dc:creator>
			<guid isPermaLink="false">5244@http://br.forums.wordpress.org/</guid>
			<description><![CDATA[<p>alguém?
</p>]]></description>
					</item>
		<item>
			<title>arthurnobrega em "Problema com Comentários em &quot;Pages&quot;"</title>
			<link>http://br.forums.wordpress.org/topic/problema-com-comentarios-em-pages#post-4947</link>
			<pubDate>Sun, 14 Mar 2010 19:18:38 +0000</pubDate>
			<dc:creator>arthurnobrega</dc:creator>
			<guid isPermaLink="false">4947@http://br.forums.wordpress.org/</guid>
			<description><![CDATA[<p>Quem consegue ter uma luz?
</p>]]></description>
					</item>
		<item>
			<title>arthurnobrega em "Problema com Comentários em &quot;Pages&quot;"</title>
			<link>http://br.forums.wordpress.org/topic/problema-com-comentarios-em-pages#post-4828</link>
			<pubDate>Sat, 06 Mar 2010 21:36:35 +0000</pubDate>
			<dc:creator>arthurnobrega</dc:creator>
			<guid isPermaLink="false">4828@http://br.forums.wordpress.org/</guid>
			<description><![CDATA[<p>Olá!</p>
<p>Não estou conseguindo colocar os comentários para funcionar nas "pages", estão funcionando apenas nos "posts".</p>
<p>Habilitei os comentários na página pela administração do wordpress, porém mesmo assim não aparece. O estranho é que no wordpress.com funcionava, porém quando eu migrei e escolhi um novo template (Arras Theme) ele parou de funcionar.</p>
<p>Abaixo o código do comments.php do Arras Theme:</p>
<pre><code>&#60;?php
if ( !empty($_SERVER[&#39;SCRIPT_FILENAME&#39;]) &#38;&#38; &#39;comments.php&#39; == basename($_SERVER[&#39;SCRIPT_FILENAME&#39;]) )
	die( __(&#39;Please do not load this page directly. Thanks!&#39;, &#39;arras&#39;) );
if ( post_password_required() ) {
	_e(&#39;&#60;p class=&#34;nocomments&#34;&#62;This post is password protected. Enter the password to view comments.&#60;/p&#62;&#39;, &#39;arras&#39;);
	return;
}
?&#62;
&#60;?php if ( have_comments() ) : ?&#62;
	&#60;?php if ( !empty($comments_by_type[&#39;comment&#39;]) ) : ?&#62;
	&#60;h4 class=&#34;module-title&#34;&#62;&#60;?php comments_number( __(&#39;No Comments&#39;, &#39;arras&#39;), __(&#39;1 Comment&#39;, &#39;arras&#39;), __ngettext(&#39;% Comment&#39;, &#39;% Comments&#39;, get_comments_number(), &#39;arras&#39;) ); ?&#62;&#60;/h4&#62;
		&#60;ol id=&#34;commentlist&#34; class=&#34;clearfix&#34;&#62;
			&#60;?php wp_list_comments(&#39;type=comment&#38;callback=arras_list_comments&#39;); ?&#62;
		&#60;/ol&#62;
		&#60;div class=&#34;comments-navigation clearfix&#34;&#62;
			&#60;div class=&#34;floatleft&#34;&#62;&#60;?php previous_comments_link() ?&#62;&#60;/div&#62;
		    &#60;div class=&#34;floatright&#34;&#62;&#60;?php next_comments_link() ?&#62;&#60;/div&#62;
		&#60;/div&#62;
	&#60;?php endif; ?&#62;

	&#60;?php if ( !empty($comments_by_type[&#39;pings&#39;]) ) : ?&#62;
	&#60;h4 class=&#34;module-title&#34;&#62;&#60;?php _e(&#39;Trackbacks / Pings&#39;, &#39;arras&#39;) ?&#62;&#60;/h4&#62;
	&#60;ol class=&#34;pingbacks&#34;&#62;&#60;?php wp_list_comments(&#39;type=pings&#38;callback=arras_list_trackbacks&#39;); ?&#62;&#60;/ol&#62;
	&#60;?php endif; ?&#62;

&#60;?php else: ?&#62;
		&#60;?php if (&#39;open&#39; == $post-&#62;comment_status) : ?&#62;
		&#60;h4 class=&#34;module-title&#34;&#62;&#60;?php _e(&#39;No Comments&#39;, &#39;arras&#39;) ?&#62;&#60;/h4&#62;
		&#60;p class=&#34;nocomments&#34;&#62;&#60;?php _e(&#39;Start the ball rolling by posting a comment on this article!&#39;, &#39;arras&#39;) ?&#62;&#60;/p&#62;
		&#60;?php else : ?&#62;
		&#60;h4 class=&#34;module-title&#34;&#62;&#60;?php _e(&#39;Comments Closed&#39;, &#39;arras&#39;) ?&#62;&#60;/h4&#62;
		&#60;p class=&#34;nocomments&#34;&#62;&#60;?php _e(&#39;Comments are closed. You will not be able to post a comment in this post.&#39;, &#39;arras&#39;) ?&#62;&#60;/p&#62;
		&#60;?php endif ?&#62;
&#60;?php endif; ?&#62;

&#60;?php if (&#39;open&#39; == $post-&#62;comment_status) : ?&#62;
&#60;div id=&#34;respond&#34;&#62;
&#60;h4 class=&#34;module-title&#34;&#62;&#60;?php comment_form_title( __(&#39;Leave a Reply&#39;, &#39;arras&#39;), __(&#39;Leave a Reply to %s&#39;, &#39;arras&#39;) ); ?&#62;&#60;/h4&#62;
 &#60;div id=&#34;commentsform&#34;&#62;
  &#60;form action=&#34;&#60;?php echo get_option(&#39;siteurl&#39;); ?&#62;/wp-comments-post.php&#34; method=&#34;post&#34; id=&#34;commentform&#34;&#62;
  &#60;?php comment_id_fields(); ?&#62;
   &#60;?php if ( $user_ID ) : ?&#62;
   &#60;p&#62;
	   &#60;?php printf( __(&#39;Logged in as &#60;a href=&#34;%1$s&#34; title=&#34;Logged in as %2$s&#34;&#62;%3$s&#60;/a&#62;.&#39;, &#39;arras&#39;), get_option(&#39;siteurl&#39;) . &#39;/wp-admin/profile.php&#39;, $user_identity, $user_identity) ?&#62;
	   &#60;a href=&#34;&#60;?php echo wp_logout_url() ?&#62; &#34; title=&#34;&#60;?php _e(&#39;Log out of this account&#39;, &#39;arras&#39;) ?&#62;&#34;&#62; (&#60;?php _e(&#39;Logout&#39;, &#39;arras&#39;) ?&#62;)&#60;/a&#62;
   &#60;/p&#62;
   &#60;?php else : ?&#62;
    &#60;p&#62;&#60;label for=&#34;author&#34;&#62;&#60;?php _e(&#39;Name&#39;, &#39;arras&#39;) ?&#62; &#60;?php if ($req) _e(&#39;(required)&#39;, &#39;arras&#39;) ?&#62;&#60;/label&#62;&#60;br /&#62;
     &#60;input type=&#34;text&#34; name=&#34;author&#34; id=&#34;s1&#34; value=&#34;&#60;?php echo $comment_author; ?&#62;&#34; size=&#34;40&#34; tabindex=&#34;1&#34; minlength=&#34;2&#34; &#60;?php if (get_option(&#39;require_name_email&#39;)) : ?&#62;class=&#34;required&#34;&#60;?php endif ?&#62; /&#62;
    &#60;/p&#62;
    &#60;p&#62;&#60;label for=&#34;email&#34;&#62;&#60;?php _e(&#39;Mail (will not be published)&#39;, &#39;arras&#39;) ?&#62; &#60;?php if ($req) _e(&#39;(required)&#39;, &#39;arras&#39;) ?&#62;&#60;/label&#62;&#60;br /&#62;
     &#60;input type=&#34;text&#34; name=&#34;email&#34; id=&#34;s2&#34; value=&#34;&#60;?php echo $comment_author_email; ?&#62;&#34; size=&#34;40&#34; tabindex=&#34;2&#34; &#60;?php if (get_option(&#39;require_name_email&#39;)) : ?&#62;class=&#34;required email&#34;&#60;?php endif ?&#62; /&#62;
    &#60;/p&#62;
    &#60;p&#62;&#60;label for=&#34;url&#34;&#62;&#60;?php _e(&#39;Website&#39;, &#39;arras&#39;) ?&#62;&#60;/label&#62;&#60;br /&#62;
     &#60;input type=&#34;text&#34; name=&#34;url&#34; id=&#34;s3&#34; value=&#34;&#60;?php echo $comment_author_url; ?&#62;&#34; size=&#34;40&#34; tabindex=&#34;3&#34; class=&#34;url&#34; /&#62;
    &#60;/p&#62;
   &#60;?php endif; ?&#62;
	&#60;p&#62;&#60;?php printf( __(&#39;&#60;strong&#62;XHTML:&#60;/strong&#62; You can use these tags: &#60;code&#62;%s&#60;/code&#62;&#39;, &#39;arras&#39;), allowed_tags() ) ?&#62;&#60;/p&#62;
    &#60;p&#62;
     &#60;textarea name=&#34;comment&#34; id=&#34;s4&#34; cols=&#34;50&#34; rows=&#34;10&#34; tabindex=&#34;4&#34; class=&#34;required&#34;&#62;&#60;/textarea&#62;
    &#60;/p&#62;
	&#60;?php if(function_exists(&#39;show_subscription_checkbox&#39;)) : ?&#62;
	&#60;p&#62;&#60;?php show_subscription_checkbox() ?&#62;&#60;/p&#62;
	&#60;?php endif; ?&#62;
    &#60;p&#62;
     &#60;input name=&#34;submit&#34; type=&#34;submit&#34; id=&#34;sbutt&#34; tabindex=&#34;5&#34; value=&#34;&#60;?php _e(&#39;Submit Comment&#39;, &#39;arras&#39;) ?&#62;&#34; /&#62;
     &#60;?php cancel_comment_reply_link( __(&#39;Cancel Reply&#39;, &#39;arras&#39;) ) ?&#62;
    &#60;/p&#62;
   &#60;?php do_action(&#39;comment_form&#39;, $post-&#62;ID); ?&#62;
  &#60;/form&#62;
 &#60;?php if(function_exists(&#39;show_manual_subscription_form&#39;)) { show_manual_subscription_form(); } ?&#62;
 &#60;/div&#62;&#60;!-- end #commentsform --&#62;&#60;/div&#62;
 &#60;?php endif ?&#62;</code></pre>
<p>O endereço do blog é esse: <a href="http://www.ocliente.com" rel="nofollow">http://www.ocliente.com</a> e uma das páginas com esse erro: <a href="http://www.ocliente.com/outros-clientes/" rel="nofollow">http://www.ocliente.com/outros-clientes/</a></p>
<p>Quem tiver uma luz me ajudará muito!</p>
<p>Muito obrigado!</p>
<p>Arthur Nobrega
</p>]]></description>
					</item>

	</channel>
</rss>
