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)

ambrosious 01-21-2005 08:41 PM

Quote:

Originally Posted by 1nf3rn0
i too have the same problem...shows duplicates of members on th emain forum page in the whos online...if there is a quick solution..can someone point me to it..

do appreciate the knowledge here and the hack is awsome!..thx again!

UPDATE:never mind...i found the problem and fixed it..thx anways!!...also it fixed seeing my own username on the forums!..

How did you fix it?

1nf3rn0 01-22-2005 07:21 AM

Quote:

Originally Posted by ambrosious
How did you fix it?


wellif you loook at the instructions given it shows this as a replacement variable in the index.php (under //Guest & Before //Configure Peeps In VBChat):

Code:

$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}

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

}

Now i dontknow anything when it comes to html or java..but idid look at one thing that was a lil a different and instead of actully manually editing it....i just copied from the main index.php from the original forum folder and pasted it to the revision for the chat (figured why not, it worked right when it was original):

Code:

$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
}

foreach($userinfos AS $userid => $loggedin)
{
$numberregistered++;
if ($userid != $bbuserinfo['userid'])
{
$inforum["$loggedin[inforum]"]++;
}
$loggedin['musername'] = fetch_musername($loggedin);

if (fetch_online_status($loggedin))
{
$numbervisible++;
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
}
}

now this showed myself online and also got rid of the dup members....currently active users is right now as well...now...because i couldnt get the whos in chat to work i just completely removed it from the forums....to me its all good....the chat is the most important part...and BTW...i did this with vb3.0.5...i dont see a problem with it woking with 3.0.6....which i will be upgrading to, soon...i hope this has helped you as all i did was copy the original index.php variable from the original vbulletin 3.0.5 and re-replaced the instructions given (since i had already followed the instros and edited the index.php)...attached is the index edited...so in essence all you have to do is open the file and edit the license # with your LEGIT license # from vbulletin (i edited my license # out for this attachment for security reasons of course) then replace the index file...:nervous:

1nf3rn0 01-22-2005 08:47 AM

Quote:

Originally Posted by nonet
Hi everyone!



However in my file I have:

Code:

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

                        if (fetch_online_status($loggedin))
                        {
                                $numbervisible++;
                                eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
                        }
                }
        }

I tried several variations and just got errors. Any ideas.

Thanks for the help!

just leave what you have alone.....and add the first part of lines in the instructions:

Code:

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

to the top of the index variable >>
Code:

while ($loggedin = $DB_site->fetch_array($forumusers)

Now get the last line of the instructions:

Code:

// 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 vBChat</i>";
        }

and enter it at the end of the index variable:

Code:

$numbervisible++;
                                eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
                        }
                }
        }

so once done it should look somehting like this:

Code:

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

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;
        }
    }

    foreach($userinfos AS $userid => $loggedin)
    {
        $numberregistered++;
        if ($userid != $bbuserinfo['userid'])
        {
            $inforum["$loggedin[inforum]"]++;
        }
        $loggedin['musername'] = fetch_musername($loggedin);

        if (fetch_online_status($loggedin))
        {
            $numbervisible++;
            eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
        }
    }
// Configure Peeps In vBChat
$invBChat ="";

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


ambrosious 01-22-2005 10:20 PM

PHP Code:

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

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;
        }
    }

    foreach(
$userinfos AS $userid => $loggedin)
    {
        
$numberregistered++;
        if (
$userid != $bbuserinfo['userid'])
        {
            
$inforum["$loggedin[inforum]"]++;
        }
        
$loggedin['musername'] = fetch_musername($loggedin);

        if (
fetch_online_status($loggedin))
        {
            
$numbervisible++;
            eval(
'$activeusers .= ", ' fetch_template('forumhome_loggedinuser') . '";');
        }
    }
// Configure Peeps In vBChat
$invBChat ="";

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



I put that in and it took care of all the multiple names, all the commas. The only issue I currently have is each person sees themselves twice.

Looks much better! Any ideas why they still see themselves twice? (And edited to say that the "Who's In Chat" shows no one chatting, ever, but they are?

Can you help again?

Toky0 01-23-2005 09:10 PM

Newb here.. How do you uninstall this hack? I like it, but it's murder on my 56k users.

djjeffa 01-24-2005 01:41 AM

ok I updated vb from .3 to .5 now what do I have to do to get this hack working again? There are no options in my admin cp and the who in chat is not showing up.

NFLForums 01-24-2005 09:33 PM

Quote:

Originally Posted by Toky0
Newb here.. How do you uninstall this hack? I like it, but it's murder on my 56k users.

Same here -- I love it, but occasionally posts disappear...and the dialup users are whining...so we have to go with a different format...

MaXxed 01-26-2005 02:28 AM

I am also looking for some help to uninstall this, I hope someone could help us?

Adrian Schneider 01-26-2005 12:40 PM

Quote:

Originally Posted by 1nf3rn0
ut that in and it took care of all the multiple names, all the commas. The only issue I currently have is each person sees themselves twice.

Looks much better! Any ideas why they still see themselves twice? (And edited to say that the "Who's In Chat" shows no one chatting, ever, but they are?

Did this, worked, but I see myself twice on the list. Any ideas?

Eagle Creek 01-26-2005 01:44 PM

Quote:

Originally Posted by TheSpecialist
Did this, worked, but I see myself twice on the list. Any ideas?

If I read all these problemes... I was planning to install it but I think I won't.


All times are GMT. The time now is 06:02 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.02133 seconds
  • Memory Usage 1,783KB
  • 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
  • (8)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)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