Skip to:
Content
Pages
Categories
Search
Top
Bottom

favorites in profile

Viewing 3 replies - 1 through 3 (of 3 total)
  • @fel64

    Member

    What do you mean? Favourite threads? I don’t think so, like you see in the “Favourites” section of your profile, right?

    @like5

    Member

    yep the favorites that on the favorites section want it to show on the profile. i try everything still trying to figured it out

    @fel64

    Member

    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>

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar