Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 6,676 through 6,700 (of 14,242 total)
  • In reply to: Newbie

    @robin-w

    Moderator

    @robin-w

    Moderator

    I think this has what you need

    bbPress Toolkit

    @robin-w

    Moderator

    forum= participant
    worpdress – no role for this site

    In reply to: Locked topics

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    you’re welcome

    In reply to: Locked topics

    @robin-w

    Moderator

    ‘nicer’ is always subjective, and I don’t understand what the difference between the papercip and the lock is if you take away the strikethough

    In reply to: Locked topics

    @robin-w

    Moderator

    so essentially the question is how to replace your locked icon with a paperclip – yes ?

    In reply to: Locked topics

    @robin-w

    Moderator

    a topic can be closed, just as a forum can be closed.

    If you close a topic, then it is exactly as you describe. It is read only.

    @robin-w

    Moderator

    then yes the code I sent is fine and works and is enough !!

    @robin-w

    Moderator

    not quite sure what you are trying to achieve – where are you putting this code ?

    @robin-w

    Moderator

    ok, a better filter might be – try adding this to your functions file

    add_filter ('bbp_before_has_search_results_parse_args', 'rew_amend_search') ;
    
    function rew_amend_search ($args) {
    	$args['post_type'] =  bbp_get_topic_post_type() ;
    return $args ;
    }

    @robin-w

    Moderator

    sorry, I’d missed that you were looking at function templates not output templates – sorry it has been a long day.

    what function in that template are you changing ?

    @robin-w

    Moderator

    no, you just put the templates in your child theme

    You can copy all the templates across, but you only need to copy those that you want to change, and it is better just to do this, as then you know which you have altered.

    so if you wanted to amend loop-single-forum you would do the following

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

    where %your-theme-name% is the name of your theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.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/loop-single-forum.php
    bbPress will now use this template instead of the original
    and you can amend this

    @robin-w

    Moderator

    hmmm. can’t say why, but if you have the template solution, not worth me working out why

    @robin-w

    Moderator

    the function should still work – it just searches topic.

    when you say ‘The above solution does not work in 2019’ – what exactly do you mean, it errors, it display what ?

    @robin-w

    Moderator

    to get rid of that bit, put this in your custom css part fo your theme

    div.bbp-template-notice.info {
    	border : none !important ;
    	display: none;
    }

    you might also want

    .bbp-pagination {
    	display: none;
    }

    @robin-w

    Moderator

    It is not being maintained, but I presume it still works?

    Wordpress removes plugins that are not maintained, but most continue to work and are based on stable code.

    or is this one now not working ?

    @robin-w

    Moderator

    I’m not sure what bbP Manage Subscriptions did, so hard to say what will replace

    try

    bbPress Toolkit

    that has some subscription management stuff

    @robin-w

    Moderator

    great – not an issue that WordPress seems to have considered – I did try and see if there was an easy way to bypass, but could not find one 🙂

    @robin-w

    Moderator

    hmmm… quite a puzzle

    so you could try putting your customised file here

    wp-content/languages/plugins/bbpress-fr_FR.mo

    plugins load code from only two places, but no idea which loads first, but looks like that location loads last, so it might work. but again might be overwritten by WordPress updates

    In reply to: Custom Topic Sorting

    @robin-w

    Moderator

    depends on how you define complicated – solutions are frequently only a few lines of code, but getting there takes the time 🙂

    @robin-w

    Moderator

    you need to pick up the forum id

    so

    $forum_id = bbp_get_forum_id(); 
        if (( $forum_id == 123) or ( $forum_id == 456)){

    etc…

    and then you would add the

    Custom action hook to add in the template file where the div shall be displayed:
    <?php do_action( 'different_div' ); ?>

    in the appropriate forum template

    @robin-w

    Moderator

    given the speed of most servers, I doubt that you would notice any time delay in processing the code in is a few lines of many thousand that get processed on each page load and one DB call.

    best solution would be to time with and without and see if you can spot anything – but run it many times to get an average

    @robin-w

    Moderator

    it would not be done in a template, in essence you would need to filter

    add_filter(‘bbp_before_has_topics_parse_args’

    but this runs before the template loads, so would be a large coding task.

    In reply to: Change comment date?

    @robin-w

    Moderator

    or if you mean the actual date, then

    dashboard>topics>edit topic and change it there

Viewing 25 replies - 6,676 through 6,700 (of 14,242 total)