Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
IRC Manager for MIRC Details »»
IRC Manager for MIRC
Version: 1.00, by Velocd Velocd is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-16-2004 Last Update: Never Installs: 84
 
No support by the author.

Here is a hack spawned off an original idea by Feldon23 for using mIRC sockets to show who is online in your channel.

This hack advances from his in many features, the most obvious being it uses a MySQL table to store the data.
  • It supports multiple channels, not just one. This means you can show who is online on your forum home page for not just one channel, but many (there is a major restriction to this though, please refer to the install.html)
  • Data is passed through sockets by HTTP POST, not GET, therefore more options are available. For one, this hack will show the topic of your channel.
  • The "most users ever in the channel" has a timestamp to go along with it.
  • The most innovative feature of this hack is the activity bar. This guages the activity of your channel by counting how many lines are outputted in the channel every X amount of seconds (this value is definable by you; default is 3 minutes). The activity bar allows people not in the IRC channel to see if there is activity going on inside.
  • Admin Control Panel integration, for easy adding/deleting/editing channels.

This hack operates in the same as Feldon's, in that you MUST be in mIRC and connected to the channel if you wish for the data to be updated. There is no eggdrop required, and no FTP.

About the only known bug/error I've encountered in this hack is a "socket-in-use" error from mIRC. This can happen if you have a busy chatroom with people changing nicks, or leaving and joining the chatroom constantly. In this case, you will want to make some modifications to the ON-events in the remote script.

For more explanation on features, requirements, and restrictions, please refer to the section in install.html.


Version 1.1 - 1/20/04
  • Changed the way data is sent in the remote socket script, to allow more users being. Unfortuantly mIRC sockets aren't very extensive, and through different functions and loops I still wasn't able figure out a way of sending more data. This simply means the max users that will be updated for each channel is around 60 users. (although, I believe it is more than the the 1.0 version)
  • Created another socket connection for the topic & activity, which should reduce the number of "socket-in-use" errors.
  • Renamed two of the config variables which were somewhat ambigious.

Upgrade 1.1 Instructions:
  • Unload your current ircon_rm.txt remote script and ircon_al.txt alias script, and reload the new ones.

Clear your internet cache before downloading.

If you install this hack, please click the install button.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 01-18-2004, 05:16 PM
CHeeKY CHeeKY is offline
 
Join Date: Nov 2001
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok heres my new settings

%ircserver = http://x.x.x.x
%ircfilepath = /forums/irconline.php
%irckey = 11111
%ircchan = #qteam
%ircwait = 60

admincp

Handle #qteam
Server b0rk.uk.quakenet.org



this is the error I get

* /sockwrite: 'dbupdate' not connected (line 2, ircon_rm.txt)

Quote:
this is from ircon_rm.txt

