bbPress

Simple, Fast, Elegant

bbPress support forums » Themes

Suggestions for profile.php

(7 posts)
  • Started 1 year ago by nolageek
  • Latest reply from AphelionZ
  • This topic is not a support question
  1. nolageek
    Member

    I see you have a div id (#userinfo) surrounding the user information, but the rest of the user activity is just loose. Perhaps the User Activity should be a div (#useractivity) around the activity stats and the stats be dt and dd's, like the User Info is? (for sake of consistency and predictability.)

    Posted 1 year ago #
  2. nolageek
    Member

    Changes I made:

    example: http://overnights.org/profile/2

    style.css
    #userinfo { margin: 10px 0 5px; width:45%; float:left;}
    #userinfo dt { font-weight: bold; }
    #userinfo dd { margin: 0 0 5px; }
    #useractivity { margin: 10px 0 5px; width:45%; float:right;}
    #useractivity dt { font-weight: bold; }
    #useractivity dd { margin: 0 0 5px; }

    profile.php

    <?php bb_profile_data(); ?>
    <div id="useractivity">
    <h3><?php _e('User Activity') ?></h3>
    <dt><?php _e('Recent Replies'); ?></dt>
    <?php if ( $posts ) : ?>
    <?php foreach ($posts as $bb_post) : $topic = get_topic( $bb_post->topic_id ) ?>
    <dd><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a> <?php if ( $user->ID == $bb_current_user->ID ) _e('You last replied'); else _e('User last replied'); ?>: <?php bb_post_time(); ?> ago.
    <?php
    if ( strtotime(bb_get_post_time()) < strtotime(get_topic_time()) ) {
    echo ' <span class="freshness">'. __('Most recent reply: ');
    topic_time();
    echo ' ago.</span>';
    } else {
    echo ' <span class="freshness">'. __('No replies since.') .'</span>';
    }
    ?>
    </dd>
    <?php endforeach; ?>
    <?php else : if ( $page ) : ?>
    <?php _e('No more replies.') ?>
    <?php else : ?>
    <?php _e('No replies yet.') ?>
    <?php endif; endif; ?>
    <dt><?php _e('Threads Started') ?></dt>
    <?php if ( $threads ) : ?>
    <?php foreach ($threads as $topic) : ?>
    <dd><a href="<?php topic_link(); ?>"><?php topic_title();
    ?></a> <?php printf(__('Started %s ago'), get_topic_start_time()) ?>
    <?php
    if ( strtotime(get_topic_start_time()) < strtotime(get_topic_time()) ) {
    echo '<span class="freshness"> '. __('Most recent reply: ');
    topic_time();
    echo ' ago.</span>';
    } else {
    echo '<span class="freshness"> '. __('No replies.') .'</span>';
    }
    ?>
    </dd>
    <?php endforeach; ?>
    </div>

    Posted 1 year ago #
  3. What is your forum URL... I'd like to log in and see your treatment?

    Posted 1 year ago #
  4. nolageek
    Member

    http://overnights.org

    Posted 1 year ago #
  5. nolageek
    Member

    my damn dns servers are being flakey. forgive the website, circa 1994.

    Posted 1 year ago #
  6. How did you get img tags to work inside bbpress?

    Posted 1 year ago #
  7. peiqinglon,

    http://bbpress.org/plugins/topic/5?replies=4

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.