vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Flashchat - who is online with showing the chatters avatars (https://vborg.vbsupport.ru/showthread.php?t=71288)

theArchitect 01-17-2005 08:51 AM

I am getting an error with this hack.

I have found that putting this hack in global.php rather than index.php I am getting more members using the Chat Room as they can see more easily who is in the chat room. Many of them only visit the index page once and then don't see it again until they log-out.

However, if I install the code into the global.php file then when someone is in the chat room the Who's Online Page doesn't work nor do a lot of the user profiles. THe pages instead return this error.

If you have any thoughts as to what might be causing this it would be appreciated.

Code:

Database error in vBulletin 3.0.5:
 
 Invalid SQL:
                        SELECT userid, username, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
                        FROM user AS user
                        WHERE userid IN (0Array)
               
 mysql error: Unknown column '0Array' in 'where clause'
 
 mysql error number: 1054


Inzagi 01-17-2005 09:11 AM

hi quasan,
does this hack also display the avatar in the chat itself or just in the index ?

fringehead 01-18-2005 02:36 AM

I get some errors when an upcomming even displays on the index page.

Warning: fopen(./appdata/appTime.txt): failed to open stream: No such file or directory in /FlashChat/inc/classes/chatServer.php on line 60

Warning: fwrite(): supplied argument is not a valid stream resource in /FlashChat/inc/classes/chatServer.php on line 61

Warning: fflush(): supplied argument is not a valid stream resource in /FlashChat/inc/classes/chatServer.php on line 63

Warning: fclose(): supplied argument is not a valid stream resource in /FlashChat/inc/classes/chatServer.php on line 64
sarcasticfringehead

Any idea?

Thanks

Sean

PnL 01-18-2005 07:15 AM

Is there a way to put this "Who's online" on every forum page? I tried inserting the code under FORUMDISPLAY but it doesn't show who's in flashchat

theArchitect 01-18-2005 09:13 PM

Quote:

Originally Posted by PnL
Is there a way to put this "Who's online" on every forum page? I tried inserting the code under FORUMDISPLAY but it doesn't show who's in flashchat

I had worked it and and was putting the script in global.php, and the template changes in the navbar template. However, if someone is in the chat room then the script stops Who's Online and most member profiles from working. So I am waiting to hear back with a fix for the error and then it will be good to go.

PnL 01-22-2005 04:04 AM

Great mod but a request.

Is there a way to change the font size of the username that is showing up? I'd like to make it smaller than default and nothing I've tried seems to work.

Any suggestions?

Craigr 01-26-2005 12:29 PM

Quote:

Originally Posted by PnL
Great mod but a request.

Is there a way to change the font size of the username that is showing up? I'd like to make it smaller than default and nothing I've tried seems to work.

Any suggestions?

Find this in your edited index.php:
Code:

$temp.= "<a href=\"member.php?u=".$val."\">".$row_show_username['username']."</a>";
Replace with:
Code:

$temp.= "<div class=\"smallfont\"><a href=\"member.php?u=".$val."\">".$row_show_username['username']."</a></div>";
Worked fine for me. :)

quasan 01-26-2005 01:33 PM

hi guys,
i am so sorry that I didn't provide any updates in the past.
but there was a lot going on in my life

@fringehead
yo have to make the appdata dir writable to your server.
chmod it to 777

@Inzagi
just on the index. it's a hack for the vbulletin and not a hack of the chat itself

@all
i'll provide a new version the next days

PnL 02-09-2005 08:24 PM

Quote:

Originally Posted by Craigr
Find this in your edited index.php:
Code:

$temp.= "<a href=\"member.php?u=".$val."\">".$row_show_username['username']."</a>";
Replace with:
Code:

$temp.= "<div class=\"smallfont\"><a href=\"member.php?u=".$val."\">".$row_show_username['username']."</a></div>";
Worked fine for me. :)


Thanks CraigR - worked like a charm! :)

Now if I could only figure out how to make the "Who's In Chat" show up on every page instead of the just the main forums page I'd be in business!!

quasan ..... is there a way to do this? I tried adding it to the display template but it doesn't show the users/avatars of those in chat. I think this would be a useful mod so you can always tell when someone is in the chatroom. Also useful to update the "Who's IN Chat" since people do not randomly refresh the main forum home page, but moving to a new forum/thread will automatically refresh the "Who's In Chat" if its available on each page. What d'ya think?

Paul

Craigr 02-10-2005 11:30 AM

Quote:

Originally Posted by PnL
Thanks CraigR - worked like a charm! :)

Now if I could only figure out how to make the "Who's In Chat" show up on every page instead of the just the main forums page I'd be in business!!

quasan ..... is there a way to do this? I tried adding it to the display template but it doesn't show the users/avatars of those in chat. I think this would be a useful mod so you can always tell when someone is in the chatroom. Also useful to update the "Who's IN Chat" since people do not randomly refresh the main forum home page, but moving to a new forum/thread will automatically refresh the "Who's In Chat" if its available on each page. What d'ya think?

Paul

Rather than putting the code in index.php you could put it in global.php then simply add the $chatter[usernames] part in a template that appears in all pages, such as header, footer, navbar. This way you will get the online users on every page.


All times are GMT. The time now is 08:01 AM.

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.01719 seconds
  • Memory Usage 1,750KB
  • 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
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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