on *:sockopen:dbupdate:{
sockwrite -n $sockname POST %ircfilepath HTTP/1.1
sockwrite -n $sockname User-Agent: mIRC $+ / $+ $version (compatible; MTS Downloader 1.1; Windows $os $+ )
sockwrite -n $sockname Host: %ircserver
sockwrite -n $sockname Connection: close
sockwrite -n $sockname Content-Type: application/x-www-form-urlencoded
sockwrite -n $sockname Content-Length: $len(%sockstring)
sockwrite -n $sockname $crlf
sockwrite -t $sockname %sockstring
any tips?
Reply With Quote
  #23  
Old 01-18-2004, 06:16 PM
KISS's Avatar
KISS KISS is offline
 
Join Date: Jan 2002
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Velocd
Post in vB code tag what you have in your aliases page, so I can verify it.

Remember, typing manually /ircrefresh and /topicrefresh is good for troubleshooting. Make sure no socket-in-use or other errors show up in your IRC server status window.

Just about any server should be able to receive the socket request, that is, if PORT 80 is open. Most servers have port 80 open for requests, but if all else fails, contact your host to make sure it is.

Okay was told by my server that port 80 is used for only http requests and that for security reasons they cannot devulged any open ports to me. So am I outta luck on this working?
Reply With Quote
  #24  
Old 01-18-2004, 07:15 PM
gc1 gc1 is offline
 
Join Date: Sep 2002
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CHeeKY
ok heres my new settings

%ircserver = http://x.x.x.x
%ircfilepath = /forums/irconline.php
%irckey = 11111
%ircchan = #qteam
%ircwait = 60

admincp

Handle #qteam
Server b0rk.uk.quakenet.org



this is the error I get

* /sockwrite: 'dbupdate' not connected (line 2, ircon_rm.txt)



any tips?

This is exactly what I am getting hmm
Reply With Quote
  #25  
Old 01-18-2004, 08:36 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@cheeky, gc1:

THe %ircserver value needs to be in www.yoursite.domain format.

Here is my example:

Code:
  %ircserver   = www.animesystem.com
  %ircfilepath = /forums/irconline.php
  %irckey      = 54321
  %ircchan     = #animesystem
  %ircwait     = 120
If you are getting a socket-write error message, it simply means it can't connect to the site.

Make sure the value of %irckey matches $irckey inside irconline.php.

Quote:
This is what I got in the alias tab
Are you getting any errors from mIRC in the server status window?
Reply With Quote
  #26  
Old 01-18-2004, 08:47 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Okay was told by my server that port 80 is used for only http requests and that for security reasons they cannot devulged any open ports to me. So am I outta luck on this working?
If they're saying port 80 is open for HTTP requests, then this hack should work.

Check for any errors from mIRC in the server status window.

Who is your host, btw?
Reply With Quote
  #27  
Old 01-18-2004, 08:53 PM
KISS's Avatar
KISS KISS is offline
 
Join Date: Jan 2002
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2mhost.com

They are saying:

Your account will be suspended if you use IRC on our servers without any notifications. We are not allowing the users to use the open ports just because they may cause heavy loads.

So sounds like I am outta luck. Nope no errors inside of MIRC either.

*** Loaded aliases 'C:\Program Files\MIRC\ircon_al.txt'
*** Loaded script 'C:\Program Files\MIRC\ircon_rm.txt'

-
* Timer 1 activated

Thats all I get there.

Also get this on index.php page :

Most users in the chat was 0 on 12-31-1969 at 07:00 PM.
Reply With Quote
  #28  
Old 01-18-2004, 09:05 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Your account will be suspended if you use IRC on our servers without any notifications. We are not allowing the users to use the open ports just because they may cause heavy loads.
Hmm, well, it's best not tampering with it if your host has threatened to suspend your account. :^/

What you could do is test out PHP sockets on your site and see if port 80 is open for requests. This would just verify that they indeed have blocked out mIRC.

Info on PHP sockets:
http://us4.php.net/manual/en/function.fsockopen.php

PHP.net example:

PHP Code:
<?php
$fp 
fsockopen("www.example.com"80$errno$errstr30);
if (!
$fp) {
   echo 
"$errstr ($errno)<br />\n";
} else {
   
$out "GET / HTTP/1.1\r\n";
   
$out .= "Host: www.example.com\r\n";
   
$out .= "Connection: Close\r\n\r\n";

   
fputs($fp$out);
   while (!
feof($fp)) {
       echo 
fgets($fp128);
   }
   
fclose($fp);
}
?>
Reply With Quote
  #29  
Old 01-18-2004, 09:18 PM
KISS's Avatar
KISS KISS is offline
 
Join Date: Jan 2002
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

* /sockwrite: 'dbupdate' not connected (line 2, ircon_rm.txt)
-
* Timer 1 activated
-
* Timer 2 activated
-
* Timer 3 activated
-
* Timer 4 activated
-
* Timer 5 activated
-
* Timer 6 activated
-
* Timer 1 halted
-
* Timer 2 halted
-
* /sockopen: 'dbupdate' socket in use (line 106, ircon_al.txt)
-
* Timer 3 halted
-
* /sockopen: 'dbupdate' socket in use (line 106, ircon_al.txt)
-
* Timer 4 halted
-
* /sockopen: 'dbupdate' socket in use (line 106, ircon_al.txt)
-
* Timer 5 halted
-
* /sockopen: 'dbupdate' socket in use (line 106, ircon_al.txt)
-
* Timer 6 halted
Reply With Quote
  #30  
Old 01-18-2004, 10:31 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kiss, if you don't care, I could test it out on my mIRC.

All I would have to do is configure the alias script with your values.

If you want to do this, send me a PM with your site domain, the value of %ircfilepath, and then the value of $irckey in irconline.php.
Reply With Quote
  #31  
Old 01-18-2004, 10:50 PM
KISS's Avatar
KISS KISS is offline
 
Join Date: Jan 2002
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now I am getting this:

* /sockopen: 'dbupdate' socket in use (line 8, ircon_al.txt)
-
* /sockopen: 'dbupdate' socket in use (line 8, ircon_al.txt)
-
* /sockwrite: 'dbupdate' not connected (line 2, ircon_rm.txt)
-
* /sockopen: 'dbupdate' socket in use (line 8, ircon_al.txt)
-
* /sockopen: 'dbupdate' socket in use (line 8, ircon_al.txt)
-
* /sockwrite: 'dbupdate' not connected (line 2, ircon_rm.txt)
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:28 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.04851 seconds
  • Memory Usage 2,325KB
  • Queries Executed 25 (?)
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)bbcode_code
  • (1)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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