Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 12,476 through 12,500 (of 14,280 total)
  • @robin-w

    Moderator

    I would love to help, but simply cannot fathom what you are trying to do.

    I’m not sure if ‘user review category and subforums” is the same as “user review forum + categories’or if these are different, and where they are in nay case
    I can’t see a forum called ‘user reviews’ and no subforums for that
    The link astronomertalk.com/reviews. takes me to a login page
    the link astronomertalk.com/review goes to a 404 page
    and I’m not sure quite what you’re talking about when you say you want to get rid of the forum/main page – do you mean astronomertalk.com

    Can you come back with a more detailed question, with not only a link nut what is either there (and where on the page eg ‘under headingxx’) or not there that you would like

    The answer is probably yes we can, when I know what the can is 🙂

    @robin-w

    Moderator

    wasn’t setting who the user was ! Try

    function role_show () {
    $displayed_user = bbp_get_reply_author_id() ;
    $role = bbp_get_user_role( $displayed_user);
    if ( bbp_is_user_keymaster($displayed_user) ||$role == 'bbp_moderator')  $args['show_role'] = true ;
    else $args['show_role'] = false ;
    return $args ;
    }
    add_filter ('bbp_before_get_reply_author_link_parse_args', 'role_show' ) ;
    

    @robin-w

    Moderator

    ok, i’ll load it on my test site

    @robin-w

    Moderator

    untested but the following bar typos should work – add to your functions file

    function role_show () {
    $role = bbp_get_user_role( $user_id );
    if ( bbp_is_user_keymaster() ||$role == 'bbp_moderator')  $args['show_role'] = true ;
    else $args['show_role'] = false ;
    return $args ;
    }
    
    add_filter ('bbp_before_get_reply_author_link_parse_args', 'role_show' ) ;
    
    In reply to: Full Width Forum Help

    @robin-w

    Moderator

    ok, after the line

    <?php do_atomic( ‘after_main’ ); // oxygen_after_main ?>
    

    add

    <?php get_sidebar( ‘subsidiary’ ); // Loads the sidebar-subsidiary.php template. ?> 
    

    @robin-w

    Moderator

    The addition of the new User Management screen for adding users to groups (instead of having to go to each profile) is handy, though.

    Great, glad you like that !

    @robin-w

    Moderator

    great, glad you are fixed !

    @robin-w

    Moderator

    bbpress sets the post_type =
    array( bbp_get_forum_post_type(), bbp_get_topic_post_type(), bbp_get_reply_post_type() );

    so if post type = that, then you know you are in a forum search, so you could add a line in your filter to check if $query->post_type equals array( bbp_get_forum_post_type(), bbp_get_topic_post_type(), bbp_get_reply_post_type() ) then just return query?

    @robin-w

    Moderator

    @jo_shi

    Thanks for that, very useful – if 2.6 doesn’t fix, I’ll revisit – I originally wrote the plugin just for bpress, but given a significant number who use buddypress with it, that would be useful if it isn’t going to be made redundant by 2.6.

    @robin-w

    Moderator

    On individual topics and replies, this is not possible without additional coding, and I’m not aware of any.

    The ‘normal’ way would be

    For participants (we are talking bbpress roles here eg participant, moderator, keymaster etc. rather than wordpress roles editor, author etc., as bbpress restricts to bbpress roles )

    then create a forum, set it’s status to private, and put all topics in there

    For author, editor set these people to be moderators under bbpress, and again set a forum up, but this time set it to hidden, and put topics (and replies) in there

    @robin-w

    Moderator

    (for some reason you assign a group to a user instead of a user to a group, which means a user can not belong to more than one group — so, not ideal unless you have mutually exclusive groups).

    That was just the way I happened to write it – but since you can assign forums to multiple groups, I’m not sure what you cannot achieve? Do give feedback, as if I’m missing a trick I ought to think about it ! 🙂

    In reply to: Full Width Forum Help

    @robin-w

    Moderator

    ok, so what happens at the moment is that the bbpress.php calls the footer.php at the bottom of it.

    The footer in turn calls the sidebar (this is an annoying habit that theme developers have started doing, sidebars should be called in theme pages not in footers aggghhh!).

    so what we’ll do in bbpress.php is simply take out the call to the footer, and put the footer code minus the sidebar into the bbpress.php

    so in bbpress.php remove the line which says

    <?php get_footer(); // Loads the footer.php template. ?>
    

    Then put this code in it’s place

    </div><!– .content-wrap –>
    
    <?php do_atomic( ‘close_main’ ); // oxygen_close_main ?>
    
    </div><!– #main –>
    
    <?php do_atomic( ‘after_main’ ); // oxygen_after_main ?>
    
    <?php do_atomic( ‘before_footer’ ); // oxygen_before_footer ?>
    
    <div id=”footer”>
    
    <?php do_atomic( ‘open_footer’ ); // oxygen_open_footer ?>
    
    <div id=”footer-content” class=”footer-content”>
    
    <?php echo apply_atomic_shortcode( ‘footer_content’, hybrid_get_setting( ‘footer_insert’ ) ); ?>
    
    </div>
    
    <?php get_template_part( ‘menu’, ‘subsidiary’ ); // Loads the menu-subsidiary.php template. ?>
    
    <?php do_atomic( ‘footer’ ); // oxygen_footer ?>
    
    <?php do_atomic( ‘close_footer’ ); // oxygen_close_footer ?>
    
    </div><!– #footer –>
    
    <?php do_atomic( ‘after_footer’ ); // oxygen_after_footer ?>
    
    </div><!– .wrap –>
    
    </div><!– #container –>
    
    <?php do_atomic( ‘close_body’ ); // oxygen_close_body ?>
    
    <?php wp_footer(); // wp_footer ?>
    
    </body>
     </html>

    Come back with what that does !

    In reply to: Random Topic Link

    @robin-w

    Moderator

    Absolutely you can, once in the edit screen of the page, switch to ‘text’ from ‘visual’ (top right of the content box), and paste

    echo '<a href="/?random=1">Random Post</a>' ;
    

    in there

    @robin-w

    Moderator

    ok, could be a number of issues

    start with theme and plugin as 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.

    Then look at the documentation to see what else you might need to do

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

    @robin-w

    Moderator

    great – glad you’re fixed !

    In reply to: login and registration

    @robin-w

    Moderator

    yes you need to set up pages for these functions.

    So set up a page called ‘registration’ and put

    [bbp-register]
    

    in it.

    and a page called ‘lost password’

    and put

    [bbp-lost-pass]
    

    in it

    You can prefix these codes with some text as well so for instance lost password might say

    Enter your email address, and we'll send you a new password
    
    [bbp-lost-pass]
    
    In reply to: Random Topic Link

    @robin-w

    Moderator

    ok, need to work out if menu issue or function issue

    So eliminate function by creating a test page and putting

    echo '<a href="/?random=1">Random Post</a>' ;
    

    onto the test page and confirm it works.

    In reply to: Full Width Forum Help

    @robin-w

    Moderator

    ok, can you post the content of your footer.php please

    In reply to: Full Width Forum Help

    @robin-w

    Moderator

    it’s not taking

    .bbpress #sidebar-secondary {
     display:none ;
    
    }
    

    try

    
    .bbpress #sidebar-secondary {
     display:none !important;
    
    }
    
    In reply to: Random Topic Link

    @robin-w

    Moderator

    Say I wanted to pull from two specific forum topics, how would I incorporate that?

    In your menu? Come back and I’ll help.

    In reply to: Full Width Forum Help

    @robin-w

    Moderator

    @watstyl08 – great glad you’re fixed


    @aussiestar14
    – that work for you?

    @robin-w

    Moderator

    Great – come back if you need further help

    @robin-w

    Moderator

    great – glad you’re fixed.

    @robin-w

    Moderator

    This is probably a stupid question but How do I empty the trash to make sure that the old slug is removed?

    No stupid questions here !!

    Go into Dashboard>forums> all forums and look at the top for all | published | Trash
    Trash will only show if you have any. If you do click and you can permanently delete
    Repeat for topics and replies, and possibly for posts and pages as well.

    I’m concerned that this could permanently break the existing links.

    I don’t think it will but cannot guarantee, it should only affect anything being created at the time you are doing it, so anyone creating a page, post or forum topic or reply. Quite a lot of advice on wordpress for resetting permalinks is to simply go in and click save, as this still forces a rewrite to the database, so maybe try that first.

    In reply to: Full Width Forum Help

    @robin-w

    Moderator

    What can I change to eliminate the sidebar remnants that remain?

    The code in your style.css was supposed to do that ie

    .bbpress #sidebar-secondary {
     display:none ; 
    
    }
    

    I cannot see the other sidebar on your site – have you cleared your cache/refreshed your browser, and if you can still see it tell me which browser (eg IE, Chrome etc.) and give me a specific url

    We should be able to crack this one 🙂

Viewing 25 replies - 12,476 through 12,500 (of 14,280 total)