add this to your child themes functions.php file or insert this snippet into a functionality plugin and all links posted to your forum would just return plain text.
remove_filter( 'bbp_get_reply_content', 'bbp_make_clickable', 4 );
remove_filter( 'bbp_get_topic_content', 'bbp_make_clickable', 4 );
Hello all, i’m new user of bbpress plugin. So after installation and set up configuration of plugin, i get a error ERREUR: Êtes-vous sûr de vouloir faire ça ? in english it’s : ERROR : Are you sure to do that ? when i want to post Topics or Replies since my front-end whatever the user. But in my back-end it’s alright i can create topics, replies.
Please can you help me ?
I use :
Wordpress version: 4.2.2
bbPress version: 2.5.7
akismet version: 3.1.1
WordPress 4.2.2 Avada v3.7.4 bbpress Version 2.5.7
http://www.haltoninfo.org.uk
I would like the hover colour for all the text links to be in red.
I have added the following to the custom CSS box:
a:hover{color:red; !important;}
This does not work in my sidebar.
It works for the bbpress login widget, but not for Forum List, Recent Topics or Recent Replies widgets.
Please can you tell me what CSS code to use.
to save someone scrolling through, this is the solution posted by @themusiciangirl1 – thanks Maya !
Guys, I DID IT! After spending the better part of a day sweating over this problem, I finally fixed it. The solution is so simple, I have no idea why it took me so freaking long to think of it!
1. Download and install the “page links to” plugin at https://wordpress.org/plugins/page-links-to/
2. Go to Dashboard –> All pages –> and then click edit on your default forum page (usually http://www.yoursite.com/forums)
3. Once you’re on the editing page, scroll down to where your new plugin has two, magic little options for you. The first one, “this is a normal wordpress page,” is probably checked. Instead, check the one right below it, the one that says “custom url” or something like that. Enter the url for the page that you WANT your default forums page to be. Click publish.
TA-DA! Now, when you click on “forums” in your breadcrumbs trail, instead of taking you to that default index page, it’ll take you to the special one that you made using the index shortcode.
I doubt someone will make a plugin like this in the near future because it’s listed as a native bbPress feature for 2.7. ( next year at bbPres dev pace )
https://bbpress.trac.wordpress.org/milestone/2.7
If you’re feeling comfy editing the bbPress template files you could make something like this in a very basic setup.
1) You’d need to add a few different user_roles to WordPress and give each moderator it’s own user_role
2) Next you’d have to work with conditional PHP tags. For example: PHP -> If [ user_role = xxx AND topic is in forum ID ZZZ ] then –> show the moderation links. IF the above rule is not true –> don’t show them at all and return nothing.
https://codex.wordpress.org/Conditional_Tags
This isn’t very difficult if you have beginner PHP knowledge or let’s say you’re not afraid to touch the template files on a development install. Never do this on a Live site if you don’t know what you’re doing.
Hi, Thank you in advance. I always do a lot of research coming up with a solution before finally asking here.
I have Home » Forums » Classifieds » Air Sports » Topic name – Breadcrumb
I am able to output the parent title using bbp_forum_title(); which shows Air Sports
I need to output the Parent of that so it shows Classifieds
How can I do that with something short like <div id="<?php bbp_forum_title(); ?>">?
I will wait for your response this time, I believe it would only be later tonight (Eastern Africa Time)
Hi,
I just run a small forum and am looking to move it to bbpress. It is currently on PHPbb 3.1.3. I have everything entered in correct I am sure, but all I get when I import is the replies… No users, categories, topics, etc… just replies.
Let me know if you have any suggestions please.
Repair any missing information: Continue
Conversion Complete
No reply_to parents to convert
Converting replies (100 - 199)
Converting replies (0 - 99)
No tags to convert
No super stickies to stick
No stickies to stick
No topics to convert
No forum parents to convert
No forums to convert
No passwords to clear
No users to convert
Starting Conversion
I also found that when, as Keymaster, I went to Edit a particular topic or reply, the Edit field displayed no text and I was not able to save any changes. When I commented out this particular snippet form derricksmith01’s solution the problem dissappeared.
function buddyboss_bbpress_form_reply_content($retval){
global $bp;
if (end($bp->action_variables) == 'edit' && in_array('topic', $bp->action_variables) && in_array('reply', $bp->action_variables)) {
$post = get_post( bbpress()->current_reply_id );
return esc_textarea( $post->post_content );
}
}
add_filter('bbp_get_form_reply_content','buddyboss_bbpress_form_reply_content', 10, 1);
nsParticipant
Hello.
I’d like to solve problem.
Would anyone answer to my problem?
Firstly, the conditions of WordPress, bbPress, design theme, plugin, and function.php are below.
Wordpresss: Latest version
bbPress: Latest version
design theme: Original building
plugin: introduced “bbPress – Sort topic replies”.
The settings of this plugin are “Global:Descending”, “No Parent:Default”, and “Always show lead Topic:Yes”.
function.php: Below code exists.
add_filter('bbp_before_has_replies_parse_args', 'change_reply_order');
function change_reply_order() {
$args['order'] = 'DESC';
return $args;
}
add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
function custom_bbp_show_lead_topic( $show_lead ) {
$show_lead[] = 'true';
return $show_lead;
}
Then, here is main topic.
The function of bbPress itself is that after the user replies to the parent topic in topic page, next screen shows the last page(the page of max number) if the pagination shows.
With the setting of “bbPress – Sort topic replies” plugin is under “Global:Descending”, the redirection which I expect is to go to the first page.
I think that this solution isn’t https://bbpress.org/forums/topic/new-replies-redirect-to-last-page/
I’ve searched and tried to solve the problem, however I can’t find the solution.
I wonder my current settings or ways might be wrong.
Thanks.
Getting 3 more notices
Notice: bbp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 2.3.) in /Applications/MAMP/htdocs/supernova/wp-includes/functions.php on line 3560
Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /Applications/MAMP/htdocs/supernova/wp-includes/functions.php on line 3560
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/supernova/wp-content/plugins/bbpress/includes/extend/buddypress/groups.php:28) in /Applications/MAMP/htdocs/supernova/wp-includes/pluggable.php on line 1196
Same Issue, I am using the latest version of bbpress and buddypress.
Strict Standards: Declaration of BBP_Forums_Group_Extension::display() should be compatible with BP_Group_Extension::display($group_id = NULL) in /Applications/MAMP/htdocs/supernova/wp-content/plugins/bbpress/includes/extend/buddypress/groups.php on line 28
Adding menu links like that is quite difficult unless you manually create the menu in HTML and just not worry about the WordPress menu configuration.
I suggest maybe creating a copy of the login widget and add whatever links you want for the suer to the bbPress login Widget.
This explains it quite briefly.
Layout and functionality – Examples you can use
If you need help or an example plugin to create this please reply back.
@littleapplebigpear
To create a topic you choose the forum you want to create a topic in from the left forums list.
then you scroll down to the topic form.
to fix your issue.
#bbpress-forums .reply,
#bbpress-forums .reply:hover {
color: #000000 !important;
}
I got a error after putting this code. But that error helped me to find out the code where I needed to change. Thanks very much 🙂 I appreciate 🙂
try adding this to your functions file
add_filter('bbp_has_replies_query', 'modify_replies_query');
function modify_replies_query($bbp_r) {
$bbp_r = 'ASC';
return $bbp_r;
}
Functions files and child themes – explained !
I’ve been working hard at setting up a site for my podcast and things had been going swimmingly, but while looking around at some RSS feed import widgets and such today, somehow I seem to no longer have working BBpress forums. It doesn’t seem like it would be related, but who knows?
The forums still show in my dashboard, and I was able to create a forum page by hand and get it to show the index with shortcode, but when I click on any of the forum links, it gives me a page not found error. It seems to do so even if I swap to one of the bundled 201x themes.
The RSS widget I was testing out is RSS Multi Import 3.15 and I’m running WordPress 4.2.2 with the Generate Press theme 1.2.9.8 and BBpress 2.5.7. Website is http://www.whitebookpodcast.com.
I’m a quite a newb to delving in to WordPress stuff, so I have to admit that I’m at a loss. Any thoughts on possibilities?
That’s why I installed it.. Testing the code and by the time my forum is done bbPress 2.6 will be released I hope.
But still, a missing core stylesheet?
Some developer who has worked last on the code should’ve mentioned it don’t you think, maybe the developers have some fancy tool where they test/fork the alpha and beta versions with?
I just downloaded the latest version (trunk) of the trac website.
https://bbpress.trac.wordpress.org/browser/trunk ( bottom – download .zip )
Hi,
Lots of plugins make this message appear :
Notice: bbp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 2.3.) in /srv/wp-includes/functions.php on line 3560
How could we correct this, it’s very annoying because even my functions (not related to bbpress) causes this !
For example, this code display bbpress error :
if (!current_user_can('update_plugins')) {
add_action('admin_init', create_function(false,"remove_action('admin_notices', 'update_nag', 3);"));
}
In fact, I prefered to do iy myself. It’s not specific to bbpress and I’m very surprised that WP doesn’t have this feature natively.
For the ones who nedd this, here is my simple code :
function yournamespace_exclude_menu_items( $items, $menu, $args ) {
// only hide items in front, not admin
if ( !is_admin() ) {
// Iterate over the items
foreach ( $items as $key => $item ) {
// hide menu items which leads to pages with 'private' status
if ( !is_user_logged_in() && get_post_status($item->object_id) == 'private' ) unset( $items[$key] );
}
return $items;
}
else return $items;
}
add_filter( 'wp_get_nav_menu_items', 'yournamespace_exclude_menu_items', null, 3 );
it’s an alpha version – this is unreleased code, so you would expect stuff to be wrong/missing.
Hi Everyone,
Please, i want to make my wordpress site a forum website. so, have decided to use bbpress.
And i want my forum to look exactly like this forum (styling and everything)
So, have decided to use a template file.
So, can somebody help me with the php code and css code to make my forum look exactly like this one.
Thanks in anticipation.
yes, it is only already declared because I used the same function name.
Just combine the two and you get
//This function changes the text wherever it is quoted
function change_translate_text( $translated_text ) {
if ( $translated_text == '%s ago') {
$translated_text = '%s';
}
if ( $translated_text == 'This forum contains %1$s and %2$s, and was last updated by %3$s %4$s.' ) {
$translated_text = 'This elephant contains %1$s and %2$s, and was last giraffed by %3$s %4$s.';
}
if ( $translated_text == 'This forum contains %1$s, and was last updated by %2$s %3$s.' ) {
$translated_text = 'This elephant contains %1$s, and was last giraffed by %2$s %3$s.';
}
if ( $translated_text == 'This forum contains %1$s and %2$s.' ) {
$translated_text = 'This elephant contains %1$s and %2$s.';
}
if ( $translated_text == 'This forum contains %1$s.' ) {
$translated_text = 'This elephant contains %1$s.';
}
return $translated_text;
}
add_filter( 'gettext', 'change_translate_text', 20 );
Well…I’ve run into a problem. I have this code that removed the word “ago” from the freshness layout:
function change_translate_text( $translated_text ) {
if ( $translated_text == '%s ago') {
$translated_text = '%s';
}
return $translated_text;
}
add_filter( 'gettext', 'change_translate_text', 20 );
The only place I want to include the word “ago” is on the top of the forum within the forum data block. Right now it reads: This forum contains x topics, and x replies, and was last updated by x 4 minutes.
When I use the code above and manually add the word ago at the end of the line, I get an error because it was already declared. Is there a way around this? Thank you.