Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 9,526 through 9,550 (of 14,219 total)
  • @robin-w

    Moderator

    ok, having all results on one page might give you issues.

    bbpress will by default show the number of replies per page that is set in

    dashboard>settings>forums>Topics and Replies Per Page>Replies

    You could up that to say 100, so that you get a decent chuck. But this would change it for forums as well.

    However if you wanted that just for search, so not affecting forums, then you could set it as a filter in your functions file – if you know how to add code to your functions file, then come back and I’ll give you some code. Again I would recommend that you set a limit but it can be as high as you like.

    @robin-w

    Moderator

    The reply form has an element which says

    Notify me of follow-up replies via email

    By default this is unticked, so unless you tick it, you are unsubscribed from the topic.

    So remembering to tick it makes sure you stay subscribed.

    You can change this default to make it ticked by default by using

    Reply Subscribed

    or using my style pack plugin which has lots of other extras

    https://wordpress.org/plugins/bbp-style-pack/

    @robin-w

    Moderator

    can you go to

    dashboard>settings>permalinks and just click save at then bottom, and then come back if not fixed

    @robin-w

    Moderator

    ok, so do the following

    1. If you have WP mass delete already installed then deactivate and delete

    2. the go to

    WP Mass delete bbpress version

    and download the plugin to your PC

    Then go into Dashboard>plugins>add new and upload plugin

    then upload the file you downloaded, and then activate

    To execute go into Dashboard>settings>WP mass Delete, and choose the options with care !!!

    I would suggest you tick Bypass trash, as otherwise you’ll only get them in there instead !!

    The plugin works by using a sql command to make an array of post ID’s needing deleting, and then using wp_delete_post command to do each one in turn, which will pick up post meta and revisions as well, and cycling through the array.

    Given you have 50,000 it may well error as well, so I’d suggest you start by limiting the period to a) check that it is working !
    b) give it something that it might succeed at.

    Once you know it works, you can try a full dump, but it may fall over.

    If it does, then limiting to a period should let you delete a good size chunk each time, so hopefully in a couple of dozen iterations you should be able to get there.

    Please come back and let me know how you get on – I can play with it a bit more if needed

    @robin-w

    Moderator

    @rajaindian – great let me cut a version for you – I’ll do a minimum of testing and then come back

    @robin-w

    Moderator

    great – glad you are fixed

    @robin-w

    Moderator

    ok, so

    create a directory on your childtheme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %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 this

    so 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 !

    @robin-w

    Moderator

    untested, 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 Color

    @robin-w

    Moderator

    your 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

    @robin-w

    Moderator

    @narnal I’d suggest you turn the debugger on, and/or refer to your host service provider.

    @robin-w

    Moderator

    http://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

    @robin-w

    Moderator

    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 Color

    @robin-w

    Moderator

    ok, all I get is

    Oh bother! No forums were found here!

    I’m guessing you forums are private?

    @robin-w

    Moderator

    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 ) : ?>
    

    @robin-w

    Moderator

    and 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.

    @robin-w

    Moderator

    Shortcodes

    [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.

    @robin-w

    Moderator

    I suspect it could be done, but can you repost onto my bbp user ranking plugin website, and I’ll take a look

    https://wordpress.org/support/plugin/bbp-user-ranking

    @robin-w

    Moderator

    so you want your users to be able to create new forums?

    In reply to: bbpress link error

    @robin-w

    Moderator

    bbpress 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&#8217; . $_SERVER[‘REQUEST_URI’];
    }

    @robin-w

    Moderator

    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.

    @robin-w

    Moderator

    As 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

    http://wordpress.stackexchange.com/questions/224332/how-to-get-author-meta-into-post-endpoint-in-api-v2

    http://v2.wp-api.org/extending/adding/

    @robin-w

    Moderator

    what is dashboard>settings>forums>auto role set to?

    @robin-w

    Moderator

    great – glad you are fixed !

    @robin-w

    Moderator

    the 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 Color

    @robin-w

    Moderator

    can you post a link to your site?

Viewing 25 replies - 9,526 through 9,550 (of 14,219 total)