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)

interfx 02-04-2005 08:10 PM

Quote:

Originally Posted by sv1cec
But didn't you ask to have the time instead of the status?



Oh, I got you, you mean it does not show the time in the brackets??

OK, in vBChat.php find:

PHP Code:

    // Check Status
           
if($ThisMSG['vbchat_pref_status'] == ""){
    
$ThisMSG['vbchat_pref_status'] = "<i>None</i>";
    } 

Below that, add:

PHP Code:

// post time conversion
$mychat['time'] = vbdate($vboptions['timeformat'], $ThisMSG['s_postime']);
// end post time conversion 

I knew I've forgotten something!

Rgds

I tried this, but the time is NOT showing up? Still says None???

What am I missing...

Thanks in advance...

InterFX

majdah 02-05-2005 12:50 AM

can some help me please i have 2 qus. please

1- how can i display the room name in main chat box ?
that meen when i join to room GAMES how can i make the room name GAMES uper the online user?
---------------
2- when the user want to change the room , after he select the room and click on join room. how can make it that auto redirect to the room was selected without need to click on vBChat ?

sorry fo my language !!

sv1cec 02-05-2005 05:49 AM

Quote:

Originally Posted by majdah
can some help me please i have 2 qus. please

1- how can i display the room name in main chat box ?
that meen when i join to room GAMES how can i make the room name GAMES uper the online user?
---------------
2- when the user want to change the room , after he select the room and click on join room. how can make it that auto redirect to the room was selected without need to click on vBChat ?

sorry fo my language !!

I've done these changes, use the attached vBChat.php as a guidance. It might not work in your setup, but you can get ideas. Also, I've attached a copy of my chat_main template. Again, use these as guidance only, I've done a lot of other mods in the templates, so do not just put them in your system and expect them to work 100%.

Here is what my chat window looks like:

https://vborg.vbsupport.ru/external/2005/03/1.jpg

Rgds

majdah 02-05-2005 10:15 AM

very very nice Sv1cec
you make it for me as i need

coud you mind tell me abou this file ( includes/functions_warning.php )
if you can give it to or may this is private file ?

realy thank you so so much for your help

interfx 02-05-2005 10:46 AM

Quote:

Originally Posted by interfx
I tried this, but the time is NOT showing up? Still says None???

What am I missing...

Thanks in advance...

InterFX


Figured it out, you also have to change the template file (chat_row)...

interfx 02-05-2005 10:49 AM

I created a new graphic, hope others find it useful also... Looks more like other graphics on my site...

sv1cec 02-05-2005 01:02 PM

Quote:

Originally Posted by majdah
very very nice Sv1cec
you make it for me as i need

coud you mind tell me abou this file ( includes/functions_warning.php )
if you can give it to or may this is private file ?

realy thank you so so much for your help

No problem giving it to you, but this is part of my Advanced Warning System Hack, it wouldn't work on its own. What it does, is if someone uses any "censored" words (from vB's Censor Options), it replaces them with **** and issues a warning to the poster.

Rgds

ambrosious 02-05-2005 08:45 PM

I understand you got the "Who's online in chat" working correctly. Could you please post what you did?

sv1cec 02-06-2005 04:45 AM

Quote:

Originally Posted by ambrosious
I understand you got the "Who's online in chat" working correctly. Could you please post what you did?

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

LeeWicKeD 02-06-2005 10:28 AM

hiho,

how do i change the amout of messages/lines that are shown in the chat?

LeeWicKeD


All times are GMT. The time now is 03:57 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.02238 seconds
  • Memory Usage 1,777KB
  • 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_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