Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-11-2002, 03:38 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 04-11-2002, 04:06 AM
mem mem is offline
 
Join Date: Oct 2001
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

DO you want attachment ??


sorry , my english is poll !! aranoid:
Attached Images
File Type: png 82.png (7.9 KB, 0 views)
Reply With Quote
  #3  
Old 04-11-2002, 04:20 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You bet I do! In..uh, english that is
Reply With Quote
  #4  
Old 04-11-2002, 04:31 AM
mem mem is offline
 
Join Date: Oct 2001
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

DO you want attachment ??

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 !! aranoid:
Attached Images
File Type: png 83.png (8.3 KB, 0 views)
Reply With Quote
  #5  
Old 04-11-2002, 06:04 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 04-12-2002, 12:54 AM
almightyone almightyone is offline
 
Join Date: Oct 2001
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 04-12-2002, 01:46 AM
mem mem is offline
 
Join Date: Oct 2001
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i think about your database !!

beacause my chat install database the same vbb

and i do it

you can try again
Reply With Quote
  #8  
Old 04-12-2002, 02:10 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 04-12-2002, 02:26 AM
mem mem is offline
 
Join Date: Oct 2001
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
i used vbb2.24 .

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



my chat http://www.greenkiss.com/green/chat/index.php3
Reply With Quote
  #10  
Old 04-12-2002, 02:34 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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??
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:17 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04372 seconds
  • Memory Usage 2,292KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete