Perdido en el codigo "coments" de Facebook Connect

Inicio Foros WordPress Plugins Perdido en el codigo "coments" de Facebook Connect

Este debate contiene 0 respuestas, tiene 1 mensaje y lo actualizó  macolomer hace 8 años, 6 meses.

  • Autor
    Publicaciones
  • #16436

    macolomer
    Participante

    <p>Hola a todos! La verdad soy bastante novato en todo lo referente al wordpress y estoy bastante perdido en lo del código html. Sabeis de alguna web dónde se explica el funcionamento del código html en wordpress? Bueno, pues he intentado instalar el Facebook Connect y estoy enquistado en el paso de "Crear nueva plantilla para comentarios" la verda es que me dice que tengo que insertar el código "&lt;?php do_action(‘fbc_display_login_button’) ?&gt;" y estoy completamente perdido porqué no se donde lo tengo que poner. </p>
    <p>Éste es el código de mi plantilla. Us lo agradeceria mucho si me pudierais ayudar, un abrazo!</p>
    <p>&lt;?php<br />
    /**<br />
    * @package WordPress<br />
    * @subpackage Default_Theme<br />
    */</p>
    <p>// Do not delete these lines<br />
    if (!empty($_SERVER) &amp;&amp; ‘comments.php’ == basename($_SERVER))<br />
    die (‘Please do not load this page directly. Thanks!’);</p>
    <p> if ( post_password_required() ) { ?&gt;<br />
    &lt;p class="nocomments"&gt;This post is password protected. Enter the password to view comments.&lt;/p&gt;<br />
    &lt;?php<br />
    return;<br />
    }<br />
    ?&gt;</p>
    <p>&lt;!– You can start editing here. –&gt;</p>
    <p>&lt;?php if ( have_comments() ) : ?&gt;<br />
    &lt;h2&gt;&lt;?php comments_number(‘No Responses’, ‘One Response’, ‘% Responses’ );?&gt;&lt;/h2&gt;<br />
    &lt;div class="inner-text"&gt;<br />
    &lt;div class="hr"&gt;&lt;/div&gt; </p>
    <p> &lt;div class="navigation"&gt;<br />
    &lt;div class="alignleft"&gt;&lt;?php previous_comments_link() ?&gt;&lt;/div&gt;<br />
    &lt;div class="alignright"&gt;&lt;?php next_comments_link() ?&gt;&lt;/div&gt;<br />
    &lt;/div&gt;</p>
    <p> &lt;div style="clear:both;"&gt;&lt;/div&gt;</p>
    <p> &lt;ul class="commentlist"&gt;<br />
    &lt;?php wp_list_comments(‘style=ul&amp;type=comment&amp;callback=mytheme_comment’); ?&gt;</p>
    <p> &lt;div class="navigation"&gt;<br />
    &lt;div class="alignleft"&gt;&lt;?php previous_comments_link() ?&gt;&lt;/div&gt;<br />
    &lt;div class="alignright"&gt;&lt;?php next_comments_link() ?&gt;&lt;/div&gt;<br />
    &lt;/div&gt;<br />
    &lt;div style="clear:both;"&gt;&lt;/div&gt;</p>
    <p> &lt;/div&gt;<br />
    &lt;?php else : // this is displayed if there are no comments so far ?&gt;</p>
    <p> &lt;?php if (‘open’ == $post-&gt;comment_status) : ?&gt;<br />
    &lt;!– If comments are open, but there are no comments. –&gt;</p>
    <p> &lt;?php else : // comments are closed ?&gt;<br />
    &lt;!– If comments are closed. –&gt;<br />
    &lt;p class="nocomments"&gt;Comments are closed.&lt;/p&gt;</p>
    <p> &lt;?php endif; ?&gt;<br />
    &lt;?php endif; ?&gt;</p>
    <p>&lt;?php if (‘open’ == $post-&gt;comment_status) : ?&gt;</p>
    <p>&lt;div id="respond"&gt;</p>
    <p>&lt;h2&gt;&lt;?php comment_form_title( ‘Leave a Reply’, ‘Leave a Reply to %s’ ); ?&gt;&lt;/h2&gt;</p>
    <p>&lt;div class="cancel-comment-reply"&gt;<br />
    &lt;small&gt;&lt;?php cancel_comment_reply_link(); ?&gt;&lt;/small&gt;<br />
    &lt;/div&gt;</p>
    <p>&lt;?php if ( get_option(‘comment_registration’) &amp;&amp; !$user_ID ) : ?&gt;<br />
    &lt;p&gt;You must be <a>/wp-login.php?redirect_to=&lt;?php echo urlencode(get_permalink()); ?&gt;"&gt;logged in</a> to post a comment.&lt;/p&gt;<br />
    &lt;?php else : ?&gt;</p>
    <p>&lt;form action="&lt;?php echo get_option(‘siteurl’); ?&gt;/wp-comments-post.php" method="post" id="comment-form"&gt;</p>
    <p>&lt;?php if ( $user_ID ) : ?&gt;</p>
    <p>&lt;p&gt;Logged in as <a>/wp-admin/profile.php"&gt;&lt;?php echo $user_identity; ?&gt;</a>. <a>" title="Log out of this account"&gt;Log out &raquo;</a>&lt;/p&gt;</p>
    <p>&lt;?php else : ?&gt;</p>
    <p>&lt;p&gt;<br />
    &lt;label for="author"&gt;&lt;small&gt;Name &lt;?php if ($req) echo "(required)"; ?&gt;&lt;/small&gt;&lt;/label&gt;<br />
    &lt;input type="text" name="author" id="author" value="&lt;?php echo $comment_author; ?&gt;" size="22" tabindex="1" &lt;?php if ($req) echo "aria-required=’true’"; ?&gt; /&gt;<br />
    &lt;/p&gt;</p>
    <p>&lt;p&gt;<br />
    &lt;label for="email"&gt;&lt;small&gt;Mail (will not be published) &lt;?php if ($req) echo "(required)"; ?&gt;&lt;/small&gt;&lt;/label&gt;<br />
    &lt;input type="text" name="email" id="email" value="&lt;?php echo $comment_author_email; ?&gt;" size="22" tabindex="2" &lt;?php if ($req) echo "aria-required=’true’"; ?&gt; /&gt;<br />
    &lt;/p&gt;</p>
    <p>&lt;p&gt;<br />
    &lt;label for="url"&gt;&lt;small&gt;Website&lt;/small&gt;&lt;/label&gt;<br />
    &lt;input type="text" name="url" id="url" value="&lt;?php echo $comment_author_url; ?&gt;" size="22" tabindex="3" /&gt;<br />
    &lt;/p&gt;</p>
    <p>&lt;?php endif; ?&gt;</p>
    <p>&lt;!–&lt;p&gt;&lt;small&gt;<strong>XHTML:</strong> You can use these tags: <code>&lt;?php echo allowed_tags(); ?&gt;</code>&lt;/small&gt;&lt;/p&gt;–&gt;</p>
    <p>&lt;p&gt;&lt;label for="message"&gt;Message:&lt;/label&gt;<br />
    &lt;textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"&gt;&lt;/textarea&gt;&lt;/p&gt;</p>
    <p>&lt;p&gt;&lt;input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /&gt;<br />
    &lt;?php comment_id_fields(); ?&gt;<br />
    &lt;/p&gt;<br />
    &lt;?php do_action(‘comment_form’, $post-&gt;ID); ?&gt;</p>
    <p>&lt;/form&gt;</p>
    <p>&lt;?php endif; // If registration required and not logged in ?&gt;<br />
    &lt;/div&gt;</p>
    <p>&lt;?php endif; // if you delete this the sky will fall on your head ?&gt;
    </p>

El foro ‘Plugins’ está cerrado y no se permiten nuevos debates ni respuestas.

Pin It on Pinterest