Ik heb PCPIN (http://www.pcpin.com) geinstalleerd op mijn board en die werkt, maar ik wilde chatstats weergegeven krijgen op de index pagina van mijn board (waar ook staat wie er online zijn e.d.
Volgens het support forum moet ik het volgende doen:
Nu ben ik geen PHP expert (verre van dat) en ik heb het één en ander uitgeprobeerd, maar krijg het niet voor elkaar, wat wel werkt is dat stukje PHP script, als ik dat start krijg ik de benodigde info te zien, maar ik wil het verwerkt hebben op de index.... Ik heb het ook al op het supportforum van PCPIN gevraagt maar daar wordt vrijwel niet gereageerd op support vragen....Post: #1PCPIN Chat live info
The new feature of PCPIN Chat version 5 is interface.
You can get PCPIN Chat live information (such as online users count, room list etc.) so simple as never before.
How to use PCPIN Chat interface?
There is a file named interface.php in your chat root directory. Call that file and you will get requested information displayed, depending on call parameters.
Call format:
http://www.yoursite.com/path_to_chat_di ... =LIST_TYPE
INFO_TYPE is type if information you need. There are following possible values:
1 Total online users count
2 Total rooms count
3 Online users list
4 HTML colored online users list
5 Rooms list
6 Rooms with online users count (in each room) list
7 Rooms with online usernames list
8 Rooms with HTML colored online user names list
LIST_TYPE is output list format. There are following possible values:
list Will display formatted using HTML <li> tags list
any other value or empty value Will display comma-separated list
EXAMPLES:
interface.php?t=1 will display total online users count in your chat
interface.php?t=3&list_type=list will display online users list formatted using HTML <li> tag:
How to call interface.php from your PHP scripts?
Here is the example of PHP script that uses such call (will display chat rooms with colored usernames list in each room):
<html>
<head>
<title>Chat information</title>
</head>
<body>
Here is my chat live information:
<br>
<?INCLUDE('http://www.yoursite.com/chat/interface. ... _type=list');?>
</body>
</html>
In this example INFO_TYPE is 8 and LIST_TYPE is list
Als iemand mij een hint kan geven hoe en waar ik code moet plaatsen graag!

