Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 8,826 through 8,850 (of 13,530 total)

  • Robin W
    Moderator

    @robin-w

    I’d need a link to your site


    Robin W
    Moderator

    @robin-w

    great – glad you are fixed !


    Robin W
    Moderator

    @robin-w

    I wasn’t planning to make this a permanent tool, just trying to help rajaindian out.

    I’ll think about whether to develop it further, but it won’t be soon, 6 other plugins and my proper job keep me busy !


    Robin W
    Moderator

    @robin-w

    ok, something has changed, it could be a theme or plugin update

    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


    Robin W
    Moderator

    @robin-w

    @barryhughes-1 thanks for posting back, and for the examples.

    This is a whole new area, and whilst I am only interested out of eerrrmmm… interest, if others come up with things they need to achieve, I might be tempted to do a bit more.

    thanks again for your valuable contributions !!


    Robin W
    Moderator

    @robin-w

    Great – glad it works !!


    Robin W
    Moderator

    @robin-w

    to hide the date at the top, put this in your css

    .bbp-reply-post-date {
      display: none;
    }

    Then to add to the list add this to your functions file

    add_action ('bbp_theme_after_reply_author_details', 'rew_display_date');
    add_action ('bbp_theme_after_topic_author_details', 'rew_display_date'); 
    
    function rew_display_date () {
    	?>
    	<span class="bbp-reply-post-date"><?php bbp_reply_post_date(); ?></span>
    	<?php
    }
    

    Robin W
    Moderator

    @robin-w

    can be done

    try

    http://jobs.wordpress.net/

    or contact me via my website

    http://www.rewweb.co.uk


    Robin W
    Moderator

    @robin-w

    This would need some bespoke coding

    you could try

    http://jobs.wordpress.net/

    or contact me via

    http://www.rewweb.co.uk


    Robin W
    Moderator

    @robin-w

    whilst in the forums list a sub private forum will not show, if the sub forum is set to public, then searches would show as the forum it belongs to is private.

    So set every forum that you wish to be private to Private

    If you don’t want the word private to appear – and I hate it showing! – then you can add this to your functions file

    add_filter('private_title_format', 'ntwb_remove_private_title');
    function ntwb_remove_private_title($title) {
    	return '%s';
    }

    or add my plugin which has this and many other features

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

    and set this to hide in
    dashboard>settings>bbp style pack>forum display item 4


    Robin W
    Moderator

    @robin-w

    ok, so something must have happened to make you lose them. Have you installed other plugins or changed themes?

    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


    Robin W
    Moderator

    @robin-w

    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

    @robin-w

    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

    @robin-w

    can you go to

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


    Robin W
    Moderator

    @robin-w

    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

    @robin-w

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


    Robin W
    Moderator

    @robin-w

    great – glad you are fixed


    Robin W
    Moderator

    @robin-w

    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

    @robin-w

    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

    @robin-w

    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

    @robin-w

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


    Robin W
    Moderator

    @robin-w

    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

    @robin-w

    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

    @robin-w

    ok, all I get is

    Oh bother! No forums were found here!

    I’m guessing you forums are private?


    Robin W
    Moderator

    @robin-w

    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 ) : ?>
    
Viewing 25 replies - 8,826 through 8,850 (of 13,530 total)