@mei-ling
Thanks for sharing!!
This is exactly like what I said earlier. I will need to check this out and see if it needs more improvements in the code, and create a patch for bbPress if in the ticket.
Great. Thanks for letting me know. I’ll investigate further about Apache cache.
I had this in my htaccess, but this doesn’t comprehend php files:
<filesMatch "\.(html|htm|js|css)$">
FileETag None
<ifModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</ifModule>
</filesMatch>
So, nice to know you solved it. And thanks the other users for helping.
I notice user’s hashtags appear here under the user’s name and avatar. I’d like to achieve the same functionality. Is this a plugin, a feature I haven’t noticed, or custom code?
Hi.
there is any way to creat in the bar the where the “img” code etc… some kind of icons?
Hi,
Here is the code that we use with the child theme. As we run a large forum, we must modify some setting of the server but we use a VPS.
<?php
add_action( 'bulk_edit_custom_box', 'manage_wp_posts_be_qe_bulk_quick_edit_custom_box', 10, 2 );
function manage_wp_posts_be_qe_bulk_quick_edit_custom_box( $column_name, $post_type ) {
switch ( $post_type ) {
case 'topic':
switch( $column_name ) {
case 'bbp_topic_forum':
?><fieldset class="inline-edit-col-left">
<div class="inline-edit-col">
<label>
<span class="title">Deplacer dans le forum</span>
<span class="input-text-wrap">
<select name="deplacer">
<option value="Null"></option>
<?php /* recuperation des forums "forum" */
$args = array(
'post_parent__not_in'=> array( 0 ) ,
'post_type' => 'forum'
);
$forums = new WP_Query( $args );
// boucle forum
if ( $forums->have_posts() ) {
while ( $forums->have_posts() ) {
$forums->the_post();
echo '<option value="'.$forums->post->ID.'">'.get_the_title() . '</option>' ;
}
}
wp_reset_postdata();?>
</select>
</span>
</label>
</div>
</fieldset><?php
break;
}
break;
}
}
/* lance le javascript */
add_action( 'admin_print_scripts-edit.php', 'manage_wp_posts_be_qe_enqueue_admin_scripts' );
function manage_wp_posts_be_qe_enqueue_admin_scripts() {
wp_enqueue_script( 'manage-wp-posts-using-bulk-quick-edit', trailingslashit( get_bloginfo( 'stylesheet_directory' ) ) . 'js/bulk_quick_edit.js', array( 'jquery', 'inline-edit-post' ), '', true );
}
/* enregistre modif forum et repare */
add_action( 'save_post', 'save_deplacer');
function save_deplacer() {
global $wpdb;
if( $_GET['post_type']='topic' && $_GET['bulk_edit']='Mettre à jour'){
$post_ids= $_GET['post'];
$forum_id = $_GET['deplacer'];
foreach($post_ids as $post_id){
$wpdb->query("UPDATE wp_posts SET post_parent = $forum_id WHERE ID = $post_id ");
}
$messages = array();
$messages[] = bbp_admin_repair_forum_meta();
// $messages[] = bbp_admin_repair_topic_meta();
$messages[] = bbp_admin_repair_freshness();
// $messages[] = bbp_admin_repair_reply_menu_order();
$messages[] = bbp_admin_repair_forum_topic_count();
$messages[] = bbp_admin_repair_forum_reply_count();
// $messages[] = bbp_admin_repair_topic_reply_count();
// $messages[] = bbp_admin_repair_topic_voice_count();
// $messages[] = bbp_admin_repair_user_topic_count();
// $messages[] = bbp_admin_repair_user_reply_count();
$messageori = sprintf( _n( 'Topic déplacé.', '%s topics déplacés.', $_REQUEST['deplacer'] ), number_format_i18n( $_REQUEST['deplacer'] ) );
foreach ($messages as $message){
echo'<div class=\"updated\"><p>'.$message[1].'</p></div>';
}
echo "<div class=\"updated\"><p>{$messageori}</p></div>";
}
}
?>
Do you think this is a right way? Is there a way to improve it?
I thank you in advance
Regards
Mei Ling
Hello,
I’m working on an application what communicate to bbPress using RESTful API. I’m struggling to find an equivalent function that would output the nested/threaded topic replies into a data structure such as array or JSON format. I see that bbp_list_replies() does just what I wanted, but rather than putting the result inside a data structure, this function displays the output as HTML data. Is there a function which will accomplish my description above or is this something I’ll have to write up?
Many thanks.
Inside bbpress/templates/default/bbpress-functions.php
yes that one.
You can place a copy of the file right into your child theme and customize it from there.

