By Ulysses Gonzalez on Monday, 24 July 2017
Posted in General Issues
Replies 3
Likes 0
Views 494
Votes 0
In conjunction with support ticket:
Badges - Unable to View Other Member Badges/Achievements

The only thing I did notice after replacing PHP was when you view another member's achievements the achievements display under their name, even if disabled.

Is there any way to disable this so they only show underneath?
Hi Ulysses,

Perhaps I'm not explain you clearly, for the setting above, it actually only effect on the user's
profile page/view ( https://www.screencast.com/t/4qEEaFj0 ), so it will not effected on other view/page in achievements, videos (in the mini header) so it is not actually a bug at the first place.

And you can customize the code as I given earlier in order to remove the badges from the mini header
·
Tuesday, 25 July 2017 16:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Ulysses,

The setting display badges (settings>users>layout>display badges) https://www.screencast.com/t/MORLlyjt1sZ actually shows for the profile page view.
However you can remove/comment out the code

<?php if ($user->badgesViewable($this->my->id)) { ?>
<div class="es-mini-header__badges">
<?php foreach ($user->getBadges() as $badge) { ?>
<a href="<?php echo $badge->getPermalink(); ?>" data-original-title="<?php echo $badge->getTitle(); ?>" data-placement="top" data-es-provide="tooltip" class="badge-link">
<img src="<?php echo $badge->getAvatar(); ?>" alt="<?php echo $badge->getTitle(); ?>">
</a>
<?php } ?>
</div>
<?php } ?>

in the file:
.../components/com_easysocial/themes/wireframe/helpers/user/mini.header.php
line 61-70
·
Monday, 24 July 2017 19:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, and yeah that feature is disabled (see attached).
It only seemed to show the achievements when the user would click on the member's achievements (see attached).
That is when they would also show under their name.

Not horrible, but I thought once disabled it would disable it from all views entirely.
I just wanted to be certain it wasn't another bug we needed to squash

In the meantime, I'll just use the code you gave...

Thanks very much!
·
Tuesday, 25 July 2017 13:16
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post