View Single Post
  #58  
Old 01-04-2003, 06:40 AM
Huron Huron is offline
 
Join Date: Dec 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hope supreemball doesn't mind but I modded some of the code to display time and date of most chatters. Basically, all I did was do some cutting and pasting of what was there. The following is what I changed...

Beginning at:

if (%record.users == $null) { set %record.users $nick(#channel,0) }
else {
if ($nick(#channel,0) > %record.users) {
set %record.users $nick(#channel,0)
}
}
write -a nicks.php $chr(36) $+ mostnicks = $chr(34) $+ %record.users $+ $chr(34) $+ $chr(59)
write -a nicks.php $chr(36) $+ totalnicks = $chr(34) $+ %totalnicks $chr(34) $+ $chr(59) ?>

To:

if (%record.users == $null) { set %record.users $nick(#channel,0) }
else {
if ($nick(#channel,0) > %record.users) {
set %record.users $nick(#channel,0)
}
if (%record.date == $null) { set %record.date $date(ddd mmm doo yyyy) }
else {
if ($nick(#channel,0) > %record.users) {
set %record.date $date(ddd mmm doo yyyy)
}
if (%record.time == $null) { set %record.time $time(h:nntt) }
else {
if ($nick(#channel,0) > %record.users) {
set %record.time $time(h:nntt)
}
}
write -a nicks.php $chr(36) $+ mostnicks = $chr(34) $+ %record.users $+ $chr(34) $+ $chr(59)
write -a nicks.php $chr(36) $+ mostdate = $chr(34) $+ %record.date $+ $chr(34) $+ $chr(59)
write -a nicks.php $chr(36) $+ mosttime = $chr(34) $+ %record.time $+ $chr(34) $+ $chr(59)
write -a nicks.php $chr(36) $+ totalnicks = $chr(34) $+ %totalnicks $chr(34) $+ $chr(59) ?>

Then in Forumhome_Loggedinusers beggining at:

colspan="6"><normalfont color="#000000"><b>Current #channel chatters: $totalnicks</b></normalfont> <smallfont>(Most chatters ever in #channel: $mostnicks)</smallfont></td>
</tr>
<tr>
<td bgcolor="#13486D" colspan="6"><smallfont>
$ircnicks</smallfont></td>
</tr>

To:

colspan="6"><normalfont color="#000000"><b>Current #channel chatters: $totalnicks</b></normalfont></td>
</tr>
<tr>
<td bgcolor="#13486D" colspan="6"><smallfont>
<nobr>There are currently $totalnicks members in chat.</nobr> | <nobr>Most chatters ever online was $mostnicks on $mostdate at $mosttime.</nobr><br>
$ircnicks</smallfont></td>
</tr>

I'm new here and I hope I'm not breaking some rules. If so then please delete this post. Many thanks go out to supreemball for providing such a great hack-this has been my fav install thus far. My chatroom went from the occasional 1-2 users who would stay for about 5 minutes and then leave when no one else was there to a busy, vibrant chatroom with around 15-20 users at a time being common.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01150 seconds
  • Memory Usage 1,766KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete