This feature was sponsored by http://www.advancinginsights.com/. It allows you type in a brief message (255 chars are less) when requesting someone to join your buddylist in approval mode. The message is displayed with their login message notification and in the pending tables. Very useful for giving the requested user a little context as to who you are and why you are requesting their approval.
See ->
http://img381.imageshack.us/img381/4350/buddymsgmr5.png
http://img381.imageshack.us/img381/9389/buddymsg2gy0.png
http://img479.imageshack.us/img479/9756/buddymsg3ul2.png
Their are 2 patch files one for buddylist.install since this requires a schema update and the one for the buddylist.module. The zip also contains the a working buddylist.module for reference.
Comment | File | Size | Author |
---|---|---|---|
#3 | invitemessage.patch | 5.1 KB | dldege |
request_message.zip_.txt | 16.78 KB | dldege |
Comments
Comment #1
rkn-dupe CreditAttribution: rkn-dupe commentedThanks will try it.
Comment #2
robertDouglass CreditAttribution: robertDouglass commentedI think that showing the message in drupal_set_message looks really sloppy. Maybe we can skip that part. In principle, I like the feature. Maybe you could reroll against DRUPAL-5 without the set_message?
Comment #3
dldege CreditAttribution: dldege commentedtook out the message display from buddylist_setmsg_received(). Re-rolled.
I was also missing code in buddylist.install for making the table changes needed as part of the install, not just update.
Comment #4
robertDouglass CreditAttribution: robertDouglass commentedIn the future, please roll patches using
cvs diff -u -F^f
. Thanks.Comment #5
dldege CreditAttribution: dldege commentedOK - my CVS skills are pretty weak - what does that do?
Comment #6
robertDouglass CreditAttribution: robertDouglass commentedthe -u flag puts it in unified diff format and the -F flag gets it to include an extra line. the ^f is then a regular expression that matches f at the beginning of lines (aka function blah...) and includes that line so that humans (who think in terms of functions) can find the code easily and read the patch better. Here's a snippet of a patch that was made this way: