there's been a profile field for IRC nick for quick a while. it'd be nice if we provided a way to search for a given d.o user by IRC nick. seems like a simple php filtered page at some well-known location would do the trick (no need for hacking search.module or anything). any objections, or should i work on something like this? should be pretty easy...

maybe we could just add it to the menu at http://drupal.org/search/irc ? would that give it a tab at /search automatically, or would we actually need a tiny little module with hook_menu() for that?

anyway, before i spend any time actually writing code, just wanted to get feedback.

CommentFileSizeAuthor
#3 search_irc.info_.txt129 bytesdww
#2 search_irc.module.txt981 bytesdww
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Michelle’s picture

+1 from me. I can't keep track of all the people that use different names for IRC and Drupal.org.

Michelle

dww’s picture

Status: Active » Needs review
FileSize
981 bytes

bah, a 1-off php page on d.o won't work for this (at least not as a tab on /search) since /search isn't in the visible menu tree (it's not part of navigation or primary links). so, here's a trivial module that implements hook_search(). ;) it's hard-coded for d.o (e.g. field id (fid) 35 is "irc_nick" on d.o, and it didn't seem worth another JOIN to figure that out, since "irc_nick" is itself specific to d.o, and it's never going to change), but it works fine. now running on s.d.o:

http://scratch.drupal.org/search/search_irc

dww’s picture

FileSize
129 bytes

oh yeah, i guess you need the .info file if anyone's going to attempt to test this on their own site (yeah, right). ;)

moshe weitzman’s picture

sure, would be lovely.

if you were doing this on any site besides drupal.org, i would suggest enabling usernode module (or maybe bio.module) and then using Views exposed filters. but thats not an option here for valid reasons.

dww’s picture

so, shall i just commit this to the private repo and install it for real on d.o? any objections from above? ;)

dww’s picture

Project: Drupal.org site moderators » Drupal.org infrastructure
Component: Other » Drupal.org module
Status: Needs review » Fixed

after Dries said "sure, go ahead", and i installed it on d.o, everyone complained about the name. ;) so i renamed it to "ircnick.module". behold:

http://drupal.org/search/ircnick

committed to the private repo, so i'm moving this over to the d.o infra queue for posterity...

enjoy,
-derek

Anonymous’s picture

Status: Fixed » Closed (fixed)

Project: Drupal.org infrastructure » Drupal.org customizations
Component: Drupal.org module » Miscellaneous