[Bb-trac] Re: [bbPress] #620: Front-end changes to enable forum hierarchy

bbPress bb-trac at lists.bbpress.org
Fri Apr 20 02:47:26 GMT 2007


#620: Front-end changes to enable forum hierarchy
-------------------------+--------------------------------------------------
 Reporter:  sambauers    |        Owner:  sambauers
     Type:  enhancement  |       Status:  closed   
 Priority:  normal       |    Milestone:  1.0      
Component:  Front-end    |      Version:  0.8.1    
 Severity:  normal       |   Resolution:  fixed    
 Keywords:  has-patch    |  
-------------------------+--------------------------------------------------
Comment (by sambauers):

 I meant to respond about this earlier... sorry.

 I'm not a big fan of the bb_forum_pad method you are using. I thought it
 could be better done through CSS. But the way I did it through CSS wasn't
 all that great either. Perhaps I could adapt it to return a number which
 increments for each level deep we are in the hierarchy, the function could
 take a number to multiply by before it returns, the result would be
 something like:

 {{{
 <?php while ( bb_forum() ) : ?>
 <tr<?php bb_forum_class(); ?>>
         <td style="padding-left:<?php bb_forum_pad( 10 ); ?>px;"><a
 href="<?php forum_link(); ?>"><?php forum_name(); ?></a><small><?php
 forum_description(); ?></small></td>
         <td class="num"><?php forum_topics(); ?></td>
         <td class="num"><?php forum_posts(); ?></td>
 </tr>
 <?php endwhile; ?>
 }}}

 The CSS that is in there is rich, but a little too complicated for most -
 it would be better if there was some example usage of it in the standard
 css file. I'm happy to look into this.

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


More information about the Bb-trac mailing list