The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
FREE zz:FlashChat Drop in Flash Animated Chat Integration Details »» | |||||||||||||||||||||||||||
FREE zz:FlashChat Drop in Flash Animated Chat Integration
Developer Last Online: Sep 2008
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
|
Comments |
#32
|
||||
|
||||
<?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); ?> |
#33
|
||||
|
||||
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 --> |
#34
|
||||
|
||||
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. |
#35
|
|||
|
|||
thank you x3n0
:applause: |
#36
|
||||
|
||||
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(); Code:
<!-- WHOS IN CHAT --> Who's in Chat? <div class="smallfont">$chat_users</a></div> <!-- /WHOS IN CHAT --> 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: |
#37
|
|||
|
|||
Quote:
|
#38
|
||||
|
||||
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 |
#39
|
||||
|
||||
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 |
#40
|
||||
|
||||
Quote:
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 |
#41
|
||||
|
||||
Quote:
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"); |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|