Show last registered user? Here y’go:
<?php include_once("bb-includes/statistics-functions.php"); ?>
Our newest member is <?php if ( $users = get_recent_registrants(1) ) : foreach ( $users as $user ) : ?>
<a href="<?php user_profile_link( $user->ID ); ?>"><?php echo get_user_name( $user->ID ); ?></a>
<?php endforeach; endif; ?>
The problem I’m having is that I’ve had is that my blog is 4 years old but I only started adding tags less than a year ago and bbpress install is only a few months old. So I’m adding new tags to old posts (because I’m a borderline obsessive compulsive organizer) and they’re becoming the top posts on bbpress even though they’re years old. I’m almost done, but it’s still crazy. If I were smart and had realized what was going to happen I’d’ve finished my tagging and then installed bbpress. But I’m not 
Anyway, thanks for the tips and the info
Hello,
in the front-page, i want to show the name and the link of this profile, of the membre have joined in last the forum, but how please ? 
thanks,
Fred
Hello,
in the pages of the posts, for the all users, i want to show:
– the date of the user have joined
– the number of posts of the user
– if he is online or offline
how to do that?
i want to add this in the
<div class="threadauthor">
<?php post_author_avatar_link(); ?>
<p>
<?php post_author_link(); ?>
<small><?php post_author_title_link(); ?></small>
<?php report_post_link(); ?>
</p>
</div>
thanks,
Fred
Hmm… bbSuperCache plugin could be useful, muhaha! Thanks
Here try this – completely untested – let me know!
update: forget this one, use the 2nd one below it
function delete_own_post($retvalue, $capability, $args) {
global $bb_current_user, $bb_post;
if ($capability=="delete_post" && $bb_current_user->ID && $bb_post && $bb_post->post_id && $bb_post->post_id ==intval($args[1]) && $bb_post->poster_id && $bb_post->poster_id==$bb_current_user->ID && bb_current_user_can( 'edit_post', $bb_post->post_id) {return true;} // lots and lots of double checks
return $retvalue;
}
add_filter('bb_current_user_can', 'delete_own_post',10,3);
.
This checks if the user can still edit the post, and if so, allows them to delete their own post too.
This plugin could be enhanced by checking if the user has been marked as blocked or inactive and prevent them from deleting it at all.
Update: I may have “over engineered the above function, this may be a much more simplified approach:
function delete_own_post($retvalue, $capability, $args) {
if ($capability=="delete_post") {return bb_current_user_can( 'edit_post', $args[1]);}
return $retvalue;
}
add_filter('bb_current_user_can', 'delete_own_post',10,3);
This second method simply allows delete if the user can still edit a post. Once the edit times out, so does the delete.
There are plenty of threads/posts about this, try this:
Hiding Subforums’ Subforums from Subforum Pages
You want code like this:
<?php $forum_parent=$forum_id; ?>
<?php while ( bb_forum() ) : ?>
<?php if ($GLOBALS['forum']->forum_parent==$forum_parent) { ?>
<tr<?php bb_forum_class(); ?>>
<td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><small><?php forum_description(); ?></small><?php bb_forum_pad( '</div>' ); ?></td>
<td class="num"><?php forum_topics(); ?></td>
<td class="num"><?php forum_posts(); ?></td>
</tr>
<?php } ?>
<?php endwhile; ?>
You have to first have the list of the forums for that to work.
add this to the top of that:
<?php $forums = get_forums(); ?>
Mmm…no
I’ve tried this: https://bbpress.org/forums/topic/wordpress-and-bbpress-integration-101
And also the require_once that u’ve told me, but maybe I’m unlucky!
I’ve used no one include…have u got a link? Or can u tell me how to do it?
There are no error, but the script don’t function…in bbpress it create a message (“there are [number] new messages”), if I use it in wp it do nothing… (the functions are in the bbpress path)
Thaaaaaaaaaaaaanks!!
It’s just a query, doesn’t write anything so can’t hurt your db. Only bad thing it could do if it you used it on a frequently accessed page, might slow down your site a little bit.
I’ll double check why it’s not working in 0.9
update: oh they changed the name of the field from “favorites” to “bb_favorites” so it’s like this now:
function get_topic_favorites_count( $topic_id=0) {
global $bbdb, $topic;
if (!$topic_id) $topic_id = (int) $topic->topic_id;
return $bbdb->get_var("SELECT COUNT(*) FROM ".$bbdb->usermeta." WHERE meta_key='bb_favorites' AND meta_value REGEXP ':<:".$topic_id.":>:'");
}
Ross, I created a little slice of a navbar up top, and put the link over to the right in it. Here’s how I did it:
style.css:
#navbar {
background: #A9A9A9;
height: 1.5em;
text-align: right;
font-size: 1.2em;
}
header.php:
<div id="navbar">
<a href="http://ashb.proofreadercentral.com/" title="Return to the ASHB website home page">ASHB Home</a>
</div>
Put that in the header right after the end of the login form and right before the end of the header div. That will give you a little slice up top in which to link to the main website. You can change the color, the height of the bar and the font size.
I don’t know why the button is tucked in so close in IE (not FF), but it seems like the negative positioning thing is probably fraught with problems, so I would avoid it.
You could also put your button to return to the main website in this nav bar, but you’d have to make it taller.
Well, but it’s not ok. I have the same database for wp and bbpress, I’ve done also the config wrote in the tutorial, but the script doesn’t function…
I have wordpress 2.5 and bbpress 0.9.0.2
Do you know what can i do?? Thx
It appears that functionget_topic_favorites_count
is not working in 0.9 – anyone know how to make it working? And generally – this function won’t kill my DB, will it? lol
_ck_
Try deactivating a few plugins at a time?
You now, I’ve deactivated first plugin and edititng started to work
that plugin was your “Post Count Plus”. Don’t you know that’s the trouble?
Because that would be a nice one to share with others.
I also think so, so that I will write it… some day
_ck_
yes, of course, there’s no topic with 11178. Look:
1.http://forum.ttl79.ru/edit.php?id=11178
2.http://forum.ttl79.ru/topic.php?id=11178
First link points to post #11178 editing page, second to where it redirect. eg. post’s id is used for redirecting to topic.
To convert minibb base I haven’t writed any script, I’ve converted it simply by exporting db, changing something and importing. It know it was so foolish, but I’ve had a lot of time to play with it
And you now, it was very easy: structures are so simple and similar 
But as I’ve said, editing doesn’t work even with native bbPress posts (e.g. added via bbpress). If you wish, I can give you db’s dump.
Hi! Thanks for such a useful plugin 
But unfogtunately I have a little bug, let me name it like that. Profile page have two “Avatar” tabs. Like showed on this screenshot: http://www.picamatic.com/show/2008/08/03/12/741682_804x186.jpg
What can I do with that?
I’ve installed bbPress 0.9.0.2 (the last one), converted db from miniBB, writed new topic (e.g. it happens even to native bbPress content) but when I press ” Edit” (which points to http://forum.ttl79.ru/edit.php?id=11178), it redirects me to http://forum.ttl79.ru/topic.php?id=11178, and of course, error page with “Topic not found.” message. What can I do with it?
PS. I have
akismet
bb-avatar-upload
bb-gzip
bb-polls
bb-privatemessage
bb-rus-to-lat
bb-signatures
BBcode-buttons
BBcode-lite
bozo
cyr_nickname
googleanalitycs
human-test
identicon
my-views-statistics
my-views
onlinelist
post-count-plus
topic-icons
plugins installed
PPS. Right now I use “None” pretty permalink type
You could use absolute positioning and just put that home button in position:absolute;top:0; left:0;
which would take it out of the content flow.
There has to be a more natural way to layout that header though. What you might use (though more work) is a sub-menu under the header.
Try editing your bb-config.php
file and put in a line like this:
$bb->uri = 'http://your-domain-name.com/forum-path/';
It may also require a forced change of your cookiepath if you can’t login.
If you want to call bbPress functions from WordPress, you need to include bbPress in WordPress. It’s described here for including WordPress inside bbPress. You would do the opposite to include bbPress in WordPress (make the changes to wp-config.php and require_once('path/to/bb-load.php')
I updated WordPress to 2.6 and now the config file doesn’t have a SECRET_KEY for me to match when integrating bbpress. Instead I have these fields:
AUTH_KEY
SECURE_AUTH_KEY
LOGGED_IN_KEY
How does this work now?
Oh, OK, yeah, that makes sense. I am using BBPress and I’ve got it set up so that my two installs share the same user table, so I’ve got the same users and the same posts on both sides of the wall. As far as I was thinking, that *is* integration.
If users have to log in and “remember me” on both sides, well, that’s the least of my problems.
The wp-pro list might be a good place to ask:
“A list for professional consultants providing WordPress services.”
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.automattic.com/mailman/listinfo/wp-pro
I think you asked this on the IRC channel but I will also answer here to help others.
PHP is not processed in style.css (unless you force your server to, and that’s not recommended)
However you can edit your theme’s header.php
and create an additional “inline” stylesheet like so:
<style>
body {background: url("<?php echo $_SERVER['REQUEST_URI']; ?>/wp-content/themes/default/images/background.gif") repeat-x top;}
</style>
</head>
(note that </head>
at the end, it’s meant to indicate you should put that code at the end of the <head></head>
section)
Also, more importantly, $_SERVER['REQUEST_URI']
is not going to be the variable you want. Probably more like $_SERVER['DOCUMENT_ROOT']
and you’ll have to add the path to wordpress too.
It occurs to me that while the for-hire market is very small on the bbPress side, it’s much more likely you might find someone on the WordPress side who does it for a living. You then might be able to convince them to give bbPress themes a try since they are so similar.
In any case, you’ve posted your email which is what the “rules” here require and then I guess I’m supposed to close the thread, so good luck and best wishes.