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)

Blue-Inc 05-27-2006 07:12 PM

Thanks for making the mod Zero, and thanks for the Port Milad :)

Works perfect!

dendrob 05-29-2006 05:36 PM

Hm...how could I display the number of users right in the menu ??? say something like this: "vbChat (6)". Some users don't scroll down to the stats to see who's in the chat, this way they would see it right in the navbar. Any help would be appreciated!

If there would be no users in the chat "vbChat (0)" or just "vbChat" would be great. I'm using the ported chat on 3.5

Eric 05-29-2006 09:13 PM

Quote:

Originally Posted by dendrob
Hm...how could I display the number of users right in the menu ??? say something like this: "vbChat (6)". Some users don't scroll down to the stats to see who's in the chat, this way they would see it right in the navbar. Any help would be appreciated!

If there would be no users in the chat "vbChat (0)" or just "vbChat" would be great. I'm using the ported chat on 3.5

You could do the following:

Open forum/index.php, find
PHP 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 Chat</i>";
    } 

Replace with:
PHP Code:

    // Configure Peeps In vBChat
    
$invBChat '';
    
$num_in_chat 0;

    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>";
        
$num_in_chat++;
        }
    }

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

Admin CP -> Styles & Templates -> Style Manager -> Edit Templates -> Expand All Templates

Open the 'navbar' template, find:
HTML Code:

<td class="vbmenu_control"><a href="chat.php$session[sessionurl_q]" onclick="return OpenvBChat();">vBChat</a></td>
Replace with:
HTML Code:

<td class="vbmenu_control"><a href="chat.php$session[sessionurl_q]" onclick="return OpenvBChat();">vBChat</a> ({$num_in_chat})</td>
That seems to do it, tested it on mine and works fine :)

dendrob 05-30-2006 10:23 AM

Oh, you're the man!!! Thanks a bunch, slight problem though. It doesn't show up in my case. Actually, if it makes any diff, my navigation menu is inside my header template. I added a link like so

Code:

<a href="../../community/chat.php$session[sessionurl_q]" onclick="return OpenvBChat();" target="_blank"> &#149 Chat ({$num_in_chat})</a>
It gets me into chat no problems, but I don't see the number of people in the room.

Any pointers ???

Thanks

dendrob 05-31-2006 10:24 AM

anyone ???

louis_chypher 06-01-2006 03:39 PM

When I exit chat I get a little window in the upper right hand corner of the screen that contains nothing but a back ground. what is supposed to be displayed in the window?

rice 06-02-2006 02:57 AM

i am having same issue as chypher

Blue-Inc 06-02-2006 11:33 AM

So as I, but have learnt to live with it. But if there is some way of getting rid of it, please do tell.

louis_chypher 06-02-2006 12:25 PM

Quote:

Originally Posted by Blue-Inc
So as I, but have learnt to live with it. But if there is some way of getting rid of it, please do tell.

I found in the chat template:
Code:

do_close = 1;
I commented do_close = 1; and added do_close = 0;
like so:

Code:

//do_close = 1;
do_close = 0;

with, so far, no ill effects to the operations of the chat room to stop that little window from poping-up.

rice 06-02-2006 08:11 PM

louis-
where exactly do i find this??
having a hard time finding.

thx


All times are GMT. The time now is 12:50 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.02205 seconds
  • Memory Usage 1,763KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (2)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