Forum Replies Created
-
In reply to: Make people want to join my forum!
great, and yes please post the completed functioning code once you have got it working !!
hmmm…not sure about the ‘leak in’ bit, how are lines being displayed if $prev etc. is blank?
you could add a check
so set
$forum_id = bbp_get_forum_id() ;above the while statement and then check at the appropriate point
if (wp_get_post_parent_id($prev_id) != $forum_id) { etc. }just had a quick look
this should get you close, totally untested !!
<?php $args = array( 'post_type' => 'topic', 'post_parent' => bbp_get_forum_id() ); $loop = new WP_Query( $args ); //get the current topic id or maybe depending in where you are putting this - bbp_get_reply_topic_id or bbp_get_reply_id() $topic_id = bbp_get_topic_id() ; while ( $loop->have_posts() ) : $loop->the_post(); $cur_id = get_the_ID(); if ($cur == $topic_id) { $prev = get_previous_post() ; $prev_id = $prev->ID ; $next = get_next_post(); $next_id = $next->ID ; break ; } endwhile; //so you now have $cur_id, $prev_id and $next_id //so create 3 lines if (!empty ($prev_id)) { $permalink = get_permalink($prev_id) ; $title = get_the_title ($prev_id) ; echo '<a href="'.$permalink.'">'.$title.'</a>' ; } if (!empty ($cur_id)) { $permalink = get_permalink($cur_id) ; $title = get_the_title ($cur_id) ; echo '<a href="'.$permalink.'">'.$title.'</a>' ; } if (!empty ($next_id)) { $permalink = get_permalink($next_id) ; $title = get_the_title ($next_id) ; echo '<a href="'.$permalink.'">'.$title.'</a>' ; } ?>@athep – have you solved this ?
In reply to: move moderationyou will be looking for
`<?php do_action( ‘bbp_theme_before_reply_admin_links’ ); ?>
<?php bbp_reply_admin_links(); ?>
<?php do_action( ‘bbp_theme_after_reply_admin_links’ ); ?>`
in\bbpress 2.6.6\templates\default\bbpress\loop-single-reply.php
or in the bbpress templates section of your theme
and look to move that under
<?php do_action( ‘bbp_theme_after_reply_content’ ); ?>
Don’t forget to out any changed files into a child theme to prevent them being overwritten
In reply to: Next link on bottom of forum/topic pagessolution is
.single-forum .post-navigation .nav-links { display: none !important; } .single-topic .post-navigation .nav-links { display: none; }In reply to: cant see forum tab , cant see keymaster roleok, if you have no keymaster, then install
once activated go to
dashboard>settings>bbp style pack>bug fixes
and you will be able to set a keymaster, who can then see forums
you can deactivate and delete the style pack plugin afterwards, or make use of its features
In reply to: Compatibilty with weglot pluginthere are filters for topics and replies
bbpress 2.6.6\includes\topics\functions.php lines 389 and 705
$redirect_url = apply_filters( 'bbp_new_topic_redirect_to', $redirect_url, $redirect_to, $topic_id ); $topic_url = apply_filters( 'bbp_edit_topic_redirect_to', $topic_url, $view_all, $redirect_to );bbpress 2.6.6\includes\replies\functions.php lines 473 and 768
$reply_url = apply_filters( 'bbp_new_reply_redirect_to', $reply_url, $redirect_to, $reply_id ); $reply_url = apply_filters( 'bbp_edit_reply_redirect_to', $reply_url, $redirect_to );which Weglot can apply query args to
In reply to: BBPress set-up problemhow are you installing bbpress ?
normally I would expect you to go into
dashboard>plugins>add new and select bbpress, install and activate
bbpress does not have ‘welcome to the bbpress installer’
In reply to: Next link on bottom of forum/topic pagesok, hard to help without a link – a bit like trying to fix a car by email π
try
#bbpress .post-navigation { display : none !important ; }add this to your theme’s custom css
In reply to: Next link on bottom of forum/topic pagessounds theme related – link to an example on your site please
In reply to: bbPress 2.6.4 Remove Default Search Bar@flamuren always good to help others – I did my first site in 2012, and it’s great to get things doing what you want – hope you carry on enjoying the challenges π
In reply to: bbPress Topics for Posts comment@newest can you define ‘doesnβt work either.’ that would help me fix it
In reply to: “topics started” & “replies created” not workingmost themes are fine, but I cannot guarantee it
In reply to: bbPress Topics for Posts commenttranslated..
with the latest update there is a bug.
Each time the article is updated, a new post is created in the forum.The update only affected a function that runs on plugin activation – but I will take a look
In reply to: Enable comments under forums/topicsgreat – glad you are fixed !!
In reply to: Reply-Post-Date needs a space after the word OnGreat – thanks, and thanks for posting the solution, this might help others finding this thread π
In reply to: “topics started” & “replies created” not workingit could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Then come back
In reply to: Enable comments under forums/topicsthis turns comments on in bbpress
add_filter ('bbp_force_comment_status' , 'rew_set_comments_on') ; function rew_set_comments_on () { return true ; }Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
In reply to: Reply-Post-Date needs a space after the word OnI suspect it is in an amended version in your theme
so look in the theme for a folder called bbpress – their amended version should be in there
In reply to: Reply-Post-Date needs a space after the word Onok, I’d start by logging a ticket with them and see what they come back with
In reply to: bbP Signature – Developmentπ
In reply to: forum tab does not appear on wordpress desktopπ
In reply to: Remove Topic tagsdashboard>settings>forums and untick ‘allow topics to have tags’