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)

RsX 11-10-2004 10:32 AM

My index.php looks different.. what to change it to? Oo

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

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


SVTOA 11-10-2004 10:47 AM

Quote:

Originally Posted by RsX
My index.php looks different.. what to change it to? Oo

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

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




I think this is the reason I am having trouble with the online users in chat function. When I followed the instructions I was given in my other post, that caused the "Who's online" display to stop working on forumhome, but I was able to correct that myself by comparing code between the additon and the replacement. Now that works again, however the who is currently in chat does not and I am sure it's related to the forumhome code change.

RsX 11-10-2004 11:17 AM

do u in other words know what i need to change? Oo

SVTOA 11-10-2004 11:23 AM

Well, since it does not work, I would not alter your index.php yet. That is not a requirement for the VB CHat to work, it's to have the "who is in chat" function. I'd wait until we get an answer on this.

RsX 11-10-2004 11:54 AM

lol kk np.. cant wait for him to fix it ^^

EDIT: Installed ^^ Just need 2 more things

*The Index.php replacement (code above)
*How to change message and connected users area BG without killing the style sheet
*How to make Smileys appear not randomly, and only from a selected smileys group

Other than that this is a great hack Zero Tolerance, Awesome job!!
IMO ur hacks are the most usefull ever! especially the warning system.. and u make them so well ^^

Delw 11-10-2004 01:08 PM

I used his latest release ( I believe I dloaded it last night at 6 pm mountain standard time) the whos online works for me just fine. I ran it right out of the box so to speak.
the only edit I had to make was in the admincp/index.php file mentioned above.

Delw

RsX 11-10-2004 01:14 PM

NVM i got it myself :) scroll down :P

SVTOA 11-10-2004 01:24 PM

Quote:

Originally Posted by Delw
I used his latest release ( I believe I dloaded it last night at 6 pm mountain standard time) the whos online works for me just fine. I ran it right out of the box so to speak.
the only edit I had to make was in the admincp/index.php file mentioned above.


Delw

You must have had to edit your forum index.php file, because otherwise the online function would not work?! I'm not talking about the "regular" who's online, I am talking about the "xx users in VB Chat" portion. If you didn't edit index.php then nothing would be effected.

It works on ZT's website so this must be fixable. :D Maybe it's the version of the forum I am using this on? (3.00)

Delw 11-10-2004 01:35 PM

Sorry my bad , I'm still half asleep

Delw

RsX 11-10-2004 01:55 PM

NVM i got it myself well, I stile have 2 more things that I really need, please if you could help me

*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)


All times are GMT. The time now is 02:41 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.02039 seconds
  • Memory Usage 1,750KB
  • 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_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