Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 13,776 through 13,800 (of 14,128 total)
  • @robin-w

    Moderator

    @donutz – thanks for sharing that, I’ll add it to the codex when I get a moment !

    In reply to: css problem..

    @robin-w

    Moderator

    take out the word div !

    .bbp-search-form {
    display:none !important;
    }
    

    @robin-w

    Moderator

    First thought is to de-activate, delete and re-install the plugin.

    Come back if that doesn’t work

    @robin-w

    Moderator

    Great, glad to hear you’re fixed, and have just added the code to one of my forums. One of those moments when you see something and think “that looks better”!.

    In reply to: Forum Index Scrunched

    @robin-w

    Moderator

    without spending time looking at defkon’s solution, I could say.

    However if you get the page template working, then copying that to a bbpress.php will ensure that bbpress uses it, and you can revert the page.php back to how it was, so it shouldn’t have any implications elsewhere on your site

    @robin-w

    Moderator

    so the answer is

    function short_freshness_time( $output) {
    $output = preg_replace( '/, .*[^ago]/', ' ', $output );
    return $output;
    }
    add_filter( 'bbp_get_time_since', 'short_freshness_time' );
    add_filter('bp_core_time_since', 'short_freshness_time');

    Drop this into your functions file

    @robin-w

    Moderator

    Think it’s as simple as

    is_bbpress()

    so try

    <div class="breadcrumbs">
        if(function_exists('bcn_display') && is_bbpress())
    {
    bcn_display();
    }</div>
    
    

    Haven’t checked the syntax, I’ll let you do that

    @robin-w

    Moderator

    Give me a day or two, and I’ll come back with a more detailed response.

    @robin-w

    Moderator

    Yes, it’s doable, but I’ve not yet delved into how to do it !

    @robin-w

    Moderator

    Great – glad you’re sorted

    @robin-w

    Moderator

    yes, you can customise for bbpress only – I’m actually adding this to the documentation as I write this, as it’s not obviously there !

    @robin-w

    Moderator

    yes, no problem.

    Make a copy of your theme page template that is full width, rename it bbpress.php and put in into your theme directory. bbPress will then use this for all it’s layout.

    @robin-w

    Moderator

    For bbPress specific functions, you’ll generally find the functions in template-tags.php files

    bbp_get_forum_last_active_id()

    is in forums

    wp-content/plugins/bbpress/includes/forums/template-tags.php

    @robin-w

    Moderator

    ok, suggest you start by running a forum repair – probably not the cause, but would eliminate

    dashboard>tools>forums>repair – run one at a time

    Then I’d be looking at a conflict in plugins. Disable all plugins except bbpress and see if you still have the issue. If it goes away, re-enable plugins one at a time to work out which is causing the conflict. If that doesn’t work, switch to a default theme (say tewentytwelve) and see if that fixes it.

    @robin-w

    Moderator

    I thought that’s what it did in default mode.

    If you are using shortcodes, then you have options

    [bbp-topic-form] – Display the ‘New Topic’ form where you can choose from a drop down menu the forum that this topic is to be associated with.
    [bbp-topic-form forum_id=$forum_id] – Display the ‘New Topic Form’ for a specific forum ID.

    Otherwise come back with a url where this isn’t happening

    In reply to: LABELS

    @robin-w

    Moderator

    yes,

    Dashboard>settings>forums>forum root slug to change the urls and breadcrumbs – just change forums to what you want it to say

    Tp change the forum heading on the forums list, make a copy of

    wp-content/plugins/bbpress/templates/default/bbpress/loop-forums.php

    and place this in a folder

    /wp-content/themes/%your-theme%/bbpress/

    see https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-3/ for a tutorial on this subject

    Then edit line line 19 which says

    <li class="bbp-forum-info"><?php _e( 'Forum', 'bbpress' ); ?></li>
    

    to

    <li class="bbp-forum-info"><?php _e( 'Elephant', 'bbpress' ); ?></li>
    

    and it will say elephant instead of forum.

    @robin-w

    Moderator

    you can use the following shortcodes in a page or post

    [bbp-topic-form]
    Display the ‘New Topic’ form where you can choose from a drop down menu the forum that this topic is to be associated with.

    [bbp-topic-form forum_id=$forum_id]
    Display the ‘New Topic Form’ for a specific forum ID.

    In reply to: Forum Index Scrunched

    @robin-w

    Moderator

    ‘Thats the odd part, they are both using the default…and switching between the various different templates doesn’t seem to modify it. The theme has an internal setting that allows you to dictate how many ‘columns’ are shown. I can get it to show full page if I switch that around, but then my article page is also shown full (one column) I’m looking at the code further to try and figure out how to isolate one from the other’

    Think that’s the route to go.

    bbPress looks at the root of your theme for “bbpress.php” as a page template. if it doesn’t find it, it’ll use your themes “page.php”.

    It sounds like your “page.php” page (whatever it’s called), has a parameter to set the columns, so within this they’ll be an “if” statement which is setting this.

    What I think you need to do is as suggested in my first post. Copt the page file and call it “bbpress.php”. You should be able to find in that file where it is using the setting to create the columns and take this out. Alternately look in the twentyfourteen theme for the full page template and compare this to your file. You should be able to cobble the two together to get it to work.

    If none of that works, (or alternately!) contact the theme developer to see if they have a solution.

    In reply to: Form To Forum Post

    @robin-w

    Moderator

    Suspect that there are values in a “forum” post that you need to populate.

    I suspect (but don’t know) that the forum will be a category, and the topics will be posts. Therefore you need to link your topic to it’s forum so need to link the post to it’s category.

    Try searching round phrases such as “wordpress post category in database” which got me a bunch of articles eg

    http://stackoverflow.com/questions/2848505/how-does-wordpress-link-posts-to-categories-in-its-database.

    ‘I guess the developers don’t visit their own forum anymore?’ – sounds critical, the developers are busy developing – remember this is all free stuff, and no-one pays their, or indeed my time to do this. They do regularly visit, but I would not expect to get a load of development advice for free to do something that is not in significant demand. Even writing this took ten minutes !

    I hope you find a solution, and in the spirit of free open source, post the solution when you get it. I’ll add it to the codex, so that others can benefit.

    Regards

    Robin

    @robin-w

    Moderator

    not in the core, but I believe this plugin does what you want

    https://wordpress.org/plugins/bbpress-direct-quotes/

    In reply to: no replies vue

    @robin-w

    Moderator

    is this just replies? and just in back office?

    I seem to remember somewhere that there was an issue with bbPress and localhost – something to do with the IP address resolution, but can’tv remember what it was and how it was fixed, so this may not be relevant !

    In reply to: Forum Index Scrunched

    @robin-w

    Moderator

    Looks like it is bbpress selecting the default page from your theme, which looks like a tree columns one.

    Your “about” page is full screen, so if that’s what you want, suggest you make a copy of whatever .php that is using (eg fullwidth.php) from your theme file, and then rename the copy file to bbpress.php and put it in the same theme folder as the original. Then bbpress will use that as it’s page file.

    In reply to: Form To Forum Post

    @robin-w

    Moderator

    Think this is beyond the scope of a help forum ! It would take me much research and many hours to document.

    Suggest you post to

    http://jobs.wordpress.net/

    and see if someone will create it for you.

    @robin-w

    Moderator

    I think those words are in your page 322

    You should just have the following in contents

    [bbp-login]
    

    I think you have

    [bbp-login] - Display the login screen.
    

    @robin-w

    Moderator

    ok, think the ones on the page link are around line 90 (my .css is different, so exact lines may vary) – look for

    #bbpress-forums li.bbp-header,
    #bbpress-forums li.bbp-footer {
    	background: #f3f3f3;
    	border-top: 1px solid #eee;
    	font-weight: bold;
    	padding: 8px;
    	text-align: center;
    }
    
    #bbpress-forums li.bbp-header {
    	background: #eaeaea;
    }
    

    and change background to the same as above.

    They may be some others as you go through. Come back with any that are still niggling, and I’ll chase them down for you.

    As you are making changes to bbPress templates, make a copy of the file onto your PC, and keep a list of what you changed, as any bbPress updates will override this file.

    You should revisit child themes when you get some more time, as this is a better way to do it, but the way you’re doing will work fine (and was what I did in the early days!).

Viewing 25 replies - 13,776 through 13,800 (of 14,128 total)