forked from tildeverse/tilde.chat
move members to channel stats page
This commit is contained in:
parent
07c5a44543
commit
06cba59c9a
62
index.php
62
index.php
|
@ -7,22 +7,6 @@
|
|||
<p>tilde.chat is meant to be a space for all tilde members to hang out, share, teach, and learn.</p>
|
||||
<p><a rel="me" href="https://tilde.zone/@tildeverse">!toot goes here: mastodon</a></p>
|
||||
|
||||
<!--
|
||||
<p>feel free to contact a tilde.team admin (<?php
|
||||
$members = json_decode(file_get_contents("https://tildeverse.org/members.json"))->members;
|
||||
foreach ($members as $member)
|
||||
if ($member->name == "tilde.team")
|
||||
$team = $member;
|
||||
$count = count($team->sysadmins);
|
||||
foreach($team->sysadmins as $sysadmin) {
|
||||
echo "<a href='{$sysadmin[1]}'>{$sysadmin[0]}</a>";
|
||||
if ($count>1) {
|
||||
echo ", ";
|
||||
$count--;
|
||||
}
|
||||
}?>) for more info as we flesh out this site</p>
|
||||
-->
|
||||
|
||||
<h3>connection info</h3>
|
||||
<p>you can connect to <em>irc.</em>tilde.chat on port 6697 with ssl</p>
|
||||
<p>irc.tilde.chat is a round-robin host that will return any of the <a href="wiki/?page=servers">available servers</a></p>
|
||||
|
@ -36,45 +20,11 @@
|
|||
<p>connect to mumble.tilde.chat on the default port using "tilde.chat" as the password and talk!</p>
|
||||
<p>might not be anyone there. shout about it on irc first!</p>
|
||||
|
||||
<h3>member tildes</h3>
|
||||
<ul>
|
||||
|
||||
<?php
|
||||
foreach($members as $member) {
|
||||
echo "\t\t<li><a href='{$member->link}'>{$member->name}</a> (sysadmin";
|
||||
if (count($member->sysadmins) != 1) {
|
||||
echo "s"; // plural
|
||||
}
|
||||
echo ": ";
|
||||
$count = count($member->sysadmins);
|
||||
foreach ($member->sysadmins as $sysadmin) {
|
||||
echo "<a href='{$sysadmin[1]}'>{$sysadmin[0]}</a>";
|
||||
if ($count > 1) {
|
||||
echo ", ";
|
||||
$count--;
|
||||
}
|
||||
}
|
||||
echo ", channel: {$member->channel})</li> {$member->description}<br><br>\n";
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
|
||||
<!-- misc channel info -->
|
||||
<h3><a href="/stats/">channel info and stats</a></h3>
|
||||
|
||||
|
||||
<!-- closed. see: https://tilde.chat/discord/
|
||||
<p>* = bridged to discord: tilde.chat private discord invites for tilde members <a href="/discord">here</a>. join and confirm that you're a tilde member to get access to the channels (including a private Discord channel for your tilde). bridging configuration can be adjusted per request.</p>
|
||||
-->
|
||||
|
||||
<hr>
|
||||
<h3>rules/guidelines</h3>
|
||||
<p>please see the <a href="wiki/etiquette">etiquette guide</a></p>
|
||||
<p>chatting/using tilde.chat irc servers implies agreement with the <a href="https://tilde.wiki/code-of-conduct">code of conduct</a>. the <a href="https://tilde.town/wiki/conduct.html">tilde.town code of conduct</a> applies as well.</p>
|
||||
<p>if you have anything that needs oper attention, please send a mail to opers at tilde dot chat.</p>
|
||||
<p>incidents will be handled according to the CoC as well as by admins of your home tilde</p>
|
||||
<hr>
|
||||
<h3>rules/guidelines</h3>
|
||||
<p>please see the <a href="wiki/etiquette">etiquette guide</a></p>
|
||||
<p>chatting/using tilde.chat irc servers implies agreement with the <a href="https://tilde.wiki/code-of-conduct">code of conduct</a>. the <a href="https://tilde.town/wiki/conduct.html">tilde.town code of conduct</a> applies as well.</p>
|
||||
<p>if you have anything that needs oper attention, please send a mail to opers at tilde dot chat.</p>
|
||||
<p>incidents will be handled according to the CoC as well as by admins of your home tilde</p>
|
||||
|
||||
<?php include 'footer.php'; ?>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<li><a href="/wiki/"><i class="fa fa-edit"></i> wiki</a></li>
|
||||
<li><a href="https://quotes.tilde.chat/"><i class="fa fa-comment"></i> qdb</a></li>
|
||||
<li><a href="https://web.tilde.chat/"><i class="fa fa-comments-o"></i> webchat</a></li>
|
||||
<li><a href="/stats/"><i class="fa fa-bar-chart"></i> stats</a></li>
|
||||
<li><a href="/stats/"><i class="fa fa-bar-chart"></i> channels</a></li>
|
||||
<li><a href="/badges/"><i class="fa fa-shield"></i> badges</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -2,13 +2,28 @@
|
|||
$title="stats page";
|
||||
$desc="stats about tilde.chat and its channels";
|
||||
$stats = json_decode(file_get_contents("../stats.json"));
|
||||
$members = json_decode(file_get_contents("https://tildeverse.org/members.json"))->members;
|
||||
include __DIR__."/../header.php";
|
||||
?>
|
||||
<h1>channels</h1>
|
||||
|
||||
<h3><a href="https://tildeverse.org/members/">member tildes</a></h3>
|
||||
<?php foreach($members as $member) {
|
||||
$chans = explode(", ", $member->channel); ?>
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-default" href="<?=$member->link?>"><?=$member->name?></a>
|
||||
<?php foreach ($chans as $chan) { ?>
|
||||
<a class="btn btn-primary" href="https://web.tilde.chat/?join=<?=substr($chan, 1)?>"><?=$chan?></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<h1>stats</h1>
|
||||
<hr>
|
||||
<h3>full channel stats</h3>
|
||||
<p>there are <?=$stats->usercount?> users across <?=$stats->channelcount?> channels.</p>
|
||||
<p>if the channel is set with <a href="https://wiki.inspircd.org/Channel_Modes">chanmode +s</a> it will be omitted from this list.</p>
|
||||
<p>if the channel is set with <a href="https://docs.inspircd.org/3/modes/#channel-modes">chanmode +s</a> it will be omitted from this list.</p>
|
||||
<p>the table is sortable by clicking on the column headers</p>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover">
|
||||
<thead>
|
||||
|
|
Loading…
Reference in New Issue