[Bb-trac] Re: [bbPress] #700: bb_last_page() for easier templating

bbPress bb-trac at lists.bbpress.org
Fri Sep 14 22:57:36 GMT 2007


#700: bb_last_page() for easier templating
----------------------------+-----------------------------------------------
 Reporter:  fel64           |        Owner:                     
     Type:  defect          |       Status:  new                
 Priority:  normal          |    Milestone:  0.8.4 & WP-Taxonomy
Component:  Administration  |      Version:  0.8.2.1            
 Severity:  normal          |   Resolution:                     
 Keywords:                  |  
----------------------------+-----------------------------------------------
Changes (by mdawaffe):

  * version:  => 0.8.2.1
  * milestone:  => 0.8.4 & WP-Taxonomy

Comment:

 How about a function that returns the total number of pages instead?  I
 feel like that could be used in more places.  To to check for last page,
 you'd only have to do the following.

 {{{
 if ( $page == bb_get_total_pages() )
   // Last page
 else
   // Not last page
 }}}

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


More information about the Bb-trac mailing list