UAE Community
July 31, 2010, 01:25:09 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Send this topic  |  Print  
Author Topic: How to Integrate FlashIRC Server Web Interface with mIRC  (Read 3747 times)
Nucleus
Community Manager
Full Member
*****

Rep Points: +0/-0
Posts: 146



View Profile
« on: November 02, 2005, 02:55:06 PM »

Server Side Setting
[/color][/size]

Step 1: Setup the website for mIRC
- Goto Admin CP on the site.
- Then, goto IRC Clients section.
- Add an entry for mIRC.
- Parameters:- 'Default' (select default if you want to set it to default, else leave it); 'Name' (preferably name it 'mirc'); 'Type' (choose 'url'); and use "irc://<your irc server's domain>/?rm= " as link for the last one.


Client Side Settings
[/color][/size]

Step 2: Setup mIRC to work with the site.
Insert the following code or load IRCwx_Connect.mrc file into Remote section of mIRC script.
Quote
on *:START: {
  RegisterLink
}

raw AUTHUSER:*: {
  ;## Guest login; change your password.
  ;/raw LOGIN guest abc234343D
 
  ;## Registered user login.
  /raw LOGINH <Your Username> $md5(<Your password>)
}

raw 001:*: {
  if (%rm) /create %rm
  unset %rm
  %servip = $serverip
}

;*************** ------------------------ ***************
;*************** web link processing code ***************
; credit: http://members.lycos.co.uk/onln/files/ProcessLink.txt
alias RegisterLink {
  echo -ac info *** Registering IRC URL Handler...
  var %x = rl $+ $ticks
  _regOpen   %x
  $_regWrite(%x, HKCR\irc\Shell\open\ddeexec\,        /ProcessLink % $+ 1)
  $_regWrite(%x, HKCR\irc\Shell\open\ddeexec\ifexec\, /ProcessLink % $+ 1)
  $_regWrite(%x, HKCR\irc\Shell\open\ddeexec\Topic\,  Command)
  _regClose  %x
  echo -ac info *** Done.
}

alias ProcessLink {
  echo -ac info *** Processing IRC URL: $1

  ; Insert your code here. URL is represented as $1
  ;
  ; The URL format is explained in this page:
  ;   http://www.mirc.com/mirclink.html

  ; Parse server name
  %serv = $gettok($1,1,$asc(?))
  %serv = $remove(%serv, irc:)
  %serv = $remove(%serv, /)
 
  ; Parse channel name
  %rm = $gettok($1,2,$asc(?))
  %rm = $remove(%rm, rm=)
 
  ; If connected to the same server then goto the channel;
  ; Else connect to server first and then goto the channel.
  if (%servip == $serverip) {
    /create %rm
    unset %rm
  }
  else /server %serv 6667
}

; Registry manipulation aliases
;
; Methods are explained in the Windows Script Host documentation.
alias -l _regOpen  .comopen  $$1 WScript.Shell
alias -l _regClose .comclose $$1
alias -l _regWrite {
  !.echo -q $com($1, RegWrite, 1, bstr, $2, bstr, $$3, bstr, REG_SZ)
}
alias -l _regRead {
  !.echo -q $com($1, RegRead, 1, bstr, $$2)
  return $com($1).result
}
alias -l _regDel {
  !.echo -q $com($1, RegDelete, 1, bstr, $$2)
}
;*************** ------------------------ ***************
;*************** ------------------------ ***************

Step 3: Selecting mIRC as your prefered irc client
Set 'mirc' (or the name you choose for mIRC in client settings) in your profile as your client.

Now you (or your user with these settings) can join channels in mIRC by clicking links on the website.
« Last Edit: November 02, 2005, 03:18:27 PM by Nucleus » Logged
Pages: [1]
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.121 seconds with 17 queries.