The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

number of group members in legend.

3 posters

Go down

Solved number of group members in legend.

Post by MissLikeICare January 17th 2023, 3:13 pm

hi.
i have a quick question.

can it be done with phpbb2 version?
https://help.forumotion.com/t161939-number-of-group-members-in-legend

thanks in advance.



Last edited by MissLikeICare on January 17th 2023, 3:33 pm; edited 1 time in total
avatar
MissLikeICare
Forumember

Female Posts : 28
Reputation : 0
Language : en

Back to top Go down

Solved Re: number of group members in legend.

Post by Razor12345 January 17th 2023, 3:18 pm

Good afternoon!

Quick answer:

Code:
$(document).ready(function() {
 
    var numberOfGroups = $(".gensmall b a").length;
 
    for (i = 0; i < numberOfGroups; i++) {
        var titleValue = $(".gensmall b a")[i].getAttribute("title");
        var numberOfUsers = titleValue.slice(titleValue.indexOf(":"));
        var originalText = $(".gensmall b a")[i].innerHTML;
        $(".gensmall b a")[i].innerHTML = originalText + numberOfUsers;
    }
 
});

Result:

number of group members in legend. Ouo75
Razor12345
Razor12345
Support Moderator
Support Moderator

Male Posts : 1594
Reputation : 270
Language : Ukr, Rus, Eng
Location : Ukraine

SarkZKalie, TonnyKamper and كونان2000 like this post

Back to top Go down

Solved Re: number of group members in legend.

Post by MissLikeICare January 17th 2023, 3:33 pm

strange... for me it's not working. will try to find, what changes causing it.
thank you @Razor12345
avatar
MissLikeICare
Forumember

Female Posts : 28
Reputation : 0
Language : en

Back to top Go down

Solved Re: number of group members in legend.

Post by skouliki January 17th 2023, 4:09 pm

marked as solved

Problem solved & topic archived.
Please read our forum rules: ESF General Rules
skouliki
skouliki
Manager
Manager

Female Posts : 15411
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum