vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Chat Modifications - Flashchat: Who is chatting (https://vborg.vbsupport.ru/showthread.php?t=166835)

SnapOff Racing 08-07-2008 03:31 PM

Quote:

Originally Posted by Paul M (Post 1590420)
This does not work with Flashchat 5.

when will it? that's the version I run and I need this to work with it asap. Thanks

Paul M 08-08-2008 05:44 PM

No idea atm.

jlew24asu 08-08-2008 05:50 PM

this is related but its not. :confused: ;)

is there a way I can customize this app (flashchat)? I'd like to change its location (on my forum), size, and color.

I asked this on the flash chat forum but they told me to ask here. :confused:

Neo_obs 08-08-2008 06:55 PM

I have this working somewhat on my version of VB.

I just edited the Members in Flashchat (2) plugin

here is my Members in Flashchat (2) plugin
Code:

if ($show['wic'])
{
        unset ($chatters);
        $GLOBALS['fc_config_stop'] = true;
        $lang = $vbulletin->options['chatlang'];
        require_once(DIR . "/" . $vbulletin->options['chatfolder']. "/temp/config.srv.php");
        require_once(DIR . "/" . $vbulletin->options['chatfolder']. "/inc/langs/".$lang.".php");
        $fcprefix = $GLOBALS['fc_config']['db']['pref'];
        $chatlist = $vbulletin->db->query_read_slave("
                SELECT        connections.*, rooms.*,        user.*
                FROM ".$fcprefix."connections as connections
                LEFT JOIN ".$fcprefix."rooms as rooms ON connections.roomid = rooms.id
                LEFT JOIN ".TABLE_PREFIX."user as user ON connections.userid = user.userid
                WHERE connections.userid > 0
                AND connections.updated > DATE_SUB(NOW(),INTERVAL 60 SECOND)
                ORDER BY start
        ");

        unset ($chatters);
        $show['loggedinusers'] = true;

        $i = 0;
        $totalchatters = 0;
        foreach ($GLOBALS['fc_config']['languages'][$lang]['status'] as $value)
        {
                $i += 1;
                $status[$i] = $value;
        }

        $chattersdesc = $vbphrase['wic_using_flashchat'];
        while ($chat = $vbulletin->db->fetch_array($chatlist))
        {
                $totalchatters += 1;
                $chat['roomname'] = "In private room";
                if ($chat['ispublic']) $chat['roomname'] = "In ".$chat['name'];
                if ($chat['state'] > 1) $chat['roomname'] .= " (".$status[$chat['state']].")";
                $ugroup = ($chat['displaygroupid'] > 0 ? $chat['displaygroupid'] : $chat['usergroupid']);
                $chat['opentag'] = $vbulletin->usergroupcache[$ugroup]['opentag'];
                $chat['closetag'] = $vbulletin->usergroupcache[$ugroup]['closetag'];
                eval('$chatters .= "' . fetch_template('Display_Chatters_User') . '" . ", ";');
        }

        if ($chatters)
        {
                $chatters = substr($chatters, 0, -2);
        }
        else
        {
                $chatters = $vbphrase['wic_no_chatters'];
        }

        if ($vbulletin->products['paulm_fci_37'])
        {
                $fcpath = 'misc.php?do=flashchat';
        }
        else
        {
                $fcpath = $vbulletin->options['chatfolder'].'/flashchat.php';
        }

        if ($vbulletin->options['wiccol'])
        {
                $vbcollapse['collapseimg_forumhome_chatusers'] = '_collapsed';
                $vbcollapse['collapseobj_forumhome_chatusers'] = 'display:none;';
        }

        $totalchatters = vb_number_format($totalchatters);
        $chattitle = construct_phrase($chattersdesc,$totalchatters);

        $pid = 'paulm_wic_37';
        if ($pemdata37['set'] == true)
        {
                $data_wic =& $pemdata37[$pid];
        }
        else
        {
                if ($pemdata = unserialize($vbulletin->options['pemdata']))
                {
                        $pemdata['set'] = true;
                        $data_wic =& $pemdata[$pid];
                }
                else
                {
                        $data_wic = array('version' => 'N/A');
                }
        }

        if ($vbulletin->options['enable_wic'])
        {
                $vbulletin->templatecache["{$vbulletin->options['template_wic']}"] = str_replace($vbulletin->options['text_wic'],
                $vbulletin->options['text_wic'].$vbulletin->templatecache['Display_Chatters'],$vbulletin->templatecache["{$vbulletin->options['template_wic']}"]);
        }

        if ($vbulletin->options['wicmost'])
        {
                if (empty($vbulletin->maxloggedin))
                {
                        if (method_exists($vbulletin->datastore,'do_fetch'))
                        { // Datastore extension exists, use it
                                $vbulletin->datastore->do_fetch('maxloggedin',$errors);
                                if ($errors[0])
                                { // Fetch failed, use original datastore
                                        $vbulletin->datastore->do_db_fetch("'maxloggedin'");
                                }
                        }
                        else
                        { // No extension, use original datastore
                                $vbulletin->datastore->do_db_fetch("'maxloggedin'");
                        }
                }

                if ($totalchatters > intval($vbulletin->maxloggedin['maxchatters']))
                {
                        $vbulletin->maxloggedin['maxchattersdate'] = TIMENOW;
                        $vbulletin->maxloggedin['maxchatters'] = $totalchatters;
                        build_datastore('maxloggedin', serialize($vbulletin->maxloggedin),1);

                }

                if ($vbulletin->options['wicmost'])
                {
                        if ($vbulletin->options['wic24'])
                        {
                                $description = $vbphrase['wic_members_24'];
                        }
                        else
                        {
                                $description = $vbphrase['wic_members_day'];
                        }

                        $chatmax = construct_phrase(
                                        $description, vb_number_format($vbulletin->maxloggedin['maxchatters']),
                                        vbdate( $vbulletin->options['dateformat'], $vbulletin->maxloggedin['maxchattersdate'], true ),
                                        vbdate( $vbulletin->options['timeformat'], $vbulletin->maxloggedin['maxchattersdate'] )
                        );

                        $chatters = $chatmax . "<br />" . $chatters;
                }
        }
}


SnapOff Racing 08-08-2008 10:39 PM

Quote:

Originally Posted by Neo_obs (Post 1594240)
I have this working somewhat on my version of VB.

I just edited the Members in Flashchat (2) plugin

here is my Members in Flashchat (2) plugin
Code:

if ($show['wic'])
{
        unset ($chatters);
        $GLOBALS['fc_config_stop'] = true;
        $lang = $vbulletin->options['chatlang'];
        require_once(DIR . "/" . $vbulletin->options['chatfolder']. "/temp/config.srv.php");
        require_once(DIR . "/" . $vbulletin->options['chatfolder']. "/inc/langs/".$lang.".php");
        $fcprefix = $GLOBALS['fc_config']['db']['pref'];
        $chatlist = $vbulletin->db->query_read_slave("
                SELECT        connections.*, rooms.*,        user.*
                FROM ".$fcprefix."connections as connections
                LEFT JOIN ".$fcprefix."rooms as rooms ON connections.roomid = rooms.id
                LEFT JOIN ".TABLE_PREFIX."user as user ON connections.userid = user.userid
                WHERE connections.userid > 0
                AND connections.updated > DATE_SUB(NOW(),INTERVAL 60 SECOND)
                ORDER BY start
        ");

        unset ($chatters);
        $show['loggedinusers'] = true;

        $i = 0;
        $totalchatters = 0;
        foreach ($GLOBALS['fc_config']['languages'][$lang]['status'] as $value)
        {
                $i += 1;
                $status[$i] = $value;
        }

        $chattersdesc = $vbphrase['wic_using_flashchat'];
        while ($chat = $vbulletin->db->fetch_array($chatlist))
        {
                $totalchatters += 1;
                $chat['roomname'] = "In private room";
                if ($chat['ispublic']) $chat['roomname'] = "In ".$chat['name'];
                if ($chat['state'] > 1) $chat['roomname'] .= " (".$status[$chat['state']].")";
                $ugroup = ($chat['displaygroupid'] > 0 ? $chat['displaygroupid'] : $chat['usergroupid']);
                $chat['opentag'] = $vbulletin->usergroupcache[$ugroup]['opentag'];
                $chat['closetag'] = $vbulletin->usergroupcache[$ugroup]['closetag'];
                eval('$chatters .= "' . fetch_template('Display_Chatters_User') . '" . ", ";');
        }

        if ($chatters)
        {
                $chatters = substr($chatters, 0, -2);
        }
        else
        {
                $chatters = $vbphrase['wic_no_chatters'];
        }

        if ($vbulletin->products['paulm_fci_37'])
        {
                $fcpath = 'misc.php?do=flashchat';
        }
        else
        {
                $fcpath = $vbulletin->options['chatfolder'].'/flashchat.php';
        }

        if ($vbulletin->options['wiccol'])
        {
                $vbcollapse['collapseimg_forumhome_chatusers'] = '_collapsed';
                $vbcollapse['collapseobj_forumhome_chatusers'] = 'display:none;';
        }

        $totalchatters = vb_number_format($totalchatters);
        $chattitle = construct_phrase($chattersdesc,$totalchatters);

        $pid = 'paulm_wic_37';
        if ($pemdata37['set'] == true)
        {
                $data_wic =& $pemdata37[$pid];
        }
        else
        {
                if ($pemdata = unserialize($vbulletin->options['pemdata']))
                {
                        $pemdata['set'] = true;
                        $data_wic =& $pemdata[$pid];
                }
                else
                {
                        $data_wic = array('version' => 'N/A');
                }
        }

        if ($vbulletin->options['enable_wic'])
        {
                $vbulletin->templatecache["{$vbulletin->options['template_wic']}"] = str_replace($vbulletin->options['text_wic'],
                $vbulletin->options['text_wic'].$vbulletin->templatecache['Display_Chatters'],$vbulletin->templatecache["{$vbulletin->options['template_wic']}"]);
        }

        if ($vbulletin->options['wicmost'])
        {
                if (empty($vbulletin->maxloggedin))
                {
                        if (method_exists($vbulletin->datastore,'do_fetch'))
                        { // Datastore extension exists, use it
                                $vbulletin->datastore->do_fetch('maxloggedin',$errors);
                                if ($errors[0])
                                { // Fetch failed, use original datastore
                                        $vbulletin->datastore->do_db_fetch("'maxloggedin'");
                                }
                        }
                        else
                        { // No extension, use original datastore
                                $vbulletin->datastore->do_db_fetch("'maxloggedin'");
                        }
                }

                if ($totalchatters > intval($vbulletin->maxloggedin['maxchatters']))
                {
                        $vbulletin->maxloggedin['maxchattersdate'] = TIMENOW;
                        $vbulletin->maxloggedin['maxchatters'] = $totalchatters;
                        build_datastore('maxloggedin', serialize($vbulletin->maxloggedin),1);

                }

                if ($vbulletin->options['wicmost'])
                {
                        if ($vbulletin->options['wic24'])
                        {
                                $description = $vbphrase['wic_members_24'];
                        }
                        else
                        {
                                $description = $vbphrase['wic_members_day'];
                        }

                        $chatmax = construct_phrase(
                                        $description, vb_number_format($vbulletin->maxloggedin['maxchatters']),
                                        vbdate( $vbulletin->options['dateformat'], $vbulletin->maxloggedin['maxchattersdate'], true ),
                                        vbdate( $vbulletin->options['timeformat'], $vbulletin->maxloggedin['maxchattersdate'] )
                        );

                        $chatters = $chatmax . "<br />" . $chatters;
                }
        }
}


YOU are the fkn man!!!! FYI everyone, this made it work with my version 5.02

Neo_obs 08-09-2008 02:57 AM

It's not the best method but it works for now. I still have a buggy install of 5.0.3 but at least its integrated and showing on the forums.

If you have VBA CMPS let me know and I can tell you what I did to make that work too.

EvilJohn 08-10-2008 06:03 AM

Thank you. Installed

jlew24asu 08-11-2008 01:54 PM

Quote:

Originally Posted by jlew24asu (Post 1594201)
this is related but its not. :confused: ;)

is there a way I can customize this app (flashchat)? I'd like to change its location (on my forum), size, and color.

I asked this on the flash chat forum but they told me to ask here. :confused:


not sure where to ask :o:confused:

Paul M 08-11-2008 02:07 PM

You have asked multiple questions. The colour of Flashchat is set in flashchat itself, so you need to ask on their forum. Its location is determined by your vb templates, you edit them to suit, same goes for the size.

jlew24asu 08-11-2008 03:06 PM

Quote:

Originally Posted by Paul M (Post 1596246)
You have asked multiple questions. The colour of Flashchat is set in flashchat itself, so you need to ask on their forum. Its location is determined by your vb templates, you edit them to suit, same goes for the size.

ok thanks Paul. for example, how would I add this to my forum home and adjust the size?

(i'm asking for specific code changes. something I'm not familiar with. if thats not something you support, I understand. just looking for some help thats all.)

Paul M 08-11-2008 04:49 PM

Sorry, I cannot support individual cases. :)

Jaxel 08-14-2008 03:41 AM

Does not support Flashchat 5.04. Kills the forumhome.

Paul M 08-14-2008 07:37 PM

As it says ;

Quote:

Note: This will not currently work with Flashchat Version 5.

j?rgk 08-24-2008 04:04 AM

hi,

can someone make an xml.file for flash-chat version 5.04 ??? it is shit without the display in the forum...

paul give your best to make an mod for the version 5 of the chat :)

j?rgk 08-26-2008 11:36 AM

hallo,

can somebody help me?

i have vb version 3.7.2 and the flash-chat version 5.04 . i need the display who is online at the forumhome under the navbar. please help me. thank you

j?rgk 08-28-2008 03:41 PM

hello again,

please help me.

Paul M 08-31-2008 03:35 PM

3.7.003 Released.

Versions 3.7.003 and above are for Flashchat 5.0.x onwards, and will not work with Flashchat 4.x.x.

Version 3.7.002 will currently continue to be available for Flashchat 4.

ArnyVee 08-31-2008 04:00 PM

Paul (or anyone for that matter), is the Flashchat 5 stable finally or still buggy? Any experience yet to share?

Paul M 08-31-2008 05:00 PM

No idea, its only on my test forum atm. Best to check the Tufat forums.

Jaxel 09-01-2008 12:31 AM

I assume that with this release, Flashcht 5.0.6 is working well with VB 3.73? Last time I was having serious issues with 5.0.4.

jpbryan 09-01-2008 01:10 PM

Thank you for the new version.. Works great..

potukxystus 09-10-2008 11:13 PM

nice work - very clean
thanks

Mrdby 10-01-2008 10:52 PM

this just screwed my site up and after i disabled it..my site went back to normal....it gave me this error.

Warning: Unknown([path]/chat/temp/config.srv.php): failed to open stream: No such file or directory in [path]/global.php(404) : eval()'d code on line 808
Fatal error: (null)(): Failed opening required '/hsphere/local/home/******t/forum/chat/temp/config.srv.php' (include_path='.:/hsphere/shared/apache/libexec/php4ext/php/') in /hsphere/local/home/******/global.php(404) : eval()'d code on line 808

Paul M 10-02-2008 11:15 AM

You are using the FC5 version of the mod, but have FC4 installed on your site.

DeanoUK 10-10-2008 12:36 PM

Doesn't show my nick, and show's the wrong nick for other people logged in.
Paul, I'm more than happy to give you admin access to my forum if need be.

Paul M 10-11-2008 03:57 PM

That is a classic sign that you are not running integrated with vb.

profanitytalker 10-15-2008 09:37 AM

