[Bb-trac] Re: [bbPress] #715: New bb_uri() and bb_get_uri() functions

bbPress bb-trac at lists.bbpress.org
Sun Aug 12 13:19:57 GMT 2007


#715: New bb_uri() and bb_get_uri() functions
-------------------------+--------------------------------------------------
 Reporter:  sambauers    |        Owner:  sambauers        
     Type:  enhancement  |       Status:  new              
 Priority:  normal       |    Milestone:  0.8.3 & XML-RPC  
Component:  Front-end    |      Version:  1.0-alpha (trunk)
 Severity:  normal       |   Resolution:                   
 Keywords:  SSL URI      |  
-------------------------+--------------------------------------------------
Comment (by sambauers):

 Replying to [comment:1 mdawaffe]:
 > This looks cool.  What do you think we should do about tag links
 (tagpath), and theme and plugin URLs?

 I guess we could extend it to cover a few different types of URI and then
 we can deprecate some of the existing `bb_get_xxx_uri()` functions.

 We could add a "type":

 {{{
 $example1 = bb_get_uri(); // base URI
 $example2 = bb_get_uri('bb-login.php'); // simple URI of bb-login.php page
 $example3 = bb_get_uri('some user tag', 'topic_tag'); // link to tag page
 for "some user tag"
 $example4 = bb_get_uri('kakumei', 'theme'); // link to kakumei theme
 directory
 $example5 = bb_get_uri('some-active-plugin.php', 'plugin_dir'); // link to
 plugins directory (more useful than link to actual plugin)
 $example6 = bb_get_uri('bb-login.php', null, 'action'); // bb-login.php in
 form action
 }}}

 etc...

 But there isn't all that much value in doing that, except that filtering
 might become a little easier for these instances as well.

-- 
Ticket URL: <http://trac.bbpress.org/ticket/715#comment:2>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list