Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 13,351 through 13,375 (of 14,228 total)
  • In reply to: Deleting sidebar

    @robin-w

    Moderator

    This is all set in your theme’s page templates.

    You can copy one of these and rename it bbpress.php and put it into the root of your theme.

    bbpress will then use that one, and you can delete the sidebar from the bbpress.php

    come back if you need further help

    @robin-w

    Moderator

    nothing bad in doing that

    as bbpress has different custom post types for topic and reply, you could also link to the action bbp_theme_after_reply_content action and put a topic condition on
    something like

    function display_after_topic() {
    	if( get_post_type() == 'topic') {
    	$text="hello mother" ;
    	echo $text;
    	}
    	else {
    	return ;
    	}
    }
    
    add_action ('bbp_theme_after_reply_content', 'display_after_topic') ;

    @robin-w

    Moderator

    I suspect this is not related, but always worth checking

    Do you have a forums page with shortcode.

    If not another poster did the following with success for a twentyfourteen theme.

    So let me restate what you found to work:

    1. When creating a menu item for forums, do NOT use the automatically available permalink that ends in “/forums/”
    2. Instead, create a page that has the shortcode [bbp-forum-index] in the body. There could also then be other content or links in the body.
    3. Make sure the page you created does NOT have a permalink that ends in “/forums/”. In my case I had a page Title of “Forums”, but I changed the permalink to end with “/allforums/”.

    I suspect that this will not fix for you, but give it a try anyway !

    In reply to: No toolbar available

    @robin-w

    Moderator

    Terry, thanks from posting that – sometimes (in fact more than sometimes!) it is a small but vital bit that’s missing !

    Glad you’re now fixed !

    @robin-w

    Moderator

    I am writing a bbpress specific solution at the moment – hope to publish in the new few weeks

    @robin-w

    Moderator

    ok, add this in

    #bbpress-forums .status-closed, #bbpress-forums .status-closed a {
    color: #000000;
    }

    and then come back with any others

    @robin-w

    Moderator

    yes, it was an untested change, but now I know you can do it, I’ll change it later today to catch the other ones

    @robin-w

    Moderator

    ok, you have several routes to go

    If you think you will be making other changes, then it may be worth you reading this

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

    but if you just want to get this going then download this plugin

    https://wordpress.org/plugins/simple-custom-css/

    and then put this code into it

    #bbpress-forums .bbp-topic-content p,
    #bbpress-forums .bbp-reply-content p {
    color: blue !important ;
    }

    a:link {
    color: blue !important ;
    }

    Obviously you can change the blue to whatever, or use hex codes to get any shade you like

    http://www.w3schools.com/cssref/css_colors.asp

    Come back if that doesn’t work, and I’ll try to help further

    @robin-w

    Moderator

    some of the code in here might help you

    Layout and functionality – Examples you can use

    @robin-w

    Moderator

    ok if it proves an issue, you could use

    if ( is_singular( array('forum', 'topic', 'reply') ) ) {
        //  conditional content/code
    }
    In reply to: bbPress Login Widget

    @robin-w

    Moderator

    great, glad you’re fixed

    @robin-w

    Moderator

    yes they are on your site.

    If I gave you the code and said for you to add this to your style.css would you know what I was asking?

    If so I’ll cut some for you to use

    If not, come back and I’ll try and help further

    In reply to: Edit Menus Problem

    @robin-w

    Moderator

    another one that you can spend hours trying to solve !

    In reply to: bbPress Login Widget

    @robin-w

    Moderator

    you can edit the profile page to prevent them changing it

    In your theme create a bbpress folder

    wp-content/themes/%yourtheme%/bbpress

    where %yourtheme% is the name of your theme

    then navigate to

    wp-content/plugins/bbpress/templates/default/bbpress/form-user-edit.php

    and copy this file to the bbpress folder you created above

    bbpress will now use this one instead of the default.

    edit this new file and take out lines 33 to 45

    ie take out the following

    <div>
    			<label for="nickname"><?php _e( 'Nickname', 'bbpress' ); ?></label>
    			<input type="text" name="nickname" id="nickname" value="<?php bbp_displayed_user_field( 'nickname', 'edit' ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>" />
    		</div>
    		<div>
    			<label for="display_name"><?php _e( 'Display Name', 'bbpress' ) ?></label>
    			<?php bbp_edit_user_display_name(); ?>
    		</div>
    		<?php do_action( 'bbp_user_edit_after_name' ); ?>
    

    This will remove the ability to set a nickname and to change the display name.

    In reply to: Edit Menus Problem

    @robin-w

    Moderator

    yes !

    When they go into

    Dashboard>appearance>menus

    they will see a ‘screen options’ button dropdown on the top right, if they click that they will get a list of things they can see on this screen, and they need to check the ‘forums’ one.

    In reply to: Can I unpublish forum

    @robin-w

    Moderator

    I suspect that you can still see it as either you’re a keymaster, moderator or wp-admin.

    Private forums are only visible to logged in users
    Hidden forums are only viewable by keymasters, moderators or admins

    so you want to reset your forum to hidden, and you will still see them, but users won’t unless you give them privileges.

    @robin-w

    Moderator

    is_bbpress()

    should do it I think.

    Otherwise bbpress has custom post types of forum, topic and reply.

    You should also consider disabling or modifying the bbpress search function, as otherwise searches will go forum wide, giving a backdoor.

    Good luck !

    @robin-w

    Moderator

    glad we got there !

    @robin-w

    Moderator

    Hey, thanks it looks really good !

    In reply to: vs PhPBB

    @robin-w

    Moderator
    In reply to: vs PhPBB

    @robin-w

    Moderator

    This is just different software, like the difference between a Ford and a Toyota.

    bbPress is ‘skinny’ and you can use plugins to add functionality as you need, rather than have fat software that has loads of stuff you don’t need.

    @robin-w

    Moderator

    You should really be looking to get rid of the toolbar for everyone but moderators and above ! It shouldn’t really be seen by users.

    go to dashboard>users and for each user untick the toolbar

    The codex has help on putting logins and profile on the menu pages – see

    https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/ no.s 8 & 11/12

    @robin-w

    Moderator

    I’ve submitted a trac ticket to improve the code !

    @robin-w

    Moderator

    Thanks for the great feedback – much appreciated !

    @robin-w

    Moderator

    glad to have someone else looking !

    My ajax is hopeless !

    Your solution is valid, but digging for it produced some code issue

    we have several issues here

    firstly the filter call is wrong in the code ie

    bbpress/includes/topics/template.php has two errors

    function bbp_get_topic_subscription_link( $args = array() ) {
    ......Parse the arguments......
    		), 'get_forum_subscribe_link' );

    so the function is ‘get_topic_subscription’ but the parse argument reverts to ‘get_forum_subscribe

    whilst it doesn’t affect this issue the error is repeated for favorites in the same file

    function bbp_get_topic_favorite_link( $args = array() ) {
    ..........), 'get_forum_favorite_link' );
    

    needs changing to ‘get_topic_favorite_link’`

    This doesn’t affect the issue as such, other than the filters above are wrong.

    But filtering bbp_get_topic_subscription_link is totally pointless, as it immediately calls
    ‘get_user_subscribe_link’ which them resets the |, so whilst the filter seems to correct it once, any click just resets it.

    So your filter to get_user_subscribe_link is the correct one, but for the wrong reason.

    Really the code needs to have the filter in one place only (suspect user)

    Anyway the solution for @majid436 is as you suggest

    function hide_before3 ($args = array() ) {
    $args['before'] = '';
    return $args;
    }
    add_filter ('bbp_before_get_user_subscribe_link_parse_args','hide_before3');
    
Viewing 25 replies - 13,351 through 13,375 (of 14,228 total)