• Administrator
    Information: Choosing social login option will register your account automatically without the need for email confirmation.

[JavaScript] Online users hack (Show 99hours as last xx hours)

A place for codes and tutorials which will improve the functionality of your board.
Post Reply
User avatar
Posts: 21
Joined: Sat Jan 06, 2018 4:56 pm

Sat Jan 06, 2018 11:41 pm

Well, if your forum is lacking activity and you want to show people that you have more online users in e.g. 24 hours, this tool will help you with that.

Installation Steps:
  • Create a new Javascript
  • Placement: In index page
  • Name: online_user_hack

Code: Select all

$(function() {
    var c = document.getElementsByClassName('pun');
    for (i = 0; i < c.length; i++) {
        c[i].innerHTML = c[i].innerHTML.replace(/Members connected during last 99 hours :/g, 'Members connected during last 24 hours:')
Post your questions here.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest