Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 8,426 through 8,450 (of 14,141 total)
  • @robin-w

    Moderator

    no problem, glad to have helped

    In reply to: Post Preview

    @robin-w

    Moderator

    can you give me a source for the plugin?

    @robin-w

    Moderator

    you can take out one of the forums by

    dashobaord>settings>forums>Forum Root Slug>Forum Prefix and untick

    @robin-w

    Moderator

    thanks, that was exactly the help I needed to get to the right code 🙂

    I’ve just released version 3.7.0 which has a filter you can use to change that link.

    If you update and then you add this code to your child theme‘s functions file

    add_filter ('bsp_new_topic_button', 'rew_change_button' ) ;
    add_filter ('bsp_create_new_topica', 'rew_change_button' ) ;
    
    function rew_change_button () {
    	$href = 'https://mysite/leden/forum/ledenforum/#bsptopic' ;
    	return $href ;	
    }

    then it won’t be affected.

    Please come back and confirm that it works for you.

    @robin-w

    Moderator

    as it’s very near xmas and I’m pretty tied up, can you show the altered function that you created, which will save me time in finding it.

    thanks

    In reply to: Just installed bbPress

    @robin-w

    Moderator

    great looking site !!

    In reply to: Code Tag

    @robin-w

    Moderator

    no problem, glad you are fixed !

    @robin-w

    Moderator

    I think it is your theme, but of you are only having one forum, then you could create a page called anything and put

    [bbp-single-forum id=$forum_id] – Display a single forums topics. eg. [bbp-single-forum id=32]

    you can find the ID of your forum by looking at the number in the url when esiting it ie in

    dashboard>forums>all forums>edit forum

    and use this page as your forum page.

    It may work, it may not 🙂

    @robin-w

    Moderator

    ok, think I have just had a thought

    so you have one forum called ‘forum’ – yes ?

    @robin-w

    Moderator

    sorry, I can see no easy way to do this.

    In essence the code above just calls some standard bbpress functions, and these won’t recognise that they have been called by the code, so adding content to then is not possible as far as I can see.

    To do this would need some bespoke code

    @robin-w

    Moderator

    can only think that you have a conflict

    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 twentyfifteen, and see if this fixes.

    Then come back

    @robin-w

    Moderator

    I presume you are subscribed to the forums and topics that you are expecting them from – sorry, but 4 years on here and you always ask the obvious 🙂

    If you have done ALL of the above, the I would set up https://en-gb.wordpress.org/plugins/bbpress-notify-nospam/ and see if that is sending, which would help reduce the issue further

    then come back

    @robin-w

    Moderator

    no problem, glad I could help 🙂

    In reply to: Feature requests

    @robin-w

    Moderator

    no problem, glad I could help 🙂

    In reply to: Change Authentication

    @robin-w

    Moderator

    bbpress simply uses wordpress login, so if you get wordpress to understand that it is logged in , then bbpress will also.

    Maybe one for a wordpress support forum

    @robin-w

    Moderator

    bbpress only displays 2 levels, so when you click the 2nd level, you will get to see the lower down forums.

    It is possible to code for lower levels, if you are happy with coding you’d be looking at

    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php

    and some coding around bbp_list_forums()
    to get a further loop

    As for breadcrumb – yes by default you should have one , but themes can turn these off

    @robin-w

    Moderator

    hmm… agree – any chance of taking a look

    contact me via my website if needed

    http://www.rewweb.co.uk

    @robin-w

    Moderator

    if you look at the black banner at the top with the menu, you can see text scroll behind it. bbpress thinks it is displaying the start of the reply at the top of the screen, but actually it is behind the banner

    @robin-w

    Moderator

    Just had a quick look in between other tasks, and totally untested, but this should work if it has no bugs

    function dsk_remove_all_subscriptions ($user_id) {
    	global $wpdb;
    	//first remove forum subscriptions
    	$forum=bbp_get_forum_post_type() ;
    	$forum_ids=$wpdb->get_col("select ID from $wpdb->posts where post_type = '$forum'") ;
    	foreach ($forum_ids as $forum_id) {
    		bbp_remove_user_forum_subscription( $user_id, $forum_id ) ;	
    	}
    	//then remove topic subscriptions
    	$topic=bbp_get_topic_post_type() ;
    	$topic_ids=$wpdb->get_col("select ID from $wpdb->posts where post_type = '$topic'") ;
    	foreach ($topic_ids as $topic_id) {
    		bbp_remove_user_topic_subscription( $user_id, $topic_id );
    	}
    }

    If you get it working, then please confirm or post back the final code.

    If you need further help do come back and I’ll see if I can help further

    @robin-w

    Moderator

    yes it seems this question has been asked before and I can’t see that anyone has written such a function.

    It is quite do-able, and I’ll see how easy it is to achieve

    @robin-w

    Moderator

    very strange…not sure I’m going to be much use – I think you into lots of try this/try that testing

    Hope you figure it out, and if you do, please post the solution here – that will help others who google it as a question later !

    @robin-w

    Moderator

    the forums link seems to be

    /forums/forum/forum which is a bit weird.

    so can you confirm that you have a page called ‘forums’ with a permalink of ‘forums’ and the shortcode
    [bbp-forum-index] in it?

    In reply to: Feature requests

    @robin-w

    Moderator

    from a read through all looks ok except

    add_filter( 'bbp_get_teeny_mce_buttons', 'rew_remove_image_button_in_bbpress' );

    should read

    add_filter( 'bbp_get_teeny_mce_buttons', 'wppa_remove_image_button_in_bbpress' );

    In reply to: Feature requests

    @robin-w

    Moderator

    From a read through looks ok to me, but just change

    add_filter( ‘bbp_get_teeny_mce_buttons’, ‘rew_remove_image_button_in_bbpress’) ;

    to

    add_filter( ‘bbp_get_teeny_mce_buttons’, ‘wppa_remove_image_button_in_bbpress’) ;

    to run your amended function

    @robin-w

    Moderator

    which method in part 3 are you doing?

Viewing 25 replies - 8,426 through 8,450 (of 14,141 total)