@rommelxcastro
This kind of looks normal since when you edit the topic all you see is the Text editor which will show the html tags.
Visual vs Text Editor
Also did you copy and paste the content of the whole topic page as an test, or was it just like that??
Are you using this plugin??
https://wordpress.org/plugins/bbpress-enable-tinymce-visual-tab/
I tried the theme and plugins with bbPress and I didn’t come across any issues.
I am kind of thinking it could be the index.php in your url causing the issue, but I am not really sure.
https://codex.wordpress.org/Using_Permalinks#PATHINFO:_.22Almost_Pretty.22
Since I am not 100% sure, you can try some troubleshooting to see if you can find the solution to your problem.
Troubleshooting
I got the id from the Reveal ID’s thank you for that. I am trying to get this to work on my website which currently is on a localhost so can’t send you to it. I have put the code in the functions and changed the number to 72 (my forum id), however, when I post it does not create a new topic in that forum. I have been poking around trying to get it to work and have found that some places say the publish_post is deprecated and others that say to ignore that it still works. I’m currently using wordpress version 4.2.4 and here is the code I put in my functions.
function gh_post_published_create_topic( $ID, $post ) {
$checkduplicate = get_post_meta( $ID, 'gh_topic_created',true);
if ( empty( $checkduplicate ) ) {
$author = $post->post_author;
$name = get_the_author_meta( 'display_name', $author );
$title = $post->post_title;
$permalink = get_permalink( $ID );
$excerpt = $post->post_excerpt;
$subject = sprintf( '%s: %s', $name, $title );
$message = sprintf ('[b]%s[/b]' . "\n" . 'By %s' . "\n\n" . '[i]%s[/i]' . "\n\n" . 'View: %s' . "\n\n", $title, $name, $excerpt, $permalink );
$tags = wp_get_post_tags( $ID, array( 'fields' => 'names' ) );
$new_post = array(
'post_title' => $subject,
'post_content' => $message,
'post_parent' => 72,
'post_status' => 'publish',
'post_type' => 'topic'
);
$topic_meta = array(
'forum_id' => $new_post['post_parent']
);
$topic_id = bbp_insert_topic($new_post, $topic_meta);
if ( !empty( $topic_id ) ) {
add_post_meta($ID, 'gh_topic_created', 'true', true);
$term_taxonomy_ids = wp_set_object_terms( $topic_id, $tags, 'topic-tag' );
bbp_update_forum(array('forum_id' => 72));
}
}
}
add_action( 'publish_post', 'post_published_create_topic', 10, 2 );
Any help on why this wouldn’t work for me would me much appreciated.
@leng7881
Install a plugin like Reveal IDs, and when you go to Forums > All Forums in the WordPress backend you will see all the forum IDs next to each forum.
There are other ways of getting a posts ID, but this is the easiest way.
Link to the plugin you are talking about. I am having a tough time finding the WordPress plugin.
In BBpress each user has the ability to edit their profile users/USER/edit/
Here they can add their name, their website link and their bio by default. However, this information is never actually displayed on their profile. Why is this?
The bio should show.
https://bbpress.org/forums/profile/robkk/
As for most of the other fields, not sure really. I know though they are just going off of WordPress’s profile fields, and whatever is added to that though. I don’t know why the devs haven’t put at least website there. Maybe it is easy for spammers to take advantage of that?? First Name and Last Name could make good choices to display on the users profile too.
I will probably make a suggestion to the devs later to add more profile data to the user’s profile.
You can of course display the data in the profile by editing a template or installing a plugin.
Copy user-profile.php from the bbPress templates in the plugin to your child theme in a folder called bbpress.
Just surround the code with conditionals to only display the information when the user has inputted any information.
You have something like this for first name.
<?php if ( bbp_get_displayed_user_field( 'first_name' ) ) : ?>
<p class="bbp-user-fname"><?php bbp_displayed_user_field( 'first_name' ); ?></p>
<?php endif; ?>
YOu can also use the plugin, to display the current fields and also custom fields.
https://wordpress.org/plugins/bbp-profile-information/
Hello,
I’ve searched, really, and I didn’t find any solution before asking here.
So, first, here’s all versions used :
Wordpress : 4.2.4
BBPress : 2.5.8
Theme used : Cry Out Nirvana 1.0.6
A few other extensions are installed :
Active Directory Integration
Advanced Custom Fields
Advanced Custom Fields: Nav Menu Field
CKEditor for WordPress
Collapse-O-Matic
GD bbPress Attachments
List category posts
Members
Our Team
Post Types Order
TablePress
TablePress Extension: Row Details
Uber Login Logo
WP-Utilisateur-Avatar
I think there’s everything.
I can’t give a link to the website, at the moment it’s internal, in progress and next, it will be our new Intranet
So, here’s the issue I have.
My users make forum posts, seems to be OK.
When they try to modify a post, or if I try to modify it myself as admin, I don’t get the window to change the text but an article I made “sticky”, the article is not opened to be modified.
As an example
Link to the post : mysite.fr/index.php/foruminterneimestia/suject/test/
Button Modify : mysite.fr/index.php/foruminterneimestia/suject/test/edit/
Page I receive : mysite.fr/index.php/2015/08/10/edito/
Do you have any idea ?
Ask me any question (but the password)
You need a plugin to use quotes with bbPress. The best plugin with quotes is GD bbPress tools.
https://wordpress.org/plugins/gd-bbpress-tools/
Hi when I debug I see this notice:
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 /homehdd/nameyourd/public_html/wp-includes/functions.php on line 3560
how can I fix it? thank you!
I am on the latest version of WordPress, but a custom theme ( developer left it half way) so I am fixing it myself.
1) The forum page shows for post the correct numbers. Example
post tite: Voices(5), Posts (6)
but inside posts it says
This topic contains 5 replies, has 5 voices
Viewing 1 post (of 1 total)
Then it shows just the main topic, not the replies to it.
This is the code for the bbpress.php template
<?php get_header(); ?>
<div id="page-left" class="container">
<?php
the_content();
?>
</div>
<div id="page-right">
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
Seems fine to me, what do you think I missed?
Hi
I get this:
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 /home/easychem/public_html/wp-includes/functions.php on line 3560
Also I found bbpress interapting my gallery library. When it’s activate I get blank screen in the gallery library, but’ when I switch it off, I can see all my gallery.
This is My site:
Using 2.5.8 version of bbp
and 4.2.4 of WordPress
I have anonymous posting disabled. The setup, as described in my first post (the bbPress setup tries to mirror the WordPress setup as closely as possible):
At the WordPress side, things work flawlessly spam-free with anonymous comments disabled, a custom question in the registration form (stops most spam bots), a mandatory e-mail confirmation for new subscribers, auto-moderation of the first comment (stops manual spammers) and Akismet (which doesn’t really have anything to do at the end). On the bbPress side, I’m only missing the moderation of a user’s first comment, which is letting through some spam.
Anyway, I don’t really want to turn this into a troubleshooting exercise for the bbPress Moderation plugin as that’ll just needlessly eat up your time. 🙂 I can give the plugin another go later if I decide to go down that route. But thanks again!
I could really only find posts that were talking about bbPress v1 standalone. I did find a post that was in 2012, which I think the bbPress plugin was around then. You can study the code and see if it would work.
The page is in another language though.
Pretty permalinks en WordPress con Lighttpd
Okay, then it might not be a bug in bbPress then. I do not know why I didn’t get some emails from my server, some topic notifications did go into my spam folder though, but I did not get any forum notifications. I did subscribe to a forum on this site as a fallback for testing, and I did receive the forum notifications for new topics on this site though, so it seems to work fine.
I did not try the plugin yet because I want to check things in a certain order rather than adding another new plugin to my site and another layer of complications.
The functionality of that plugin I think is going to make it into core anyway. The way that bbPress does it right now with BCC, the emails could be caught up in a spam/junk folder.
https://bbpress.trac.wordpress.org/ticket/2797?cversion=0&cnum_hist=2
So my next step should be to check with Bluehost support to see why these many different notifications from bbPress, Gravity Forms and Wordfence that are being generated are not being sent to any administrator emails. I’ll get back here when I find out more.
Okay, it makes sense to possibly be a server issue since you have issues with multiple notification emails from different plugins. WHen you get sorted with your issues with the other plugins, come back to tell me how bbPress is doing.
After I created a topic, all of the content is under a avatar not on the center of the page. How can I fix this problem?
[Wordpress ver. 4.2.4, BBPress ver. 2.5.8,]
and this i the link to my forum >>> http://pharmdiary.com/forums/topic/webboard-rules/
Thanks for your time and effort in trying to help me Robkk, but I am aware of the above. Perhaps I should have mentioned that I have been using and developing with WordPress since around 2005 and my history with bbPress goes back to when it was first publicly released as the 0.x versions. So, I do know my way around the systems and have an understanding of how things work in general and what to do if they don’t. Still, I do appreciate your time.
I also don’t doubt that bbPress Moderation works for most installations. It doesn’t for me (every post gets moderated, even after approving a user’s post), which may be due to my theme but could also be because of a plugin conflict, as you mention. The question then becomes whether I start troubleshooting my installation for a plugin that doesn’t appear to be supported any longer and based on its support forum seems to have some kinks, or if I should try an alternative approach in case someone has found a better solution to the problem. Considering that this thread has been here for almost a week now, I am starting to think that no alternative solutions are going to come up, which then leaves me to either try to get bbPress Moderation to work as you suggest, or write something myself.
A third option could be to wait for the maker of the bbPress Notify (No-Spam) plugin to come up with something, as his future plans with the bbPress Moderation Plugin Add-On appear to be to turn it into a successor for bbPress Moderation. But that one’s not here yet (if it ever will), and it of course also comes with a recurring subscription fee.
Or I could wait for this feature to end up in core bbPress itself, as you mentioned.
Well, at least I have options. 🙂
Sorry for the late reply, there are a couple of ways to do this.
Easiest way to do this, might be to install this plugin. And use the supplied shortcodes in the plugin.
https://wordpress.org/plugins/voter-plugin/
The supplied shortcode are one for custom post types, which you can use for bbPress’s custom post types, (topic)
[voter_plugin_top_voted type=topic num=15]
Sorry for the late reply. This is quite time consuming for now, unless I found another alternative.
Best explanation/tutorial is here.
How to Merge WordPress Sites and Avoid Creating a Mess in the Process
Yeah this is custom development. I suggest you hire a developer if you want something like this.
In this plugin though, it deletes replies by the set hours in the settings. You can edit the code to change the post_status to “publish” instead of “spam”. This might be resource intensive depending on how many replies you have currently on your forums.
https://wordpress.org/plugins/bbpress-auto-delete-spam-replies/
If this is only for A and Y you may be able to use a find and replace plugin.
https://wordpress.org/plugins/better-search-replace/
@matoca
Okay for some reason I am having trouble getting Forum notifications on my test site to any user except the blog owner like you said, I may have to report a bug or do more testing/discuss with the devs. And I might have also found another bug messing with this too.
The topic subscriptions work well though when I tested them.
Did you try some troubleshooting already to see if there could be another thing causing the issue?? I want to make sure before I report any kind of bug.
Troubleshooting
Just to make sure you are using the latest WordPress and bbPress?
Did you use the plugin mentioned above, Asychronous subscriptions, abd see if it fixed it?
Do other emails work on your site like new user registration, new comment, etc. ?
I have an email address for the website via a Bluehost mailbox and I have one email forwarder from that box to my home email client.
Is this something you did recently, or was it always set up like this for 2 years.
I want double notification for the moderators and I don’t mind getting triple notification.
This might be custom development.
Merging topics still works for me when I tested it with the latest version of bbPress and WordPress.
If merging topics doesn’t work for a specific forum, you may need to repair your forums possibly??
Troubleshooting
You may also need to find and see if there is a plugin or theme issue too.
If merging forums does not work at all on your site try this with some troubleshooting also.
Create a hidden forum so it would only be visible to Keymasters and MOderators, then create a few topics and try merging them together.
This is because your font color of your site is white for the content, and bbPress forums are white and gray by default making your font invisible.
You can copy the bbpress.css from the bbPress plugin into your child theme into a folder called bbpress and customize the styles of your site.
Theme Compatibility
Or you can install a plugin like this, and put transparent for any background colors.
https://wordpress.org/plugins/bbp-style-pack/
@vilimaunula
I’m just not entirely sure if it’s more time and effort to write the above than it is to manually delete spam messages
I was basically saying you do not need to manually delete every spam post, but you can bulk delete and auto delete spam posts. With Akismet installed it marks registered users posts that may be from spammers as spam, using the comment blacklist (bbPress uses this too) will put posts as pending as review. So that may help keep spam to a minimum.
I tested bbPress moderation, and it seems to work fine when I tested it.
I tried guest posting, registred member posting, and it seems to put the posts into moderation as pending.
You set up bbPress moderation in settings > bbPress moderation in the WordPress backend. I had everything enabled just so I can test anonymous posting too.
I received emails immediately for any posts pending moderation. I had checked that the respective posts were shown in the WordPress backend in the posts section (Either Topics or Replies in All Topics or All Replies), and when you see the pending action link all the posts in moderation should be there. To approve a reply the plugin author lists it here https://wordpress.org/plugins/bbpressmoderation/faq/.
If you are 100% percent sure that it does not work, try some troubleshooting to find any possible plugin conflicts. I had a simple test site with bbPress and bbPress moderation only, and it worked fine.
Troubleshooting
Also know that some of the bbPress moderation functionality is set for core, and might be in the plugin next big release, but like I said before the plugin works fine for now, but there could be a possible plugin conflict with another plugin.
You can bulk delete spam posts in the WordPress backend to make things go faster. There is also a plugin to autodelete spam replies on wordpress.org.
Unless I’m missing something, since the problem in my case is that some spam posts get through (don’t get marked as spam), a plugin that automatically deletes spam posts wouldn’t really help here.
To reiterate: the problem I’m trying to solve is manual spammers who register on the website and post on the forums. The most straightforward way to combat this would seem to be to moderate all messages by new users, which is a built in function of WordPress but not bbPress. The bbPress Moderation plugin in theory offers that functionality but doesn’t seem to work for me and also doesn’t appear to be maintained any longer.