11
jerry
Re: Flashchat module link
  • 2004/8/9 4:41

  • jerry

  • Just popping in

  • Posts: 11

  • Since: 2004/7/9 1


Here's a topic for clarification... If I turn on the flashChat cache in user preferences, will that make it load quicker? I'm a little unsure how the whole cache thing works... What are the downsides of doing this?

12
ChadK
Re: Flashchat module link
  • 2004/8/24 23:53

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Does anyone have any admin menus or blocks for flash chat?

Here's a simple block for showing who's chatting... it's not very good but it works.

someone should make it link the names and stuff:
global $xoopsDB;
$sql "SELECT xoops_online.online_uname FROM  xoops_online ";
$sql .="inner join xoops_modules ON xoops_online.online_module ";
$sql.="= xoops_modules.mid WHERE xoops_modules.dirname='flashChat'";
$result $xoopsDB->query($sql);
while (
$row mysql_fetch_array($result)){
     print 
$concat.$row['online_uname'];
     
$concat=", ";
}


Of course, it should also use the XOOPS prefix...

13
ChadK
Re: Flashchat module link
  • 2004/8/25 0:20

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Maybe someone could figure out a way to keep it from dropping people from the online table if they're in chat? Or adding/updated the online record when they submit a chat text?

This block doesn't really work well because users sit in chat for 20 minutes or something and they no longer show up as "in chat" or even on the site at all when in fact, they're chatting.

14
ChadK
Re: Flashchat module link
  • 2004/8/25 1:40

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


This works better.. doesn't drop people. It also displays the names as a link. - Doesn't show anonymous chatters though..

global $xoopsDB;
$sql "SELECT xoops_users.uname, xoops_users.uid";
$sql.=" FROM xoops_users inner join";
$sql.=" xoops_connections ON xoops_connections.userid"
$sql.=" = xoops_users.uid";
$result $xoopsDB->query($sql);
while (
$row mysql_fetch_array($result)) {
     print 
$concat.".$XOOPS_URL."/userinfo.php?uid="
            
.$row['uid']."'>".$row['uname']."";
     
$concat=", ";
}

15
jegelstaff
Re: Flashchat module link

Quote:

jmass wrote:

with the C only in caps. That was it for me.


Yeah, that was it for me too. Or so I thought. But although it installs fine now, when I click on FlashChat in the Main Menu, nothing happens, the content part of the page (center block area) is simply blank.

Anyone have any suggestions? Here's what I've done:

1. Set the CMS include lines in common.php so that only the XOOPS line is uncommented.

2. swapped index.php and index_xoops.php

3. changed the folder name to flashChat.

4. Uploaded the files to the xoops\modules\ folder (the install instructions say to upload to the XOOPS root, but if you did that you couldn't install it in XOOPS, so the modules folder is the right place, right?)

4. CHMOD the config.srv.php file and the appTime.txt file to 777.

5. Install the module in XOOPS through the Admin Menu

That all seems to go fine, but when I click on the link for FlashChat in the Main Menu, I get a blank content area. Any insight greatly appreciated. Thanks.

--Julian

16
jegelstaff
Re: Flashchat module link

Here's a suggestion...Make sure Flash is installed in the browser you're using! For some reason Mozilla was just giving a blank page, rather than any indication that the necessary plug-in wasn't installed. Perhaps that was due to the way the embedded object was coded.

Anyway, it's all working now. *sheepish grin*

--Julian

17
peterpatrol
Re: Flashchat module link

Something I noticed in other flashChat install guides, but not the XOOPS one is to ensure you delete the install.php file
cheers
pete

18
ehask
Re: Flashchat module link
  • 2004/10/21 4:49

  • ehask

  • Just popping in

  • Posts: 14

  • Since: 2004/8/15


How do you implement the who's chatting block???

global $xoopsDB;
$sql = "SELECT xoops_users.uname, xoops_users.uid";
$sql.=" FROM xoops_users inner join";
$sql.=" xoops_connections ON xoops_connections.userid";
$sql.=" = xoops_users.uid";
$result = $xoopsDB->query($sql);
while ($row = mysql_fetch_array($result)) {
print $concat."".$row['uname']."";
$concat=", ";
}

???

Login

Who's Online

341 user(s) are online (239 user(s) are browsing Support Forums)


Members: 0


Guests: 341


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits