vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Major addition to Who's Online, need serious help! (https://vborg.vbsupport.ru/showthread.php?t=33773)

dirgotronix 01-03-2002 10:51 PM

Ok, I wrote up an irc bot in php that idles in my irc channel, logs the previous X lines of the conversation, and grabs the list of nicks in the channel, organised by status. All of this is through a mysql database, and works wonderfully. I added some code to retrieve and list this to forum/index.php so that it displays underneath the Currently Online Users list, like so:

Users on IRC: 14 ( 10 ops, 1 voiced, 3 normal ) View last ten messages
dolmant, Jason, MrB, MrB|bowling, O_o|fewd, ubik, webmaster, Weidas|gone, wolvie, [bot]dirgotronix, dubya, Booger|away, listbot, spoon


Now, I'd like to add this to Who's Online as well, and I'm not sure how to go about that. Basically all I need to do is add in a while loop that spits out the html for it in Who's Online, but I don't know where! I want to put it on the bottom of the list, below the last guest and above the legend. Is there a way I can just make a template for the html, toss a var on the who's online template, and run the code through online.php to make it show up? Some help would be greatly appretiated.

Check out the example on my forum: http://www.dtuf.net/

Thanks for any insight!

dirgotronix 01-04-2002 12:06 AM

Nevermind, I hacked it around and figured it out. Check it out here:

http://www.dirgotronix.net/forum/online.php?s=

I'm decently proud of myself for this one.

FWC 01-04-2002 12:20 AM

You should be proud of yourself. Very cool! :)


All times are GMT. The time now is 12:35 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.00959 seconds
  • Memory Usage 1,711KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete