Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: How to register Nickname/Channel via Website  (Read 9533 times)

0 Members and 1 Guest are viewing this topic.

eawedat

  • Anope User
  • Offline Offline
  • Posts: 1
How to register Nickname/Channel via Website
« on: February 14, 2010, 02:49:57 PM »

Hey all,,
am wondering if there are specific modules that can be added as plugins or something
to Anope services so,, user who logs into my website can register either his/her nickname or channel by a given website..

for example if a user surf on my server's website there would be an option to register
a new nickname and channel.

http//example.com/register

and there
he fills out a form and submit data then anope services informs user if nickname or channel is already registered or not and if not to register it to write successful registeration :)




what modules can i use for that?
links please..
and explaination link for compiling modules into anope services


and if there is a sample website to use.

thanks a lot)
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: How to register Nickname/Channel via Website
« Reply #1 on: February 14, 2010, 02:51:45 PM »

There are ways to do this but nothing has been published as yet.

Logged

ysfm

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 9
    • irc.org.tr
Re: How to register Nickname/Channel via Website
« Reply #2 on: March 19, 2010, 04:41:10 PM »

I recommend to use mysql support on your server to use nickname check.

Edit some line and conf.php:
bot config. in conf.php

Quote
$dbHost = 'localhost'; // usually localhost

$dbUsername = 'ircd_users';

$dbPassword = 'passs';

$dbDatabase = 'ircd_anope';

this in check.php pls change it.

And finally

install saregister module and edit this module and reg.php
eg.

find

Quote
c = createCommand("SAREGISTER", do_saregister, is_services_admin, -1, -1, -1, -1, -1);

change
Quote
   c = createCommand("SAREGISTERETC", do_saregister, NULL, -1, -1, -1, -1, -1);

dont say this command to other admins or users.

find

Quote
notice_lang(s_NickServ, u, NICK_ALREADY_REGISTERED, nick);

change

Quote
notice_user(s_NickServ, u, "Nick \2%s\2 zaten kayitli", nick);

----

find this line in reg.php

Quote
  $ekran = fputs($baglan, 'PRIVMSG '.$services.' :saregister '.$rumuz.' '.$sifre.' '.$mail.$n);

change

Quote
  $ekran = fputs($baglan, 'PRIVMSG '.$services.' :saregisteretc '.$rumuz.' '.$sifre.' '.$mail.$n);


ns_saregister - http://modules.anope.org/index.php?page=view&id=173

demo - http://irc.org.tr/kayit

Logged
Pages: [1]   Go Up