|
|
|
|
tim
Jan 13, 2003, 5:50 AM
Post #1 of 4
(897 views)
Shortcut
Registered: Apr 4, 2002
Posts: 4861
|
I was compiling a list of People Whose UserInfo Got %@#$ed Up and decided it would be really useful to have a multi-delivery Private Message feature. This didn't previously exist so I wrote it. The separator is a comma ( , ) so for example if you wrote tim, trevor, rrradam into the Recipient Username(s): field it would go to the three of us. I hacked in some rudimentary checks for uniqueness, but you can probably send multiples if you try hard enough. If you've been having trouble with your account, please send me a PM. I'm trying to take care of all the database issues in one shot, and since it's about 5 days' worth of users (potentially), that could be quite a few. I have about 20 names right now. Also, rc.com is probably going to require unique email addresses from now on. So, if you have more than one user name registered against an email address, start thinking about which one you would most like to keep, because given the recent rash of scam attempts, we're not inclined to put up with multiple bogus accounts anymore. Plus it will make fixing the database a lot easier. Thanks, --tim [ This Message was edited by: tim on 2003-01-12 22:09 ]
|
|
|
|
|
valygrl
Jan 13, 2003, 6:09 AM
Post #2 of 4
(897 views)
Shortcut
Registered: Jul 8, 2002
Posts: 247
|
As Stan on South Park would say: "Dude, that kicks a$$!" Thanks Tim
|
|
|
|
|
sauron
Jan 13, 2003, 7:19 AM
Post #3 of 4
(897 views)
Shortcut
Registered: Oct 15, 2001
Posts: 1859
|
Tim, to fix the uniqueness issue, try the following: Code: $list = split(",[ ]*", $arg_from_form_field); foreach($list as $user) { $rcpt[$user] = 1; } Then you can do: Code: while(list($sendtouser, $val) = each($rcpt) { send_pm_to($sendtouser); } .. and the list of recipients will be unique, based on what you sent in. Now, you could do strtolower() on all this, to guarantee uniqueness (since hash keys are case sensitive) - but that breaks, because you gave Lox a uppercase name.. - d. [ This Message was edited by: sauron on 2003-01-13 01:39 ]
|
|
|
|
|
katydid
Jan 13, 2003, 10:33 AM
Post #4 of 4
(897 views)
Shortcut
Registered: Aug 13, 2002
Posts: 3212
|
Tim, as usual, you rock. Thanks, man. k.
|
|
|
|
|
|