Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 4,351 through 4,375 (of 14,282 total)
  • @robin-w

    Moderator

    might be taking out spaces after the $ signs eg

    return $ content;

    should be

    return $content;

    @robin-w

    Moderator

    great – glad you are fixed !!

    @robin-w

    Moderator

    hhmm… not sure how that would prevent the forums being shown

    I’d suggest you add that code to

    form-topic.php and form-reply.php

    @robin-w

    Moderator

    probably filter on

    add_filter ('bbp_get_reply_content', 'add_image_responsive_class');
    add_filter ('bbp_get_topic_content', 'add_image_responsive_class');

    @robin-w

    Moderator

    so what does ‘ I’ve achieved this by editing all of the template files that bbPress has dealing with viewing a reply or being able to post. ‘ mean ?

    @robin-w

    Moderator

    great – glad you are fixed !

    @robin-w

    Moderator

    you could try this in the custom css part of your theme

    #bbp_stats_widget-2 dt {
    padding-right: 10px;
    }

    @robin-w

    Moderator

    if only registered users can post, then I’d start by looking at how they are registering – bbpress just uses wordpress registration, so how are your users joining ?

    In reply to: Moving Breadcrumbs

    @robin-w

    Moderator

    andy, great glad you are fixed – sorry was on anther task whilst you were keeping us updated on progress πŸ™‚

    @robin-w

    Moderator

    πŸ™‚ thanks

    @robin-w

    Moderator

    great – glad you ae fixed !!

    In reply to: Moving Breadcrumbs

    @robin-w

    Moderator

    if you want the bbpress breadcrumb in the forums, then you would need to find out which theme template astra is using to display the forum page.

    You would then use this template and rename to bbpress.php and add the breadcrumb back which is what I think the first link you quoted was trying to do.

    This plugin will tell you which tempate is being used

    What The File

    and then (presuming you are using a child theme) you would copy that template (quite often page.php) and rename it bbpress.php.

    you would then add

    <div class="truebreadcrumbs"><?php bbp_breadcrumb(); ?></div>

    in the appropriate place in that file

    @robin-w

    Moderator

    should do !

    In reply to: Moving Breadcrumbs

    @robin-w

    Moderator

    looking at that suggestion, not sure what 1 & 2 are trying to do – not a section I wrote !

    so to move them out of bbpress, then yes, use css and do this

    div.bbp-breadcrumb {
     display: none; /*this will hide all breadcrumbs*/
     }

    put this in your theme’s custom css file.

    The other part will be theme dependant – are you creating a theme or using an existing one?

    @robin-w

    Moderator

    the easiest way is

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Topics Index Styling and tick item 16 don’t show this message

    if you want to do it using FTP then

    find
    wp-content/plugins/bbpress/templates/default/bbpress/feedback-no-topics.php

    transfer this to your pc and remove

    <div class="bbp-template-notice">
    	<ul>
    		<li><?php esc_html_e( 'Oh, bother! No topics were found here.', 'bbpress' ); ?></li>
    	</ul>
    </div>

    and save (this file must exist, but we just make it empty!)

    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

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/feedback-no-topics.php

    bbPress will now use this template instead of the original

    @robin-w

    Moderator

    yes if I have got it right πŸ™‚

    @robin-w

    Moderator

    no problem – glad you are fixed !!

    @robin-w

    Moderator

    πŸ™‚

    @robin-w

    Moderator

    my mistake should be

    main a {
    	text-decoration: underline !important;
    }
    a.bbp-topic-permalink { 
            text-decoration: none !important;
    }
    In reply to: User Statistics

    @robin-w

    Moderator

    Anyone coming new to this thread, I have added a revised version of this plugin to my site which can be downloaded from

    bbpress-improved-statistics-users-online

    This plugin is one which WordPress withdrew as it violated their guidelines (suspected to be listing users without login, but not certain).

    You can download and use, but I offer no support or warranty that this code works !

    @robin-w

    Moderator

    ok your code is

    main a {
    	text-decoration: underline !important;
    	a.bbp-topic-permalink { text-decoration: none: !important;
    	}: ;
    }

    it should be

    main a {
    	text-decoration: underline !important;
    }
    a.bbp-topic-permalink { 
            text-decoration: none: !important;
    }

    @robin-w

    Moderator

    I’ve just updated the topics for posts plugin πŸ™‚

    @robin-w

    Moderator

    is it still in there?

    In reply to: User Statistics

    @robin-w

    Moderator

    I removed the trailing comma after β€œDESC”.

    good spot !

    great – that should now be fine.

    Since we have now added the ‘wp-approve…’ as a dependency, I’ll amend the version that I put on my site which will then match yours and then add this below.

    In reply to: User Statistics

    @robin-w

    Moderator

    so in the statsistics plugin you are changing

    $latest_user = get_users(
                    array(
                        'number' => 1,
                        'fields' => array("user_login", "ID", "display_name"),
                        'orderby' => "registered",
                        'order' => "DESC",
    		'meta_key' => 'wp-approve-user',
    		'meta_value' => '1'
                    )
                );

    to

    //set up $args with core arguments needed
    $args =  array(
                        'number' => 1,
                        'fields' => array("user_login", "ID", "display_name"),
                        'orderby' => "registered",
                        'order' => "DESC",
    		) ;
    		
    //add additional meta data to $args if wp-approve-user is active
    if (class_exists ('Obenland_Wp_Approve_User')) {
    	$args ['meta_key'] = 'wp-approve-user' ;
    	$args ['meta_value'] = '1' ;
    }	
    
    //then do the lookup
    $latest_user = get_users($args) ;
    
Viewing 25 replies - 4,351 through 4,375 (of 14,282 total)