vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Flashchat: Who is chatting (https://vborg.vbsupport.ru/showthread.php?t=73042)

ncangler 04-11-2005 09:36 PM

Thanks so much for this John. I made the changes below but still get "Weclome ncangler" and none of the changes show up. I'm using the Chat within a CMPS page. Would that make a difference? Thanks!

Quote:

Originally Posted by wirewolf
ncangler and all,
Go to the chat/inc/langs/en.php file , near the end of the file, around line 222, look for:
PHP Code:

'room' => 'Room',
'welcome' => 'Welcome USER_LABEL',
'ringTheBell' => 'No Answer? Ring The Bell:',
'logOffBtn' => 'X'

Edit to:
PHP Code:

'room' => 'Room',
'welcome' => 'Welcome USER_LABEL , Note: Please use "Exit the Chat Room" Button when you want to log out of Chat',
'ringTheBell' => 'No Answer? Ring The Bell:',
'logOffBtn' => 'Exit the Chat Room'

, Or what ever wording you care to use, but you get the idea. This is only the english langauge file. Of course you would have to edit all the langauge files if you are using them.


wirewolf 04-11-2005 10:05 PM

Yeh, I get the same. I made the changes, and they show when you first load the flashchat page, but on the second load they don't. ???
Making this change in the config file does help though:
PHP Code:

//Logout behavior 
'logout' => array( 
'close'    => true// if true, then FlashChat window is closed upon logout 

John

Harry72 04-16-2005 04:19 PM

Thx Paul. Excellent work. *klicked install* :nervous:

Paul M 04-16-2005 09:13 PM

This hack has been updated to version 2.00 - the main change is to display the user based on the their selected display usergroup (rather than always use the primary usergroup, as previous versions did). I have also added a simple message when the chat is empty. :)

MortysTW 04-17-2005 08:00 AM

I just got my forum to go public tonight so I'm scared to go experimenting on things I know very little about. But I got an idea.

If I wanted the "Who's Chatting" line to be displayed which I believe is this tag $chatters, at the top of all my pages on the site. Couldn't I put your code that you say to install in the index.php in my global.php page? And then no matter what page I put the $chatters, it will work?

Like I said, I just went public and scared to experiment at the moment until I do a good site back up.

But I installed your hack the way its meant to be installed in under 60 seconds and I thank you very much for your work. Great mod!

Paul M 04-17-2005 12:04 PM

Quote:

Originally Posted by MortysTW
If I wanted the "Who's Chatting" line to be displayed which I believe is this tag $chatters, at the top of all my pages on the site. Couldn't I put your code that you say to install in the index.php in my global.php page? And then no matter what page I put the $chatters, it will work?

Yes, this would work - just bear in mind that the code would be called on every page that every person views.

MortysTW 04-17-2005 04:45 PM

That's basically what I want. WIth my old forum, I had up by my logo a "WHo's Online: " and a "Who's Chatting: " on each and every page. I found the moment I did that, more people became members and the chat room really started to get used alot more.

Thanks again for the hack and your help. I'll make sure to annoy you if I have problems with my global.php idea. :D

MortysTW 04-18-2005 02:28 AM

Okay, I said I'd be back to annoy you. I can't seem to get my idea to work. I slipped the info in the global.php instead of the index.php and that part works like a champ. Info still shows up properly at the bottom of the index.php page like your hack is suppose to.

But how do I get the $chatters to work under my logo at the top of all pages.
I tried slipping it in my header and its not working. Is it not working there because global.php isn't called immedietely maybe?

Or am I suppose to do something other than just type $chatters in the html of the page? I even copied the part that is suppose to be put into the template per your instructions but dumped that info in my header instead, and none of it worked there.

I'm at a loss. Any tips?

Paul M 04-18-2005 11:03 AM

Where in global.php have you put the code ?

MortysTW 04-18-2005 06:48 PM

You mean it matters? hahaa Told you I'm new. I got the ideas, just none of the know-how.

I put it at the very bottom of the page, just above the

Quote:

/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 02:42, Wed Mar 30th 2005
|| # CVS: $RCSfile: global.php,v $ - $Revision: 1.256.2.5 $
|| ################################################## ##################
\*================================================ ======================*/
?>


All times are GMT. The time now is 06:08 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.02688 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
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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