Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 8,876 through 8,900 (of 14,146 total)
  • @robin-w

    Moderator

    ok let me look later to see if there is an easy filter we can apply

    In reply to: New update

    @robin-w

    Moderator

    Suspect you are now using php 7.1
    so 3 fixes
    1. downgrade to a lesser version of php
    2. upgrade to bbpress 2.6beta-2
    3. in bbpress 2.5.12 change line 1851 from
    $meta_query = $posts_query->get( ‘meta_query’ );
    to
    $meta_query = $posts_query->get( ‘meta_query’, array() );
    Since the next upgrade will fix that anyway, no issue in changing the bbpress file
    best I can offer I’m afraid

    @robin-w

    Moderator

    If you know when a user does this then if you install

    bbP Toolkit

    you can go to users>user>subscriptions and unassign them from all forums and topics with a couple of clicks

    @robin-w

    Moderator

    probably this should work

    // Filter wp_nav_menu() to add profile link
    add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' );
    
    function my_nav_menu_profile_link($menu , $args) {
        if (is_user_logged_in() && $args->theme_location == 'primary') {
            $current_user = wp_get_current_user();
            $user=$current_user->user_nicename ;
            $profilelink = '<li><a href="/forums/users/' . $user . '/edit">Edit Profile</a></li>';
            $menu = $menu . $profilelink;
        }
    	return $menu;
      
    }

    @robin-w

    Moderator

    great – thanks for posting back what you did to fix – so many don’t !!

    @robin-w

    Moderator

    bbpress uses the worpress login, so that should all work, Just make sure you set the default role to participant in the settings>forums

    and to clarify from the WSL documentation

    WSL will take the user in a short journey to the selected social network to ask for his permission to access his profile. If he does, and if everything goes as expected, WSL will create a new account for the user if he doesn’t have one already, authenticate him within WordPress, then redirect him back to where he come from.

    so it should work.

    The user should be allocated the participant role on first login

    Just yelling back at me like I am some dumbass that you don’t want something doesn’t get us any further forward.

    Now if this isn’t working and you have checked my original suggestion then do please come back with a polite response and I will be delighted to help further.

    @robin-w

    Moderator

    not exactly sure what you are after, but try this code and play with it

    put this in your functions file – you don’t need to alter any templates

    add_action ('bbp_theme_after_reply_author_details', 'rew_display');
    add_action ('bbp_theme_after_topic_author_details', 'rew_display'); 
    
    //main function to display
    function rew_display () {
    	global $reply_id ;
    	$author_id=bbp_get_reply_author_id( $reply_id ) ;
    	$user = Am_Lite::getInstance()->getUser(); 
    	$some_match = Am_Lite::getInstance()->haveSubscriptions(364))
    	if ($author == $user && $some_match == "hello" ) {
    		echo '<div class = "rew_display">' ;
    			echo '<ul>' ;	
    				echo '<li>' ;
    					echo "I've donated" ;
    				echo '</li>' ;
    			echo '</ul>' ;
    		echo '</div>' ;
    	}
    }

    Come back if I can help clarify

    @robin-w

    Moderator

    bbpress uses the worpress login, so that should all work, Just make sure you set the default role to participant in the settings>forums

    In reply to: Avatar freshness

    @robin-w

    Moderator

    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

    In reply to: Iimprovements

    @robin-w

    Moderator

    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

    Suspect you are using php 7.1
    so 3 fixes
    1. downgrade to a lesser version of php
    2. upgrade to bbpress 2.6beta-2
    3. in bbpress 2.5.12 change line 1851 from
    $meta_query = $posts_query->get( ‘meta_query’ );
    to
    $meta_query = $posts_query->get( ‘meta_query’, array() );
    Since the next upgrade will fix that anyway, no issue in changing the bbpress file
    best I can offer I’m afraid

    In reply to: Iimprovements

    @robin-w

    Moderator

    2) Shows the total topics, replies and total count under the avatar on each topic/reply view in bbpress
    Because this plugin https://wordpress.org/plugins/bbp-topic-count/ not tested up to : WordPress 4.8

    is tested to 4.8 – it says so and I wrote it !!

    can’t help with 1 – It should work, try it on your test site

    In reply to: Iimprovements

    @robin-w

    Moderator

    we will need a specific question, what do you need help with?

    @robin-w

    Moderator

    great !

    @robin-w

    Moderator

    if you make forums ‘private’ then only logged in users can see them

    @robin-w

    Moderator

    sorry not in my skill set !

    @robin-w

    Moderator

    ok, not quite sure what is happening

    1. are you using caching software? If so purge
    2. try dashboard>settings>permalinks and just click save – this will reset the links

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

    Then come back

    @robin-w

    Moderator

    what is the slug set to?

    @robin-w

    Moderator

    set it to show !

    @robin-w

    Moderator

    suspect that you have got

    dashboard>settings>forums>forum root slug>forum prefix set to not show, so it is creating a duplicate

    @robin-w

    Moderator

    have you been to

    Custom Capabilities

    @robin-w

    Moderator

    bbpress hates local server !

    try adding this to your function file

    add_filter( 'bbp_verify_nonce_request_url', 'my_bbp_verify_nonce_request_url', 999, 1 );
    function my_bbp_verify_nonce_request_url( $requested_url )
    {
        return 'http://localhost:8888' . $_SERVER['REQUEST_URI'];
    }
    In reply to: New update

    @robin-w

    Moderator

    ok, bbpress works fine with 4.8

    So can you define what you mean by ‘broken’ in ‘My newly created forum became broken with the update to WP 4.8.’

    @robin-w

    Moderator

    great – glad you are fixed !!

    @robin-w

    Moderator

    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

Viewing 25 replies - 8,876 through 8,900 (of 14,146 total)