PDA

View Full Version : Whochat - Who's Online in FlashChat Module


Pages : [1] 2

RetroDreams
07-23-2005, 01:18 AM
As it says in the instructions, I take absolutely no credit for this as all of the code was written by Paul M, who has been the mastermind behind the FlashChat/vBulletin integration and add-ons for what seems like forever.

I simply put two and two together, got it to work, and then threw this together so you can too! If you like it, be sure to drop Paul M a thank you PM on vBulletin.org and click INSTALL on all of his FlashChat hacks. Sorry, no screenshots... it's just too basic. You get a block with a table head row with number of chatters and then a second row listing everyone in the chat. Easy enough, eh?

-Retro

RetroDreams
07-23-2005, 06:11 PM
Has anyone installed this? If so, were the instructions okay?

Our Sponsors
 

eWebtricity
09-08-2005, 12:50 AM
Just installed and went fine, but not showing up on home page for some reason

http://www.1and1faq.com

eWebtricity
09-09-2005, 12:00 PM
In Step 2:


2) Create a new template named vba_portal_whochat and enter the following code into the template:


I had to change the template name to adv_portal_whochat. I'm running vBA v2.0 RC2 and vB 3.5 RC2

Our Sponsors
 

borabora
10-10-2005, 04:35 PM
i got an error on line 15 of whochat.php...
i use vb3.0.7 and cms1...
it can be the line of "$chatlist = $vbulletin->db->query_read("

Floob
10-11-2005, 05:57 PM
I cant get mine to work :(

Could someone be more specific with the install instructions - Am I adding a new module or template?

COBRAws
10-13-2005, 07:28 PM
i got an error on line 15 of whochat.php...
i use vb3.0.7 and cms1...
it can be the line of "$chatlist = $vbulletin->db->query_read("
This is the vBulletin 3.5.x Sub Forum m8

Dorfdad
10-16-2005, 08:35 PM
I get an error in this on line 10 pathing I think. My setup is as follows

chat
forum

what path would I setup for this if my chat is in the root dir..

klaush
10-23-2005, 06:18 AM
I get an error in this on line 10 pathing I think. My setup is as follows

chat
forum

what path would I setup for this if my chat is in the root dir..

Make life easy and put it in the forum dir named chat, then download the new vb 3.5 integration file, follow the instruction for installation and migration to 3.5 and the instruction how to involve it in cmps.

Works like a charm!

Ramses
11-03-2005, 12:03 PM
Thanks RetroDream, works perfectly. Only one question, where I can change the phrase if nobody is in the chat for translating?

RetroDreams
11-03-2005, 01:12 PM
Thanks RetroDream, works perfectly. Only one question, where I can change the phrase if nobody is in the chat for translating?

Ramses,

Just open up the whochat.php file and you should see a line that says:


$chatters = "No one is currently using the chat";


Just change that to whatever is desired, save and upload the file back in your modules directory. You'll be all set!

Ramses
11-03-2005, 01:35 PM
Thanks for this quick answer, now everything is perfect. :)

Marv
11-06-2005, 06:09 AM
For some reason I can´t read the install.info (looks like a binary code) Could someone please update the file itself or post the content here in the forums ?

regards,
Marv

RetroDreams
11-08-2005, 10:57 AM
For some reason I can´t read the install.info (looks like a binary code) Could someone please update the file itself or post the content here in the forums ?

regards,
Marv

Try opening it in Wordpad.

Ramses
11-09-2005, 11:42 AM
One more question, if I click on the names listet in the who is online field, the path is not forum/member.php it's only member.php. Where do I need to correct this RetroDreams?
Thank you

terrymason
11-09-2005, 09:13 PM
I'm going to have to admit that I'm lost with alot of this. I just reciently purchased vbulliten and installed vbadvanced. I was able to install everything, but I don't see the mod on my homepage.

I took the liberty of editing your install docs, maybe you can tell me where I'm going wrong:


Whochat v0.1 – FlashChat Module for vbAdvanced 2.0 RC2 (3.5)

Introduction:

I take absolutely no credit for this as all of the code was written by Paul M, who has been the mastermind behind the FlashChat/vBulletin integration and add-ons for what seems like forever.

I simply put two and two together, got it to work, and then threw this together so you can too! If you like it, be sure to drop Paul M a thank you PM on vBulletin.org and click INSTALL on all of his FlashChat hacks.

- RetroDreams

Installation Instructions:

1) Upload the whochat.php module into your /forum/modules directory.

2) Create a new template named vba_portal_whochat:
click on vBa CMPS in the vBulletin admin panel, then on Add page. Select "Template". Enter "vba_portal_whochat" into the Template Title area and enter the following code into the template (in the Form Code area):

<tr>
<td class="thead"><span class="smallfont">Currently Active Chatters: $totalchatters</span></td>
</tr>
<tr>
<td class="$bgclass"><span class="smallfont">$chatters</span></td>
</tr>

