Chat-ideetje

Gestart doorAzdin10 reacties820 weergaven

11 berichten · pagina 1 van 1

Azdin

Lid · Topicstarter

Berichten
21.633
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hey,

Misschien handig om bij het menu naast Chat een getal tussenhaakjes te zetten, van hoeveel leden er in de chat zijn.
Zoals de oude chat die had dat ook zoals:
Chat (7) - Er zijn 7 leden in de chat.

Wel zo handig vind ik, soms kijk ik en zit er niemandcry
0
Berichten
6.722
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Niet noodzakelijk maar wel handig ja. smile
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Het is de vraag of dat wel mogelijk is met dit chatsysteem
0
Azdin

Lid · Topicstarter

Berichten
21.633
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hoezo niet?
En idd niet noodzakelijk, wel handig lijkt meyummie
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik zeg alleen dat ik niet weet of het mogelijk is. Niet elk systeem werkt hetzelfde
0
Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Het Users Systeem is er ook aangekoppeld Dus het moet kunnen
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Ik vind het een best goed idee.
Je kan in de chat wel zien wie er in de chat is maar dat is niet super overzichtelijk.

TOP IDEEE pompom
0
Azdin

Lid · Topicstarter

Berichten
21.633
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Word hier nog naar gekeken?yummie
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Ja maar denk niet dat het er komt, moet namelijk eerst uit gaan zoeken hoe en waar wordt opgeslagen wie er in de chat is.
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]

[URL="http://www.php.net/require_once"]require_once[/URL] [URL="http://www.php.net/dirname"]dirname[/URL][COLOR= #007700]([/COLOR]__FILE__[COLOR= #007700]).[/COLOR][COLOR= #DD0000]"/../src/pfcinfo.class.php"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$info[/COLOR]  [COLOR= #007700]= new[/COLOR] pfcInfo[COLOR= #007700]([/COLOR] [URL="http://www.php.net/md5"]md5[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Whois online demo"[/COLOR][COLOR= #007700]) );[/COLOR]
[COLOR= #FF8000]// NULL is used to get all the connected users, but you can specify
// a channel name to get only the connected user on a specific channel[/COLOR]
[COLOR= #0000BB]$users[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$info[/COLOR][COLOR= #007700]->[/COLOR]getOnlineNick[COLOR= #007700]([/COLOR]NULL[COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<h1>A demo which explains how to get the connected users list</h1>"[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div style="margin: auto; width: 70%; border: 1px solid red; background-color: #FDD; padding: 1em;">[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$info[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$nb_users[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/count"]count[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$users[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$nb_users[/COLOR] [COLOR= #007700]<=[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])[/COLOR]
  [COLOR= #0000BB]$info[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"<strong>%d</strong> user is connected to the server !"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
  [COLOR= #0000BB]$info[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"<strong>%d</strong> users are connected to the server !"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<p>"[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/sprintf"]sprintf[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$info[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$nb_users[/COLOR][COLOR= #007700]).[/COLOR][COLOR= #DD0000]"</p>"[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<p>Here is the online nicknames list of <a href=./demo31_show_who_is_online-chat.php>this chat</a>:</p>"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<ul>"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/foreach"]foreach[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$users[/COLOR] [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$u[/COLOR][COLOR= #007700])
{[/COLOR]
  [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<li>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$u[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"</li>"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"</ul>"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"</div>"[/COLOR][COLOR= #007700];[/COLOR]

?>


zoiets moet je dan gebruiken?
dan is die $nb_users het aantal denk ik, maar misschien even cachen dit aantal ? puh2
edit: als ik in die pfcInfo class kijk staat er al wel iets van cache, geen idee wat die doet.
0
Luna

Lid

Berichten
1.190
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik vind het idee wel handig ! thumbsupHoopelijk komt het er ook...
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren