vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Integration with vBulletin - FlashChat - Who is in the chat. (https://vborg.vbsupport.ru/showthread.php?t=91338)

Paul M 06-28-2005 10:00 PM

FlashChat - Who is in the chat.
 
This modification is no longer available or supported.

This is a simple display of who is currently chatting in FlashChat - on the forum homepage display.

The main features of Version 4.xx are basically the same as previous versions ;

1. It displays the list on Forum Home with the "Users online" display.
2. The list view is collapsable, 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 chatting" message is displayed.
6. The hack is now phrased.
7. The ability to turn it on/off is in the ACP Forum Home Options.
8. The ability to allow only certain usergroups to view the list is an ACP option.
9. The location of the flashchat folder is now an ACP option (vBulletin Options > Forums Home Page Options).

Unzip the XML and import into vB using the ACP Product Manager.

To upgrade from version 4.10 onwards, you need to re-import the product with the overwrite option set to yes. To upgrade from version 4.02 to version 4.10 onwards, you need to uninstall the product and remove the template code in FORUMHOME - then upload the new product. To upgrade from version 3.xx to version 4.xx you need to delete the existing plugin and remove the template code in FORUMHOME - then upload the new product.

* An add-on to display a 'Most ever chatters' count is available here.


Note: This hack cannot display any bots in the chat, due to the strange way that flashchat stores this information. Please also note that I am not Tufat.com or anything to do with the Flashchat product - if you have questions about Flashchat in general, their forums are here.



History:

v4.10 : Removed the need to edit the FORUMHOME template.
v4.11 : Hyperlinked display icon to chat page. Added vb number formatting to count.
v4.12 : Added ALT tag to above hyperlink.
v4.13 : Updated ACP view permission option to take into account secondary groups.
v4.14 : Added 'nofollow' attribute to listed usernames.
v4.15 : Restricted list based on flashchat autologout parameter, to get round the issue of connections not being cleaned up.
v4.16 : Minor changes, no update necessary.
v4.17 : Added members status to hover information.
v4.18 : Re-wrote status code to take account of custom status definitions.

justindwhite 06-30-2005 02:19 AM

Thanks a bunch... I've been waiting for this one ;)

*clicks install*

Roxie 06-30-2005 06:00 PM

Thanks :D

Roxie 06-30-2005 06:16 PM

This displays users that aren't in the chat. Don't know if I screwed up somewhere. LOL...but the users it lists aren't the ones in chat.

Paul M 06-30-2005 07:13 PM

Quote:

Originally Posted by Roxie
This displays users that aren't in the chat. Don't know if I screwed up somewhere. LOL...but the users it lists aren't the ones in chat.

Well it can't make them up, it reads the flashchat database. :) maybe you have more than one database from previous flashchat installs ?

Roxie 06-30-2005 07:17 PM

Well, it's pulling up users that have not been active in months. I only have one database. So, I dunno.

Paul M 06-30-2005 08:21 PM

Quote:

Originally Posted by Roxie
Well, it's pulling up users that have not been active in months. I only have one database. So, I dunno.

Sorry, database was perhaps the wrong word - I mean more than one set of Flashchat tables in your vb database.
What CMS file are you using, and what 'pref' is defined in your config.srv.php ? What is the url of your site ?

Roxie 06-30-2005 08:25 PM

I am using vbulletin35cms and the pref is set to _fc_, which is the same way it is in the database. The site is member only... http://daboard.dizzam.com - but I can set up a test membership.

Paul M 06-30-2005 08:30 PM

Quote:

Originally Posted by Roxie
The site is member only... http://daboard.dizzam.com - but I can set up a test membership.

That would be useful, drop me a PM. :)

Paul M 06-30-2005 10:30 PM

Okay - there is something wrong with your integration, users are not automatically being logged in. Instead, you can manually login as anybody, with any password - and you get a sequentially assigned userid, starting at 1 and working up. This is what is being displayed (currently reached 23).

Fix your integration and you will fix the user display automatically.

I notice you have posted a problem in the integration hack thread so i will move over to there now. :)

stlmike 07-01-2005 02:02 AM

Someone got screenshot of this, so i can see what it looks like

Paul M 07-01-2005 02:05 AM

Quote:

Originally Posted by stlmike
Someone got screenshot of this, so i can see what it looks like

It's exactly the same as the 3.0.7 version, which has a screenshot in it.

PixelFx 07-01-2005 06:31 AM

Quote:

Originally Posted by Paul M
It's exactly the same as the 3.0.7 version, which has a screenshot in it.

nice thanks for working on this .. would be cool to intergrate the latest flash chat's box with the forums like talker bot for example .. however very nice

justindwhite 07-01-2005 07:22 PM

Quote:

