Head Goldfish (@shoelaced)

Forum Replies Created

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

    Participant

    I’m having this same issue. Is there a reason the function couldn’t be changed to a protocol-relative path, i.e. “//blah.com” instead of “http://blah.com”? That way it’d inherit the correct protocol, no? I’m also getting this error for the avatar images only. If I delete my avatar image I get a green padlock.

    @shoelaced

    Participant

    If anyone runs into this wondering the same thing, I got this working using this code:

    <?php global $current_user; get_currentuserinfo(); $uid = bbp_get_current_user_id(); ?>
    <?php if ( bbp_get_user_topic_subscriptions( $uid ) ) : ?>
        <?php bbp_get_template_part( 'pagination', 'topics' ); ?>
        <?php bbp_get_template_part( 'loop', 'topics' ); ?>
        <?php bbp_get_template_part( 'pagination', 'topics' ); ?>
    <?php else : ?>
        <p><?php _e( 'You are not currently subscribed to any topics.', 'bbpress' ); ?></p>
    <?php endif; ?>

    Basically you just have to specify the current user’s ID number in the bbp_get_user_topic_subscriptions function. I’m running into another weird problem that I haven’t been able to fix though: If this is in your sidebar and you view a single forum, it will only display the subscribed topics within that forum.

    Hope this helps someone.

    @shoelaced

    Participant

    @tkserver How are you calling the data outside the bbPress framework? I’m trying to figure out how to display a list of the logged-in user’s subscriptions in my sidebar, but I can’t figure out how to get the bbPress loop to work on other pages. It doesn’t even work on the Forum pages, only when I’m viewing the User Profile.

Viewing 3 replies - 1 through 3 (of 3 total)