Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: favorites in profile

I think that’s a tricky one. The code block that makes the output of favourites is below, but since it checks if( $topics ) the actual getting of favourites I guess happens much earlier on in bbPress’ execution. Can’t think how you’d get around that easily.

<?php if ( $topics ) : ?>

<table id="favorites">
<tr>
<th><?php _e('Topic'); ?></th>
<th><?php _e('Posts'); ?></th>
<th><?php _e('Freshness'); ?></th>
<th><?php _e('Remove'); ?></th>
</tr>

<?php foreach ( $topics as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
<td class="num"><?php topic_posts(); ?></td>
<td class="num"><small><?php topic_time(); ?></small></td>
<td class="num">[<?php user_favorites_link('', array('mid'=>'x'), $user_id); ?>]</td>
</tr>
<?php endforeach; ?>
</table>

Skip to toolbar