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.
Comment | File | Size | Author |
---|---|---|---|
#3 | search_irc.info_.txt | 129 bytes | dww |
#2 | search_irc.module.txt | 981 bytes | dww |
Comments
Comment #1
Michelle+1 from me. I can't keep track of all the people that use different names for IRC and Drupal.org.
Michelle
Comment #2
dwwbah, 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
Comment #3
dwwoh yeah, i guess you need the .info file if anyone's going to attempt to test this on their own site (yeah, right). ;)
Comment #4
moshe weitzman CreditAttribution: moshe weitzman commentedsure, 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.
Comment #5
dwwso, shall i just commit this to the private repo and install it for real on d.o? any objections from above? ;)
Comment #6
dwwafter 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
Comment #7
(not verified) CreditAttribution: commented