vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Who's in Chat (https://vborg.vbsupport.ru/showthread.php?t=97052)

Snort_2005 09-28-2005 09:10 AM

Who's in Chat
 
This is an odd request.. I am on an IRC Server where it outputs an xhtml file to read from. :o

What I would like this to do, it basically plug into the Who's online, (add a new row right under active users) and show the users in chat. :D

This sounds like a strange request, but I just cannot code php for the life of me.

Anywho, I would like to give you some information.

The server we are on is running Unreal IRCD and has the following chan modes. (~&@%+) (Owner,Admin,Op,Halfop,Voice,Normal)

I would like it to say (X) users in (site name) chat. (in the xml, <count>#</count> is what you are looking for to replace (X) with.)

Then, below that, there would be a line that says: (x) Owners, (x) Admins, (x) Ops, (x) Halfops, (x) Voices, (x) Users [(Join Chat Link)]

Then after that, I want to output the list of users.. starting with the owners and working my way downward.

I would also like to be able to color the users based on their rank in chat. I don't know if that has to be in the php code or it can be in a template. All I want is just to be able to read from this xml and output what I want.

The XML is: http://irc.initialized.org/network/channels/~gqmr/xml

I know this may sound wierd, but bear with me. I gave you specifics.. lol

EDIT: Here's a site that has their users in chat similar to what I want. (Note: I don't need the active, idle part, as I cannot get that bot to send my channel's info to my web server. lol (Just what I have is irc server created. lol)) http://www.purezc.com <- scroll all the way to the bottom of the page to see what I mean. :D

???`S?LV?R???` 09-28-2005 09:41 AM

Quote:

Originally Posted by Snort_2005
This is an odd request.. I am on an IRC Server where it outputs an xhtml file to read from. :o

What I would like this to do, it basically plug into the Who's online, (add a new row right under active users) and show the users in chat. :D

This sounds like a strange request, but I just cannot code php for the life of me.

Anywho, I would like to give you some information.

The server we are on is running Unreal IRCD and has the following chan modes. (~&@%+) (Owner,Admin,Op,Halfop,Voice,Normal)

I would like it to say (X) users in (site name) chat. (in the xml, <count>#</count> is what you are looking for to replace (X) with.)

Then, below that, there would be a line that says: (x) Owners, (x) Admins, (x) Ops, (x) Halfops, (x) Voices, (x) Users [(Join Chat Link)]

Then after that, I want to output the list of users.. starting with the owners and working my way downward.

I would also like to be able to color the users based on their rank in chat. I don't know if that has to be in the php code or it can be in a template. All I want is just to be able to read from this xml and output what I want.

The XML is: http://irc.initialized.org/network/channels/~gqmr/xml

I know this may sound wierd, but bear with me. I gave you specifics.. lol

EDIT: Here's a site that has their users in chat similar to what I want. (Note: I don't need the active, idle part, as I cannot get that bot to send my channel's info to my web server. lol (Just what I have is irc server created. lol)) http://www.purezc.com <- scroll all the way to the bottom of the page to see what I mean. :D

Sounds good, I want this too, I'll try to look for a script, and then maybe we can put something together or if we can't figure it out, then maybe just give some information for someone that would like to help with this. I thought I a hack similar to this before on here though in a vb 3.0 version if I recall...

Andreas 09-28-2005 10:19 AM

Basically
- Parse the XML using class XMLParser
- vb_number_format() count
- split list by space
- check first character and sort the nicks (without the first character) into arrays according to it
- output the counts of these arrays
- loop through the arrays and output the values, pre- and postfixed with your desired HTML markup

Done.

soniceffect 09-28-2005 10:47 AM

Er .. yeah .. what he said *points upward

LOL

Snort_2005 09-28-2005 07:28 PM

Quote:

Originally Posted by KirbyDE
Basically
- Parse the XML using class XMLParser
- vb_number_format() count
- split list by space
- check first character and sort the nicks (without the first character) into arrays according to it
- output the counts of these arrays
- loop through the arrays and output the values, pre- and postfixed with your desired HTML markup

Done.

Can you lend a hand? XD

Snort_2005 09-30-2005 10:23 AM

Quote:

Originally Posted by Snort_2005
Can you lend a hand? XD

*bump*

devinnull 09-30-2005 05:36 PM

I'd love something like the TeamSpeak server status mods I've seen where you can see who is online.

Any luck on this?

/cheers

Snort_2005 10-02-2005 09:06 AM

Quote:

Originally Posted by Snort_2005
Can you lend a hand? XD

*bump*

Snort_2005 10-05-2005 03:12 PM

Quote:

Originally Posted by Snort_2005
Can you lend a hand? XD

*bump*

Snort_2005 10-09-2005 12:12 AM

Quote:

Originally Posted by Snort_2005
Can you lend a hand? XD

*bump* from page 5


All times are GMT. The time now is 05:56 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.01587 seconds
  • Memory Usage 1,739KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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