vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Who is chatting Add-On (for Flashchat) (https://vborg.vbsupport.ru/showthread.php?t=143840)

Mosh 04-01-2007 10:00 PM

Who is chatting Add-On (for Flashchat)
 
Hack Support

This hack is now discontinued - this means that while it will remain available for download and use, there will be no further updates, nor will support be provided as the thread is no longer monitored.

Please click Mark as Installed if you are using this hack.


vBulletin Version Compatibility

This hack can only be used with vBulletin v3.6.x.


What Does This Hack Do?

This is an add-on/enhancement to Paul M's Who is chatting (for Flashchat) v 4.46.
This is a partial port of my v3.5.x hack with extras.

What hacks need installing before installing this hack?
These hacks need to be installed in this order and working correctly, for this hack to work.
  1. FlashChat v4.7.x (v5.x.x has not been tested with this hack)
  2. Paul M's Flashchat Integration for vB 3.6 v3.56
  3. Paul M's Who is chatting (for Flashchat) v4.46
  4. Then install this hack

This does not change the functionality of Paul M's hack, this is just an enhancement to your installed version of Who is chatting (for Flashchat), it will even display both boxes on the forum homepage if you do not turn off Paul M's version.

The members on my forum requested that the Members currently using Flashchat box be moved to the top of the forums as it was a long way to scroll down to see who was chatting, at the top members could see who was chatting.

As members had to enter the chat or visit the forum homepage again to see who was chatting, I fixed it so that my members could also see who was chatting as they browsed the various forums and threads as well as on the who is online pages.

Code that is used in this hack is mainly Paul M's and once again he has kindly given me permission to use the code in my Who is chatting add-on hacks. I have also used part of the description from his hack as well.

Thank you Paul, for all your work on the Flashchat integration, it makes all our lives easier :)