*** At this time I'm prompted for a Page Title adn Page Identifier**

Nothing fancy… you can customize it to your liking, but this will git-r-done to start with.

3) Add a new PHP File module:
Click on "vBa CMPS" the "add module", and then on "PHP File"



and give it the following settings:

Title: Your Site Live Chat!
File to include: whochat.php
Identifier: whochat
Templates used: whochat

You can edit the other settings to your liking. That’s it… your module should be complete and functional now. Go see!

drl2005
11-12-2005, 10:49 AM
One more question, if I click on the names listet in the who is online field, the path is not forum/member.php it's only member.php. Where do I need to correct this RetroDreams?
Thank you

Edit your whochat.php and find :
$chatters .= "<a href='member.php?u=$chat[userid]' title=\"$roomname\" >";

change it to:
$chatters .= "<a href='/forum/member.php?u=$chat[userid]' title=\"$roomname\" >";

RetroDreams, can you fix your install text, you say make a template vba_portal_whochat, but it is adv_portal_whochat.
Anyway, thnx for this great add-on ;)

Ramses
11-13-2005, 10:32 AM
Thanks drl2005, now it's ok.

terrymason
11-17-2005, 12:17 AM
Found out why it didnt' show up. I was using a custom skin, and it didn't show the module on the main page. I switched to the original, and all was well. Anyone know how to update the new themes to show this mod?

divided_by_fear
11-17-2005, 03:28 AM
this aint working for me on 3.5.1 ....

dark dragun
12-04-2005, 07:51 AM
I noticed there was a uncached template:adv_portal_whochat. You need to add this in your vba index.php file to make it cache properly.

change:
$globaltemplates = array();


to:
$globaltemplates = array(adv_portal_whochat);

Ramses
12-04-2005, 03:59 PM
What is the advantage if a template is cached?
Thanks

dark dragun
12-04-2005, 11:23 PM
What is the advantage if a template is cached?
Thanks

loading time.

Ramses
12-05-2005, 07:08 AM
thanks

Ramses
12-09-2005, 01:04 AM
There's one annoying thing, sometimes it's showing as in the attached image, I think it is everytime a guest want to acces the chat.
Anybody Know what's wrong?
Thanks

attroll
12-09-2005, 12:54 PM
There's one annoying thing, sometimes it's showing as in the attached image, I think it is everytime a guest want to acces the chat.
Anybody Know what's wrong?
Thanks

I get that problem on one of my sites once and a while too. I have not worried to much about it but I would like to fix it.

cdembek
12-18-2005, 06:12 PM
I get the following error, what am I doing wrong?

Warning: main(./chat/includes/config.php): failed to open stream: No such file or directory in /modules/whochat.php on line 10

Fatal error: main(): Failed opening required './chat/includes/config.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/forum/modules/whochat.php on line 10

sully02
12-18-2005, 07:37 PM
I get the following error, what am I doing wrong?

Warning: main(./chat/includes/config.php): failed to open stream: No such file or directory in /modules/whochat.php on line 10

Fatal error: main(): Failed opening required './chat/includes/config.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/forum/modules/whochat.php on line 10
Is your FlashChat installation located in yoursite.com/forums/chat/

If not, go into your whochat.php folder and find:
$fcfolder = 'chat'

Replace 'chat' with the name of your flashchat folder.

drl2005
12-22-2005, 10:41 PM
I noticed there was a uncached template:adv_portal_whochat. You need to add this in your vba index.php file to make it cache properly.

change:
$globaltemplates = array();


to:
$globaltemplates = array(adv_portal_whochat);

Why ?

In your chat module, there is a option to solve that.
add adv_portal_whochat in the Templates Used area.

RetroDreams
12-26-2005, 02:31 AM
There's one annoying thing, sometimes it's showing as in the attached image, I think it is everytime a guest want to acces the chat.
Anybody Know what's wrong?
Thanks

Your members are not signing out of Flashchat properly. They're likely exiting the browser instead.

cdembek
12-30-2005, 12:57 AM
Is your FlashChat installation located in yoursite.com/forums/chat/

If not, go into your whochat.php folder and find:
$fcfolder = 'chat'

Replace 'chat' with the name of your flashchat folder.
Ok I did what you said to do... I created a chat folder located www.mysite.com/forum/chat

Within that folder I copied the whochat.php file

and I still got the same error

Hexemer
01-04-2006, 08:05 AM
the box isn't show on my portal site? :confused:

Gothmog
01-06-2006, 09:16 PM
the box isn't show on my portal site? :confused:
yeah, I'm having a similar problem- I've installed everything correctly, but it doesn't show.

cdembek
01-08-2006, 12:14 AM
where is the following file located

config.srv.php'?

cdembek
01-08-2006, 12:15 AM
I am running vBulletin v3.5.1 with cmps 2. ?

Kseki
01-10-2006, 02:29 AM
Found out why it didnt' show up. I was using a custom skin, and it didn't show the module on the main page. I switched to the original, and all was well. Anyone know how to update the new themes to show this mod?


