yes just use ‘hours’ instead of ‘days’
eg
if ($last_active < strtotime( '-48 hours') )
download this .zip , extract the file loop-forums.php and copy it into a folder called bbpress in your child theme
https://github.com/robkk/bbPress-Hierarchical-Forum-and-Category-Layout
more on bbpress templates go to this.
codex.bbpress.org/theme-compatibility/
need anymore help setting it up please reply back.
i think i found it, i had the bbpress templates copied to my child theme of twenty-fifteen and it worked, i then removed it and i saw exactly what you explained.
you have to copy the bbPress templates to a folder called bbpress in your child-theme
follow this document and see if it fixes your issue.
https://codex.bbpress.org/theme-compatibility/
Sorry for the late response! So, it was in fact a bug in the Avada theme code. Because of this, they just manually fixed it for me and are including the fix in their next patch, so hopefully it won’t happen to users in the future.
Their Dev response:
We have customized template files in the theme and there was a bug where Post count was not adding topic count on top of reply count which is what I have changed for you.
Anyways, I have fixed the post count issue for you and it will also be fixed in the next version of Avada.
Sorry for the delay, was out yesterday evening.
I altered the template.php file and put the following at line 2266
Original:
// Add the breadcrumb
// $crumbs[] = '<a href="' . esc_url( $root_url ) . '">' . $r['root_text'] . '</a>';
Modified:
// Add the breadcrumb
// $crumbs[] = '<a href="' . esc_url( $root_url ) . '">' . $r['root_text'] . '</a>';
$crumbs[] = '<a href="/forums/">Forums</a>';
}
I’m very new to WP, so thanks for the support. After reading lots of support pages I’ve been able to create a simple home page showing a single Forum Topic; however, it also shows all of my other pages as boxes just below the forum box (e.g. registration, lost password, etc.) as one very long webpage. It looks like it shows all the website pages on one long page.
I’m just trying to setup my site and on the home page show only the Forum Topics. So I created a new page (lets call it “Start”) and redirected the home page to this “Start”. This worked fine.
Next I used the short code [bbp-single-forum id=49] to show my identified forum. The problem is that it shows everything else.
When I go to the forum page things look great (aka it only shows the forum, header and right column).
Go to http://www.sciencegeek.com to see the problem.
Thanks again
Thanks so much @korobochkin for sharing this in such detail! I’m going to test this out from start to finish on a 100% fresh bbPress, multi-site setup over the next few weeks. I’m thinking this is ‘finally’ a rock-solid sol’n to managing bbPress on multi-site, particularly in situations where the root site has no obvious visual/branding/etc relationship to the other sites on the network.
This sol’n looks very solid, much better than what I was previously doing with the Login With Ajax (lwa) plugin, wp-members (plugin) & hard-coded redirections (which while worked, seemed very ‘hacky’) & would not work with the [bbp_register] shortcodes, etc.
Thanks again Koyla!
-Jeff
thats not the post-date its suppose to be an IP address
only keymasters and maybe moderators can see it and its for banning users from their IP addresses
use this custom CSS to make a little tidy
span.bbp-author-ip {
font-family: "Helvetica Neue",Arial,Helvetica,"Nimbus Sans L",sans-serif;
font-size: 11px;
font-weight: bold;
color: #AAA;
word-wrap: break-word;
}
here is to remove it
span.bbp-author-ip {
display:none;
}
the bbcodes one i think you can deactivate the message in gd bbpress tools settings.
go to the bbcodes section find BBCodes New Topic/Reply Notice and deactivate that.
the unrestricted HTML content message shows up for only keymasters so its not really worth messing with since you are the only one seeing it.
These are two notices I get when I’m logged in and about to post on the forums.
Is there any way to remove them?
“You can use BBCodes to format your content.”
“Your account has the ability to post unrestricted HTML content.”
Thank you for your time!
ok, lets break this down
A)
I was having trouble with a theme so I deactivated and reactivated bb press, since then all my “private” forums take me to a 404 page
and
However all the pages which I embedded the private forums via shortcode are still working
Can you explain further where you can and cannot see forums?
1. Are they visible from the backend
Dashboard>forums>all Forums and then ‘view’ a forum
2. On the ‘the pages which I embedded the private forums via shortcode are still working ‘ – so you can view here – yes?
3. when is the 404 page occurring – is it just the forum root page, and if so are these being listed but going to 404 when you click.
B) I presume you are logged on, at what level and can you try different levels eg participant, moderator and keymaster and tell us if this is different or the same.
c) You don’ tell us what trouble you were having with the theme, so it would be good to eliminate this and plugins so
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
Thank you Robkk for the help. I deactivated all the plugins a couple weeks ago and checked that, no help at all.
I had forgotten about the theme thing, I did as you suggested this morning and changed to 2012, no help, I clicked on the hardcoded sidebar link and it redirected it to a bad ugly link. Which it wouldn’t do if I uncheck the “group forums” check box at bbpress settings.
Bummed
Hi there,
I was having trouble with a theme so I deactivated and reactivated bb press, since then all my “private” forums take me to a 404 page and when I view the forum root page, it doesn’t show the private forums listed.
However all the pages which I embedded the private forums via shortcode are still working and all the posts are there?
Eeek! Please help!
Hi everyone,
I installed bbpress on my company’s website, and when i tried to create new topic like what i am doing here, the brower will return “no data received” error, and if i click more information, i found the error code “ERR_EMPTY_RESPONSE”.
I’ve tried to deactivate most of the plugin except bbpress, and the problem remains.
And if I type something short, like “test”, it can be created.
Does this has to do with the usage of server space? Because I used about 80% of it.
Thank you in advance for your help. Please let me know if you need more information
Hi!
I found some solution for this problem. Only you need to put this code on functions.php of your active theme:
function custom_bbp_show_lead_topic( $show_lead ) {
if(!current_user_can('manage_options')){
$show_lead[] = 'true';
}
return $show_lead;
}
add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
I’ve just added a shortcode to one of my plugins that lets you custom list forums
bbp additional shortcodes
[display-forum-index forum= ‘2932, 2921′ breadcrumb=’no’ search=’no’] Displays the selected forum indexes – see the site for details
you can disable the search form in settings>forums in the backend dashboard of WordPress so that you wont have to use the CSS anymore.
and unless you already did you could remove the code that renders the title in your bbpress.php file.
if you haven’t created a bbpress.php you should
https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
if you still need help copy the first half of the bbpress.php file you have in a reply here.
As you no doubt already know, this is just a warning message, and bbpress say it is an issue with wordpress, and are waiting for wordpress to fix. Also as you know (but for others reading this), turning off debug fixes this.
If you want it to disappear whilst you are developing (and so need debug on), then go to
wp-content/plugins/bbpress/includes/core/sub-actions.php
and comment out/change line 147
_doing_it_wrong( __FUNCTION__, __( 'The current user is being initialized without using $wp->init().', 'bbpress' ), '2.3' );
to
//_doing_it_wrong( __FUNCTION__, __( 'The current user is being initialized without using $wp->init().', 'bbpress' ), '2.3' );
and change back after developing as well as turning debug off for the production environment
@cbsy lots of ways to achieve this – two below
1. Look in
Dashboard>settings>forums>Forum Root slug, and see what ‘forum root’ is set to
The create a page with this name on it – so title the page this
The in that page write whatever intro you want, and then put
[bbp-forum-index] at the bottom of the content
bbpress will then use this page as your forum root.
2.
Add the following to your functions file
add_action ('bbp_template_before_forums_index' , 'my_intro' ) ;
Function my_intro () {
Echo '<div class="entry-content"> Here is my intro text. This is lots of writing to introduce the forums and make people read this stuff </div>' ;
}
Functions files and child themes – explained !
If you hit prolems or need further help, just come back !
Try the following
//adds login/logout to menu
//filter to add login/logout to menu
add_filter( 'wp_nav_menu_items', 'my_nav_menu_login_link' );
function my_nav_menu_login_link($menu) {
//uncomment the next line if you only want login on bbpress pages
//if(is_bbpress()) {
if (is_user_logged_in()) {
//set the $url on the next line to the page you want users to go back to when they logout
$url = 'http://www.mysite.com/forums' ;
$url2=wp_logout_url($url) ;
$loginlink = '<li><a title="Logout" href="'.$url2.'">Logout</a></li>';
}
else {
$current_user = wp_get_current_user();
$user=$current_user->user_login ;
//set $page on the next line = the permalink for your login page
$page='login' ;
$loginlink = '<li><a href="/'.$page.'/">Login</a></li>';
}
//uncomment out the next lines if you only want login on bbpress pages
// }
// else {
// $loginlink="" ;
// }
$menu = $menu . $loginlink;
return $menu;
}
So earlier, someone suggested doing the following:
// Add the breadcrumb
// $crumbs[] = '<a href="' . esc_url( $root_url ) . '">' . $r['root_text'] . '</a>';
$crumbs[] = '<a href="/forum/">Forum</a>';
Can I make a duplicate of the template.php to drop into my theme somewhere to make a similar change? This works, but I don’t like the idea of altering the main bbpress files.
easiest way would be to uncode my shortcode
bbp additional shortcodes
or just use the do_shortcode function within your code
https://codex.wordpress.org/Function_Reference/do_shortcode