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)

Corriewf 01-18-2005 03:10 PM

Quote:

Originally Posted by djnth
I actually had the same problem because this mod had me add text to the controlpanel/index.php file in the same spot that vbarcade did. which resulted in this text being one line too low. I moved it up one line above the <quote>$printhr = true ;</quote> that was already there and it worked.

Thanks.

Tipi 01-18-2005 09:33 PM

"Users Currently Inside vBChat " show up blank, what have I missed to upload? :confused:

Joe Black 01-18-2005 10:34 PM

Quote:

Originally Posted by Tipi
"Users Currently Inside vBChat " show up blank, what have I missed to upload? :confused:

I think this may be a 3.0.4 bug, as the same thing happened to me after the vB upgrade. Just edit the forum_home template to not show it at all, the "Who's Online" still shows who's in vBChat for those that want to know without going into chat.

ambrosious 01-19-2005 01:23 AM

Can someone help me sort some code here? I'll put it all in a box so prying eyes don't see...

PHP Code:

Alright here are the instructions:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
FIND:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    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;
        }
    }
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
REPLACE WITH:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    
// 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;
        }

        if(
preg_match("/vBChat.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 vBChat</i>";
    }



But when I look at my filewellit's been hacked so I have this:

        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') . '";');
                        }
                }
        }




So I improvised and added it best I could to get this:

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;
                        }
                        if(preg_match("/vBChat.php/",$loggedin['
location']) && $loggedin['userid']){
                $vbchat_users[$loggedin['
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 = ", ";
                        }

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

But I am getting errors in the Who's online box (maybe called the "what's going on" box?)


Me trying to integrate the two of them, probably wasn't the brightest thing, i just can't figure out why I'm getting name duplication (it shows 4 of me, two of you, 3 of him online, but when you click the who's online link, everyone is back to being singular entities and I'm getting comma's.)

I run an adult site, but if you need to look at the error, I attached an example.

yoyoyoyo 01-19-2005 04:46 AM

I understand that in the 1.0.1 version of this hack this was an "upgrade":
Quote:

User Status - User status is displayed in the vBChat Page (in replace of time/date)
How can I get the time/date to display instead? I think that this should be an admin option (to choose to display either time/date, or user-defined chat status).

Tipi 01-19-2005 02:54 PM

Quote:

Originally Posted by Joe Black
I think this may be a 3.0.4 bug, as the same thing happened to me after the vB upgrade. Just edit the forum_home template to not show it at all, the "Who's Online" still shows who's in vBChat for those that want to know without going into chat.


This is what Forum_home say's about the chat:

PHP Code:

<!-- Start vBChat Users -->
<
tbody>
    <
tr>
        <
td class="thead" colspan="2">
            <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumhome_chatusers')"><img id="collapseimg_forumhome_chatusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatusers].gif" alt="" border="0" /></a>
            <
a href='vBChat.php?$session[sessionurl]'>Users Currently Inside vBChat</a>
        </
td>
    </
tr>
</
tbody>
<
tbody id="collapseobj_forumhome_chatusers" style="$vbcollapse[collapseobj_forumhome_chatusers]">
    <
tr>
        <
td class="alt2"><a href="vBChat.php?$session[sessionurl]"><img src="$stylevar[imgdir_statusicon]/forum_link.gif" alt="vBChat" border="0" /></a></td>
        <
td class="alt1" width="100%">
            <
div class="smallfont">
                        {
$invBChat}
            </
div>
        </
td>
    </
tr>
</
tbody>
<!-- 
End vBChat Users --> 

What should I remove? :nervous:

ambrosious 01-20-2005 12:09 AM

Could anyone help with my coding problem?

nonet 01-20-2005 03:46 PM

Hi everyone!

I am installing vBChat v1.1.1 and have an issue with changing the root index.php file. I am running version 3.0.1 with several hacks and the code does not match that I am to replace. I am suppossed to find:

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

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!

Toky0 01-20-2005 08:13 PM

How do you uninstall this hack?

1nf3rn0 01-21-2005 05:34 PM

Quote:

Originally Posted by ambrosious
i just can't figure out why I'm getting name duplication (it shows 4 of me, two of you, 3 of him online, but when you click the who's online link, everyone is back to being singular entities and I'm getting comma's.)

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!..


All times are GMT. The time now is 12:56 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.02387 seconds
  • Memory Usage 1,843KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (5)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