Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 12,751 through 12,775 (of 14,219 total)
  • @robin-w

    Moderator

    ok, try method 2, I think your system is having trouble with the permalinks (don’t worry what they are !)

    @robin-w

    Moderator

    hhmmmm…

    Quite a lot of info, and not sure if it is affecting

    The middle paragraph starting ‘My initial setup was a template file called…’ is worrying.

    Basically you should not be adding stuff to your main theme, instead you should use a child theme.
    Within this you will have a functions file (not a bbpress-functions file), and you would put the functions code for the custom role in the functions file.

    see

    Functions files and child themes – explained !

    The your styles should work, and the custom role should work

    @robin-w

    Moderator

    None of the links work I followed all of the steps indicated here https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/#3-%C2%A0creating-a-forum-page

    Did you use method 1 or 2?

    In reply to: Cannot import forums!

    @robin-w

    Moderator

    ok, funnily enough there is no ‘importer’ for bbpress 2.x – it is in plan, but not yet written

    You can use
    on the old site
    tools>export and select forums topics and replies
    on the new site
    tools>import (and select wordpress if needed)

    But this is not perfect – if you don’t have the users matching between sites, then this will/can/may (not sure which) fail.

    How have you set users up on the new site?

    @robin-w

    Moderator

    Ok, you are certainly not stupid, and we’ll work you through to a resolution 🙂

    ok we have 4 elements in bbpress
    1. A forum that is a type called category – this contains other forums
    2. A forum that is a type called forum – this will contains topics and replies

    These forum types are set in dashboard>forums and on the top right hand side

    3. a topic – this will belong to a forum
    4. a reply – this will belong to a topic

    Can you confirm that you’ve set up a topic in any of the forums.

    If not go into Dashboard>topics>new topic and create a test topic.

    If your forums are all just forums, then without topics, they have nothing to list.

    If you think you have created a topic go into dashboard>topics and see if you can see topics in there, and which forums they belong to

    @robin-w

    Moderator

    As @pinkishhue suggests, try

    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, switch to a default theme such as twentytwelve, and see if this fixes.

    this should get you to a working platform from which you can work out where the issue lies.

    @robin-w

    Moderator

    Ok, thanks and yes we can fix that.

    1. the code is missing ‘);’ by mistake, it should read

    function mycustom_breadcrumb_options() {
        // Home - default = true
        $args['include_home']    = false;
        // Forum root - default = true
        $args['include_root']    = false;
        // Current - default = true
        $args['include_current'] = true;
     
        return $args;
    }
     
    add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options');
    

    The extra ‘);’ is right at the end

    I’ve fixed the documentation

    2. as stated in https://codex.bbpress.org/functions-files-and-child-themes-explained/

    you should not be adding code to the end of a main theme’s functions, but should be creating child theme. By all means leave it there and test that it works, but then create a child theme and move it there or you risk losing the change on an update. I’ll try and make this even clearer in the documentation – it is a first version !

    Hope that helps you, and please come back with any further issues ! 🙂

    @robin-w

    Moderator

    suggest you try their support forum

    https://wordpress.org/support/theme/montezuma

    @robin-w

    Moderator

    you’ve paid for this theme, and it says it bbpress compatible, so take this up with the support forum. you should get what you paid for.

    @robin-w

    Moderator

    Ok, good questions, and I’ve been meaning to write something on this for a while, as I’m always saying ‘drop this in your functions file’

    so new page in the codex

    Functions files and child themes – explained !

    Feedback welcome on what is clear/not clear !!

    @robin-w

    Moderator

    on registration, you will need to have auto-registration completed in

    dashboard>settings>general and under membership check the anyone can register tab

    you’ll then find register is added to the login boxes, and you can add ‘/wp-login.php?action=register’ to the login widget

    on your breadcrumb issue see

    Layout and functionality – Examples you can use

    @robin-w

    Moderator

    Thanks for that, it lets me know that there are two of you with the issue (so far – there will be more!)

    When does the error occur – as soon as you enter the website, when you enter the forums or some other action?

    Can you also tell me

    What versions of
    Bbpress
    Wordpress

    You are using

    And what theme

    And what plugins.

    @robin-w

    Moderator

    great – glad you’re fixed

    @robin-w

    Moderator

    Thanks, can you revert to version 1.8.1 for the moment

    download 1.8.1 to your PC from

    bbp Private Groups

    then deactivate the current private groups plugin version, then delete it – don’t worry you won’t lose any data ! – and then upload the version from your PC and activate.

    If you haven’t also emailed me, then so far I have two people affected by this, and I’m looking into it.

    @robin-w

    Moderator

    you may also need to re-align your expectations of support – this site is manned by volunteers, and a less than 1 hr response is unlikely – please leave a little more time (like 1 day) before bumping a topic 🙂

    @robin-w

    Moderator

    WHat can i do?

    you could post a link to a page that works 🙂 I just get ‘this page cannot be displayed’

    But also have you read

    Step by step guide to setting up a bbPress forum – Part 1

    @robin-w

    Moderator

    Try adding this to your functions file, it may/should work – have never tried it in a different language !

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'super administrador' ) {
    	$translated_text = 'administrador';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );

    @robin-w

    Moderator

    Not quire sure what you are after – can you give a specific example?

    @robin-w

    Moderator

    @robin-w

    Moderator

    Great, thanks I’ll take that version to live shortly

    @robin-w

    Moderator

    These are exactly the questions I was asking 6 months ago, so I sense your frustration !!

    I was expecting to write some stuff on filtering, but having had a quick look at ‘bbp_new_topic_handler’ this doesn’t have any real filtering capability, although it does have some url filters.

    Fuller than probably needed answer for the benefit of others !
    Ok so you can usually
    either filter a function either using bbp_parse_args where you want to change some paramters that are being passed to wp-query

    or filter the whole function – if it ends with ‘return apply_filters(..)’ then you can easily copy the whole function and alter it within your child theme, just rename it slightly and then add a filter
    so a fictional function called ‘add_name’ in bbpress ends with
    Return apply_filters (‘add_name’, $name) ;

    you simply copy the whole function and change ‘add_name’ to say ‘my_add_name’ then add a line
    add_filter (‘add_name’, ‘my_add_name’)

    and wordpress will use your function to replace the original.

    But for your function, there is a url filter near the edn but otherwise this is a function that does, so no neat parameters that are replaceable at the end !

    I searched bbpress for where this function is used, and in includes/core/actions.php it is added as an action to wherever bbp_post_request is used

    Searching for that gets me a bit confused, as I’m not familiar with what this does, and have limited time to chase it down.

    Now, having written all that as I was going along, if I were you I’d do one of two things

    1. Go further back and find what is calling the function, and then change that. If it is a template, you can alter that in a bbpress folder within your theme to call your function instead, and neither will get overwritten by upgrades.

    2. There is no problem in changing core bbpress files as long as a) you are happy you know what you’re doing and b) you make a note of the changed function.

    Then on each upgrade, you’ll need to look at whether any code in the function has changed, and if not just overwrite it again. If it has changed, then you’ll need to redo your amendment taking into account the new code. But you sometimes need to do that anyway for a child theme function where bbpress is dealing differently with it.

    Yes changing core is ‘frowned’ upon, but only because people do it and then get upset when it is overwritten and they can’t remember what they changed !! Do it with knowledge and you’ll be fine !

    After all it just some code that someone’s written, and any ‘rules’ are just made up and have no authority !

    @robin-w

    Moderator

    @lumartist

    Ok I have fixed this issue – can you download version 1.9 from

    bbp Private Groups

    and test it to ensure it also works for you.

    if so, I’ll load it to wordpress plugins for general release

    @robin-w

    Moderator

    Ok I am making progress, and have tracked down the function concerned. Now I just need to work out how ‘profile’ calls this and I should be able to fix !

    In reply to: Latest 5 Topics?

    @robin-w

    Moderator

    Thanks !

    @robin-w

    Moderator

    Great – glad you’re fixed !

Viewing 25 replies - 12,751 through 12,775 (of 14,219 total)