Apparently topic_time is timezone-shifted, so the previous code is wrong
told you it was rough! This will take the time from the opening time 
<?php if ( (current_time('timestamp') - 24*60*60) < strtotime($topic->topic_start_time) ) : ?>*NEW* <?php endif; ?>
Interesting. There actually IS an RSS built into your user ID: https://bbpress.org/forums/rss/profile/otto42
But it’s used for your favorites so not so much. You can see all your posts in your profile (recent posts) so in theory this should be ‘exportable’ to RSS.
The rss.php file has this:
// Get latest posts by default
case 'all-posts':
default:
if ( !$posts = bb_get_latest_posts( 35 ) )
die();
$title = esc_html( sprintf( __( '%1$s » Recent Posts' ), bb_get_option( 'name' ) ) );
$link = bb_get_uri();
$link_self = bb_get_posts_rss_link();
break;
Which I think you could toss an extra if if ( $user->ID == bb_get_current_user_info( 'id' ) ) but that would only punt out a list of the current user’s posts, and not be a way to see anyones. The structure is there, though.
In theory it should be also possible to allow users to move their own topics if placed in the wrong category:
(untested, should allow a user to move only their own topics within the same time period they can typically edit a topic, ie. 1 hour default)
function move_own_topic($retvalue, $capability, $args) {
if ($capability=="move_topic") {return bb_current_user_can( 'edit_topic', $args[1]);}
return $retvalue;
}
add_filter('bb_current_user_can', 'move_own_topic',10,3);
The only code i got from the plugin was
‘define( ‘COOKIEPATH’, ‘/’ );’
which i did put in the config file before starting this thread.
<?php if ( (time() - 24*60*60) < strtotime($topic->topic_time) ) : ?>*NEW* <?php endif; ?>
A very rough way of doing it there, but if you put that in forum.php before say, <?php topic_title(); ?> if you want it in the topic title, it should work. Change 24*60*60 to the number of seconds you want to include topics from.
jQuery is already bundled with bbPress (and WordPress), so you can just use
<?php bb_enqueue_script('jquery'); ?>
in your theme’s functions.php and it’ll automatically be included in your header.
Same applies for WordPress, but using wp_enqueue_script instead…
But to answer your original question
use <?php bb_active_theme_uri(); ?> to output the template directory or <?php get_bb_active_theme_uri(); ?> to return it as a variable.
Don’t copy my code copy the code you get from the plugin.
Thanks, but that did not work. I allready had bbpress-integration installed.
What did you mean by “get the info”?
I copied your code into the config-files. Nothing changed.
Any other ideas?
Hello!
I am working on a bbPress theme which can be seen at http://bbpress.ashfame.com/
I have a problem that when I click the “Add new” link on the front page, the page is broken in markup (also returns invalid markup – http://bbpress.ashfame.com/?new=1 )
Which template file does it use to generate?
And the login code doesn’t spit out the code in the sidebar when on register page ( http://bbpress.ashfame.com/register.php ) or on lost password page ( http://bbpress.ashfame.com/bb-login.php )
Install this: https://wordpress.org/extend/plugins/bbpress-integration/ get the info
example
define( 'COOKIEHASH', '1111' );
define( 'COOKIE_DOMAIN', '.website.com' );
define( 'SITECOOKIEPATH', '/' );
define( 'COOKIEPATH', '/' );
put it in your wp-config.php after <?
then put it in your bb-config.php without the cookiehash line.
define( 'COOKIE_DOMAIN', '.website.com' );
define( 'SITECOOKIEPATH', '/' );
define( 'COOKIEPATH', '/' );
Ok, so in my ignorance, I changed something, thinking I’ll be able to fix it if something went wrong.
Well something did go wrong.
Yes, that’s right, I can’t fix it 
I wanted to change the URL from /bbpress to /forum.
So I did, in my cPanel File Manager by manually renaming the dir. Anyway, I don’t think that worked. So I changed it back, so that I would be able to do it via the General Settings section.
So I changed it there, and now nothing works. Can’t open admin panel, can’t look at old topics…everything just pretty much 404’s.
I’m guessing I’m going to have to manually edit or php file? I was going to try that thing in the tools section to do something with the db, but as I can’t get there…
So yeah, help would be appreciated.
Cheers.
P.S It’s nice forum software.
I think you have installed bbPress again by using wp_ as a prefix
take a backup and try this :
change to bb_
and then open bb_usermeta table and see if the bb_capabilities of your user (check with user id) is a:1:{s:9:"keymaster";b:1;} via phpmyadmin
if you have got the admin access back now, then you can delete tables starting with wp_
Hope that helps
Thinks for everyone I had solve this question
Actually use bblite and bbcode button and allow images plugin can be easily to post images in your fourm
ON need input any code ,
I don’t speak english
bb_active_theme_uri()
Maybe you need to use a function as dirname() or other URL function to get the directory string
Whoops! I seem to have forgotten to take out my debug code! Remove line 16 (if ( bb_current_user_can( 'use_keys' ) )), and people should be able to use it.
Haha a FB plugin would indeed rock our bbpress worlds, Buddypress has this feature (at least in their demo), who’s planning to “steal” the source code
tianye, <img src="http://www.liuso.com/logo.jpg"> don’t forget the http://
sorry, sounds like you have a plugin enabled that uses the allow_images_allowed_tags function & looking at my above post, there is also some unneeded code.
try:
<?php
/*
Plugin Name: My Images
Plugin URI: https://bbpress.org/
Description: Allows <img /> tags to be used in forums.
*/
add_filter( 'bb_allowed_tags', 'my_images_allowed_tags' );
function my_images_allowed_tags( $tags ) {$tags['img'] = array('src' => array(), 'title' => array(), 'alt' => array(), 'class' => array()); return $tags; }
?>
create a file in your my-plugins directory called my images or something like that.
add the following code
<?php
/*
Plugin Name: My Images
Plugin URI: https://bbpress.org/
Description: Allows <img /> tags to be used in forums.
*/
add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );
function allow_images_allowed_tags( $tags ) {$tags['img'] = array('src' => array(), 'title' => array(), 'alt' => array(), 'class' => array()); return $tags; }
add_filter( 'get_profile_info_keys','bb_member_id_in_profile',255);
function bb_member_id_in_profile($keys) {
global $self;
if (empty($self)==true && isset($_GET['tab'])==false && bb_get_location()=="profile-page") {
(array) $keys=array_merge(array_slice((array) $keys, 0 , 1), array('ID' => array(0, __('Member #'))), array_slice((array) $keys, 1));
}
return (array) $keys;
}
?>
Activate the plug in & all should work as long as you use
<img src="" alt="" title="" class="" />
is <img sRc=”www.liuso.com/logo.jpg”> change scr to src….
Where do you want to put this image? in post try [img]www.liuso.com/logo.jpg[/img] use… bbcode lite and bbcode buttons plugins… search here https://bbpress.org/plugins/
if not… I don’t know
I don’t speak english ok
…
I haev already download the “allow-images” plugin wish verson is 0.73 and activate in admin , when I input like this code “<img scr=”www.liuso.com/logo.jpg” /> but can not workes, what’s wrong wish my operation , my verson is 1.02
and my english is very poor if there somethings language wrong please don’t to ridicule
Hello,
This is my 1st try to have a website and I’ve goggled a lot for the tools I may use and found that wordpress is the most highly recommended one.
Please I do need a forum to be integrated with the website and according to Google it shows that BBPress is the most recommended one to be used with WordPress.
The question now is that I can find the installation instructions for BBPress standalone but I can not find how to integrate WordPress and BBPress together at all.
So please may you help me and give me any links for such a thing as it was three hours searching in different places with no luck so far and I do fel very stupid for not catching any result yet.
I’ve just installed WordPress only without any plugins or any extra just the pure installation and default settings.
I am sorry if this is a very newbie question but I hope that some one can help.
Thanks,
Take care
Tomwi: can you post your code for showing mentioned template
*post title*
Posted by: *user* in *forum*.
or send it to me – procka@tasty.sk
greets
Vlado