ok, lets try doing a repair on the forums to see if they’ve lost the relationship somewhere
Dashboard>tools>forums
I’d work my way down the first 6 – maybe one at a time to ensure you don’t get hours of spinning discs.
The code you provided to protect does have a section where it is working out whether to show a post, topic or reply, and the code for each is slightly different (starts at around line 40). I’m not good enough ton validate this code, but if you’re still stuck, always worth contacting the codes owner to see if they can help
Do not check the following setting:
Purge Previous Import Purge all information from a previously attempted import
Do check the following setting:
Start Over Start a fresh conversion from the beginning
There is something weird going on with the above that ‘Purge Previous Import’ setting that I am looking into, it works for some and not others and is really bugging me 🙁
In between imports if it doesn’t finish and you need to try again you will manually have to delete the imported users from the WordPress User admin panel and reset bbPress’ forums as per https://codex.bbpress.org/reset-forums/.
@stagger-lee Thanks for taking another look at this, most appreciated. 🙂
I have a couple of ideas that I will try tomorrow and that should also include the removal of the hard-coded jos_ prefix.
Out of curiousity did you use Kunena2.php or Kunena3.php this time round?
I have gone through those steps a number of times already, including removing the membership plugin. This membership plugin is not specific to bbpress. It has no awareness of topics and users and such. It is to restrict access to wordpress pages and posts.
The way the forum is protected is by this code: https://gist.github.com/strangerstudios/1633637
What it basically does is determine if it is going to show forum content or not and then either not show it at all and redirect to another page (in my case the home page) or continue and show whatever the forum is showing. It does not discriminate between topics or replies or whatnot from what I can tell.
Again, disabling that bit, or disabling the membership plugin as a whole does not make a difference.
Walking through all forum roles: blocked shows a 404 page, all the others show the content except the first post (of type topic)
Walking through all wordpress roles: only administrator will show the first post (of type topic)
There were some instructions here
https://codex.bbpress.org/step-by-step-guide-to-creating-a-custom-bbpress-theme/
But they are out of date
Your forum link didn’t work, but if you post again, I’ll take a quick look to see if teher are any quick and easy changes you could make
–
It’s only a small thing – basically. Nevertheless, since a few days I am on experiment, only to enlarge the font size of the links “forum-title” and “topic title”. 🙁 And only these two! (no other font-size in the forum) I’m not successful. Despite the use of Firebug I do not find the correct place in the CSS.
I also do not understand what in this line
# bbpress-forum div.bbp-forum-title h3,
the “h3” is. My “h3” is much larger defined, but is not taken.
Which “h3” is meant and where it is defined?
Please help! I’ll go crazy 🙁
The issue is that in loop-single-reply the variable $user_id is not set. I’ve just written a plugin for this, which should work – it does on my site, but I am trying to work out why it doesn’t on another who also has buddypress.
You installing it would help me determine if it is me !
Download to your pc, and then upload to the plugins
bbp topic count plugin
or crack it open to see what code I used
No, absolutely same problem. Stuck at the same place.
Plus error with that hard coded jos_ in PHP, but that one is easy to fix. I type my own database prefix.
presume you mean this is the piece of code you’ve tried?
Enable Visual Editor
have you tried this plugin
https://wordpress.org/plugins/bbpress-enable-tinymce-visual-tab/
Just want to know how does bbPress include page templates (/templates/extras/….) into the WordPress page template dropdown which are available when creating new pages. Just want to know where the code exists in the codebase
I found out that I misunderstood your post. I downloaded plugin that you suggested and checked the code. I remembered that I used is_bbpress() somewhere and that was the solution for my problem. There’s the snippet of code that I used in my theme in file functions.php:
/* Do not search pages, only posts and if there's a request from bbPress or Admin panel than ignore setting of post type */
function search_filter($query) {
if ($query->is_search && !is_admin() && !is_bbpress()) {
$query->set('post_type', 'post');
}
return $query;
}
add_filter('pre_get_posts', 'search_filter');
Thank you very much again! 🙂 🙂
Hello
I installed bbPress Version 2.4.1 into WordPress 3.7.1 with Atahualpa theme and set up the forums.
I realized that editing is too limited to be useful. Some research showed that bbPress disabled the visual editor several versions back, but some people managed to activate it since then with some “code snippets”.
The code snippet does not work. I get errors. As I am not a Techie and for the most part do not know what I am doing, does anyone have simple instructions on how to get the visual editor in bbPress to work again?
Appreciate all help on this
Andy
bbpress 2.4.1 comes with it’s own search function, which only searches forums.
this post also describes forum only search boxes which might help
http://vfbpro.com/2012/10/25/how-to-add-a-search-box-to-bbpress/
and also a widget
https://wordpress.org/plugins/bbpress-search-widget/
that you could crack the code of
Hi Robin – thanks for replying.
Initially, I couldn’t find what you were referencing…then I found it at the bottom of the user page.
So every user has to initially be given a blog role when added? do you know of any plugins or code which which would reveal the forum roles when I initially add users?
I still don’t understand why the forum roles appear in the role drop down after I deactivate bbpress…doesn’t seem logical or make sense to me…but at least I can now add people with forum roles. Thanks for your help
Hello!
It is possible to limit search’s post type on forum and leave the one on the blog untouched? My current filter is like this:
function search_filter($query) {
if ($query->bbp_is_search) {
$query->set('post_type', array('post', 'forum', 'topic', 'reply'));
} else if ($query->is_search) {
$query->set('post_type', 'post');
}
return $query;
}
add_filter('pre_get_posts', 'search_filter');
But it doesn’t work… what do I have to change?
Thank you! 🙂
Do you have the Akismet plugin activated and have a valid API key?
https://codex.wordpress.org/Plugins/Akismet
At what point do I give up and start again. Should it take over four hours?
You should see it start and offer you some sort of notice that it has within seconds.
Via FTP or your web host cPanel admin etc, open your phpBB config file /public_html/phpbbv3/config.php and make sure these are the values you are using on the bbPress importer screen.
<?php
// phpBB 3.0.x auto-generated configuration file
// Do not change anything in this file!
$dbms = 'mysqli';
$dbhost = 'localhost';
$dbport = '3306';
$dbname = 'my_phpbb_database';
$dbuser = 'my_user_name';
$dbpasswd = 'abcdefgh';
$table_prefix = 'phpbb_';
(The $dbhost & $dbport may be blank as thats the default so use the settings I list above which are the default on the bbPress importer anyway)
bbPress is a plugin for WordPress and will only use the WordPress database.
If your WordPress instances, instance “A” and instanace “B” are sharing databases already bbPress will use whatever database you have WordPress setup with.
I think if you had a look at configuring WordPress to use multisite
https://codex.wordpress.org/Create_A_Network
You should have this file on your server /public_html/smf/Settings.php
Open up that file in a text editor
########## Database Info ##########
$db_server = 'localhost';
$db_name = 'db_smf';
$db_user = 'db_user';
$db_passwd = 'abcdefghigh';
$db_prefix = 'smf_';
They are the settings you need to use for your import.
JParticipant
add_action( 'init', 'nicenames_to_display_name' );
function nicenames_to_display_name() {
foreach ( get_users() as $user ) {
if ( $user->data->user_status == 0 && $user->data->user_nicename != $user->data->display_name ) {
$user_ids[] = $user->ID;
}
}
foreach( $user_ids as $uid ) {
$info = get_userdata( $uid );
$display_name = $info->data->display_name;
if ($display_name) {
$args = array(
'ID' => $uid,
'user_nicename' => strtolower(str_replace(" ", "_", $display_name))
);
wp_update_user( $args );
}
}
}
Just uploaded a new version of SMF.php, the core changes of the forum import have not changed. The main changes are the regex (regular expressions) to convert SMF’s BBCode.
It is a start and only a few tweaks are left to do, alas it’s 10pm Friday night and I’m done for the night 😉
https://bbpress.trac.wordpress.org/attachment/ticket/2380/SMF.3.php
https://bbpress.trac.wordpress.org/ticket/2380#comment:7
Ok, so my understanding is shortcode-generated content does not follow the style of the page templates.
To fix this, I have defined a global style in my style.css – this applies to all content which is not addressed by page templates.
For example:
* {
font-family: Arial, Helvetica, Verdana, 'sans-serif';
}
Hope this helps.
hey thank’s a lot for your help. I’ve added the code but it doesn’t look like it worked.
this is the file I had to modify
/wordpress/wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.php
That color is set by your parament theme css
wp-content/themes/parament/style.css
Line 81 sets this color, the code wrapping it is
a {
color: #989EAE;
text-decoration: none;
}
change the color line to
color: #000000;
You can :
edit this file to change it, but any theme updates will overwrite it, so you’ll need to keep a record of what you changed.
or create a child theme to overwrite this
or use a plugin such as jetpack to add it using their css editor
For child themes google “creating a child theme video” to see lots on how to do this.