<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[modifiche a modulo commenti non funzionanti]]></title><description><![CDATA[<p dir="auto">ciao e auguri prima di tutto; in secondo luogo avrei un problemino di questo tipo:</p>
<p dir="auto">io ho sempre saputo che per modificare il modulo dei commenti bastava editare il file comments.php del mio tema; il problema è che non trovo i rispettivi campi, o meglio, dopo averli modificati all'interno del file rimangono in inglese..<br />
ad esempio non trovo la label 'Leave a Reply'..questo mi fa pensare che sto sbagliato file da editare..qualche consiglio??grazie.</p>
]]></description><link>https://dev.connect.gt/topic/117973/modifiche-a-modulo-commenti-non-funzionanti</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 22:39:56 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/117973.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 26 Dec 2009 10:21:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to modifiche a modulo commenti non funzionanti on Sat, 26 Dec 2009 17:27:30 GMT]]></title><description><![CDATA[<p dir="auto">Posto l'intero codice del file...</p>
<pre><code>&lt;?php // Do not delete these lines
    if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
        die ('Please do not load this page directly. Thanks!');

        if (!empty($post-&gt;post_password)) { // if there's a password
            if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post-&gt;post_password) {  // and it doesn't match the cookie
                ?&gt;
                &lt;p class="nocomments"&gt;This post is password protected. Enter the password to view comments.&lt;p&gt;            
                &lt;?php
                return;
            }
        }

        /* This variable is for alternating comment background */
        $oddcomment = 'alt1';
?&gt;

&lt;!-- You can start editing here. --&gt;
&lt;?php if ($comments) : $commentCount = 0 ?&gt;
    
    &lt;?php foreach ($comments as $comment) : $commentCount++ ?&gt;

          &lt;?php if ($commentCount == 1) { ?&gt;
        &lt;h3 id="comments"&gt;Comments&lt;/h3&gt;
        &lt;ol class="commentlist"&gt;
        &lt;?php } ?&gt;
        
        &lt;?php $comment_type = get_comment_type(); ?&gt;
        &lt;?php if ($comment_type == 'comment') { ?&gt;
        &lt;li class="&lt;?php echo $oddcomment; ?&gt;" id="comment-&lt;?php comment_ID() ?&gt;" &lt;?php if ($comment-&gt;comment_author == "Genkisan") echo 'style="background-color:#F9F7CB"'; ?&gt;&gt;
            &lt;div class="commentcount"&gt;
            &lt;a href="#comment-&lt;?php comment_ID() ?&gt;" title=""&gt;&lt;?php echo $commentCount ?&gt;&lt;/a&gt;
            &lt;/div&gt;
            
            &lt;strong&gt;&lt;?php comment_author_link() ?&gt;&lt;/strong&gt; // &lt;?php comment_date('F jS, Y') ?&gt; at &lt;?php comment_time() ?&gt; &lt;?php edit_comment_link('e','',''); ?&gt;
            &lt;?php if ($comment-&gt;comment_approved == '0') : ?&gt;
            &lt;em&gt;Il tuo commento deve essere approvato.&lt;/em&gt;
            &lt;?php endif; ?&gt;
            &lt;br /&gt;
            
            &lt;div class="commenttext"&gt;
            &lt;?php comment_text() ?&gt;
            &lt;/div&gt;
        &lt;/li&gt;

        &lt;?php /* Changes every other comment to a different class */    
            if ('alt1' == $oddcomment) $oddcomment = 'alt2';
            else $oddcomment = 'alt1';
        ?&gt;
        &lt;?php } ?&gt;        
        &lt;?php endforeach; /* end for each comment */ ?&gt;

    &lt;/ol&gt;
    
    &lt;?php foreach ($comments as $comment) :?&gt;
        
        &lt;?php $trackbackcount = 0; ?&gt;
        &lt;?php $comment_type = get_comment_type(); ?&gt;
        &lt;?php if ($comment_type != 'comment') { $trackbackCount++ ?&gt;

           &lt;?php if ($trackbackCount == 1) { ?&gt;
        &lt;h3 id="trackbacks"&gt;Trackbacks&lt;/h3&gt;
        &lt;ol class="commentlist"&gt;
        &lt;?php } ?&gt;
        &lt;li class="&lt;?php echo $oddcomment; ?&gt;" id="comment-&lt;?php comment_ID() ?&gt;"&gt;
            &lt;?php comment_author_link() ?&gt;
        &lt;/li&gt;

        &lt;?php /* Changes every other comment to a different class */    
            if ('alt1' == $oddcomment) $oddcomment = 'alt2';
            else $oddcomment = 'alt1';
        ?&gt;
        &lt;?php } ?&gt;        
        &lt;?php endforeach; /* end for each comment */ ?&gt;

    &lt;/ol&gt;

 &lt;?php else : // this is displayed if there are no comments so far ?&gt;

  &lt;?php if ('open' == $post-&gt;comment_status) : ?&gt; 
        &lt;!-- If comments are open, but there are no comments. --&gt;

    &lt;?php else : // comments are closed ?&gt;
        &lt;!-- If comments are closed. --&gt;
        &lt;!--&lt;p class="nocomments"&gt;Comments are closed.&lt;/p&gt;--&gt;
    &lt;?php endif; ?&gt;
