[buddypress-trac] [BuddyPress] #1129: Forum Topic Tags not visible/editable
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Wed Sep 30 17:07:56 UTC 2009
#1129: Forum Topic Tags not visible/editable
------------------------+---------------------------------------------------
Reporter: Detective | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone: 1.2
Keywords: |
------------------------+---------------------------------------------------
Currently, forum topic tags only appear on the forum directory. This is
good but the tags don't appear anywhere else:
a) The topic page doesn't display the current topic tags. It is possible
to show tags using a template tag like this (just a proof of concept):
{{{
function bp_the_topic_tags() {
$tags = bb_get_topic_tags( bp_get_the_topic_id() );
if ( !empty( $tags ) ) {
_e( 'Tagged as:', 'buddypress' ) . ' ';
$plain_tags = array();
foreach ( $tags as &$tag )
$plain_tags[] = sprintf( '<a href="%s"
rel="tag">%s</a>', get_option( 'home' ) . '/' . BP_FORUMS_SLUG . '/' .
'tag' . '/' . $tag->slug, $tag->name );
echo implode( ', ', $plain_tags ) . '.';
} else {
_e('No tags.', 'buddypress');
}
}
}}}
I'm pretty sure that bb_get_tag_link could be used because of the
bp_forums_filter_tag filter.
b) The edit topic page doesn't allow the topic author to edit topic tags.
c) The group members are unable to add tags to a topic. Maybe this can be
left out, but since in bbPress it's possible for each user to add tags, I
guess it could be added easily.
d) The current forum directory displays the most popular forums on topics
matching a tag. This is confusing because if the user clicks on a tag
link, and gets the "popular forums" list, he/she can understand that those
forums are tagged. There could be a template tag like
{{{
function bp_forums_is_tag() {
$tag = bp_get_forums_tag_name();
return !empty( $tag );
}
}}}
And then we could wrap the forum list with this conditional.
--
Ticket URL: <http://trac.buddypress.org/ticket/1129>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list