Published on March 10th, 2009 by deadlyhifi
(profile.php in theme folder)
My users were asking for the ability to jump to the last post on the ‘User Activity’ area within their profile page. So I amended the page to use tables like the favorites listings do with two columns >
TOPIC > DETAILS
topic name > You replied 2 weeks ago. No replies since.
<?php bb_get_header(); ?>
<h3 class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <?php _e('Profile') ?></h3>
<div class="vcard">
<?php if ( $avatar = bb_get_avatar( $user->ID ) ) : ?>
<div id="useravatar"><?php echo $avatar; ?></div>
<?php unset($avatar); endif; ?>
<h2 id="userlogin"><span class="fn"><?php echo get_user_display_name( $user->ID ); ?></span> <small>(<span class="nickname"><?php echo get_user_name( $user->ID ); ?></span>)</small></h2>
<?php if ( $updated ) : ?>
<div class="notice">
<p><?php _e('Profile updated'); ?>. <a href="<?php profile_tab_link( $user_id, 'edit' ); ?>"><?php _e('Edit again »'); ?></a></p>
</div>
<?php elseif ( $user_id == bb_get_current_user_info( 'id' ) ) : ?>
<p>
<?php _e('This is how your profile appears to a logged in member.'); ?>
<?php if (bb_current_user_can( 'edit_user', $user->ID )) : ?>
<?php printf(__('You may <a href="%1$s">edit this information</a>.'), attribute_escape( get_profile_tab_link( $user_id, 'edit' ) ) ); ?>
<?php endif; ?>
</p>
<?php if (bb_current_user_can( 'edit_favorites_of', $user->ID )) : ?>
<p><?php printf(__('You can also <a href="%1$s">manage your favorites</a> and subscribe to your favorites’ <a href="%2$s"><abbr title="Really Simple Syndication">RSS</abbr> feed</a>.'), attribute_escape( get_favorites_link() ), attribute_escape( get_favorites_rss_link() )); ?></p>
<?php endif; ?>
<?php endif; ?>
<?php bb_profile_data(); ?>
</div>
<h3 id="useractivity"><?php _e('User Activity') ?></h3>
<div id="user-replies" class="user-recent">
<h4><?php _e('Recent Replies'); ?></h4>
<?php if ( $posts ) : ?>
<table id="favorites">
<tr>
<th><?php _e('Topic'); ?></th>
<th><?php _e('Details'); ?></th>
</tr>
<?php foreach ($posts as $bb_post) : $topic = get_topic( $bb_post->topic_id ) ?>
<tr<?php alt_class('replies'); ?>>
<td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
<td class="num">
<a href="<?php topic_last_post_link(); ?>">
<?php if ( $user->ID == bb_get_current_user_info( 'id' ) ) printf(__('You replied %s ago.'), bb_get_post_time()); else printf(__('Latest reply %s ago.'), bb_get_post_time()); ?>
<span class="freshness"><?php
if ( bb_get_post_time( 'timestamp' ) < get_topic_time( 'timestamp' ) )
printf(__('Latest reply %s ago'), get_topic_time());
else
_e('No replies since.');
?></span>
</a>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php else : if ( $page ) : ?>
<p><?php _e('No more replies.') ?></p>
<?php else : ?>
<p><?php _e('No replies yet.') ?></p>
<?php endif; endif; ?>
</div>
<div id="user-threads" class="user-recent">
<h4><?php _e('Topics Started') ?></h4>
<?php if ( $topics ) : ?>
<table id="favorites">
<tr>
<th><?php _e('Topic'); ?></th>
<th><?php _e('Details'); ?></th>
</tr>
<?php foreach ($topics as $topic) : ?>
<tr<?php alt_class('topics'); ?>>
<td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
<td class="num">
<a href="<?php topic_last_post_link(); ?>">
<?php printf(__('Started: %s ago.'), get_topic_start_time()); ?>
<span class="freshness"><?php
if ( get_topic_start_time( 'timestamp' ) < get_topic_time( 'timestamp' ) )
printf(__('Recent reply: %s ago.'), get_topic_time());
else
_e('No replies.');
?></span>
</a>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php else : if ( $page ) : ?>
<p><?php _e('No more topics posted.') ?></p>
<?php else : ?>
<p><?php _e('No topics posted yet.') ?></p>
<?php endif; endif;?>
</div>
<div class="nav">
<?php profile_pages(); ?>
</div>
<?php bb_get_footer(); ?>
Published on March 10th, 2009 by
Does anybody know of some good BBPress tutorials for creating plugins?
Published on March 10th, 2009 by maharzan
Okay, have been searching google and this forum for long time and find there is no occurrences of it.. not even mention of it. So, wanted to ask everyone out here if they know what is happening..
I am using double quotes in the code and trying to paste the code within backticks and while everything looks okay few html characters are rendering their ASCII code or something (html escape characters ??)
For example,
double quotes ( ” ) are rendered as &q uot;
ampersands ( & ) are rendered as &a mp;
ignore the spaces. I have disabled all the plugins, switched themes and looked over everything, but I still can’t figure out what is causing this. I saw several forums including bbpressshowcase which suffers from same problem. I don’t see that problem here in this forum.
Can anyone shed some light for me?
Thanks for all your help.
Published on March 10th, 2009 by Thad Allender
When I post code samples in my bbPress install, all quote marks show up like this:
"
This includes when I use backticks and/or buttons. Neither work.
For instance, when I post this code:
<div class="box">This is a box</div>
It becomes:
<div class="box">This is a box</div>
I am using the beta version of bbPress with WordPress integration. I have deactivate all plugins and switched themes, so I know it is a problem with my bbPress code.
Thoughts?
[code] buttons. Neither work.
For instance, when I post this code:
<div class="box">This is a box</div>
It becomes:
<div class="box">This is a box</div>
I am using the beta version of bbPress with WordPress integration. I have deactivate all plugins and switched themes, so I know it is a problem with my bbPress code.
Thoughts?
Published on March 9th, 2009 by
Hi,
I recently setup a bbpress forum (http://dphs.com/wp-content/plugins/bbpress/) and integrated it with my wordpress site (http://dphs.com). My admin login works fine (same as my wordpress login), but my keymaster login is not recognized (login failed). I deleted my cookies to see if that helped, but may just have made it worse. Any insight?
Thanks!
Published on March 9th, 2009 by jdavey
Hey there:
I’ve search through the forums and found quite a few 404 issues but mine is preventing me from login right off the bat. My integration with WP 2.7.1 was successful, but when i try to login to http://gpsobsessed.com/forum using my WP login I’m returned a 404. How do I fix this?
Thx,
Justin
Published on March 9th, 2009 by
Hi all
First off I feel I need to thank the developers for creating bbpress. It seems to be the solution I have been looking for.
I’m trying to set up private forums.
I have installed the private forums plugins, but the “roles” are what bothers me. I don’t wish to give users a “moderator” role.
There has to be a way for me to give them a different role? I simply cannot find the place where to add additional roles or HOW to do it. I’m on version 0.9.0.4.
Hope someone can help me out here.
Best regards,
Ryan
Published on March 8th, 2009 by John James Jacoby
Curious if there’s a way to get an accurate bread crumb when editing a post?
Published on March 8th, 2009 by
WordPress: 2.7.1
BB Press: 1.0-alpha-6
wordpress: permalinks enabled name based
bbpress: permalinks enabled name based
WP plugins:-
Akismet 2.2.3
Google Analytics for WordPress 2.7
WP-Syntax
BBP plugins:
none
PROBLEM: –
as the keymaster logins through forum, he can login to wp-admin.. but the problem is, that he can’t see the posts on the actual WP site. Instead of seeing the posts, the keymaster (guy logins through BBpress) sees this:-
Error 404 – Not Found
The page you were looking for has either been deleted or moved.
Do you want to search for it?
The installation had no errors at all, and seemed fine. And my friend who logins in from New Zealand can see the post, but im not sure if hes logged into the forum yet. So I dont know whether its a cache thing even though iv cleared my cache several times. It only happens when i login through bbPress.
Published on March 8th, 2009 by
Can 0.9.0.4 be intergrated with WP 2.7.1 ? ,…
if so :-
1. do the roles intergrate too?
2. does the private messaging plugin work with WP2.7.1