&lt;?php endif; ?&gt;

&lt;?php if ('open' == $post-&gt;comment_status) : ?&gt;

&lt;h3 id="respond"&gt;Lascia un commento&lt;/h3&gt;

&lt;?php if ( get_option('comment_registration') &amp;&amp; !$user_ID ) : ?&gt;
&lt;p&gt;You must be &lt;a href="&lt;?php echo get_option('siteurl'); ?&gt;/wp-login.php?redirect_to=&lt;?php the_permalink(); ?&gt;"&gt;logged in&lt;/a&gt; to post a comment.&lt;/p&gt;
&lt;?php else : ?&gt;
&lt;form action="&lt;?php echo get_option('siteurl'); ?&gt;/wp-comments-post.php" method="post" id="commentform"&gt;

&lt;?php if ( $user_ID ) : ?&gt;
&lt;p&gt;Logged in as &lt;a href="&lt;?php echo get_option('siteurl'); ?&gt;/wp-admin/profile.php"&gt;&lt;?php echo $user_identity; ?&gt;&lt;/a&gt;. &lt;a href="&lt;?php echo get_option('siteurl'); ?&gt;/wp-login.php?action=logout" title="Log out of this account"&gt;Logout &amp;raquo;&lt;/a&gt;&lt;/p&gt;

&lt;?php else : ?&gt;

&lt;p&gt;&lt;input type="text" name="author" id="author" value="&lt;?php echo $comment_author; ?&gt;" size="35" tabindex="1" /&gt;
&lt;label for="author"&gt;&lt;small&gt;Nome &lt;?php if ($req) echo "(Obbligatorio)"; ?&gt;&lt;/small&gt;&lt;/label&gt;&lt;/p&gt;
&lt;p&gt;&lt;input type="text" name="email" id="email" value="&lt;?php echo $comment_author_email; ?&gt;" size="35" tabindex="2" /&gt;
&lt;label for="email"&gt;&lt;small&gt;Mail (Non sarà pubblicata) &lt;?php if ($req) echo "(Obbligatorio)"; ?&gt;&lt;/small&gt;&lt;/label&gt;&lt;/p&gt;
&lt;p&gt;&lt;input type="text" name="url" id="url" value="&lt;?php echo $comment_author_url; ?&gt;" size="35" tabindex="3" /&gt;
&lt;label for="url"&gt;&lt;small&gt;Sito Web&lt;/small&gt;&lt;/label&gt;&lt;/p&gt;

&lt;?php endif; ?&gt;

&lt;!--&lt;p&gt;&lt;small&gt;&lt;strong&gt;XHTML:&lt;/strong&gt; You can use these tags: &lt;?php echo allowed_tags(); ?&gt;&lt;/small&gt;&lt;/p&gt;--&gt;

&lt;p&gt;&lt;textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"&gt;&lt;/textarea&gt;&lt;/p&gt;

&lt;p&gt;&lt;input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /&gt;

&lt;input type="hidden" name="comment_post_ID" value="&lt;?php echo $id; ?&gt;" /&gt;

&lt;/p&gt;

&lt;?php do_action('comment_form', $post-&gt;ID); ?&gt;

&lt;/form&gt;

&lt;?php endif; // If registration required and not logged in ?&gt;

&lt;?php endif; // if you delete this the sky will fall on your head ?&gt;
</code></pre>
<p dir="auto">che ne dite?</p>
]]></description><link>https://dev.connect.gt/post/880997</link><guid isPermaLink="true">https://dev.connect.gt/post/880997</guid><dc:creator><![CDATA[dark.shadow]]></dc:creator><pubDate>Sat, 26 Dec 2009 17:27:30 GMT</pubDate></item><item><title><![CDATA[Reply to modifiche a modulo commenti non funzionanti on Sat, 26 Dec 2009 14:42:50 GMT]]></title><description><![CDATA[<p dir="auto">Metti qui il codice che c'è all'interno del file comments.php</p>
]]></description><link>https://dev.connect.gt/post/880983</link><guid isPermaLink="true">https://dev.connect.gt/post/880983</guid><dc:creator><![CDATA[erfo]]></dc:creator><pubDate>Sat, 26 Dec 2009 14:42:50 GMT</pubDate></item></channel></rss>