Title: Protooler's Replies | WordPress.org

---

# Protooler

  [  ](https://wordpress.org/support/users/protooler/)

 *   [Profile](https://wordpress.org/support/users/protooler/)
 *   [Topics Started](https://wordpress.org/support/users/protooler/topics/)
 *   [Replies Created](https://wordpress.org/support/users/protooler/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/protooler/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/protooler/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/protooler/engagements/)
 *   [Favorites](https://wordpress.org/support/users/protooler/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPBook] Error "headers already sent" when activating WPBook](https://wordpress.org/support/topic/error-headers-already-sent-when-activating-wpbook/)
 *  Thread Starter [Protooler](https://wordpress.org/support/users/protooler/)
 * (@protooler)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/error-headers-already-sent-when-activating-wpbook/#post-1738502)
 * Thanks esmi!!!
    Now it’s ok
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPBook] [Plugin: WPBook] App navigation don't work](https://wordpress.org/support/topic/plugin-wpbook-app-navigation-dont-work/)
 *  Thread Starter [Protooler](https://wordpress.org/support/users/protooler/)
 * (@protooler)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-wpbook-app-navigation-dont-work/#post-1684944)
 * any suggestions?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPBook] [Plugin: WPBook] Comments Facebook avatar](https://wordpress.org/support/topic/plugin-wpbook-comments-facebook-avatar/)
 *  Thread Starter [Protooler](https://wordpress.org/support/users/protooler/)
 * (@protooler)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-wpbook-comments-facebook-avatar/#post-1674902)
 * Sure! : )
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPBook] [Plugin: WPBook] Comments Facebook avatar](https://wordpress.org/support/topic/plugin-wpbook-comments-facebook-avatar/)
 *  Thread Starter [Protooler](https://wordpress.org/support/users/protooler/)
 * (@protooler)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-wpbook-comments-facebook-avatar/#post-1674869)
 * WOW this is great!!!
    Thanks BandonRandon, perfect work! I am happy to have given
   inspiration to this new feature!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPBook] [Plugin: WPBook] Disable Comments in the wall](https://wordpress.org/support/topic/plugin-wpbook-disable-comments-in-the-wall/)
 *  Thread Starter [Protooler](https://wordpress.org/support/users/protooler/)
 * (@protooler)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-wpbook-disable-comments-in-the-wall/#post-1676861)
 * ah..ok..
    The idea was to disable only the comments from the app, but if Facebook
   does not allow applications to do this I surrender! 🙂
 * I have some problem to import the wall comments inside the app..
    I have flag
   all in the in wordpress settings **Import comments from Facebook Walls**
 * **Automatically approve imported Wall comments**
 * **For how many days should WPBook look for comments on Facebook Walls?: 5**
 * And I have set the email..
 * Why not working?
    What am I doing wrong?
 * Thanks!
    Claudio
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPBook] [Plugin: WPBook] Comments Facebook avatar](https://wordpress.org/support/topic/plugin-wpbook-comments-facebook-avatar/)
 *  Thread Starter [Protooler](https://wordpress.org/support/users/protooler/)
 * (@protooler)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-wpbook-comments-facebook-avatar/#post-1674806)
 * I retrive the id from the wordpress function **get_comment_author_url();**
    here:**
   $urlu = get_comment_author_url();**
 * The idea is to show the gravatar if there is an email associated otherwise if
   there is the word “facebook” in the comment author url it stamp the facebook 
   avatar..
 *     ```
       <?php
               $urlu = get_comment_author_url();
               if ($use_gravatar == "true" && !ereg("facebook",$urlu)){
               echo'<div class="gravatarr">';
                       $grav_url = "http://www.gravatar.com/avatar/" .
                       md5(strtolower(get_comment_author_email())) . "?d=" . $gravatar_default . "&s=50&r=".$gravatar_rating;
             echo "<img src='$grav_url'/></div>";
              echo '<div class="gravatarpadding">';
                 }
               elseif ($use_gravatar == "true" && ereg("facebook",$urlu)){
               echo'<div class="gravatarr">';
               $urlu = get_comment_author_url();
               $parsed = parse_url($urlu, PHP_URL_QUERY);
               $parsed = parse_str($parsed);
               $idfb = $parsed['id'];
               echo "<img src='http://graph.facebook.com/";
               echo "{$id}";
               echo "/picture?type=square' />";
               echo '</div><div class="gravatarpadding">';
                 }
           ?>
       ```
   
 * I show all the avatar from facebook and from gravatar..so it work! 🙂
 * The problem is when I try to post a comment in the form because
    there is something
   in conflict with the custom avatar.. or with the query that retrive the variables
   in wpbook.php (i suppose) because the browser stops with a blank page and the
   url [http://www.mysite.com/index.php?fb_sig_in_iframe&wpbook=comment-handler](http://www.mysite.com/index.php?fb_sig_in_iframe&wpbook=comment-handler)
 * please help me/us to integrate this new feature..
    Thanx Claudio

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