Points in Memberlist
3 posters
Page 1 of 1
Points in Memberlist
Technical Details
Forum version : #phpBB3
Position : Founder
Concerned browser(s) : Opera/Chrome
Screenshot of problem : -removed-
Who the problem concerns : All members
When the problem appeared : From start
Forum link : -removed-
Description of problem
Hi, I am trying to get the points to be visible within the memberlist for all filters, not only when it is sorted by points. Considering there's a point system in place, I struggle to understand why this can't be turned on by default.
When using the code in the link below, I can get it to work, but as soon as I remove the tables within the memberlist, the code stops functioning once again. I assume the problem is somewhere within the Selector, but I cannot find the solution.
https://help.forumotion.com/t162610-points-in-memberlist?highlight=memberlist+points
Is there a way to get this to work within a custom memberlist? Thanks in advance!
Last edited by xiyi on October 31st 2024, 2:13 pm; edited 1 time in total
xiyi- New Member
- Posts : 2
Reputation : 1
Language : NL
Re: Points in Memberlist
Coucou,
in the past I wrote this code, maybe you can give it a try
in the past I wrote this code, maybe you can give it a try
- Code:
$(function() {
$('.forumbg.forumbg-table th.name').after('<th class="points">Points</th>');
$('.forumbg.forumbg-table table#memberlist tbody tr').each(function() {
var element = $(this);
var user = $(this).find('td.avatar-mini a');
var user_link = user.attr('href');
var user_id = user_link.match(/\d+/g);
$(this).find('td.avatar-mini').after('<td class="points_memberlist" uid="' + user_id + '"></td>');
$.ajax({
url: user_link,
type: 'GET',
success: function(data) {
var user_points = $(data).find('dl#field_id-13 dd').text();
$('.points_memberlist[uid="' + user_id + '"]').html(user_points);
}
});
});
});
- Before:
- After:
TonnyKamper likes this post
Re: Points in Memberlist
Thank you so much! With this I finally got it to work.
xiyi- New Member
- Posts : 2
Reputation : 1
Language : NL
Niko likes this post
Re: Points in Memberlist
Thank you @Niko for your help.
Hello @xiyi welcome to the English support forum.
Hello @xiyi welcome to the English support forum.
Problem solved & topic archived.
|
Niko likes this post
Similar topics
» Points in memberlist
» Rounded avatars in Memberlist
» Is there any way to chnage how many points someone has outside the points donation?
» Points Per Day > Points Per Daily Login
» Memberlist-problems
» Rounded avatars in Memberlist
» Is there any way to chnage how many points someone has outside the points donation?
» Points Per Day > Points Per Daily Login
» Memberlist-problems
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum