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)

wattieuk 11-10-2004 05:05 PM

Got this working this morning - thank you very much for all the help and for developing the mod - it's much appreciated. The only thing I would like to change is the size of the messages window which at the moment needs to scroll to the right to be able to see all of the posted messages.
Is there any way to stop this from happening? Cheers.

RsX 11-10-2004 05:13 PM

Yes there is... This will not only mak ethe messages table bigger, it wil even it out with the connected users table...


Go to template chat_man

Find:
PHP Code:

        <td class='alt2' align='center' width='80%' height='300' rowspan='2'>
        <
iframe width='100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatFrame' name='vBChatFrame' onload='checkInp()'>Your Browser Does Not Support Iframe's, Get One That Does!</iframe>
        </td>
        <td class='
alt2' align='center' width='20%' height='300'>
        <iframe width='
100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatUser' name='vBChatUser'>Your Browser Does Not Support Iframe'sGet One That Does!</iframe>
        </
td



Replace With:
PHP Code:

        <td class='alt2' align='center' width='80%' height='345' rowspan='2'>
        <
iframe width='100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatFrame' name='vBChatFrame' onload='checkInp()'>Your Browser Does Not Support Iframe's, Get One That Does!</iframe>
        </td>
        <td class='
alt2' align='center' width='20%' height='300'>
        <iframe width='
100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatUser' name='vBChatUser'>Your Browser Does Not Support Iframe'sGet One That Does!</iframe>
        </
td




I ALSO NEED HELP PLEASE!!!!

*How to change message and connected users area BG without killing the style sheet

*How to make Smilies appear not randomly, and only from a selected smilies group (Generic Smilies)

adp 11-10-2004 05:54 PM

Very fine addon! Our users love it!

*clicks install*

One question, would it be possible to change the admin panel to make it work in a way that I do not ban usergroup, but allow them? I'd like to let only certain groups in, and at the moment it seems as if the script is only looking at primary user groups. I'd love it if it would be possible to have a secondary usergroup where I can set if users are allowed to chat or now.

I've got my secondary usergroups setup like "feature_arcade" and "feature_chat" etc, so I'll just drop users in he right group to let them have a certain feature.

Thanks a lot,
adp

Galadrium 11-10-2004 06:17 PM

Thanks for a great hack. Just updated to 1.1.0. Is there anyway to get the time/date stamp back? My users seemed to like that better.

RsX 11-10-2004 06:18 PM

this is important:

I ALSO NEED HELP PLEASE!!!!

*How to change message and connected users area BG without killing the style sheet

*How to make Smilies appear not randomly, and only from a selected smilies group (Generic Smilies)

My users cant see what they write even if they use a diff color.. my forum BG isnt good for this

wattieuk 11-10-2004 06:32 PM

Quote:

Originally Posted by RsX
Yes there is... This will not only mak ethe messages table bigger, it wil even it out with the connected users table...


Go to template chat_man

Find:
PHP Code:

        <td class='alt2' align='center' width='80%' height='300' rowspan='2'>
        <
iframe width='100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatFrame' name='vBChatFrame' onload='checkInp()'>Your Browser Does Not Support Iframe's, Get One That Does!</iframe>
        </td>
        <td class='
alt2' align='center' width='20%' height='300'>
        <iframe width='
100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatUser' name='vBChatUser'>Your Browser Does Not Support Iframe'sGet One That Does!</iframe>
        </
td



Replace With:
PHP Code:

        <td class='alt2' align='center' width='80%' height='345' rowspan='2'>
        <
iframe width='100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatFrame' name='vBChatFrame' onload='checkInp()'>Your Browser Does Not Support Iframe's, Get One That Does!</iframe>
        </td>
        <td class='
alt2' align='center' width='20%' height='300'>
        <iframe width='
100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatUser' name='vBChatUser'>Your Browser Does Not Support Iframe'sGet One That Does!</iframe>
        </
td


That didnt work - the window still wanted to scroll to the right so you could see all the message.

Guy G 11-10-2004 06:48 PM

having problems with the show connected users thing... it doesnt show :/

Sweet Evil 11-10-2004 06:53 PM

Nice, Thanks!

RsX 11-10-2004 08:01 PM

yeah whats wrong here? (same as zorobz question)

Code:

// ### LOGGED IN USERS #################################################
$activeusers = '';
if ($vboptions['displayloggedin'])
{
        $datecut = TIMENOW - $vboptions['cookietimeout'];
        $numbervisible = 0;
        $numberregistered = 0;
        $numberguest = 0;

        $forumusers = $DB_site->query("
                SELECT
                        user.username, (user.options & $_USEROPTIONS[invisible]) AS invisible, user.usergroupid,
                        session.userid, session.inforum, session.lastactivity,
                        IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
                FROM " . TABLE_PREFIX . "session AS session
                LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid)
                WHERE session.lastactivity > $datecut
                " . iif($vboptions['displayloggedin'] == 1, "ORDER BY username ASC") . "
        ");

        if ($bbuserinfo['userid'])
        {
                // fakes the user being online for an initial page view of index.php
                $bbuserinfo['joingroupid'] = iif($bbuserinfo['displaygroupid'], $bbuserinfo['displaygroupid'], $bbuserinfo['usergroupid']);
                $userinfos = array
                (
                        $bbuserinfo['userid'] => array
                        (
                                'userid' => $bbuserinfo['userid'],
                                'username' => $bbuserinfo['username'],
                                'invisible' => $bbuserinfo['invisible'],
                                'inforum' => 0,
                                'lastactivity' => TIMENOW,
                                'usergroupid' => $bbuserinfo['usergroupid'],
                                'displaygroupid' => $bbuserinfo['displaygroupid'],
                        )
                );
        }
        else
        {
                $userinfos = array();
        }
        $inforum = array();

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

        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

        $DB_site->free_result($loggedins);

        $totalonline = $numberregistered + $numberguest;
        $numberinvisible = $numberregistered - $numbervisible;

        // ### MAX LOGGEDIN USERS ################################



And also How to change message and connected users area BG without killing the style sheet ?

SVTOA 11-10-2004 11:22 PM

I got mine to work myself, there was some code missing from the instructions...


All times are GMT. The time now is 09:33 AM.

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.02049 seconds
  • Memory Usage 1,803KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)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