25 lines
879 B
PHP
25 lines
879 B
PHP
<?php
|
|
$title = "status badges";
|
|
$desc = "status badges for online user counts";
|
|
include '../header.php';
|
|
?>
|
|
<h1>tilde.chat online status badges</h1>
|
|
<p>thanks to <a href="https://shields.io/">shields.io</a> and custom badge support, we now have user count badges!</p>
|
|
<table class="table table-striped table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>Example</th><th>URL</th><th>Result</th>
|
|
</tr>
|
|
</thead>
|
|
<tr>
|
|
<td>Network user count</td><td>https://tilde.chat/badges/badge.php</td><td><img src="badge.php"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>User count for #meta</td><td>https://tilde.chat/badges/badge.php?channel=%23meta</td><td><img src="badge.php?channel=%23meta"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Invalid channel name (error handling)</td><td>https://tilde.chat/badges/badge.php?channel=invalid</td><td><img src="badge.php?channel=invalid"></td>
|
|
</tr>
|
|
</table>
|
|
<?php include '../footer.php'; ?>
|