You can do the same thing for the other files in bbPress too.
Theme Compatibility
use my code it functions but please Read Carefully
@reminisce32
Stick with purging the installation there, but it has worked for a user by just using sql code.
@hayleyadanner
Go into a single forum by selecting a forum in the forum list in the left sidebar or go to this url and create a topic.
Create New Topic
I can’t get this to work. That go in the theme’s stylesheet? I’m still getting the pesky sidebar. I’ve tried everything, read tons of posts, Why isn’t “hide sidebar” a standard option? It’s like going into a coffee shop and them telling me there is no milk or sugar to put in my coffee. lol, sorry for being sarcastic this is just very stressful.
I created a new page, I added the shortcode, I choose the template with no sidebar on the page I created, and bbpress just ignores it completely. Is that code meant to go in the bbpress css file, that makes no sense to me since it’s a plugin. Maybe it’s the theme I’m using.
I am standing up a forum for posting backgammon positions.
The two commonly used pieces of backgammon software export html board positions
using a relative path to an images file. i.e

How do I make bbpress think that this folder structure exists and point it to a folder with these gifs in it? I have been searching all over the place and haven’t been able to find a clear answer.
Thanks,
Robert
<!-- Score -->
<strong>Match to 5 points - gnubg 0, Robert 0</strong>
<!-- End Score -->
<!-- Board -->
<table style="page-break-inside: avoid"><tr><th align="left">gnubg</th><th align="right">167</th></tr><tr><td align="center" colspan="2"><img src="../Images/n_high.gif" style="vertical-align: bottom" alt="" /><br />
<img src="../Images/o_w_0.gif" style="vertical-align: top" alt="" /><img src="../Images/p_up_b_2.gif" style="vertical-align: top" alt="2O" /><img src="../Images/p_ud_0.gif" style="vertical-align: top" alt=" '" /><img src="../Images/p_up_0.gif" style="vertical-align: top" alt=" '" /><img src="../Images/p_ud_0.gif" style="vertical-align: top" alt=" '" /><img src="../Images/p_up_0.gif" style="vertical-align: top" alt=" '" /><img src="../Images/p_ud_w_5.gif" style="vertical-align: top" alt="5X" /><img src="../Images/b_up_0.gif" style="vertical-align: top" alt="" /><img src="../Images/p_up_0.gif" style="vertical-align: top" alt=" '" /><img src="../Images/p_ud_w_3.gif" style="vertical-align: top" alt="3X" /><img src="../Images/p_up_0.gif" style="vertical-align: top" alt=" '" /><img src="../Images/p_ud_0.gif" style="vertical-align: top" alt=" '" /><img src="../Images/p_up_0.gif" style="vertical-align: top" alt=" '" /><img src="../Images/p_ud_b_5.gif" style="vertical-align: top" alt="5O" /><img src="../Images/c_up_0.gif" style="vertical-align: top" alt="" /><br />
<img src="../Images/b_center.gif" style="vertical-align: top" alt="" /><img src="../Images/c_center.gif" style="vertical-align: top" alt="" /><br />
<img src="../Images/o_b_0.gif" style="vertical-align: top" alt="" /><img src="../Images/p_dd_w_2.gif" style="vertical-align: top" alt="2X" /><img src="../Images/p_dn_0.gif" style="vertical-align: top" alt=" '" /><img src="../Images/p_dd_0.gif" style="vertical-align: top" alt=" '" /><img src="../Images/p_dn_0.gif" style="vertical-align: top" alt=" '" /><img src="../Images/p_dd_0.gif" style="vertical-align: top" alt=" '" /><img src="../Images/p_dn_b_5.gif" style="vertical-align: top" alt="5O" /><img src="../Images/b_dn_0.gif" style="vertical-align: top" alt="" /><img src="../Images/p_dd_0.gif" style="vertical-align: top" alt=" '" /><img src="../Images/p_dn_b_3.gif" style="vertical-align: top" alt="3O" /><img src="../Images/p_dd_0.gif" style="vertical-align: top" alt=" '" /><img src="../Images/p_dn_0.gif" style="vertical-align: top" alt=" '" /><img src="../Images/p_dd_0.gif" style="vertical-align: top" alt=" '" /><img src="../Images/p_dn_w_5.gif" style="vertical-align: top" alt="5X" /><img src="../Images/c_dn_0.gif" style="vertical-align: top" alt="" /><br />
<img src="../Images/n_low.gif" style="vertical-align: top" alt="" /></td></tr>
<tr><th align="left">Robert</th><th align="right">167</th><th align="center" colspan="2"></th></tr><tr><td align="center" colspan="2"><span style="font-size: 75%; color: #787878">Position ID: <tt>4HPwATDgc/ABMA</tt> Match ID: <tt>cAmgAAAAAAAA</tt><br /></span></td></tr></table>
<!-- End Board -->
<p>• Robert doubles</p>
<!-- Epilogue -->
<!-- Output generated by GNU Backgammon 1.04.000-mingw 20141021 (http://www.gnu.org/software/gnubg/) (HTML Export version 1.235) -->
I’m literally crying over here.
I’ve been trying at this for days. Go here, change this, do that is so vague. Not everyone is a coder.
I have tried adding this code to css, that template to bbpress files on cpanel
I just want to be able to READ MY FORUM POSTS.
The main page is okay. Click on a topic, the whole thing is grey, white/ you can see the writing but its as if there is a white overlay over the whole thing.
I feel like breaking my computer and screaming as this is really stupid.
http://www.thebestinformationever.com/forums/topic/curly-hair-help/
It seems to me that when they were added (through the dashboard, not the forum) they were not liked by the server.
I couldn’t duplicate this issue you are getting by not assigning a reply a topic and forum.
You can try these steps listed in this guide to possibly resolve an internal server error.
https://codex.wordpress.org/Common_WordPress_Errors#Internal_Server_Error
I’m running a local host with xampp and getting this error when trying to run a test forum. I have done all the forum repairs and still have the same issue.
Can anyone explain on what line exactly this function code should be applied and how it should look. Screen shot perhaps? I have no experience in php but doing everything I can to learn as much as possible.
i found this solution:
<li class=”bbp-body”>
<?php while ( bbp_topics() ) : bbp_the_topic();
if(isset($_GET[‘submit’]) && !empty($_GET[‘ort’])){
$ort = get_post_meta( bbp_get_topic_id(), ‘ort’,true);
if($ort==$_GET[‘ort’]){
//do_action( ‘bbp_template_before_topics_loop’ );
bbp_get_template_part( ‘loop’, ‘single-topic’ );
}
}
else{
do_action( ‘bbp_template_before_topics_loop’ );
bbp_get_template_part( ‘loop’, ‘single-topic’ );
}
endwhile; ?>
The problmem is, that when I have 2 results the 2 topic are broken to 2 pages (I see an pagination für evtry topic) – how can I avoid this ?
You do not need to put the forum index shortcode in a page. And you can add content above the forum by editing the forum archive template if you copied it in a child theme in a folder called bbpress.
The actual forum index/root page is the one that the forum list button is redirecting to.
This issue is now finally resolved. After a long battle, the web host came back to me to ask me to put the following code into .htaccess:
FileETag None
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
They said the following: This should prevent my website from being cached by Apache and may help to solve this issue. The website is not currently sitting behind their caching
server so this cannot be the cause of the issue but Apache itself can cache
sites so perhaps this will help to resolve the issue.
This may help others having similar problems.
Last but not least, my heartfelt thanks to @robkk and @casiepa for their steadfast support without which I would have coped very badly. @robkk tirelessly tested every possible issue under the sun. Huge thanks again to both of them. All in all, everything pointed to a caching problem on the server side.
Ok guys i did it for myself
In style.css (appearence -> editor) add this
.bbpress #secondary {
display: none;
}
#secondary is your widget / sidebar
then add
.bbpress #primary {
margin: 0 auto;
max-width: 980px;
width: 100%;
}
#primary is the part of the page that you want to be full width
i have the same problem but the code did not work, got any idea of how can i solve it?
empleoschihuahua.com/foro/
is mywebsite
ty
If it is only those two items, you could be able to float the other item to the right and if the unordered list is floated to the left it will make the profile link the first item.
li#menu-item-2679 {
float: right;
}
Are you just using the_author and the_modified_time to just display 1 revision log. You can use the default revision logs and then use a function or some CSS to display 1 revision log instead.
PHP functiion, place in your child themes functions.php file or in a functionality plugin.
// Only return one entry for revision log otherwise it gets cluttered
function bbp_trim_revision_log( $r='' ) {
$arr = array( end( $r ));
reset( $r );
return( $arr );
}
add_filter( 'bbp_get_reply_revisions', 'bbp_trim_revision_log', 20, 1 );
add_filter( 'bbp_get_topic_revisions', 'bbp_trim_revision_log', 20, 1 );
CSS snippet, place in your child themes style css or in anywhere else you can place custom css snippets like a custom css plugin.
.bbp-topic-revision-log li {
display:none;
}
.bbp-topic-revision-log li:last-child {
display:block;
}
Thanks for the suggestion @casiepa but I have a large and well established Buddypress based community and cannot rebuild the groups. Unless it works with Buddypress based groups? My bbPress forums are set up only inside these Buddypress groups and I imagined that the private groups would support fully private forums. The “bbp-topic-index” shortcode provided by bbPress makes the private groups forum topics visible to members of the community who are not part of these private groups.
_bbp_activity_id is part of the BuddyPress integration code in bbPress specifically the activity component part of BuddyPress.
https://github.com/ntwb/bbPress/blob/ce1334374cf9fd165e81da1e5b6b511a2b3b778b/src/includes/extend/buddypress/activity.php#L598
Hi namrons,
Check ‘bbP Private Groups’ and use the shortcodes and widgets provided by this plugin.
Pascal.