Blueimp User-Online Anzeige

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Blueimp User-Online Anzeige

    Hallo zusammen,

    ich suche für den Blueimp Ajax Chat eine "User-Online Anzeige" für eine einfache PHP Webseite.

    Ich habe was für Joomla gefunden;:

    Quellcode

    1. <?php
    2. $boldSetting = $params->get('boldy', 0);
    3. $chaturl = $params->get('urlchat');
    4. $fontca = $params->get('fontcoloradmin');
    5. $fontcu = $params->get('fontcoloruser');
    6. $message = $params->get('message');
    7. if ($boldy == 1) {
    8. $bb = "<b>";
    9. $be = "</b>";
    10. } else {
    11. $bb = "";
    12. $be = "";
    13. }
    14. $db =& JFactory::getDBO();
    15. $query = "SELECT * FROM ajax_chat_online";
    16. $db->setQuery($query);
    17. $rows = $db->loadObjectList();
    18. $i = 0;
    19. $lists = array();
    20. echo JText::_( 'Utenti in Chat:');
    21. foreach ( $rows as $row )
    22. {
    23. $lists[$i]->userName = $row->userName;
    24. if ($row->userRole =='3'){
    25. echo JText::_( '<font color="'.$fontca.'">' . $bb .$lists[$i]->userName . $be . '</font> ');
    26. }
    27. else{
    28. echo JText::_( '<font color="'.$fontcu.'">' . $bb .$lists[$i]->userName . $be . '</font> ');
    29. }
    30. $i++;
    31. }
    32. $content ="<p align=\"center\"><a href=".$chaturl." onclick=\"window.open(this.href,'Chat','resizable=yes,location=no,menubar=yes,scrollbars=yes,status=yes,toolbar=yes,fullscreen=no,dependent=no,width=700,height=500,left=30,top=40,status'); return false\"><img src=\"../modules/mod_blueimpajaxchat_useronline/images/chat.png\" align=\"middle\"></a><a href=".$chaturl." onclick=\"window.open(this.href,'Chat','resizable=yes,location=no,menubar=yes,scrollbars=yes,status=yes,toolbar=yes,fullscreen=no,dependent=no,width=700,height=500,left=30,top=40,status'); return false\">".$message."</a></p>";
    33. return $lists;
    34. ?>
    Alles anzeigen


    Ich brauche das aber nur für eine einfache PHP Seite, kann mir da jemand helfen?