Hi Mr. Paul,

Thank you very much for all your great hacks. Can you tell me why I can't see the box even though I installed it correctly? Is their a code where I can just manually add the box myself? Please answer this question sir. Thank you.

-Sincerely
Pro

Paul M 10-15-2008 02:08 PM

I cannot answer the question, there could be many reasons.

goxy63 10-29-2008 08:48 PM

Works just great

Awesome

:D

xxxmotoxxx 11-08-2008 12:49 PM

Thank you so much,i really needed this mod,excellent work Paul..

SHANE-D-PAIN 11-17-2008 04:45 AM

Installed but curious, any way to get this working with the navbar template across every page? All I want to do is display the Number of Users Chatting in with the actual chat link.

Cheers ;)

Jaxel 12-01-2008 10:37 AM

EDIT: Nevermind... I installed the wrong version.

Kiros72 12-04-2008 03:26 AM

Just wondering... What's new in the '26 Nov 2008' update?

Paul M 12-04-2008 07:09 AM

Read the History section :)

Kiros72 12-05-2008 12:06 AM

Sorry, I must be losing my mind, because I thought that v3.7.004 existed prior to November 26th, which is why I asked :P

goxy63 12-05-2008 04:55 PM

3.7.004 ???
It says 3.7.003 in XML file ???
Looks same as one before or Iam wrong, did you uploaded here new XML file ?

Uninstalled, than installed anyways, still shows that version is out of date

And mate is thare any way to get this users displayed with avatars in statistics or something like that...?

Great hack
Thanks

ps
While Iam here (offtopic)
Can anyone point me to some hack that shows last registered users with avatar displayed ?

Paul M 12-05-2008 07:33 PM

Quote:

Originally Posted by goxy63 (Post 1679157)
3.7.004 ???
It says 3.7.003 in XML file ???
Looks same as one before or Iam wrong, did you uploaded here new XML file ?

Looks like I re-uploaded 3.7.003 last week ..... :eek:

The correct version (3.7.004) has now been uploaded (for fc5). :)

goxy63 12-05-2008 08:00 PM

Thanks mate
Luv your hacks

Jaxel 12-09-2008 07:19 PM

This new version has broken this mod:
https://vborg.vbsupport.ru/showthread.php?t=166909

The count option doesnt seem to enable the add-on for other pages.

Mosh 12-09-2008 07:57 PM

Quote:

Originally Posted by Jaxel (Post 1681845)
This new version has broken this mod:
https://vborg.vbsupport.ru/showthread.php?t=166909

The count option doesnt seem to enable the add-on for other pages.

Go back to v3.7.003 of this hack, as my hack takes into account the Most Ever Display Bug, and it works to fix it.

As my v3.7.x hack is no longer supported, I will not be updating the hack to reflect the changes Paul has put into v3.7.004 of this hack.

Once you reinstall v3.7.003 of this and then install my hack (following my instructions), then the max count option will work again.


All times are GMT. The time now is 04:13 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.01326 seconds
  • Memory Usage 1,871KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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