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 Tue 17 Jan - 16:13

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 Tue 17 Jan - 16:33; 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 Tue 17 Jan - 16:18

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 : 1493
Reputation : 262
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 Tue 17 Jan - 16:33

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 Tue 17 Jan - 17:09

marked as solved

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

Female Posts : 15211
Reputation : 1700
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