Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 10,951 through 10,975 (of 14,141 total)
  • @robin-w

    Moderator

    just to jump in here

    bbporess 2.5.5
    wordpress 4.1.1
    Twentyten theme

    and no other plugins does not have this issue.

    Therefoere it is likely to be a plugin or theme issue

    as suggested by Robkk, suggest you

    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 are fixed !

    @robin-w

    Moderator

    Could be many things that have been set in your theme or plugins.

    you best bet would be to hire someone to fix

    http://jobs.wordpress.net/

    @robin-w

    Moderator

    @robin-w

    Moderator

    Most of the filters are held in the templates that are located as follows :

    wp-content/plugins/bbpress/includes/forums/template.php
    wp-content/plugins/bbpress/includes/topics/template.php
    wp-content/plugins/bbpress/includes/replies/template.php
    wp-content/plugins/bbpress/includes/users/template.php
    wp-content/plugins/bbpress/includes/search/template.php

    There are two typically filters, one on the final function usually within the ‘return’, and one that mimics wordpress’s ‘before’ filters
    from the docs

    Near the beginning of many functions we find :

    
    // Parse arguments against default values
        $r = bbp_parse_args( $args, array(
            'before'            => '<ul class=&quot;bbp-forums-list&quot;>',
            'after'             => '',
            'link_before'       => '<li class=&quot;bbp-forum&quot;>',
            'link_after'        => '',
            'count_before'      => ' (',
            'count_after'       => ')',
            'count_sep'         => ', ',
            'separator'         => ', ',
            'forum_id'          => '',
            'show_topic_count'  => true,
            'show_reply_count'  => true,
        ), 'list_forums' );
     

    This is a common format throughout bbPress, and indeed is similar to a function used throughout wordpress.

    It uses a function called bbp_parse_args to create a filter against all the arguments.

    The filter created is in the format bbp_before_ followed by X followed by _parse_args The X is the third argument from the bbp_parse_args function – if you look at the code above you’ll see that it is actually
    bbp_parse_args ($args, Array(...), 'list_forums' )

    so in the last line we see list forums which is the X above . In practice this is the function without the bbp start bit.

    so an array filter for bbp_list_forums is bbp_before_list_forums_parse_args
    and for say bbp_get_topic_pagination would be
    bbp_before_get_topic_pagination_parse_args

    In reply to: Starting with bbpress

    @robin-w

    Moderator

    bbpress works as a plugin to wordpress, so you set up a wordpress site and add bbpress.

    @robin-w

    Moderator

    I got

    the website declined to show you this page – permisisons issue – talk to your host provider about this

    In reply to: send users password

    @robin-w

    Moderator

    basically you don’t with automatic registration.

    If it is a retirement home, so the users don’t need to register by computer remotely, then simply set them up using

    dashboard>users>add new and set up all their details including a password, and then either email it manually or just tell/give it to them.

    @robin-w

    Moderator

    sorry, but kit’s not clear what you are currently displaying and what you would like to display, as the display seems to reads exactly as you are asking in then last three lines of your post.

    In reply to: Changing text color

    @robin-w

    Moderator
    In reply to: Forum Page ID's

    @robin-w

    Moderator

    ok, no promises on timing, I’m very stretched at the moment, but send a link via my website

    http://www.rewweb.co.uk

    In reply to: Forum Page ID's

    @robin-w

    Moderator

    ok, so can you tell us what you want in simple English – stick away from css and jargon 🙂

    eg

    I want the xx forum to have this background and the yy forum to have that background, and all sub forums and topics to also have this

    or whatever you want !

    In reply to: Forum Page ID's

    @robin-w

    Moderator

    Thanks rob as usual for the better css code !

    @robin-w

    Moderator

    ok, this could be lots of things, and part of what you mention is buddypress not bbpress.

    so start with

    Step by step guide to setting up a bbPress forum – Part 1

    and if you aren’t seeing forums/topics and replies in the back end then

    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: Forum Page ID's

    @robin-w

    Moderator

    There is no need to copy the bbpress.css file.

    you just need to put it in your child theme’s style.css, BUT add the ‘!important ‘ which stops bbpress overwriting it.

    .forum bbpress single single-forum postid-20 #fixed-background { background: url('http://www.heartwoodgaming.com/wp-content/uploads/2015/02/ffxiv-background.jpg') !important; }
    

    You may find you don’t need all the string above ie ‘.forum bbpress single single-forum postid-20 #fixed-background ‘ but have a play if the full doesn’t work, or come back with a url/link and I’ll try to help

    In reply to: Cool site widgets

    @robin-w

    Moderator

    unfortunately they are not !

    I don’t know why !!

    @robin-w

    Moderator

    the following works

    //This function changes the text wherever it is quoted
     function change_translate_text( $translated_text ) {
     if ( $translated_text == '<strong>ERROR</strong>: Your topic needs a title.' ) {
     $translated_text = '<strong>CHYBA</strong>: Vaše téma musí mít název.';
     }
     
    return $translated_text;
     }
    
    add_filter( 'gettext', 'change_translate_text', 20 );
    

    but equally well, the line is in the pot on line 3727 as

    Line 3727: msgid "<strong>ERROR</strong>: Your topic needs a title."

    so you could just use then normal translate !

    In reply to: Forum Page ID's

    @robin-w

    Moderator

    I’ll admit CSS is not always my friend

    Whilst really useful I hate this as well.

    Where are you putting that code?

    @robin-w

    Moderator

    ie only two links, 3 gets spammed !

    In reply to: Can I do this?

    @robin-w

    Moderator

    bbpress uses wordpress as it’s host and using a combination of the two you should be able to achieve all this

    1 yes
    2 yes
    3 yes
    4 probably
    5 lots of wordpress petition plugins
    6. https://wordpress.org/plugins/bbpress-like-button/
    6 (again) lots of diary systems within wordpress
    7 would tend to do this within wordpress

    @robin-w

    Moderator

    its a theme issue,

    Try the alternate methods here

    Step by step guide to setting up a bbPress forum – Part 1

    @robin-w

    Moderator

    not sure what is happening, try adding it here

    In reply to: widget side

    @robin-w

    Moderator

    ok, if you can’t get the right sidebars to show, just have one sidebar and use widget logic to decide what widgets show in which pages

    https://wordpress.org/plugins/widget-logic/

    then for each widget there is a widget logic box

    put

    is_bbpress() if you want that wiodget to appear in forums
    !is_bbpress if you want it to appear in pages other than forums
    and leave blank for both

    @robin-w

    Moderator
    In reply to: widget side

    @robin-w

    Moderator

    The link you gave

    Sidebar on left for Forums, then right for Forum and Topic – Why?

    had this as his solution

    Just swap the floating elements from left to right, where content becomes right and sidebar becomes left. Remember to end with the !important to override any other CSS. Code is thus:

    .bbpress.single-forum #main #content {float:right!important;}
    .bbpress.single-forum #main #sidebar {float:left!important;}
    .bbpress.single-topic #main #content {float:right!important;}
    .bbpress.single-topic #main #sidebar {float:left!important;}
    

    You need to put the code in your style.css

    Functions files and child themes – explained !

Viewing 25 replies - 10,951 through 10,975 (of 14,141 total)