What It Does
  1. It displays the chat list under the navbar on Forum Home, Forum Display, Show Thread and Who is Online pages.
  2. The list view is collapsible, so you see just the number.
  3. Users who should display as coloured or bold etc are displayed correctly (based on the display usergroup)
  4. If you 'hover' over a username it will show the room they are chatting in and their status (away etc).
  5. If the chat is empty, a simple "No one is currently using the chat." message is displayed.
  6. Display the Most Ever chatters if enabled.
  7. The ability to turn it on/off is in the AdminCP Options (independent of Paul M's hack).
  8. The ability to select which locations this hack is displayed (independent of Paul M's hack).
  9. The ability to allow only certain usergroups to view the list is an AdminCP option (again, independent of Paul M's hack).
Note: This hack cannot display any bots in the chat, due to the strange way that FlashChat stores this information.

Note: There is no upgrade path from my v3.5.x version, you have to uninstall that one first before installing this one.


Installation Instructions
  1. Unzip the downloaded file and upload file in the Upload/includes folder to the <forum root>/includes folder.
  2. Import the XML into vB using the AdminCP Product Manager. If upgrading from an earlier version, then set Allow Overwrite to Yes.
  3. In vBulletin Options > Who Is Using Flashchat, change Who is in Flashchat - Enable to No so there are not 2 "Members currently using Flashchat" boxes displayed on the forum homepage display.
  4. In vBulletin Options > Who Is Using Flashchat (Add-On). Please change settings here to turn the hack on, select what groups can see this, select which locations you wish this hack to be displayed, if you want to turn the auto insert option off and make the template changes manually (use the contents of the Display_Chatters_Addon template to do so).


Version History
Note: Version numbers will be kept in sync with Paul M's hack

v4.46a - Saturday 24th Nov 2007
-- Final Release
-- Changed: Moved common code to file
-- Changed: Plugin code
-- Removed: Display plugins (not working correctly)

v4.46 - Friday 23rd November 2007
-- Changed: Brought up-to-date with Paul M's hack
-- Changed: Display template
-- Added: Extra AdminCP options

v4.41 - Monday 2nd April 2007
-- Initial Release


Show Your Appreciation

Although not required, if you have enjoyed the benefits of this hack, and would like show your appreciation for my efforts, then please feel free to click on the Support Developer link and donate any amount you feel is appropriate.

Subah 04-02-2007 10:19 AM

Thanks

UncoderMom 04-02-2007 03:40 PM

PERFECT!

*clicks install!*

Rickeo 04-02-2007 11:28 PM

Can it display bots??

~Rick~

Mosh 04-03-2007 01:17 AM

Quote:

Originally Posted by Rickeo (Post 1218709)
Can it display bots??

~Rick~

No, it can not, as mine is based on and dependent on Paul M's hack.

Here is a quote from the FlashChat/vBulletin integration guru himself:

Quote:

Originally Posted by Paul M
Note: This hack cannot display any bots in the chat, due to the strange way that flashchat stores this information.


UncoderMom 04-03-2007 02:45 AM

I could be wrong but I believe you have Pauls code in the xml.. I tred to upload it and it gave me the "already installed'.. Then i opened the xml and I dont see anything that says (add on).

Mosh 04-03-2007 03:01 AM

You are right, give me a few minutes and I will upload the correct xml file, sorry about that :(

UncoderMom 04-03-2007 03:14 AM

No problem! ITs well worth the wait :D

Mosh 04-03-2007 03:24 AM

I have uploaded the correct file this time :) Again, sorry about the confusion.

UncoderMom 04-09-2007 02:45 AM

To do the template edits myself is there a $templatename or do I have to add the whole block code to the page?

Mosh 04-10-2007 07:24 AM

Quote:

Originally Posted by UncoderMom (Post 1223045)
To do the template edits myself is there a $templatename or do I have to add the whole block code to the page?

If you look at the plugins, you will see that there is php code that calls the Display_Chatters_Addon template. Now if you are manually editing yourself you will have to make sure you have the code attached to the correct hook and then paste the contents of the Display_Chatters_Addon template where you want it to appear in the appropriate template. If you go down that route, you will have to work it out for yourself, as I can not work it out for you.

captainron19 04-10-2007 02:50 PM

How can I change the icon to the left of "who is in flashchat" at the bottom of main page?

I created a different icon from the whos_online.gif and named it whos_chatting.gif

I found the section in the "Display Chatters" template which read:

Code:

<td class="alt2"><a href="$fcpath"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="" border="0" /></a></td>
and changed the graphic text to whos_chatting.gif

but the old graphic remained in place

Any ideas?

Mosh 04-11-2007 07:22 AM

Quote:

Originally Posted by captainron19 (Post 1224205)
How can I change the icon to the left of "who is in flashchat" at the bottom of main page?

I created a different icon from the whos_online.gif and named it whos_chatting.gif

I found the section in the "Display Chatters" template which read:

Code:

<td class="alt2"><a href="$fcpath"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="" border="0" /></a></td>
and changed the graphic text to whos_chatting.gif

but the old graphic remained in place

Any ideas?

You need to change it in the template Display_Chatters_Addon, the template you changed is part of the original Who is chatting (for FlashChat) hack by Paul M, and as most people would have turned off, when turning mine on, means that template is not used at all.

Also please click Mark as Installed.

captainron19 04-11-2007 10:22 AM

I went into "Search Templates" did a search for chatters and only 2 templates showed up

Display_Chatters

and

Display_Chatters_Users

The Display Chatters template is the original one I edited and it did not change anything and the Display_Chatters_Users does not have the graphic in it.

Mosh 04-11-2007 12:10 PM

Quote:

Originally Posted by captainron19 (Post 1224836)
I went into "Search Templates" did a search for chatters and only 2 templates showed up

Display_Chatters

and

Display_Chatters_Users

The Display Chatters template is the original one I edited and it did not change anything and the Display_Chatters_Users does not have the graphic in it.

If you do not have the Display_Chatters_Addon template, then you do not have this hack installed, you will need to ask over at Paul M's hack instead as it is his hack you are having the problem with, this is a add-on to that hack and I only support this one and he supports his.

Kahuna900 04-12-2007 11:16 PM

I would like to add this hack to my CMPS page, has anyone done that yet?

K2_02 04-13-2007 12:11 AM

Quote:

Originally Posted by Kahuna900 (Post 1226289)
I would like to add this hack to my CMPS page, has anyone done that yet?

I have been looking for the same thing. I found an older CMPS module but it didn't seem to work with 3.6.

Mosh 04-13-2007 05:46 AM

Quote:

Originally Posted by Kahuna900 (Post 1226289)
I would like to add this hack to my CMPS page, has anyone done that yet?

No, I do not have a CMPS installed. What portal do you have installed? I may look at it an do a hack for it if I like the portal.

zethon 04-13-2007 10:35 PM

Crashes my board when it's turned on.

Where is the variable "$vbulletin->options['chatfolder']" defined in vBulletin's config. I have FlashChat installed and running just fine, and this variable doesn't seem to be defined.

zethon 04-13-2007 10:36 PM

Quote:

Originally Posted by zethon (Post 1227060)
Crashes my board when it's turned on.

Where is the variable "$vbulletin->options['chatfolder']" defined in vBulletin's config. I have FlashChat installed and running just fine, and this variable doesn't seem to be defined.

Doh! Helps when you read the entire addon's documentation. ;)

Mosh 04-14-2007 06:34 AM

Quote:

Originally Posted by zethon (Post 1227061)
Doh! Helps when you read the entire addon's documentation. ;)

If you are using this, please click Marked as Installed.

K2_02 04-14-2007 10:53 PM

Quote:

Originally Posted by jdsinclair (Post 1226471)
No, I do not have a CMPS installed. What portal do you have installed? I may look at it an do a hack for it if I like the portal.

I am using vBadvanced CMPS v2.2.1. It would be GREAT if you could make a CMPS module. My users have been begging me so they can see who's in the chatroom without having to enter it. Also, most bypass the forum homepage b/c they hit the portal page first.

z3us 04-14-2007 11:38 PM

I get a fatal error on install? www.nitroaddicts.com
the portal is fine but the /forums page says:

Warning: require_once(/home/z3us226/domains/nitroaddicts.com/public_html/forums//inc/config.php) [function.require-once]: failed to open stream: No such file or directory in /index.php(63) : eval()'d code on line 99

Fatal error: require_once() [function.require]: Failed opening required '/home/z3us226/domains/nitroaddicts.com/public_html/forums//inc/config.php' (include_path='.:/usr/local/lib/php') in /home/z3us226/domains/nitroaddicts.com/public_html/forums/index.php(63) : eval()'d code on line 99

Mosh 04-15-2007 08:33 AM

Quote:

Originally Posted by z3us (Post 1227915)
I get a fatal error on install? www.nitroaddicts.com
the portal is fine but the /forums page says:

Warning: require_once(/home/z3us226/domains/nitroaddicts.com/public_html/forums//inc/config.php) [function.require-once]: failed to open stream: No such file or directory in /index.php(63) : eval()'d code on line 99

Fatal error: require_once() [function.require]: Failed opening required '/home/z3us226/domains/nitroaddicts.com/public_html/forums//inc/config.php' (include_path='.:/usr/local/lib/php') in /home/z3us226/domains/nitroaddicts.com/public_html/forums/index.php(63) : eval()'d code on line 99

Do you have Paul M's Who is in chatting (for Flashchat) hack installed as well?

As this hack relies on his and it looks like for some reason the chatfolder variable is not being picked up from his hack. I saw no need to include a path to the flashchat folder as his hack already has it defined and has to be installed for this hack to work.

If the variable was being picked up correctly then your full path would look like this:
Code:

/home/z3us226/domains/nitroaddicts.com/public_html/forums/<chatfolder variable>/inc/config.php
Where <chatfolder variable> is the folder name of your flashchat folder, and this is missing in the error that you have posted.

To check what this is set to in the AdminCP:
vBulletin Options -> Who is in Flashchat -> Who is in Flashchat - Location of FlashChat which is by default set to chat.
(NOTE: This is a setting from Paul M's hack that I use in my hack as it saves duplication of code).

When installing flashchat, it needs to be installed in the forum root and not the portal root. Now I don't know if have done this, but that could be one of the problems as well.

cps 04-25-2007 08:27 PM

I installed the product into a 3.6.4 vB and it isn't working. I followed the instructions here: https://vborg.vbsupport.ru/showthread.php?t=143840

Everything installed without a hitch.

One interesting scenario, however, when I say "Yes" to the following (I know I'm not supposed to): Turn on the Who is in Flashchat (Add-On) display, I get the following error on my vB:

Warning: Unknown(d:\inetpub\xxxxx\xxxxx//inc/config.php): failed to open stream: No such file or directory in \index.php(63) : eval()'d code on line 6

Fatal error: (null)(): Failed opening required 'd:\inetpub\xxxxx\xxxxx//inc/config.php' (include_path='.;c:\php\pear') in d:\inetpub\xxxxx\xxxxx\xxxxx : eval()'d code on line 6


Notice the double (//) slashes above.
Thoughts?

Mosh 04-26-2007 05:32 AM

Quote:

Originally Posted by cps (Post 1235438)
I installed the product into a 3.6.4 vB and it isn't working. I followed the instructions here: https://vborg.vbsupport.ru/showthread.php?t=143840

Everything installed without a hitch.

One interesting scenario, however, when I say "Yes" to the following (I know I'm not supposed to): Turn on the Who is in Flashchat (Add-On) display, I get the following error on my vB:

Warning: Unknown(d:\inetpub\xxxxx\xxxxx//inc/config.php): failed to open stream: No such file or directory in \index.php(63) : eval()'d code on line 6

Fatal error: (null)(): Failed opening required 'd:\inetpub\xxxxx\xxxxx//inc/config.php' (include_path='.;c:\php\pear') in d:\inetpub\xxxxx\xxxxx\xxxxx : eval()'d code on line 6


Notice the double (//) slashes above.
Thoughts?

Well, to start with, I installed this on a *nix system and you have installed it on a windows system, don't know if that will make a difference.

Do you installed Flashchat, Paul M's Flashchat integration and Paul M's Who is chatting hacks before this one? This hack is reliant on all 3 of those hacks being installed first.

The // looks like the / has been escaped 1 too many times or that the chatfolder variable from the Who is chatting hack by Paul M is not being picked up.

cps 04-26-2007 10:45 AM

Quote:

Originally Posted by jdsinclair (Post 1235641)
....
Do you installed Flashchat, Paul M's Flashchat integration and Paul M's Who is chatting hacks before this one? This hack is reliant on all 3 of those hacks being installed first.

No, I did install FlashChat, but not the 2 Paul M.'s hacks. I will uninstall this one, install the 2 Paul M hacks and then reinstall this one.

Quote:

The // looks like the / has been escaped 1 too many times or that the chatfolder variable from the Who is chatting hack by Paul M is not being picked up.
This might clear up if I perform the correct installation sequence. My first thought was that it was a concatenation issue in the code.

cps 04-26-2007 01:02 PM

JD, updates made in proper order and everything is working fine. Thanks much. Next time, I'll RTFM. :)

Mosh 04-26-2007 01:54 PM

Quote:

Originally Posted by cps (Post 1235815)
JD, updates made in proper order and everything is working fine. Thanks much. Next time, I'll RTFM. :)

Glad you got it all sorted :)

jessej 06-14-2007 08:34 PM

installed and TY ..

jbd 07-11-2007 01:10 PM

How do I open the chatroom in a new window of specified dimensions?

needaltuna 09-28-2007 01:29 PM

Does the "who is chatting" box become a permanent fixture on the forum main page once you've installed it, or can you configure it to appear only when someone is in the chatroom? I want to keep clutter to a minimum in my forum.

conradb212 10-19-2007 07:02 PM

Just for the record, in case someone else runs into this problem. I used a slightly older version of this plugin and it worked fine up to vBulletin 3.6.4, but when I upgraded to 3.6.8, I got a MySQL database error that kept the boards from working. After disabling the plug-in vBulletin worked again, and the latest rev (4.41) does not have the problem with vB 3.6.8.

Mosh 10-23-2007 07:43 AM

Quote:

Originally Posted by conradb212 (Post 1363878)
Just for the record, in case someone else runs into this problem. I used a slightly older version of this plugin and it worked fine up to vBulletin 3.6.4, but when I upgraded to 3.6.8, I got a MySQL database error that kept the boards from working. After disabling the plug-in vBulletin worked again, and the latest rev (4.41) does not have the problem with vB 3.6.8.

If you are using my hack then please click Mark as Installed.

Bludysky 11-14-2007 10:56 PM

Did you ever decide if you would be doing a module for that Portal?

Mosh 11-16-2007 07:01 AM

Quote:

Originally Posted by Bludysky (Post 1382676)
Did you ever decide if you would be doing a module for that Portal?

I never got a response for what portal he was taking about, so never bothered about it. But can have a look into it, if you have a decent free, regularly maintained portal in mind.

Bludysky 11-23-2007 12:49 AM

How about vBadvanced?

Mosh 11-23-2007 05:24 AM

Quote:

Originally Posted by Bludysky (Post 1387812)
How about vBadvanced?

I will have a look at it :) Keep an eye out :)

Mosh 11-23-2007 09:26 AM

This hack has been updated to v4.46 - see first post for details.

Also have added an add-on hack for this hack for vBadvanced - Who is chatting vBadvanced Add-On (for Flashchat).

Paul M 11-23-2007 04:36 PM

JFYI, you could drop a lot of the common code currently on each hook in this by simply turning on the "Run Code on all pages" option in my modification (this was added in v4.42). :)


All times are GMT. The time now is 05:52 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.01522 seconds
  • Memory Usage 1,854KB
  • 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
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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