vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Show "who's in chat room" on forum home page with integrated phpmychat! (https://vborg.vbsupport.ru/showthread.php?t=37283)

Velocd 04-11-2002 03:38 AM

Show "who's in chat room" on forum home page with integrated phpmychat!
 
This would greatly help getting more people into my integrated phpmychat room, since when users are on the main forum page they can see who's online in the chat room.

Currently I'm only asking for a number (digit) of the people who are in the chat room, but if it were somehow possible to get it displaying the usernames, that would be really sweet. I know this isn't a Vbulletin hack, but in a sense it is since you are modifying/adding code to Vbulletin templates and php files. (it would also be really cool if done).

thanks :D

mem 04-11-2002 04:06 AM

1 Attachment(s)
DO you want attachment ?? :p


sorry , my english is poll !! :paranoid:

Velocd 04-11-2002 04:20 AM

You bet I do! In..uh, english that is http://www.diffusion4.com/images/smi...tdroplaugh.gif

mem 04-11-2002 04:31 AM

1 Attachment(s)
DO you want attachment ?? :p

if you want it . you need to


Looking for:
====================
index.php

PHP Code:

} else { 
$pminfo=''



Add the string after it....:
========================
PHP Code:

//END CHAT HACK 
// Cleanup Old Users First! 
// 240 = Wait 4 mins before deleteing inactive users 
$DB_site->query("DELETE from c_users where u_time < ".(time() - 240)." and u_time > 0"); 
$numchattersa $DB_site->query_first("SELECT count(username) AS username FROM c_users"); 
// Ok Get Users and Stats 
if ($bbuserinfo['userid']!=0) {
$chat_name $DB_site->query("SELECT username FROM c_users");
while ( 
$chat_names=$DB_site->fetch_array($chat_name)) {
$chat_username .= "&nbsp;$chat_names[username]&nbsp;";
}
$numchatters $numchattersa[username]; 
eval(
"\$chatinfo .= \"".gettemplate("chatlogged")."\";"); 


ADD chatlogged template
<font color=red> $numchatters</font> member<font color=green>$chat_username</font> in<a href="/green/chat/index.php3?
U=$username&PASSWORD=&N=20&D=10" target="_new" title="go to chat"> <font color=#B50101>your chat</font></a>
==========================

sorry , my english is poll !! :paranoid:

Velocd 04-11-2002 06:04 PM

I hate to say it but that didn't work at all! I tried it and it simply gave me an error when I loaded up my forums. Are you talking about forum/index.php for another index.php? I can't see how the code above references to the chat log. Please help me out :D

almightyone 04-12-2002 12:54 AM

well i agree a hack of this nature would be nice hopefully someone can get soemthing that works for us who would like to have it

mem 04-12-2002 01:46 AM

i think about your database !!

beacause my chat install database the same vbb

and i do it

you can try again ;)

Velocd 04-12-2002 02:10 AM

What Vbulletin version do you have mem? I tried to install it on 2.2.4 and just gave me errors. I'll try again though, hey what is the link to your forums mem? I wanna see the hack :D

mem 04-12-2002 02:26 AM

Quote:

Originally posted by Velocd
What Vbulletin version do you have mem? I tried to install it on 2.2.4 and just gave me errors. I'll try again though, hey what is the link to your forums mem? I wanna see the hack :D
i used vbb2.24 .

my forums http://www.greenkiss.com/green

;)

my chat http://www.greenkiss.com/green/chat/index.php3

Velocd 04-12-2002 02:34 AM

Here is the error I get:

--------------------------------------------------------
Database error in vBulletin 2.2.4:

Invalid SQL: DELETE from c_users where u_time < 1018581979 and u_time > 0
mysql error: Table 'velocd_Vbulletin.c_users' doesn't exist

mysql error number: 1146

Date: Thursday 11th of April 2002 11:30:19 PM
Script: http://www.diffusion4.com/index.php?
Referer: http://www.diffusion4.com/admin/index.php?action=head
--------------------------------------------------------

Are there any values that I should be changing from your code??


All times are GMT. The time now is 02:15 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.01071 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_php_printable
  • (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
  • (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