Originally Posted by stlmike
Someone got screenshot of this, so i can see what it looks like

Here you go

FilmoreSlim 07-06-2005 07:59 PM

Great Work! Thanks a ton my man :)

digidivakathy 07-06-2005 09:26 PM

Awesome, awesome, awesome! thanks so much!

I clicked Install!

Darth Gill 07-16-2005 11:42 AM

I'm getting these errors:
Code:

Warning: mysql_connect(): Access denied for user 'bkraft'@'localhost' (using password: NO) in /chat/inc/classes/db.php on line 15

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /chat/inc/classes/db.php on line 16

Warning: mysql_connect(): Access denied for user 'bkraft'@'localhost' (using password: NO) in /chat/inc/classes/db.php on line 15

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /chat/inc/classes/db.php on line 16

Warning: mysql_connect(): Access denied for user 'bkraft'@'localhost' (using password: NO) in /chat/inc/classes/db.php on line 15

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /chat/inc/classes/db.php on line 16


Darth Gill 07-16-2005 01:13 PM

I just thought I'd mention that everything works except that it puts those messages at the top of the forum which I fixed by putting @ signs in at the appropriate places...

PHP Code:

                $GLOBAL['fc_config']['db_conn'] = @mysql_connect($GLOBALS['fc_config']['db']['host'], $GLOBALS['fc_config']['db']['user'], $GLOBALS['fc_config']['db']['pass']);
                @
mysql_query("SET NAMES utf8"$GLOBAL['fc_config']['db_conn']); 


Darth Gill 07-16-2005 03:53 PM

Oh man i thought I had the problem solved. Now I'm being automatically logged out after I close the browser. Any thoughts?

Paul M 07-16-2005 04:07 PM

Quote:

Originally Posted by Darth Gill
I just thought I'd mention that everything works except that it puts those messages at the top of the forum which I fixed by putting @ signs in at the appropriate places...

Hmm, that's not fixing it, just hiding it ...... Still, if your happy ......

Quote:

Originally Posted by Darth Gill
Oh man i thought I had the problem solved. Now I'm being automatically logged out after I close the browser. Any thoughts?

Logged out of what - flashchat, or your forum ?

Darth Gill 07-16-2005 04:18 PM

The Forum. Fixed it with this code: http://www.tufat.com/phpBB2/viewtopic.php?p=11606

Darth Gill 07-16-2005 04:19 PM

Quote:

Originally Posted by Paul M
Hmm, that's not fixing it, just hiding it ...... Still, if your happy ......

Well, I would like it fixed, but I don't want to spend hours tracking down the problem... Any suggestions? Everything is working perfectly right now.

Paul M 07-16-2005 04:28 PM

Quote:

Originally Posted by Darth Gill
The Forum. Fixed it with this code: http://www.tufat.com/phpBB2/viewtopic.php?p=11606

Hmm, yes, I've looked at that code and wondered why flashchat needs to do that at all, IMO it shouldn't need to mess with your vB Cookie. I just haven't got round to looking at it properly. I think you could just remove that code, but haven't tested it.

Quote:

Originally Posted by Darth Gill
Well, I would like it fixed, but I don't want to spend hours tracking down the problem... Any suggestions? Everything is working perfectly right now.

I don't understand what is going on with that, but you are the second person to mention it since FC 4.0.12 was released. I don't get it on my system so I can't investigate why it happens. What version of php are you on ?

Darth Gill 07-16-2005 04:57 PM

Quote:

Originally Posted by Paul M
I don't understand what is going on with that, but you are the second person to mention it since FC 4.0.12 was released. I don't get it on my system so I can't investigate why it happens. What version of php are you on ?

I'm using 4.3.11. Thanks. :)

Paul M 07-16-2005 08:00 PM

Quote:

Originally Posted by Darth Gill
I'm using 4.3.11. Thanks. :)

Oh well, it wasn't a php5 thing then. Anyway, at the end of the day - there is no requirement for that bit of code to be called, it was just a side effect of calling the flashchat common.php - I have altered the code to avoid this now anyway. Plugin v3.05 released.

Michael2 07-27-2005 09:15 PM

Works great, thank you! :)

Neal-UK 07-29-2005 02:47 AM

Quote:

Originally Posted by Michael2
Works great, thank you! :)

I cant get flashchat to install on vb3.5.0, worked ok when i had it on 3.0.3+ though.

You have indicated that you wish to integrate FlashChat with vBulletin 3.0.7 NOTE: Requires input of license number in /inc/cmses/vbulletinCMS2.php. Please refer to the full integration instructions located in the TUFaT.com Wiki. There are additional steps to complete after this installer is finished.

Configuration Error!

