vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBChat v2.3 (https://vborg.vbsupport.ru/showthread.php?t=71049)

parabat 05-23-2006 06:29 PM

Quote:

Originally Posted by Ramsesx
You only need to download the new files and dont forget:

Thanx for that Ramsex :cool:

floydian1 05-23-2006 09:16 PM

I have done the following...

Import product-vBChat.xml as a product from admincp - DONE

I found the first part of the file in index.php - DONE

But the second part says to look for something:

while ($loggedin = $db->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}

if(preg_match("/chat.php/",$loggedin['location']) && $loggedin['userid']){
$vbchat_users[$loggedin['userid']] = $loggedin;

----------------------------

How can I have the line $vbchat_users[$loggedin['userid']] = $loggedin; if I never had vb chat up and running?

I looked for the line and found the first part... but it never mentioned VBChat.

What am I missing?

I'm half way through the install.

Ramsesx 05-23-2006 09:48 PM

There is an error in the second part of the install.txt
Find:
PHP Code:

    while ($loggedin $DB_site->fetch_array($forumusers))
    {
        
$userid $loggedin['userid'];
        if (!
$userid)
        {    
// Guest
            
$numberguest++;
            
$inforum["$loggedin[inforum]"]++;
        }
        else if (empty(
$userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
        {
            
$userinfos["$userid"] = $loggedin;
        }
    } 

and replace with this:

PHP Code:

    // Get the users in vBChat
    
$vbchat_users = array();

    while (
$loggedin $db->fetch_array($forumusers))
    {
        
$userid $loggedin['userid'];
        if (!
$userid)
        {    
// Guest
            
$numberguest++;
            
$inforum["$loggedin[inforum]"]++;
        }
        else if (empty(
$userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
        {
            
$userinfos["$userid"] = $loggedin;
        }

        if(
preg_match("/chat.php/",$loggedin['location']) && $loggedin['userid']){
        
$vbchat_users[$loggedin['userid']] = $loggedin;
        }

    }

    
// Configure Peeps In vBChat
    
$invBChat "";

    if(
is_array($vbchat_users)){
        foreach(
$vbchat_users as $invbc){
            if(
$invBChat == ""){
            
$extra "";
            } else {
            
$extra ", ";
            }

        
// Get Username Style
        
$invbc['musername'] = fetch_musername($invbc);

        
$invBChat .= "{$extra}<a href='member.php?{$session['sessionurl']}&u={$invbc['userid']}'>{$invbc['musername']}</a>";
        }
    }

    if(
$invBChat == ""){
    
$invBChat "<i>No one is currently inside Chat</i>";
    } 


Eric 05-23-2006 11:11 PM

Eek, well. I've run into a slight few problems. And I don't have alot of free time so I may not be able to "finish" it. But thinking over it...i've rewritten a small portion of it. So i'd rather have ZT's permission anyway (I know, I saw the thread, I know he hasn't been here in a while..but I'd feel better about it if I did). And Milad's port as-is seems to work just fine :)

floydian1 05-24-2006 10:47 AM

Thanks... that worked GREAT.

It looks great... it works great... and the members LOVE IT!

floydian1 05-24-2006 11:32 AM

Whoa... all of a sudden now when I go to my members page, I get this error...

Warning: mktime() expects parameter 4 to be long, string given in /memberlist.php on line 660

Is this due to the chat? It was working fine until I did this install.

floydian1 05-24-2006 04:49 PM

The space bar is acting as an enter key for some people.

They are only able to get in one word at a time.

Anyone else experiencing that?

I may have to unload the script. It appears to be causing problems.

floydian1 05-24-2006 05:10 PM

Is three a way to speed up the refresh?

Snake 05-24-2006 06:54 PM

Awesome just installed it on my forums and it seems to work fine. ;) Thank you once again, Milad.

Also I have noticed one thing. Why do you I get a blank popup window when exiting the chat room? This is weird!

Kungfu 05-24-2006 08:59 PM

i know theres no support for 3.5 but i have a question. When i open its blank and lately my forums have been acting up where some things just wont open. Anyone know why this is? It just goes to a blank page.


All times are GMT. The time now is 02:32 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02145 seconds
  • Memory Usage 1,764KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete