Profile Manager v13.0.1

Release Notes

13.0.1 (2017-11-01):

  • fixed: multiselect not looking good if ajax loaded

13.0 (2017-10-04):

  • changed: updated to use composer version of jquery multiselect v2.0.1
  • fixed: incorrect registration of translations in multilingual sites
  • fixed: tag input on register form needs to be converted to array
  • removed: profile_manager_add_profile_icon is no longer available

12.0 (2017-02-27):

  • added: avatar can be counted towards profile completeness
  • added: input/tel is now an available input type
  • changed: updated minimal Elgg requirements to 2.3
  • fixed: load correct field config adding group profile fields
  • fixed: use newer api functions to check for uploaded profile icons
  • FYI - 

    The FB Follow Button has been deprecated.  So, the close alternative that I was able to match was Like Button.  If you want the Facebook Field to work with "Like" instead of Follow, you can make changes to "pm_facebook.php".

    Just browse to mod/profile_manager/views/default/output/ where you will find "pm_facebook.php".  You can rename the file with a "." (dot) in front of it (add "." as prefix) ".pm_facebook.php". This way you preserve the original file. 

    Now create another file called pm_facebook.php - Edit and copy paste the following codes:

    BTW, you can also download the file from https://www.myhotfb.com/file/view/2122/pm-facebook and simply upload it after you have renamed the original file.


     

    <?php
    
    /**
    
     * More info about facebook follow button: https://developers.facebook.com/docs/plugins/like-button
    
     */
    
    
    global $PROFILE_MANAGER_OUTPUT_FACEBOOK;
    
    $href = elgg_extract('value', $vars);
    
    
    if (empty($href)) {
    
    return;
    
    }
    
    
    echo '<div class="profile-manager-output-facebook">';
    
    $attrs = [
    
    'class' => 'fb-like',
    
    'data-href' => $href,
    
    'data-colorscheme' => 'light',
    
    'data-layout' => 'button',
    
    'data=show-faces' => 'false'
    
    ];
    
    echo elgg_format_element('div', $attrs);
    
    echo '</div>';
    
    
    if (!isset($PROFILE_MANAGER_OUTPUT_FACEBOOK)) {
    
    $PROFILE_MANAGER_OUTPUT_FACEBOOK = true;
    
    echo <<<__FACEBOOK
    
    <div id="fb-root"></div>
    
    <script>(function(d, s, id) {
    
      var js, fjs = d.getElementsByTagName(s)[0];
    
      if (d.getElementById(id)) return;
    
      js = d.createElement(s); js.id = id;
    
      js.src = "https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0";
    
      fjs.parentNode.insertBefore(js, fjs);
    
    }(document, 'script', 'facebook-jssdk'));</script>
    
    __FACEBOOK;
    
    }

Jeroen Dalsem

Owner of ColdTrick IT Solutions, developing social networking sites for the dutch market

Stats

  • Category: User admin
  • License: GNU General Public License (GPL) version 2
  • Updated: 2024-6-28
  • Downloads: 111105
  • Recommendations: 298

Other Projects

View Jeroen Dalsem's plugins