Forum Replies Created
-
In reply to: Hide IP Address just from Moderators
you will need to amend a template, so need to be able to edit and ftp files.
If so, then
find
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.phptransfer this to your pc and edit
change line 46 from
<?php if ( current_user_can( 'moderate', bbp_get_reply_id() ) ) : ?>
to<?php if ( bbp_is_user_keymaster() ) : ?>
and save
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/loop-single-reply.phpbbPress will now use this template instead of the original and only keymasters will see the ip address
In reply to: Subscribe to Forum not workingyou are assuming that because it doesn’t work for you it doesn’t work for anyone 🙂
It works fine on my test site.
so create a new topic and subscribers to the forum get an email when a new topic is created.
If this is not happening for you, then it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, 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.
Then come back
In reply to: Multiple forums with access requestif you set forum visibility, you can then set a redirect to a page for non-logged in users and another for logged in users.
so create a page and use a contact form plugin, such as contact form 7, so they can request access to other forums, which will then send you an email.
so
install contact form plugin, there are many but contact form 7 is very popular.
create a form with maybe a drop down list of forums users can request access to
create a page and put shortcode to the form in this
set redirect in private groups to go to that pagegreat – glad you are fixed
In reply to: /forums Root Loads a Blog-Type Pagegreat – glad you are fixed!!
In reply to: /forums Root Loads a Blog-Type Pagepresuming that is what is set in the forums settings, then it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, 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.
Then come back
In reply to: RE: Style All Other Pages Like Home PageIn reply to: Stop forum posts from showing on feedI think if you set
dashboard>settings>forums>rss feeds per page to zero it should stop, but that does depend on how your theme an other plugins are doing the links, it may not work
agree, let’s see if Milan responds 🙂
also read
How to Fix the “Sorry, This File Type Is Not Permitted for Security Reasons” Error in WordPress
might be worth trying one of the plugins?
I’ve had a quick look, but could spend the rest of Christmas looking in code
I’d suggest you raise a ticket in bbpress attachments
https://wordpress.org/support/plugin/gd-bbpress-attachments/
ok, not a plugin I’ve looked at in detail – I’ll have a quick look later
so are you running an additional plugin such as bbpress gd attachments to get this browse button ?
ok, but exactly how are you uploading – what button/link/code are you doing?
Sounds a dumb question, but is relevant
have a look at this
https://wordpress.stackexchange.com/questions/44777/upload-mimes-filter-has-no-effect
seems maybe you can only have one text/plain entry?
the types are listed in
https://codex.wordpress.org/Function_Reference/get_allowed_mime_types
and maybe try
add_filter( 'upload_mimes', 'wpse44777_upload_mimes' ); function wpse44777_upload_mimes( $mime_types ) { // First we unregister the old key unset( $mime_types['txt|asc|c|cc|h'] ); // Then we add a new one ! isset( $mime_types['txt|asc|c|cc|h|nvn'] ) AND $mime_types['txt|asc|c|cc|h|nvn'] = 'text/plain'; return $mime_types; }
ok, so can you just say how you are doing uploads? ie what process
ok, so can you do then middle bit to prove whether a participant can upload a psd file
In reply to: Stop forum posts from showing on feedno idea what you mean by ‘feed’?
your home page is pointing to your blogs, and it is these that are showing not forum entries?
Please explain further
I suspect your filer is just not working.
to prove, take the code out and recheck that the admin/keymaster still works – I’m pretty sure that that has a capability that ignores types.
Next prove that your basic code is good, so
function my_mime_types($mime_types){ $mime_types['psd'] = 'image/vnd.adobe.photoshop'; return $mime_types; } add_filter('upload_mimes', 'my_mime_types', 1, 1);
and then try uploading a psd file with and without it to prove that the filter works
Finally, having written the above, it looks like nvn is NOT a mime type, according to this list??
https://www.freeformatter.com/mime-types-list.htmlok so you’ll need to work through what capabilities let this happen
and then amend these for what you want
ok, you said earlier that keymasters were allowed – what combination allows upload?
I’m pretty sure this is WordPress not bbpress, so you are looking at WordPress admin vs subscriber rather than bbpress keymaster vs. participant.
You don’t say how you added the capability
eg
anyway I’d suggest you do some tests eg set up a user with
admin and participant
subscriber and keymasterand see which is preventing upload
In reply to: WordPress database error – HelpIf that plugin is 8 years old, it will be for bbpress version 1, so chances are it will not work with current version
In reply to: WordPress database error – Helpnew error on old site? only just installed bbpress?
In reply to: WordPress database error – Helpnew error on old site? only just installed bbpress? what version of bbpress and WordPress?