[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
Sun Sep 12 03:09:27 UTC 2010
#2566: [patch] “Send Private Message” and “Mention this User” Button Filtering
-----------------------+----------------------------------------------------
Reporter: jeffsayre | Owner: jeffsayre
Type: defect | Status: assigned
Priority: major | Milestone: 1.2.6
Component: Core | Keywords: has-patch, security, privacy, abstraction, filters
-----------------------+----------------------------------------------------
Comment(by johnjamesjacoby):
Started looking at the patch in more detail, and ended up liking the
overall solution less and less.
I'm going to back-port a solution I had started for 1.3 a little earlier
than I wanted. Spent the greater portion of this weekend getting it fixed
up for testing. It will introduce a new BP_Button class and template-tags
to handle the creation of component buttons. The default theme will attach
these button functions to its do_action handlers in the theme itself. This
creates a separation between the buttons and the template, and still
allows the buttons to be filtered/changed/adjusted/tweaked, similar to how
WordPress handles lists.
In 1.3 I think a more elegant solution will be to have templates include
some kind of fields.php file, where commonly used elements and their
associated HTML are stored.
Rather large patch due tonight or tomorrow that will need some testing.
--
Ticket URL: <http://trac.buddypress.org/ticket/2566#comment:25>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list