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)

Kyderoy 02-12-2005 04:20 AM

I am having the same problem with the blank page .... I checked everything ...

sv1cec 02-12-2005 04:41 AM

Quote:

Originally Posted by Kyderoy
I am having the same problem with the blank page .... I checked everything ...

Could you please be more specific? Were you able to see them before and now you can't?

Rgds

Kyderoy 02-12-2005 04:45 AM

No I just finished the install and when I click the vbchat link in the menu bar i get a blank page. I double checked the templates so I am now lost. :(

Daniel.C 02-12-2005 09:18 AM

Me too i double checked the templates and still nothing but a blank page. http://www.infinitiveintentions.com/forums/vBChat.php?

sv1cec 02-12-2005 09:47 AM

Quote:

Originally Posted by Daniel.C
Me too i double checked the templates and still nothing but a blank page. http://www.infinitiveintentions.com/forums/vBChat.php?

Are you using more than one style? Maybe the templates are not in all styles.

Just a thought.

Rgds

Raven_FCF 02-12-2005 02:31 PM

Quote:

Originally Posted by sv1cec
I am not sure what exactly you want. You want the user names, for the users who are in the chat?


yep. i want usernames current;y inside chat to appear in left block on front page. will the one you gave me work?

Daniel.C 02-12-2005 06:48 PM

Quote:

Originally Posted by sv1cec
Are you using more than one style? Maybe the templates are not in all styles.

Just a thought.

Rgds

Nope i only have the one style up, i gues the hack just doesn't want to work.

highlander_RD 02-16-2005 08:55 AM

Great hack, zero tolerance: thank you!
clicked ***install ***

I would be very impressed if you can add few more improvements:

1) a text formatting bar (Font, size, color, bold, italic, underlined, paragraph align, etc.), just above the post input line, identical to the one in vB interface when you quote/reply a post.

2) visible/invisible users to appear in chat as set in vB, same features/permissions.

3) consent the Admins to enter as invisible the private chats (even passworded) to control any illegal abuse of them.

4) ignore users: both cannot read each other posts.

Thank you so much! :D

sv1cec 02-16-2005 12:03 PM

Quote:

Originally Posted by Raven_FCF
yep. i want usernames current;y inside chat to appear in left block on front page. will the one you gave me work?

Yes, that part of the code will collect the user names inside vBChat for you. In order to see them though, you have to edit your ForumHome template, to include something like:

HTML 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 -->

Put the above, right after the part which looks like:

HTML Code:

<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                                <div>$activeusers</div>
                        </div>
                </td>
        </tr>
</tbody>
<!-- end logged-in users -->

rgds

ambrosious 02-16-2005 05:22 PM

Quote:

Originally Posted by sv1cec
Well, here is that part of the code, from my index.php:

PHP Code:

// Get the users in vBChat
    
$vbchat_users = array();
    
$chatusers=0;
    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>";
        
$chatusers $chatusers+1;
        }
    }

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


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

    
// memory saving
    
unset($userinfos$loggedin);

    
$activeusers substr($activeusers 2); // get rid of initial comma 

You may use the variable $chatusers in the forum home page, to show you how many users there are in the chat.

rgds

Thanks, but I am having trouble with getting this to work in the What's Going On Box on my forums home page. Is there anyone who has this working that would like to share the code with me? (Now, if you just answered my question with the code above, then I apologize for being a total noob with this, could you instruct me how to make it work?)

Thanks!


All times are GMT. The time now is 10:18 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.02123 seconds
  • Memory Usage 1,797KB
  • 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_html_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