Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 6,876 through 6,900 (of 7,345 total)

  • Robin W
    Moderator

    @robin-w

    bbPress by default tries to use your themes default templates as it’s base. So it is already using your theme’s page template, maybe not the particular one you’re after, but it will be for your theme, or one you have created.

    It will look for the following files in your theme in this order, and use that for it’s forums

    plugin-bbpress.php
    bbpress.php
    forums.php
    forum.php
    generic.php
    page.php
    single.php
    index.php

    See https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ for more detail and how to get it to use a particular template.

    Since some theme writers create a bbpress template, and some have variously named page templates, it would be kinder hard to get bbpress to work out which of your themes files are page templates, and which you want to use.

    Yes, getting the right template to display forums can involve you in renaming and moving some files, but that’s because you have decided to use a non-default theme (no criticism), and so your theme writer and the writers of bbpress would need to be telepathic to know how the other one is going to code. As I said some themes actively allow for bbpress, for others it is just one of thousand of plugins.

    The plugin bbPress Tweaks

    https://wordpress.org/plugins/bbpress-wp-tweaks/

    In dashboard>settings>bbpress tweaks allows you to select from available templates as a dropdown, so partly achieves what you are after.

    I fully appreciate that WordPress and plugins can cause a lot of frustration, and no you’re definitely not a troll (yet!), but less heaven and hell in your posts would be better!


    Robin W
    Moderator

    @robin-w

    glad you’re fixed !


    Robin W
    Moderator

    @robin-w

    Laurie,

    Would need some code to do this

    If you’re into coding, suggest you download

    https://wordpress.org/plugins/bbpress-notify/

    and crack open the code

    It should give you a good idea on how to create your own code.

    if not try putting it on wp-jobs

    http://jobs.wordpress.net/

    and see if someone will pick it up for you

    In reply to: Freshness Date Format

    Robin W
    Moderator

    @robin-w

    Stephen,

    Is there a quick and easy way to amend the headings other than amending the template?

    eg loop-topics.php has

    <ul class="forum-titles">
    ...
    ...
    <li class="bbp-topic-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></li>
    </ul>
    
    In reply to: Freshness Date Format

    Robin W
    Moderator

    @robin-w

    “Edit: That said, has anyone tried the code in the link you posted?”

    I’ve just loaded it and it seems to work fine

    function wpse_77441_change_time_format( $anchor, $forum_id )
    {
        $last_active = get_post_meta( $forum_id, '_bbp_last_active_time', true );
    
        if ( empty( $last_active ) ) {
            $reply_id = bbp_get_forum_last_reply_id( $forum_id );
    
            if ( !empty( $reply_id ) ) {
                $last_active = get_post_field( 'post_date', $reply_id );
            } else {
                $topic_id = bbp_get_forum_last_topic_id( $forum_id );
    
                if ( !empty( $topic_id ) ) {
                    $last_active = bbp_get_topic_last_active_time( $topic_id );
                }
            }
        }
    
          $date   = get_post_time( get_option( 'date_format' ), $gmt, $reply_id, true );
          $time   = get_post_time( get_option( 'time_format' ), $gmt, $reply_id, true );
          $dt = sprintf( _x( '%1$s at %2$s', 'date at time', 'bbpress' ), $date, $time );    
    
        $time_since = bbp_get_forum_last_active_time( $forum_id );
    
        return str_replace( "$time_since</a>", "$dt</a>", $anchor );
    }
    add_filter( 'bbp_get_forum_freshness_link', 'wpse_77441_change_time_format', 10, 2 );
    add_filter( 'bbp_get_topic_freshness_link', 'wpse_77441_change_time_format', 10, 2 );
    In reply to: What is it?

    Robin W
    Moderator

    @robin-w

    I have plugin that lets you add up to 4 fields, and also one that adds the postcount

    http://www.rewweb.co.uk/bbp-topic-count-plugin/

    bbp Profile Information plugin

    Try those


    Robin W
    Moderator

    @robin-w

    This is really a question about how to ‘bundle plugins with a theme’ so I googled that and got lots of stuff including

    http://themeforest.net/forums/thread/how-to-bundle-plugins-with-a-theme/27256

    have a look around this and the other results

    In reply to: Removing "Started by:"

    Robin W
    Moderator

    @robin-w

    Ok, you need to do the following

    If you have a child theme, then do this in there

    If you don’t have a child theme, then seriously consider creating one, it’s very quick and easy, and will ensure that changes you make don’t get lost on theme or bbpress upgrades. Just google wordpress child theme videos and you’ll get lots of help.

    In your theme create a bbpress directory
    wp-content/themes/yourthemename/bbpress

    then copy

    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-topic.php to this directory so that you have
    wp-content/themes/yourthemename/bbpress/loop-single-topic.php

    Edit this file to delete line 60 which says

    <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>
    

    and save.

    bbPress will now use the file in your theme’s bbpress folder instead of the default, and you won’t lose your change on bbpress upgrades – but will it it is in your main theme, so if you don’t create a child theme, keep a note of what you changed, as if your theme updates, then you may/will lose the bbpress folder and file.


    Robin W
    Moderator

    @robin-w

    ok, then as before I’d suggest you go to yoothemes for support.

    It may be as simple as changing the page template that bbpress is using

    https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ section 8


    Robin W
    Moderator

    @robin-w

    It actually is not displaying any of your replies correctly, they are not aligned as the topic is.

    I think the culprit is two lines of code in your style sheet
    From style line 1659

    From style line 1658
    .reply {
    float: right;
    }

    .reply a {
    float: right;
    font-size: 13px;
    line-height: 22px;
    }

    Altering reply to float left and reply a to float none seems to fix it.

    But it could be that these are being used elsewhere, so just have a look around you site afterwards to check that this hasn’t altered something else.


    Robin W
    Moderator

    @robin-w

    John, really pleased that you tracked it down, and yes I’ll add it to the styling crib when I get a moment ! Often I spend hours searching for the wrong thing, the solutions here are often easy and obvious but only after you have worked them out !

    The code

    #bbpress-forums ul.bbp-threaded-replies{margin-left:25px;}
    

    is exactly the same as

    #bbpress-forums ul.bbp-threaded-replies {
     margin-left: 25px;
     }
    

    The computer simply ignores gaps, and coders only write it that latter way to make it easier to read.

    You ought to start using a child theme if you haven’t already got one. (just google child theme video, and you’ll get lots of help). it’s very quick and simple and does not affect you main theme, just allows you to add without losing on updates. Then you would create a directory in that called
    css viz wp-content/themes/yourchildthemename/css and copy your amended bbpress.css file into that. bbPress will then use that, and you won’t lose changes.

    Great that you’re fixed !


    Robin W
    Moderator

    @robin-w

    Did you disable the stylepress plugin, as it seems to be pointing to that?

    This plugin is no longer maintained viz

    https://wordpress.org/plugins/style-press/

    I’d also post a query on the yootheme suppprt site, as they may have come across this


    Robin W
    Moderator

    @robin-w

    Seems you have some theme conflicts

    To save me searching, can you post live links to the pages you have in your screenshots, and I’ll take a look


    Robin W
    Moderator

    @robin-w

    No it shouldn’t slow the site down, pictures are an inherent part of any modern website.

    However your host provider will have website size limiys, and it may fill that- so you need to keep an eye on it.

    In most cases people don’t go mad with photos, but depends on the nature of our site!

    In reply to: How to users LOGOUT?

    Robin W
    Moderator

    @robin-w

    In fact just done it

    Layout and functionality – Examples you can use

    item 12

    have a look


    Robin W
    Moderator

    @robin-w

    would require some rewrites of templates.

    How into coding are you?


    Robin W
    Moderator

    @robin-w

    couldn’t where ‘dashcamtest.de’ was in your example.

    The code is in loop-single-reply, which should show the title using line 22


    Robin W
    Moderator

    @robin-w

    That’s the way it works at the moment – it annoys me as well

    You could use the plugin

    WP Modal Login

    This has a modal (popup) login that is happy for you to get it wrong.

    It has a widget that you can use. it’s not a pretty in the widebar as the bbpress one, but smarter when it’s launched.

    I have just started using this linked to a menu item, will be documenting how to do the latter when I get a moment.


    Robin W
    Moderator

    @robin-w

    speed wise – this executes as fast as any other menu command on my websites

    which menu do you want it to appear on, and is it a custom menu?


    Robin W
    Moderator

    @robin-w

    do_action( ‘bbp_template_before_forums_loop’ );
    does nothing !

    It is the hook onto which you would add an action using a function and an “add_action” command.

    If you want to alter behaviour, the it is probably the function after it that you would want to filter.

    Come back and describe what you’re trying to achieve and I’ll try and help further


    Robin W
    Moderator

    @robin-w

    You should be looking at the bbpress.css

    Suggest you look for Topic and reply content and look at padding


    Robin W
    Moderator

    @robin-w

    Is this a new installation, or has this just started on an old one.

    Try disabling all other plugins, and seeing if that fixes it. If so then re-add back one at a time to see which is causing.

    If none, the switch to a default theme such as twentytwelve and see if it still occurs

    Come back and let us know the results


    Robin W
    Moderator

    @robin-w

    Try

    Step by step guide to setting up a bbPress forum – part 4

    The actions are used in the templates held in

    wp-content/plugins/bbpress/templates/default/bbpress/

    In reply to: How to users LOGOUT?

    Robin W
    Moderator

    @robin-w

    There’s some code in the documentation to add a Login/Logout to the menu

    see

    Layout and functionality – Examples you can use

    item 11.

    I am documenting a ‘modal’ (popup) login to add in a few days.

    In reply to: How can I Delete topic

    Robin W
    Moderator

    @robin-w

    You could make one, but if you have the correct privileges you have options in the header of each topic including “trash” which will put it in the trash.

    You can also do this from the Dashboard>forums>topics (or replies) and permanently delete it from there

Viewing 25 replies - 6,876 through 6,900 (of 7,345 total)