Title: Comments add on code not working
Last modified: August 20, 2016

---

# Comments add on code not working

 *  Resolved [sruddy](https://wordpress.org/support/users/sruddy/)
 * (@sruddy)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/comments-add-on-code-not-working/)
 * I have tried adding this code with no luck.
 * <div id=”comment-user-details”> <?php do_action(‘alt_comment_login’); ?> ……..
   </div>
 * I have photocratti theme.
    Thanks
 * [http://wordpress.org/extend/plugins/simple-facebook-connect/](http://wordpress.org/extend/plugins/simple-facebook-connect/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [sruddy](https://wordpress.org/support/users/sruddy/)
 * (@sruddy)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/comments-add-on-code-not-working/#post-3613557)
 * Well I tried it again here is the code and were I put it.
 *     ```
       <div id="comment-user-details"] [?php do_action('alt_comment_login'); ?>
   
                   <div id="form-section-author" class="form-section">
       ```
   
 *     ```
       <div class="form-input"><input id="url" name="url" type="text" value="<?php echo $comment_author_url ?>" size="30" maxlength="50" tabindex="5" /></div>
                   </div><!-- #form-section-url .form-section --></div>
       ```
   
 *  `
 * Is this right and would someone go to my [blog ](http://steveruddyphotography.com/blog/)
   to test it out? I don’t see it myself I guess because I’m the admin?
 *  Thread Starter [sruddy](https://wordpress.org/support/users/sruddy/)
 * (@sruddy)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/comments-add-on-code-not-working/#post-3613558)
 * what a minute looks like I didn’t have it just ahead of author input here is 
   were it is now.
 *     ```
       <div id="comment-user-details"] [?php do_action('alt_comment_login'); ?>
   
       				<div class="form-input"><input id="author" name="author" type="text" value="<?php echo $comment_author ?>
       ```
   
 *  Thread Starter [sruddy](https://wordpress.org/support/users/sruddy/)
 * (@sruddy)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/comments-add-on-code-not-working/#post-3613560)
 * My wife looked at the last blog post on her work pc and she said it said Hi you
   are logged in with your facebook account and gave her the option to log out. 
   Her facebook profile pic was to the left of that text.
 * However my mother-in-law only had a email, website, and comment field. She had
   no button offering to connect with facebook. I had to go into disscussion settings
   and require login for her to get the connect with facebook option. I do not want
   log it required however i do want facebook connect available.
 *  Thread Starter [sruddy](https://wordpress.org/support/users/sruddy/)
 * (@sruddy)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/comments-add-on-code-not-working/#post-3613576)
 * Here is my update. The connect with facebook button only shows if I have, users
   must be registered and logged in to comment checked in settings/discussion. Exactly
   opposite of what Otto said should work so i don’t know whats going on. This is
   not how I want it to work so I’m leaving this thread unresolved.
 *  Plugin Author [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [13 years, 2 months ago](https://wordpress.org/support/topic/comments-add-on-code-not-working/#post-3613578)
 * You put the code in the wrong place into your comments form. You put it inside
   the section where log in is required. You should have put it in the section where
   the name/email/url fields were, like the FAQ says to do.
 * Undo your changes to the comments form and try again.
 *  Thread Starter [sruddy](https://wordpress.org/support/users/sruddy/)
 * (@sruddy)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/comments-add-on-code-not-working/#post-3613582)
 * > You put the code in the wrong place into your comments form. You put it inside
   > the section where log in is required. You should have put it in the section
   > where the name/email/url fields were, like the FAQ says to do.
   > Undo your changes to the comments form and try again.
 * Code was exactly before the author input see my 4th reply above.
 * You and I both missed the fact that I did not replace all the [] with <> in of
   the supplied code.
 * `<div id="comment-user-details"] [?php do_action('alt_comment_login'); ?>`
 * when should have been
 * `<div id="comment-user-details"> <?php do_action('alt_comment_login'); ?>`
 * I now have settings/dicussion/ Users must be registered and logged in to comment
   unchecked and I do have the connect to facebook showing and working.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Comments add on code not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-facebook-connect_a9b9c1.svg)
 * [Simple Facebook Connect](https://wordpress.org/plugins/simple-facebook-connect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-facebook-connect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-facebook-connect/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-facebook-connect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-facebook-connect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-facebook-connect/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [sruddy](https://wordpress.org/support/users/sruddy/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/comments-add-on-code-not-working/#post-3613582)
 * Status: resolved