[Bb-trac] [bbPress] #923: function bb_related_tags would be more
useful if it accepted an array
bbPress
bb-trac at lists.bbpress.org
Tue Aug 12 11:02:30 GMT 2008
#923: function bb_related_tags would be more useful if it accepted an array
-------------------------+--------------------------------------------------
Reporter: _ck_ | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: 1.0-beta & XML-RPC
Component: Back-end | Version:
Severity: minor | Keywords:
-------------------------+--------------------------------------------------
Without too much work, I think bb_related_tags could be made to accept an
array of tags, looping to see if each one is numeric or string, and build
an array of $_tags
Then instead of checking `tag_id = %d` you'd check `tag_id IN
($list_of_tag_numbers)` This would reduce the queries to just one,
regardless of the number of tags on a topic.
Such a function could easily return a mini related heat map for any
topic's collection of tags, instead of one by one.
Currently bb_related_tags is not used at ALL, in ANY template that I can
find. It's been dormant, let's use it.
--
Ticket URL: <http://trac.bbpress.org/ticket/923>
bbPress <http://bbpress.org/>
Innovative forum development
More information about the Bb-trac
mailing list