[Elgg 1.8-1.12 & 2.X & 3.X: Elggx Userpoints] v1.8.11

Release Notes

  • Minor layout adjustment for a user's userpoints info on profile pages,
  • Layout adjustments for userpoints' plugin settings pages,
  • Replacing private Elgg API functions where possible.
  • Is there a way to allow only a user to see his user point accumulation, rather than show it publicly on his profile page?

  • @hleroy I would suggest to comment out the registering of the widgets in start.php, i.e. the functions elgg_register_widget_type() as these widgets would make no sense anymore, if user's should not see the userpoints of others.

    To display the userpoints on the profile page only to the user himself but not others who visit this page you would have to change mod/elggx_userpoints/views/default/elggx_userpoints/icon.php to


    if (elgg_get_context() == 'profile' && $vars['size'] == 'large') {
        if (elgg_get_plugin_setting('profile_display', 'elggx_userpoints')) {
            if (elgg_get_logged_in_user_guid() == elgg_get_page_owner_guid() || elgg_is_admin_logged_in()) {

                <div class="userpoints_profile mtm">
                    <div><span><?php echo elgg_echo('elggx_userpoints:upperplural') . ': ' . $vars['entity']->userpoints_points;?></span></div>

            <?php } ?>
        <?php } ?>
    <?php } ?>



  • Category: Misc
  • License: GNU General Public License (GPL) version 2
  • Updated: 2021-2-14
  • Downloads: 13537
  • Recommendations: 50

Other Projects

View iionly's plugins