every figure this out? works on my basic skin, but not on my one with mods on it.

something is conflicting. ever figure out what?

BWilliams
01-11-2006, 06:32 PM
I just installed this module also and can not get it to display. I am using 3.5.3

Mark.B
01-28-2006, 06:33 AM
Anyone using vB 3.0 rather than 3.5, try using the following version of whochat.php.

cdembek
01-28-2006, 09:27 AM
Is your FlashChat installation located in yoursite.com/forums/chat/

If not, go into your whochat.php folder and find:
$fcfolder = 'chat'

Replace 'chat' with the name of your flashchat folder.

What exactly is the FlashChat installation? What I have done so far was download the attached zip file, upload the .php file, created template (with correction that was outlined) and created a module...

Is there other files that I need to make this work?

cdembek
01-28-2006, 06:09 PM
Got it... man I need to look into things more

cdoyle
01-30-2006, 11:38 PM
Just installed and works great.

Is there anyway, to make it so there is a link to the chat room?
Would I put that in the template file?

tanworks
02-03-2006, 05:42 PM
I've followed all instructions on how to install the whochat module but something just ain't right !!! I've repeated my installation several times but the template doesn't appear as an independant object on my cmps_index.php

For some reason, which I can't figure out, I get a link on my top left navagation bar with the vba_portal_whochat which doesn't link to anything.

I've tried all sorts of solutions mentioned on this thread, I've even changed the vba_portal_whochat to adv_portal_whochat but nothing changed, it just kept reappearing as a link on my navigation bar.

Really stuck here... Could use some help you guys.

Forum link http://tanworksonline.com/forums/cmps_index.php

vBulletin v3.5.2
CMPS v2.1.0

tanworks
02-03-2006, 06:09 PM
I've followed all instructions on how to install the whochat module but something just ain't right !!! I've repeated my installation several times but the template doesn't appear as an independant object on my cmps_index.php

For some reason, which I can't figure out, I get a link on my top left navagation bar with the vba_portal_whochat which doesn't link to anything.

I've tried all sorts of solutions mentioned on this thread, I've even changed the vba_portal_whochat to adv_portal_whochat but nothing changed, it just kept reappearing as a link on my navigation bar.

Really stuck here... Could use some help you guys.

Forum link http://tanworksonline.com/forums/cmps_index.php

vBulletin v3.5.2
CMPS v2.1.0

Ok I've managed to remove that wierd link on my top left navigation bar and had it replaced with a direct link to flashchat.php

But I'm still stuck as the whochat.php module wouldn't appear on my cmps_index.php and only using the default skin. ???:confused: :( :confused:

volarium
02-08-2006, 04:12 AM
This hack works great for me, thanks!

http://vfrworld.com

The_HLMEI
02-19-2006, 04:57 AM
Your members are not signing out of Flashchat properly. They're likely exiting the browser instead.

When a user simply exits their browser instead of signing out properly their record in the "connections" table is not cleaned up properly.

For such cases you can edit your whochat.php to have it ignore connections that haven't been updated within a certain cutoff time. The connections.updated field is a TIMESTAMP. Code similar to the following should work...

(put this somewhere near the top of the whochat.php file)

// ## Cutoff Hack ## //
$cutoff = time() - 300; // ignore connections not touched in 5 minutes
$cutoffTS = date("YmdHis", $cutoff); // convert to TIMESTAMP format
$cutoffs = " AND connections.updated >= '".$cutoffTS."' ";

and then add $cutoffs to the WHERE clause of the SQL query like this...

WHERE connections.userid IS NOT NULL $bots $cutoffs ORDER BY start

Kizzmet
02-24-2006, 11:36 PM
In Step 2:



I had to change the template name to adv_portal_whochat. I'm running vBA v2.0 RC2 and vB 3.5 RC2


Retro: Thanks a ton for posting this hack, I really appreciate it :) :) :)

eWeb: Thanks a ton for posting what you did to make it work. It is exacly what I followed after not having it appear either and it fixed it. TY

gyankow
03-06-2006, 10:03 PM
I installed this hack and it does not show! I'm using VB 3.5.3 and CMPS 2.0 and Aria Skins. Any help please!

tbroush
03-08-2006, 01:49 PM
I installed this hack and it does not show! I'm using VB 3.5.3 and CMPS 2.0 and Aria Skins. Any help please!


Make sure you change the name of the template to adv_portal_whochat from vba_portal_whochat, if you are running VB3.5.x and cpms 2.0 or 2.1

gyankow
03-12-2006, 02:20 AM
Make sure you change the name of the template to adv_portal_whochat from vba_portal_whochat, if you are running VB3.5.x and cpms 2.0 or 2.1

Worked Like a Charm!

Thank You, Thank You....

jaybolt
04-20-2006, 12:31 PM
Works fine for me but the link to the user profile isn't (my forums are in /forums directory and members.php is being requested from the root). How can I modify this?