Forum Replies Created
-
In reply to: How to delete or empty 50000 spam replies and topics
@rajaindian – great let me cut a version for you – I’ll do a minimum of testing and then come back
In reply to: apply bbpress login code only to forumgreat – glad you are fixed
ok, so
create a directory on your childtheme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your childtheme
find
wp-content/plugins/bbpress/templates/default/bbpress/form-reply.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/form-reply.php
bbPress will now use this template instead of the original
and you can amend thisso amend this file – copy it to your Pc and use norepad or similar
around line 70 you will see
<?php if ( bbp_allow_topic_tags() && current_user_can( 'assign_topic_tags' ) ) : ?>
replace this with
<?php $user_id = wp_get_current_user()->ID; $topic_id = bbp_get_topic_id() ; $topic_author = bbp_get_topic_author_id( $topic_id ) ; $is_topic_author = ($topic_author == $user_id ? true : false) ; if ( bbp_allow_topic_tags() && current_user_can('assign_topic_tags' ) && ($is_topic_author || bbp_is_user_keymaster() ) : ?>
This is untested, and if it doesn’t work – do come back !
In reply to: apply bbpress login code only to forumuntested, but this should do it, come back if not
change line 3 to
if ( is_user_logged_in() && is_bbpress() ) {
and line 6 to
elseif ( !is_user_logged_in() && is_bbpress() ) {
In reply to: Background Coloryour theme is re-writing the classes used by bbpress.
Put this into the custom css – either of your theme if it has a custom css area, or into the custom css tab in my style pack plugin settings
.x-bbp-search-form { background-color: #ffffff !important; } .bbp-forums ul, li { background-color: #ffffff !important; }
In reply to: bbpress link error@narnal I’d suggest you turn the debugger on, and/or refer to your host service provider.
In reply to: Error Message and I cannot log into adminhttp://artintheblood.net/wp-login.php?redirect_to=http%3A%2F%2Fartintheblood.net%2Fwp-login
gets you to a login page – then disable bbpress and then come back
ok, I’ve just loaded your code to my test site, and I can set a user to member and it holds
Suspect either theme or other plugins
bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
In reply to: Background Colorok, all I get is
Oh bother! No forums were found here!
I’m guessing you forums are private?
you would need to know how to copy a bbpress template, modify it and then load it to your child theme
so you would need FTP access to your site
If that sound possible, the come back and I’ll try to help further
posting this untested code in here just so I don’t lose it !
<?php $user_id = wp_get_current_user()->ID; $topic_id = bbp_get_topic_id() ; $topic_author = bbp_get_topic_author_id( $topic_id ) ; $is_topic_author = ($topic_author == $user_id ? true : false) ; if ( bbp_allow_topic_tags() && current_user_can( 'assign_topic_tags' ) && $is_topic_author ) : ?>
In reply to: How to create a page with new topic form inand asked very nicely, can you create suitable topic titles for future request ‘HELP!’ isn’t really a good title – everyone who posts on here needs that, and it doesn’t help others searching later.
In reply to: How to create a page with new topic form in[bbp-topic-form] – Display the ‘New Topic’ form where you can choose from a drop down menu the forum that this topic is to be associated with.
[bbp-topic-form forum_id=$forum_id] – Display the ‘New Topic Form’ for a specific forum ID.In reply to: Changing a user’s post count?I suspect it could be done, but can you repost onto my bbp user ranking plugin website, and I’ll take a look
In reply to: How to create categories to structureso you want your users to be able to create new forums?
In reply to: bbpress link errorbbpress hates local installations
try adding
add_filter( ‘bbp_verify_nonce_request_url’, ‘my_bbp_verify_nonce_request_url’, 999, 1 );
function my_bbp_verify_nonce_request_url( $requested_url )
{
return ‘http://localhost:8888’ . $_SERVER[‘REQUEST_URI’];
}ok, I can’t immediately see an error in your coding
two thoughts
1. does professional stick – I know you don’t want to use that, but it would help show if it is the whole code or just part that is not working.
2. since lots of people copy code, it may be that your function names are not unique – eg function add_new_roles may exist elsewhere.
Try making them unique
ie change
function add_new_roles
to
function kajzh_add_new_roles
and change then filter that calls that function
add_filter( 'bbp_get_dynamic_roles', 'add_new_roles', 1 );
to
add_filter( 'bbp_get_dynamic_roles', 'kajzh_add_new_roles', 1 );
and do this for all the functions – each has a name and then a filter that calls it.
In reply to: Is there an API for bbPressAs far as I can see that is down to the rest api, not bbpress – it does the same with posts ie not show author.
I suspect barry is way ahead of me in knowledge but these two links seem to show that you write api callbacks into your website and then add them to the api
what is dashboard>settings>forums>auto role set to?
In reply to: Remove topic-author, but keep reply-authorsgreat – glad you are fixed !
In reply to: Count voice issued . Please helpthe code for if… needs two = signs so try
function none_people_discuss() { $voice_count = bbp_get_topic_voice_count(); if ( $voice_count == 1 ) echo '<span class=”no_support”>[No support]</span>'; } add_action( 'bbp_theme_before_topic_title', 'none_people_discuss' );
In reply to: Background Colorcan you post a link to your site?
In reply to: Count voice issued . Please helpthat code should put [no_support] before the topic title – is this what you are trying to achieve?
In reply to: Package installation error bbpress.2.5.12.zipno problem !!
In reply to: Can Anyone Help With This Error?yet unbelievably there seems to be no-one who has a solution after all the years of BBpress being around.
I suspect that this is because it is the symptom of many problems.
bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
In reply to: Assign anonymous posts to another member?so did you change the post author in wp_posts?