[buddypress-trac] [BuddyPress] #2566: [patch] “Send Private Message” and “Mention this User” Button Filtering

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Aug 26 03:31:48 UTC 2010


#2566: [patch] “Send Private Message” and “Mention this User” Button Filtering
-----------------------+----------------------------------------------------
 Reporter:  jeffsayre  |       Owner:  jeffsayre                                         
     Type:  defect     |      Status:  new                                               
 Priority:  major      |   Milestone:  1.2.6                                             
Component:  Core       |    Keywords:  has-patch, security, privacy, abstraction, filters
-----------------------+----------------------------------------------------

Comment(by jeffsayre):

 Okay, I'm not going to repatch this tonight. I need to think of another
 solution. I just remembered the other reason I placed the CSS selectors
 into the HTML outputted by my new functions. It is to offer total control
 over each button's output.

 If the CSS is kept in the template, then even though you can decide not to
 output the “Mention this User” or “Send Private Message” text, the div
 .generic-button selector still draws the button borders. This of course is
 not desirable. But by putting the selectors into the function, you can
 simply choose to not output the division CSS and therefore the borders do
 not get drawn. I suppose I could wrap the template div in an if statement,
 but I'm not sure if that's the proper way to proceed.

-- 
Ticket URL: <https://trac.buddypress.org/ticket/2566#comment:14>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list