You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 61 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Can I Convert This Into a Block??? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
dirtbag
Lieutenant
Lieutenant


Joined: May 08, 2003
Posts: 159


PostPosted: Tue Jul 08, 2003 1:20 am Reply with quoteBack to top

Okay i been trying out some of the different Live Chat module created for PHPNuke and the HTML based ones run pretty bad and the refresh thing is irritating.. Anyways to my point.. i started searching for some other ones made out of PHP and FLash and tried a couple and i found a Flash one that works good and easy to install.. ZZ:FlashChat 2.2 you can check out a working demo there..

website--> http://download.zehnet.de/
demo--> http://download.zehnet.de/ZZ_FlashChat_2.2/DEMO_ZZ_FlashChat_2.2

i would like to make this index.php into a block as wondering if it could be done?? here is the code.


Code:
<?
header("Expires: ".gmdate("D, d M Y H:i:s")."GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
## """"" INCLUDE """"""""""""""""""""""""""""""""""""""""""""
include('./inc/inc.config.php'); # Read Configuration-Data
## """"" INCLUDE """"""""""""""""""""""""""""""""""""""""""""

if ($server && $user && $password) {
   if(@mysql_connect($server,$user,$password)) {
      $db = mysql_connect($server,$user,$password);
      $dat = mysql_select_db($datab);
      
      $sql = "SELECT status FROM $userdat WHERE user='admin'";
      $result = mysql_query($sql, $db);
      $row = mysql_fetch_array($result, MYSQL_NUM);
      
      if ($row[0] == '0') {                                  # -- if chat is open               
         
         ## """"" INCLUDE """"""""""""""""""""""""""""""""""""""""""""
         include('./inc/func.user.php'); # Get User-Management-Function
         ## """"" INCLUDE """"""""""""""""""""""""""""""""""""""""""""
   
         $sql = 'SELECT * FROM '.$userdat.' WHERE user!=\'admin\' and status=\'0\'';    # -- get user currently online
         $result = mysql_query($sql, $db);
         $number = mysql_num_rows($result);
         
         $number = "There are $number persons in the chat at the moment:";
         $link = '<a href="#" onClick="openchat();">[ open ZZ:FlashChat ]</a>';
      
      } else { #- if chat is closed
         $number = 'The chat is closed at the moment !';
      }
   @mysql_close($db);
   } else {
      $number = '<b>MySQL Connection failed !</b><br>
      One of the following variables $server, $user or $password in the config file <br>is incorrect for your connection !';
   }# END IF CONNECT
} else {
   $number = 'The Variable $server, $user or $password was NOT specified in the config file !';
}# END IF SERVER + USER + PASSWORD
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ZZ:FlashChat - Start</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="author" content="download.zehnet.de">
<meta name="description" content="ZZ:FlashChat is a simple MySQL-based Chat Program with Flash-Interface,
No annoying page refreshes, No cookies, No applets are required ! (http://download.zehnet.de)">
<meta name="keywords" content="download.zehnet.de, Chat, Flash, PHP, MySQL, Script, Free">
<link href="inc/styles.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript"><!--
function openchat() {
  window.open('login.php','chat','resizable=yes,scrollbars=no,width=650,height=500');
}
//--></SCRIPT>
</head>

<body scroll=no>
<table width="100%" height="90%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center">
   <strong><? echo $number ?></strong><br>
      <br>
     <? echo $link ?>
      </td>
  </tr>
</table>
</body>
</html>

_________________
Rick Estrada
http://www.subfighter.com
Online Jiu Jitsu Techniques MMA News
Find all posts by dirtbagView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.193 Seconds - 215 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::