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 09-28-2005, 09:10 AM
Snort_2005 Snort_2005 is offline
 
Join Date: May 2005
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Who's in Chat

This is an odd request.. I am on an IRC Server where it outputs an xhtml file to read from.

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.

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.
Reply With Quote
  #2  
Old 09-28-2005, 09:41 AM
???`S?LV?R???`'s Avatar
???`S?LV?R???` ???`S?LV?R???` is offline
 
Join Date: Aug 2003
Posts: 368
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

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.

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.
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...
Reply With Quote
  #3  
Old 09-28-2005, 10:19 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 09-28-2005, 10:47 AM
soniceffect's Avatar
soniceffect soniceffect is offline
 
Join Date: Feb 2005
Location: UK
Posts: 453
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

LOL
Reply With Quote
  #5  
Old 09-28-2005, 07:28 PM
Snort_2005 Snort_2005 is offline
 
Join Date: May 2005
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 09-30-2005, 10:23 AM
Snort_2005 Snort_2005 is offline
 
Join Date: May 2005
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snort_2005
Can you lend a hand? XD
*bump*
Reply With Quote
  #7  
Old 09-30-2005, 05:36 PM
devinnull devinnull is offline
 
Join Date: Sep 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 10-02-2005, 09:06 AM
Snort_2005 Snort_2005 is offline
 
Join Date: May 2005
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snort_2005
Can you lend a hand? XD
*bump*
Reply With Quote
  #9  
Old 10-05-2005, 03:12 PM
Snort_2005 Snort_2005 is offline
 
Join Date: May 2005
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snort_2005
Can you lend a hand? XD
*bump*
Reply With Quote
  #10  
Old 10-09-2005, 12:12 AM
Snort_2005 Snort_2005 is offline
 
Join Date: May 2005
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snort_2005
Can you lend a hand? XD
*bump* from page 5
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 10:50 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.14427 seconds
  • Memory Usage 2,259KB
  • Queries Executed 11 (?)
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
  • (6)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
  • (1)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
  • (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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete