Number of users in footer [All versions]
Page 1 of 1
Number of users in footer [All versions]
If you want to see a total number of users in each group you have in your footer, you can do so with the code I will provide (script).
How it looks:
Go to AP > Modules > Javascript management and make a new script. Name it "Number of users in footer" and for placement choose "In the home page".
Paste this code and save:
How it looks:
Go to AP > Modules > Javascript management and make a new script. Name it "Number of users in footer" and for placement choose "In the home page".
Paste this code and save:
- Code:
$(document).ready(function() {
const FORUM_VERSION = _userdata["tpl_used"];
var objs = {
'subsilver': $(".gensmall b a"),
'prosilver': $("em b a"),
'punbb': $("p b a"),
'invision': $("div b a"),
'modernbb': $(".block-footer b a"),
'awesomebb': $("em b a")
};
var numberOfGroups = objs[FORUM_VERSION].length;
for (i = 0; i < numberOfGroups; i++) {
var titleValue = objs[FORUM_VERSION][i].getAttribute("title");
var numberOfUsers = titleValue.slice(titleValue.indexOf(":"));
var originalText = objs[FORUM_VERSION][i].innerHTML;
objs[FORUM_VERSION][i].innerHTML = originalText + numberOfUsers;
}
});
invisible_fa, SarkZKalie, TonnyKamper and كونان2000 like this post
Similar topics
» How do I add a registration number for users
» I want remove the number of users and posts
» Add drawing modal [All versions]
» The number of topics does not match the number of articles
» Add a number to the number of awards earned
» I want remove the number of users and posts
» Add drawing modal [All versions]
» The number of topics does not match the number of articles
» Add a number to the number of awards earned
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum