Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
FREE zz:FlashChat Drop in Flash Animated Chat Integration Details »»
FREE zz:FlashChat Drop in Flash Animated Chat Integration
Version: 1.00, by x3n0 x3n0 is offline
Developer Last Online: Sep 2008 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 05-08-2004 Last Update: Never Installs: 20
Is in Beta Stage  
No support by the author.

No modifications to your existing forums!

This single file enhancement allows one to seamlessly integrate vBulletin 3 with Nik's awesome FREE zz:FlashChat PHP/mySQL Flash based GUI chat. zz:FlashChat supports flash smiley events, MP3 sound/music events, and flash animation events, private messages, admin login, and configurable reduced moderator login.

Online demo of integration is at (registration required - Try U: goner P: goner):
http://myganjagrow.com

Naturally registration is required to see the chat. No email verification is used so you remain anonymous at my counter culture adult oriented site. Use a fake email addy if you please.

Obtain Nik's zz:FlashChat 3 beta 1.1 at: http://download.zehnet.de/ZZ_FlashChat_3_%5bbeta1.1%5d/

Install zz:FlashChat as per Nik's included instructions. The install need not reside within your forums tree. The database tables can also be added to your existing vB database and need not reside in a separate database. I cannot provide support for zz:FlashChat.

Obtain my vbulletin integration at: http://myganjagrow.com/download/zzchat_3_add_ons.rar

UnRAR the integration file "member.php" and edit all the paths to reflect where you installed vB and zz:FlashChat. Save and upload to your zz:FlashChat directory. Calling this script from within vbulletin will use the existing vB security to only allow registered vB members to join your chat. Chat member info is encrypted while in chat. Logged out/Unregistered users will be redirected to your forum registration page. Javascript pop-ups can be used to call the chat script. Index.php and login.php should be deleted from the chat directory to prevent back doors from remaining open.

I've also included a script that can enable you to display "Who's in Chat?" from any other vB page by calling users.php from the chat directory. I use it in the left sidebar at my forumhome: http://myganjagrow.com/forums/index.php

Please give me feedback and URLs if you install this. I'll try and work out the inevitable bugs.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 05-25-2004, 07:27 AM
x3n0's Avatar
x3n0 x3n0 is offline
 
Join Date: Sep 2002
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<?php
## """"" INCLUDE """"""""""""""""""""""""""""""""""""""""""""
include('./config/database.php'); # Read Database-Variables
## """"" INCLUDE """"""""""""""""""""""""""""""""""""""""""""
switch(false){
case($db = @mysql_connect($cfg['server'],$cfg['user'],$cfg['password'])):
$mysqlERROR = mysql_error();
break;
case($dat = @mysql_select_db($cfg['database'],$db)):
$mysqlERROR = mysql_error();
break;
}
if(!$mysqlERROR) {

## """"" INCLUDE """"""""""""""""""""""""""""""""""""""""""""
include('./inc/func.get_config.php'); # Read Configuration-Data
## """"" INCLUDE """"""""""""""""""""""""""""""""""""""""""""
}
# $sql = 'SELECT * FROM zz_user WHERE user!=\'admin\' and status=\'0\''; # -- get user currently online
$sql = 'SELECT * FROM '.$cfg['userdat'].' WHERE status=0';
$result = mysql_query($sql, $db);
$number = mysql_num_rows($result);
//No Users Online
if ($number==0)
{
$number= "No users in chat";
echo $number;
}
//Users Online
else
{
$message = "$number users in chat:";
echo $message;
echo "<p>";
for ($i=0; $i<"$number"; $i++)
{
$row=mysql_fetch_array($result);
$id=$row[2];
echo "$id<br>";
}
echo "<p>";
}

mysql_free_result($result);
?>
Reply With Quote
  #33  
Old 05-25-2004, 07:39 AM
x3n0's Avatar
x3n0 x3n0 is offline
 
Join Date: Sep 2002
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats the SQL query to pull the usernames from the chat data tables. Then I used the following code in my sidebar template to create the collapsable stat:

<!-- WHOS IN CHAT -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('who_chat')"><img id="collapseimg_who_chat" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
Who's in Chat?
</td>
</tr>
</tbody>

<tbody id="collapseobj_who_chat">
<tr>
<td class="alt1" width="100%"><div class="smallfont">$chat_users</a></td>
</tr>
</tbody>

<!-- /WHOS IN CHAT -->
Reply With Quote
  #34  
Old 05-25-2004, 07:44 AM
x3n0's Avatar
x3n0 x3n0 is offline
 
Join Date: Sep 2002
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Finally the following code MUST be added to the phpinclude_start template:

ob_start();
require("http://Your/Chat/Path/users.php");
$chat_users = ob_get_contents();
ob_end_clean();

Should work then.
Reply With Quote
  #35  
Old 05-25-2004, 09:33 AM
ogetbilo ogetbilo is offline
 
Join Date: Mar 2004
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you x3n0

:applause:
Reply With Quote
  #36  
Old 06-04-2004, 03:14 PM
lemarsu's Avatar
lemarsu lemarsu is offline
 
Join Date: Aug 2002
Location: .eu
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi
can someone help me please ?

Did any one try to add users online to the vBindex "vbindex_customblocks" ?

I added to phpinclude_start
Code:
// Chat
ob_start();
require("http://www.ukmonster.co.uk/chat/users.php");
$chat_users = ob_get_contents();
ob_end_clean();
and to one of the vBindex "vbindex_customblocks"
Code:
<!-- WHOS IN CHAT -->
Who's in Chat?
<div class="smallfont">$chat_users</a></div>

<!-- /WHOS IN CHAT -->
but I still get this error :

Code:
Warning: Unknown(): stream does not support seeking in /home/ukmonste/public_html/monster/global.php(395) : eval()'d code on line 10
3 users in chat:
Reply With Quote
  #37  
Old 06-05-2004, 08:23 PM
ashley53680 ashley53680 is offline
 
Join Date: Dec 2003
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by x3n0
<?php
## """"" INCLUDE """"""""""""""""""""""""""""""""""""""""""""
include('./config/database.php'); # Read Database-Variables
## """"" INCLUDE """"""""""""""""""""""""""""""""""""""""""""
switch(false){
case($db = @mysql_connect($cfg['server'],$cfg['user'],$cfg['password'])):
$mysqlERROR = mysql_error();
break;
case($dat = @mysql_select_db($cfg['database'],$db)):
$mysqlERROR = mysql_error();
break;
}
if(!$mysqlERROR) {

## """"" INCLUDE """"""""""""""""""""""""""""""""""""""""""""
include('./inc/func.get_config.php'); # Read Configuration-Data
## """"" INCLUDE """"""""""""""""""""""""""""""""""""""""""""
}
# $sql = 'SELECT * FROM zz_user WHERE user!=\'admin\' and status=\'0\''; # -- get user currently online
$sql = 'SELECT * FROM '.$cfg['userdat'].' WHERE status=0';
$result = mysql_query($sql, $db);
$number = mysql_num_rows($result);
//No Users Online
if ($number==0)
{
$number= "No users in chat";
echo $number;
}
//Users Online
else
{
$message = "$number users in chat:";
echo $message;
echo "<p>";
for ($i=0; $i<"$number"; $i++)
{
$row=mysql_fetch_array($result);
$id=$row[2];
echo "$id<br>";
}
echo "<p>";
}

mysql_free_result($result);
?>
so this whole thing is a query you need to do in sql? (I am still learning lol)
Reply With Quote
  #38  
Old 06-06-2004, 03:09 AM
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Location: Edinburgh,Scotland
Posts: 919
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

firstly how do you put a header and footer in,

then i need to intregrate into vb 3 RC 4,wot files do i need to edit please.

Also like the feature of guest havin to register, how do i do that as well :squareeyed:

Once ive done all that be Ideal for my site
Reply With Quote
  #39  
Old 06-08-2004, 09:33 PM
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Location: Edinburgh,Scotland
Posts: 919
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ive added the events,pretty cool, but looking at the attached images on first page it shows a events bar

any idea how i get this showing
Reply With Quote
  #40  
Old 06-08-2004, 09:44 PM
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Location: Edinburgh,Scotland
Posts: 919
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by x3n0
Finally the following code MUST be added to the phpinclude_start template:

ob_start();
require("http://Your/Chat/Path/users.php");
$chat_users = ob_get_contents();
ob_end_clean();

Should work then.

i'm getting this


Warning: Unknown(): stream does not support seeking in /home/virtual/site5/fst/var/www/html/forum/global.php(388) : eval()'d code on line 8

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/virtual/site5/fst/var/www/html/forum/flashchat/users.php on line 22
No users in chat
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/virtual/site5/fst/var/www/html/forum/flashchat/users.php on line 44
Reply With Quote
  #41  
Old 06-10-2004, 12:47 PM
lemarsu's Avatar
lemarsu lemarsu is offline
 
Join Date: Aug 2002
Location: .eu
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hIBEES
i'm getting this


Warning: Unknown(): stream does not support seeking in /home/virtual/site5/fst/var/www/html/forum/global.php(388) : eval()'d code on line 8
This part is the same as what I get...
I don't see where Chat calls global.php!! :ermm:

Help I want this to work

I am sure you did ..... but did you change this line : require("http://Your/Chat/Path/users.php");
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:22 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05386 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete