inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on May 1, 2013 10:26:05 GMT -8
Forum URL: exdat.freeforums.net I want it so that if no members[/i] (including staff - since they are members) are online, then the info center to display a message saying "there are currently no members online" (purely so the info center doesn't look weird). This is what I have: {foreach $[online_user]} $[online_user]{if $[online_user.invisible]} <span class="small">(ninja)</span>{/if}$[online_user.comma] {/foreach} {if $[total_online] == 0}<i>there are currently no members online</i>{/if} {if $[total_online_not_shown]} , and <a class="$[view_active_members_link.class]" href="$[view_active_members_link.href]">$[total_online_not_shown] more...</a> {/if} As you can see though, that counts guests. So if there is 1 guest online, the message in there doesn't show up. Even if I have 1,000 guests currently online, but no members and staff, I want the "currently no members" message to appear. How would I achieve this? Thanks in advance
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on May 1, 2013 10:40:45 GMT -8
You would need to do something with some if statements containing the staff and member count variables. Perhaps some {if} and {else} statements catering to every possible online member situation.
That should get you started.
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on May 1, 2013 10:47:09 GMT -8
You would need to do something with some if statements containing the staff and member count variables. Perhaps some {if} and {else} statements catering to every possible online member situation. That should get you started. I love you and "get me started"... it does the whole thing lol - which of course I am not complaining about, I get really confused with elseif's and the likes. if's I can just about manage
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on May 1, 2013 11:02:08 GMT -8
Well you still need to make an else statement for when there are members online.
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on May 1, 2013 11:08:54 GMT -8
Well you still need to make an else statement for when there are members online. But that's already there.. It all works fine. I tested with guest, member and admin, all show correctly
|
|
blueshead
Full Member
More hot peppers please!
Posts: 928
inherit
185994
0
Jun 17, 2018 15:20:52 GMT -8
blueshead
More hot peppers please!
928
November 2012
mrblueshead
|
Post by blueshead on May 8, 2013 19:03:10 GMT -8
I'd like to try this out.. It would be nice if you told us non hip people where to place it?
|
|