FlashChat was unable to detect your MySQL login setting from the vBulletin 3.0.7 NOTE: Requires input of license number in /inc/cmses/vbulletinCMS2.php configuration file. You must correct this before FlashChat can finish its installation. Please refer to the integration Instructions in the TUFaT.com Wiki to ensure that the FlashChat files were correctly uploaded to your server.

Possible Reasons for this error may include:

1) FlashChat was uploaded to an incorrect server location.
2) The CMS system that you are using is unsupported by FlashChat.
3) Your server has incompatible settings which may have been undetected in Step 1 of the FlashChat installer. For example, specific security restrictions which are not typical of most PHP/MySQL setups.


Put my license number in, etc!!! bugger

Paul M 07-29-2005 02:50 AM

Quote:

Originally Posted by nealparry
I cant get flashchat to install on vb3.5.0, worked ok when i had it on 3.0.3+ though.

You need this ;

https://vborg.vbsupport.ru/showthread.php?t=91278

Neal-UK 07-29-2005 03:04 AM

Quote:

Originally Posted by Paul M

yeah, sorted now thanks paul

Neal-UK 07-29-2005 04:06 AM

Quote:

Originally Posted by nealparry
yeah, sorted now thanks paul

Paul,

how long should the botloader script take, been running for about an hour and it's only half way along the bar.....

Paul M 07-29-2005 04:15 AM

Quote:

Originally Posted by nealparry
Paul,

how long should the botloader script take, been running for about an hour and it's only half way along the bar.....

Sorry, I have no idea - I have never installed the bots as I have no use for them. I doubt a script will run sucessfully for an hour - doesn't php timeout after a while ?

Neal-UK 07-29-2005 04:25 AM

Quote:

Originally Posted by Paul M
Sorry, I have no idea - I have never installed the bots as I have no use for them. I doubt a script will run sucessfully for an hour - doesn't php timeout after a while ?

i thought so. Kept going though but something must have gone wrong. Stopped in now and skipped it, installed fine and running well.

Neal-UK 07-29-2005 06:56 PM

Quote:

Originally Posted by nealparry
i thought so. Kept going though but something must have gone wrong. Stopped in now and skipped it, installed fine and running well.

How can I edit the usergroup permission? Need to let my donaters get in quick ;-(

Paul M 07-29-2005 07:05 PM

Edit the relevant section in the CMS file - it's easy to spot.

Neal-UK 07-29-2005 07:09 PM

Quote:

Originally Posted by Paul M
Edit the relevant section in the CMS file - it's easy to spot.

ok cheers

Paul M 07-29-2005 07:12 PM

BTW - you do realise this is the "who is in the chat" thread, not the integration thread ;)

Neal-UK 07-29-2005 07:14 PM

Quote:

Originally Posted by Paul M
BTW - you do realise this is the "who is in the chat" thread, not the integration thread ;)

i didn't see one for vb3.5.0. so sorry about that, mods please can you remove my posts.

EasyTarget 07-30-2005 04:28 AM

nice hack/s

*warning, I don't know coding*
when I tried to import the .xml I get a vb error message saying invalid file specified.
I tried to do it both from my computer and from ftp to the includes/xml folder and got the same message.

I then opened the the add new plugin choice and put the information in there that I found in the .xml file, though it took a few times because I kept including too much of the information I guess. Like it only worked after I took off this stuff
Code:

<?xml version="1.0" encoding="ISO-8859-1" ?>
- <plugins>
- <plugin active="1">
  <title>Members in Flashchat</title>
  <hookname>forumhome_start</hookname>
- <phpcode>
- <![CDATA[

  ]]>
  </phpcode>
  </plugin>
  </plugins>

I'm just posting this in case this is actually the only way to add it so that maybe you'd update the instructions so that step 3 isn't just:
Quote:

Step 3.

Install the plugin using the supplied XML file.
but actually goes through and tells us newbies what to do :p

Paul M 07-30-2005 05:11 AM

Sorry, but it's not my job to teach people how to install plugins - my hacks will assume you either already know, or are capable of finding out. Check out the forums "how to" section - esp this thread.

EasyTarget 07-30-2005 05:28 AM

well maybe a link to that thread in the install would be nice.

I've installed several other plugins/hacks and I figured uploading the xml via plugin system would work. Since it seems there's several ways to do it why not specify which?

and I never said it was your job or responsibility to do it, I was just making a suggestion which I figured would help other people who had a code deficiency like myself.

anyways thanks for the hack.

*edit*
well according to that thread you linked to the way I first tried it (upload from pc/ftp to site) was the correct way, and that's the way that failed for me giving me the 'invalid file specified error'.


All times are GMT. The time now is 04:46 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.01735 seconds
  • Memory Usage 1,848KB
  • 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
  • (1)bbcode_php_printable
  • (23)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