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)

PnL 02-10-2005 06:49 PM

Quote:

Originally Posted by Craigr
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.

Once again I have to extend thanks to you Craigr! Worked like a charm.

Thanks!
Paul

PnL 02-21-2005 12:48 AM

Noticed recently that when the code is put in global.php that the profile pages do not appear - it causes an MySQL error. Here are the symptoms:

When no one appears in "Who's In Chat" then clicking on a username brings up their profile with no problems. If the user shows up in "Who's In Chat" then clicking on the username (either in Who's Online or Who's In Chat) brings up the error mentioned about:

----------------------------------------------------

Database error in vBulletin 3.0.7:

Invalid SQL:
SELECT userid, username, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM user AS user
WHERE userid IN (0Array,2)

mysql error: Unknown column '0Array' in 'where clause'

mysql error number: 1054

----------------------------------------------------

If I log everyone out of Flash Chat and refresh the forum page - I have access to the profiles again. What is causing this error? I haven't tried to reproduce this with the "Who's In Chat" code in index.php. This error is completely reproducible and seems to originate from this hack.

Anyone have suggestions?

Thanks,
Paul

BTW - I have the navbar template modded to have the "Who's In Chat" show up on each page.

fringehead 02-21-2005 01:21 AM

We are in the same boat as TheArchitect. Our profiles break when people are in the chat room. Any fix for this? PnL posted the error.

Thanks,

Sean

fringehead 02-23-2005 01:09 AM

We are going to have to install another flashchat mod. We really like this one, it's too bad it breaks the profiles... I see you guys haven't posted in about 1 month... I'm loosing hope!!! You never address the Architect's issues either.....

Sean

Paul M 02-23-2005 07:30 AM

There is an alternative here. :)

cartheym 03-15-2005 08:39 AM

nice hack & works well but for one problem.....

i use vBadvanced and have put this hack into a module - i have done this successfully (having put hack into global.php) and it works perfectly when operating within the forum
(i.e. www.gpcricket.com.au/forum/)
however when i go my other pages on the website
(eg. http://www.gpcricket.com.au/index.php?page=shirts)
that are controlled by vBadvanced the avatar does not appear and I get a 'x' in a box, like a missing pic file link, in its place above each name (see screenshots)

any assistance to retrieve the avatars from webpages outside of the forum would be greatly appriciated

FYI i have returned the module to text-based for the moment


All times are GMT. The time now is 09:22 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.01462 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)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
  • (6)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