Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 11,651 through 11,675 (of 14,283 total)
  • @robin-w

    Moderator

    As you no doubt already know, this is just a warning message, and bbpress say it is an issue with wordpress, and are waiting for wordpress to fix. Also as you know (but for others reading this), turning off debug fixes this.

    If you want it to disappear whilst you are developing (and so need debug on), then go to

    wp-content/plugins/bbpress/includes/core/sub-actions.php

    and comment out/change line 147

    _doing_it_wrong( __FUNCTION__, __( 'The current user is being initialized without using $wp->init().', 'bbpress' ), '2.3' );
    
    

    to

    //_doing_it_wrong( __FUNCTION__, __( 'The current user is being initialized without using $wp->init().', 'bbpress' ), '2.3' );
    
    

    and change back after developing as well as turning debug off for the production environment

    @robin-w

    Moderator

    thanks for posting this

    @robin-w

    Moderator

    @2cats

    I often find when you leave a problem alone, the brain mulls it over in the background, so awoke in the middle of last night knowing what the issue was, so I have now fixed the problem with speedy searches !

    Can you try a new version of 2.5.3 beta, as before delete current plugin, download and add new

    http://www.rewweb.co.uk/private-groups-2-5-3/

    And let me know that this does what is expected !

    @robin-w

    Moderator

    The template you’ll want to alter is

    loop-single-reply

    Would take a lot of altering

    create a directory on your theme called ‘bbpress’
    ie wp-content/%your-theme-name%/bbpress
    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-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/%your-theme-name%/bbpress/loop-single-reply.php
    bbPress will now use this template instead of the original

    @robin-w

    Moderator

    This is an error in wordpress and awaiting their fix

    https://bbpress.trac.wordpress.org/ticket/2412

    Switching off debug fixes it, but appreciate that it is annoying !

    @robin-w

    Moderator

    Forums are stored in the database, so you will not find them using ftp

    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 twentytwelve, and see if this fixes.

    In reply to: No topics to convert?

    @robin-w

    Moderator

    Hey sorry that we didn’t get round to you – it is all volunteers that support this forum, and thanks for posting the solution to help others in future

    @robin-w

    Moderator

    great – glad it’s working.

    I did have an alternate faster solution which worked fine on my large test site UNLESS you hit the breadcrumb search after doing a search, when it ran out of memory! Go back to search via any other route and it was fine ! I’m still seeing if I can crack the issue with that (lots of resets) so I might come up with a faster solution.

    Let us know how you get on.

    If I don’t find a better solution in a few days, I’ll take that one live so that you get further updates via the usual route.

    @robin-w

    Moderator

    @cbsy lots of ways to achieve this – two below

    1. Look in

    Dashboard>settings>forums>Forum Root slug, and see what ‘forum root’ is set to

    The create a page with this name on it – so title the page this

    The in that page write whatever intro you want, and then put

    [bbp-forum-index] at the bottom of the content

    bbpress will then use this page as your forum root.

    2.

    Add the following to your functions file

    add_action ('bbp_template_before_forums_index' , 'my_intro' ) ;
    
    Function my_intro () {
    Echo '<div class="entry-content"> Here is my intro text. This is lots of writing to introduce the forums and make people read this stuff </div>' ;
    }
    
    

    Functions files and child themes – explained !

    If you hit prolems or need further help, just come back !

    @robin-w

    Moderator

    Try the following

    //adds login/logout to menu
    //filter to add login/logout to menu
    add_filter( 'wp_nav_menu_items', 'my_nav_menu_login_link' );
    function my_nav_menu_login_link($menu) {
        //uncomment the next line if you only want login on bbpress pages
        //if(is_bbpress()) {
        if (is_user_logged_in()) {
            //set the $url on the next line to the page you want users to go back to when they logout
            $url = 'http://www.mysite.com/forums' ;
            $url2=wp_logout_url($url) ;
            $loginlink = '<li><a title="Logout" href="'.$url2.'">Logout</a></li>';
            }
        else {
            $current_user = wp_get_current_user();
            $user=$current_user->user_login ;
            //set $page on the next line = the permalink for your login page
            $page='login' ;
            $loginlink = '<li><a href="/'.$page.'/">Login</a></li>';
                    }
        //uncomment out the next lines if you only want login on bbpress pages
        //      }
        //  else {
        //  $loginlink="" ;
        //      }
            $menu = $menu . $loginlink;
            return $menu;
    }

    @robin-w

    Moderator

    Just had a look at your site, and you seem to have ‘fixed’ this – correct, and if so how did you do it?

    If by altering core file, let me know, and I’ll give you a better solution.

    @robin-w

    Moderator

    ok, presume you’ll progress with the theme author

    @robin-w

    Moderator

    try changing ‘logout’ to “logout”

    @robin-w

    Moderator

    Several plugins that will do this for you, bbpress stores the entries as 3 custom post types, Forums, Topics, and Replies

    I googled ‘wordpress export custom post to excel’ and got several inc.

    https://wordpress.org/plugins/wp-ultimate-csv-importer/

    https://wordpress.org/plugins/custom-csv-exporter/

    @robin-w

    Moderator

    easiest way would be to uncode my shortcode

    bbp additional shortcodes

    or just use the do_shortcode function within your code

    https://codex.wordpress.org/Function_Reference/do_shortcode

    @robin-w

    Moderator

    I’m sorry but I don’t understand what you mean.

    What shortcodes – where?

    You will need to either provide examples or explain further.

    Sorry, but I am trying to help you, but there are hundreds of ways to set up wordpress/bbpress so need clear issues to resolve eg it looks like this, it needs to look like this

    @robin-w

    Moderator

    it should be :

    Dashboard>settings>forums>forum root slug and set to forums

    @robin-w

    Moderator

    Not sure what you questions is, but maybe the answer is

    https://wordpress.org/plugins/bbp-last-post/

    @robin-w

    Moderator

    sorry end of a long day, and brain is frying after several hours coding, so apologies.

    can you show your current breadcrumb, and what it links to, and the desired breadcrumb and what you would like it to link to

    @robin-w

    Moderator

    Hey great that the first bit works, let me know re the second, we’ll get it working if not 🙂

    @robin-w

    Moderator

    ok, this has driven me mad again ! I hated search last time, and I hate it even more now 🙂 – problem is that the results can be forums, topics or replies, and each one needs checking.

    BUT I have fixed the pagination.

    The downside is that searches will run slowly, as on each search I have to compile a full list of all forums, topics and replies that the user can see before running the search query. This takes time.

    Previously I had tried to just check the current page, but that is what led to the pagination problem.

    So can you try :

    http://www.rewweb.co.uk/private-groups-2-5-3/

    Follow the instructions, and confirm that this is working for you.

    Sorry, but I cannot see an easy way to speed up search, so it’s a trade off, slow search and private groups, or fast search and no private groups unless I have a brainwave in the next few hours.

    Anyway come back and let me know if this works on your site

    @robin-w

    Moderator

    @geeorgegeorge

    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 twentytwelve, and see if this fixes.

    then come back

    @robin-w

    Moderator

    Great – glad you’re fixed, and thanks for coming back to let me know !

    @robin-w

    Moderator

    No that’s fine – do have a really large amount of topics/forums?

    I’ll take another look at the code

    @robin-w

    Moderator

    I suppose I’m after

    logged in as full user with all forums 174 results
    Logged in as admin user – 20 results but should see all 174 – correct?
    Logged in as user able to see only public forums – 18 results but should see xx
    Logged in as a private user – xx results but should see yy results

Viewing 25 replies - 11,651 through 11,675 (of 14,283 total)