Forum Replies Created
-
Turn off
define('WP_DEBUG', true);
in yourwp-config.php
file, this is a known issue.More info on this:
https://bbpress.trac.wordpress.org/ticket/2309 https://core.trac.wordpress.org/ticket/24169
In reply to: Importing PHPBB 3.0,12Double check your database settings, it looks like you are using
phpbb
for the table prefix, most likely this needs to bephpbb_
.You can check these settings by opening your phpBB
config.php
file and get the settings from that file:eg.
$dbname = 'db_name'; $dbuser = 'db_user'; $dbpasswd = '1234'; $table_prefix = 'phpbb_';
In reply to: Right place for editor css?Edit: PS, I did not get an email that there was a reply on this, and it’s definitely checked…
Firstly, did you get this reply?
And I’m a little confused: doesn’t bbPress have it’s own editor that’s separate from WordPress? I have an awesome editor for WordPress, but it doesn’t show up for bbPress.
My bad, Yes and no, bbPress can use WordPress’ editor if you enable TinyMCE as detailed here, that is the same editor you see in the backend of WordPress to create posts, pages tec.The original links I posted are for adding custom themes for TinyMCE.If you are not using TinyMCE you can edit bbPress CSS in the ‘/* =TinyMCE in themes’ section around line #714.Ok, so ignore the above, I have found and hit the same wall you have with the ‘editor buttons’, I’m not sure if this has changed with WordPress 3.9 and TinyMCE 4 but I can’t override these either without some serious hacky code.
I’ll create a bbPress and/or WordPress ticket/s in trac so this can be done without quite so much effort. I’ve been messing about for the past hour trying to get the numerous combinations of ‘editor styles’ to work and am now walking away to go ask the experts 😉
In reply to: add custom profile field or group as signature?Cool, glad you have something your happy with 🙂
In reply to: advice on forum structureYou won’t really be able to determine the ‘usability’ until you set up a good subset of the forums you want to use and then go exploring yourself to determine what works best for what you are trying to achieve.
See my answer here on removing the ‘forums’ link in the breadcrumb.
In reply to: Installing in the root directory?@jakoblanglois has it right, to fix the last issue he describes when just need to modify the breadcrumbs behaviour a bit…
Uncheck the ‘Forum Prefix – Prefix all forum content with the Forum Root slug (Recommended)’ in bbPress settings and then the last bit…
Upon further testing, I noticed that this will not edit the breadcrumbs and will show Home > Forums (linking to domain.com/forums).
Tweak the settings of the breadcrumb using some custom arguments, this is based on the code here though what I have below just removes the ‘forums root’ from the breadcrumb…
<?php /* Plugin Name: bbPress - Custom Breadcrumbs Plugin URI: https://gist.github.com/ntwb/7781901 Description: bbPress - Custom Breadcrumbs Version: 0.1 Author: Stephen Edgar - Netweb Author URI: http://netweb.com.au */ add_filter('bbp_before_get_breadcrumb_parse_args', 'ntwb_bbpress_custom_breadcrumb' ); function ntwb_bbpress_custom_breadcrumb() { // Forum root $args['include_root'] = false; return $args; }
Copy the above into a file named
ntwb_bbpress_custom_breadcrumb.php
in your plugins folder 🙂In reply to: advice on forum structureYou will start to hit performance issues with that many forums on a single page, in fact bbPress limits this to 50 forums per page for that reason. It can be adjusted but the performance issues would still be there.
Probably I’d suggest
– America’s (Category)
— Canada (Category)
— Forum1
— Forum2
— Forum3
— United States (Category)
— Forum1
— Forum2
— Forum3
-Europe (Category)
— Germany (Category)
— Forum1
— Forum2
— Forum3
— Switzerland (Category)
— Forum1
— Forum2
— Forum3
etc.This way when viewing your primary /forums page you will only see:
– America’s (Category)
— Canada (Category)
— United States (Category)
-Europe (Category)
— Germany (Category)
— Switzerland (Category)Drill down into America’s then you see:
— Canada (Category)
— Forum1
— Forum2
— Forum3
— United States (Category)
— Forum1
— Forum2
— Forum3Or in pictures 😉
In reply to: add custom profile field or group as signature?I am not sure how Register Plus Redux registers the new profile fields though an alternate way would be to use
user_contactmethods
https://codex.wordpress.org/Plugin_API/Filter_Reference/user_contactmethods
So here is an alternate method using that method as a single standalone plugin:
I’m not saying there is anything wrong with the method you used, just an alternate method.
You could add as many or few extra fields as you want 😉
Source: https://gist.github.com/ntwb/11241301
<?php /* Plugin Name: bbPress - CLB Add user school to reply author details Plugin URI: https://gist.github.com/ntwb/11241301 Description: bbPress - CLB Add user school to reply author details Version: 0.1 Author: Stephen Edgar - Netweb Author URI: http://netweb.com.au */ function clb_user_contact_methods( $user_contact ){ /* Add user contact methods */ $user_contact['school'] = __('School Name'); return $user_contact; } add_filter('user_contactmethods', 'clb_user_contact_methods'); function clb_school_replies_author() { echo get_user_meta(bbp_get_reply_author_id(), 'school', true); } add_action( 'bbp_theme_after_reply_author_details', 'clb_school_replies_author' );
As it displays in each reply under the author details
As it displays on a users profile page
In reply to: Requesting feedback on forum layout.Looks good, I like that you have the template notices using the colors from your theme, many people miss styling those and it is always the first thing I look for 😉
Take a look at the shortcode
[bbp-stats]
to display the forum statistics.https://codex.bbpress.org/shortcodes/
Also the page template
page-forum-statistics.php
to get some good ideas on adding your stats .In reply to: User / Session Handling capacityor it is depending on the wordpress site?
This, basically dependant upon what WordPress can handle.
In reply to: Moderator Unable To Post To Forum: iPhone iPadwould I *only* be allowed to add a tags with a class (no, I don’t know why either but just pretend…) and not able to add the default img, blockquote, etc tags?
Correct, with the example you posted you would only be able to add an
a
anchor HTML element with aclass
CSS class eg.<a class="my-css-class">description</a>
note as you removedhref
from the allowed tags you wouldn’t be able to use<a href="http://example.com">description</a>
I had a similar question last year but never really figured it out – gave up when I decided it didn’t matter: https://bbpress.org/forums/topic/using-wp_filter_kses-filter-for-bbpress-posts/
I fully appreciate this highlights how little I know these things! And thank you. 🙂 This has been a really interesting discussion.
This highlights how little I knew 12 months ago, if I don’t know I don’t answer a question unless I can provide something that IS helpful, we are all constantly learning 🙂
In reply to: Log into bbpress forum with Facebook plugin?There appears to be quite a few though I have not used any take a look at the WordPress plugins:
https://wordpress.org/plugins/search.php?q=facebook+login+bbpress
In reply to: Showing Sub-SubForumsNot at this stage it isn’t ‘out of the box’ you could modify the templates (in a child theme of course) and get the desired effect.
A good starting point for this is the code behind the concept of the following topic:
I have created a bbPress starter theme with a phpBB look and feel
You also reorganize some of your forum structure:
eg.
From:-The Hunt
–Worldwide
—Los Angeles / Orange County
—New York
—Online
—SF Bay AreaTo: (As unless you plan on including other planets and galaxies worldwide is kind of moot 😉
-The Hunt
–Los Angeles / Orange County
–New York
–Online
–SF Bay AreaIn reply to: is_bbpress() defined on the BuddyPress profile pageMaybe use some other bbPress/BuddyPress conditional tags
Note: The BuddyPress codex page is undergoing some updates. There are a few that are now depreciated, you can find an accurate list here.
I also wrote a plugin that makes it super easy to see what conditional tags are being used on a page 🙂
https://wordpress.org/plugins/query-monitor-bbpress-buddypress-conditionals/
(You first need to install https://wordpress.org/plugins/query-monitor/)In reply to: Avatar Folders (to choose pre-made avvys?)You could write some custom code to do it in a child theme though it would probably be quicker to fork an existing plugin that will do it for you with bbPress.
@imath’s BuddyPress plugin comes close to what you want I think and would be a good starting point to convert it from BuddyPress to bbPress.In reply to: problem with forum page – [wesf_account_page]I have no idea nor could find a reference to
[wesf_account_page]
most likely it is a plugin.All references to it via a Google search appear to all revolve around a page titled
my-account
.Most likely it was from either a theme or plugin you no longer use as you see the ‘raw’ shortcode rather than a rendered shortcode. Find what page the shortcode is used on and remove it.
In reply to: Moderator Unable To Post To Forum: iPhone iPadHere is a custom plugin for custom KSES, specifically it adds support for tables and class names for
a
andimg
though you most likely don’t want people adding classes to these normally.https://gist.github.com/ntwb/7797990
And I am glad your up and running now @matoca, TinyMCE v4 is a big upgrade and as you point out there are vast improvements and vast breakages with existing plugins, hopefully the authors of these plugins will get this sorted soon.
I also look forward to seeing and checking out a few of the plugins that really take advantage of TinyMCE 4 as I have already spent a fair amount of time testing it already, specificly pasting from Word, Excel PDF etc and it is pretty awesome what you can throw at it.
In reply to: Avatar Folders (to choose pre-made avvys?)I don’t know if any of the avatar plugins will do what you need it to do though with ~350 + avatar plugins via https://wordpress.org/plugins/search.php?q=avatar and/or 26 listed also with ‘bbPress’ at https://wordpress.org/plugins/search.php?q=avatar+bbpress maybe take a look at some of these other plugins and see if one of those will do what you want.
In reply to: Forum topic path incorrect / not foundThis could be an issue with your rewrite rules. To fix this try resetting your permalinks. In your WordPress Administration Screens navigate to Settings > Permalinks, select a different permalink structure and save. Then select your preferred permalink structure and save again.
In reply to: Deleting AttachmentsbbPress does not include support for attachments ‘out of the box’
If you are using an attachment plugin for bbPress contact the author of that plugin.
In reply to: Avatar Folders (to choose pre-made avvys?)You can select from various default avatars included with WordPress in the WordPress Dashboard -. Settings -> Discussion (/wp-admin/options-discussion.php)
Or look at adding one of the many avatar plugins:
https://wordpress.org/plugins/search.php?q=avatar and/or https://wordpress.org/plugins/search.php?q=avatar+bbpress
I don’t mind editing core files if that is what needs to be done.
This should never be done, when WordPress or bbPress has an update you will lose the changes you made.
In reply to: Favorite and subscription, undefinedI created a fix for this a few weeks ago, details are here.
In reply to: Plugin: bbPress Go To First Unread PostNice, will take a look a closer look later 🙂
In reply to: Unread PostsI just moved @conundrum89 reply to it’s own topic:
== Description ==
bbPress Go To First Unread Post is a literally named plugin that allows registered users to jump to the first Reply in a Topic that they haven’t viewed yet. This gives your bbPress forum the simple and expected functionality of non-WordPress counterparts like phpBB, without a lot of coding.
First, you activate the plugin on a blog that already has the bbPress plugin enabled. This is all you need to do to activate the basic functionality of the plugin, which includes:
* Automatic tracking of last reply viewed, per topic per user.
* Link next to the title of a topic if the user has unread posts (between the title and pagination)The plugin also includes two template tags for extra functionality:
* Mark Topics as Read link
* Mark Forum as Read linkI am now implementing this for the next version of bbPress to support importing anonymous/guest users, thus far I only have it working for phpBB and am now working on adding it to the other importers.