inherit
223470
0
Feb 27, 2019 17:05:53 GMT -8
₪» ⅀ ƪ Ƒ «₪
Original registration date: 2007. DeviantART: http://deviantart.com/ruanly. Discord: Ruanly#7946.
1,281
July 2015
fajita
|
Post by ₪» ⅀ ƪ Ƒ «₪ on Jan 18, 2018 11:56:10 GMT -8
I have a javascript code that adds all of the total members online into a single number, like this:
<script> var totalOnline = $[total_staff_online] + $[total_members_online]; document.write(totalOnline + ''); </script>
Could a secondary math equation be added to it where I can manually subtract a specific amount from the automatic member total? So I can remove inactive accounts from it =3 I know I'll have to manually input a number whenever I alter how many inactive accounts there are, that's okay ^^
|
|
Kami
Forum Cat
Posts: 40,204
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,204
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jan 18, 2018 12:14:46 GMT -8
Maybe I'm being silly but can you not just add the subtraction to the totalOnline?
var totalOnline = $[total_staff_online] + $[total_members_online] - 0;
|
|
inherit
223470
0
Feb 27, 2019 17:05:53 GMT -8
₪» ⅀ ƪ Ƒ «₪
Original registration date: 2007. DeviantART: http://deviantart.com/ruanly. Discord: Ruanly#7946.
1,281
July 2015
fajita
|
Post by ₪» ⅀ ƪ Ƒ «₪ on Jan 18, 2018 14:40:01 GMT -8
Oh oops, the script I put in the OP was for a different area in the info center. I'm apparently just using the variable $[total_members] for my total accounts so I need the subtraction from that.
|
|
Kami
Forum Cat
Posts: 40,204
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,204
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jan 18, 2018 14:54:05 GMT -8
Oh lol. I'm no good with JS so I'll bow out and hopefully someone can respond soon. Sorry ^^;'
|
|
inherit
223470
0
Feb 27, 2019 17:05:53 GMT -8
₪» ⅀ ƪ Ƒ «₪
Original registration date: 2007. DeviantART: http://deviantart.com/ruanly. Discord: Ruanly#7946.
1,281
July 2015
fajita
|
Post by ₪» ⅀ ƪ Ƒ «₪ on Jan 18, 2018 14:55:00 GMT -8
Me neither haha thank you for trying! =D
|
|