cgiirc - Custom Login Form
Not logged in
[Browse]  [Contents]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline]  [Wiki
  [Attach]  [Diff]  [Edit]  [History]  [Text

Customing the login form is the easiest way to link CGI:IRC into an existing site.

You can base your login form on the saved HTML output of irc.cgi, ¤this template or use the Javascript method detailed below.

Javascript pop-up login

Upload the attached cgiirc.js to your website and then adapt the HTML below (make sure action points at your install of CGI:IRC).

  <script src="cgiirc.js"></script>
  <form name="cgiirclogin" method="post" onsubmit="return openCgiIrc(this, 0)" action="irc.cgi">
  <input type="hidden" name="interface" value="nonjs" />
  <input type="hidden" name="Channel" value="#channel" />
  <label>Nickname</label>
  <input type="text" name="Nickname" value="CGI???" />
  <input type="submit" value=" Chat! " />
  </form>

Change the channel to the channel you want (you could also make it into a visible field if you want). You might also want to change the nickname (any ? will be replaced with a random number). If you would rather this didn't open in a pop-up window change the 0 after openCgiIrc to a 1.

Attachments:

CVSTrac 1.2.1 - CGI:IRC