Robin W (@robin-w)

Forum Replies Created

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

    Moderator

    so did Robkk’s links not work ?

    @robin-w

    Moderator

    looks like this is what you need

    bbPress

    @robin-w

    Moderator

    now in style pack

    @robin-w

    Moderator

    and couldn’t use it in bbPress function’ file.

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    @robin-w

    Moderator

    sorry for late reply.

    You would do better to link to topic and reply content

    so

    add_filter( 'bbp_get_reply_content', 'content_link_for_user_snippets',80, 2 );
    add_filter( 'bbp_get_topic_content', 'content_link_for_user_snippets', 80, 2 );

    I’d run them at priority 80, as bbpress runs various actions at this point, including one called ‘bbp_make_clickable’ at priority 60, which would probably reverse your efforts !

    @robin-w

    Moderator

    sorry, I maybe misunderstanding

    bbpress 2.6.6 is the official version, downloaded from here

    Download

    I’m not sure why you are using 2.6-rc-6?

    and 2.6-rc-7 is not released yet, so will have bugs

    @robin-w

    Moderator

    the way subscriptions work is different between versions 2.5.x and 2.6.x – which version are you on?

    @robin-w

    Moderator

    so in

    dashboard>settings>forums – are subscriptions turned on ?

    @robin-w

    Moderator

    I’m not sure why you are not working – it works both on this forum and on my test site.

    @robin-w

    Moderator

    in this forum, if you look at the left hand in a forum you will see a tick, and ‘subscribe’ and ‘unsubscribe’ – these are actions, so ‘unsubscribe’ in this forum means that you are ‘subscribed’ and is offering you the option of ‘unsubscribing’

    so if it shows ‘unsubsribe’ and you look at subscriptions, you will see the forum listed

    @robin-w

    Moderator

    If you wish to change bbpress templates, you only need worry about those you want to change for instance if you wished to change user-details.php you would

    find
    wp-content/plugins/bbpress/templates/default/bbpress/user-details.php

    transfer this to your pc and edit

    and save

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/user-details.php

    bbPress will now use this template instead of the original

    @robin-w

    Moderator

    You are asking someone to write code in their free time to do something that their code wasn’t intended to do.

    it’s that simple

    @robin-w

    Moderator

    you seem to completely misunderstand open software foundation software, so you would clearly not understand a response

    @robin-w

    Moderator

    this is what I might out in style pack

    add_action ('bbp_template_before_single_forum' , 'bsp_template_notices') ;
    
    add_action ('bbp_template_before_single_topic' , 'bsp_template_notices') ;
    
    function bsp_template_notices() {
    
    	// Bail if no notices or errors
    	if ( ! bbp_has_errors() ) {
    		return;
    	}
    
    	// Define local variable(s)
    	$errors = $messages = array();
    
    	// Get bbPress
    	$bbp = bbpress();
    
    	// Loop through notices
    	foreach ( $bbp->errors->get_error_codes() as $code ) {
    
    		// Get notice severity
    		$severity = $bbp->errors->get_error_data( $code );
    
    		// Loop through notices and separate errors from messages
    		foreach ( $bbp->errors->get_error_messages( $code ) as $error ) {
    			if ( 'message' === $severity ) {
    				$messages[] = $error;
    			} else {
    				$errors[]   = $error;
    			}
    		}
    	}
    
    	// Display errors first...
    	if ( ! empty( $errors ) ) : ?>
    
    		<div class="bbp-template-notice error" role="alert" tabindex="-1">
    			<ul>
    				<li>
    					<?php echo implode( "</li>\n<li>", $errors ); ?>
    					<a href="#new-post">
    					<?php _e('Click here to correct', 'bbp-style-pack') ; ?>
    					</a>
    				</li>
    			</ul>
    		</div>
    
    	<?php endif;
    
    }

    @robin-w

    Moderator

    I’ve found that annoying in the past, and not bothered to think about correcting.

    This basic code will display the errors at the top, but I might look to improve on that in style pack

    add_action ('bbp_template_before_single_forum' , 'bbp_template_notices') ;
    
    add_action ('bbp_template_before_single_topic' , 'bbp_template_notices') ;

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    @robin-w

    Moderator

    ok, do come back if you want further help 🙂

    @robin-w

    Moderator

    when you restore it, it then becomes a draft – so you need to go into the topic in the tableau de bord and approve it – can you test this please

    @robin-w

    Moderator

    If you bin/trash/’corbeille’ a topic, then you can restore it through

    tableau de bord>sujets>corbeille>restaurer

    dashboard>topics>bin/trash>retore

    If you delete permanently/’supprimer’ a topic, then yes any reference to it will produce a 404 error, as that link does not exist.

    @robin-w

    Moderator

    great – glad you are fixed !

    @robin-w

    Moderator

    sorry, can you retype that last sentence – doesn’t quite make sense

    @robin-w

    Moderator

    it would need javascript coding – not my area of expertise 🙂

    @robin-w

    Moderator

    both the top and bottom login links are the default login, they were there to start with

    which probably suggests they are theme related.

    bbpress just passes details to WordPress login, and if the theme is also using WordPress login, it may well be that on a single page you have 3 things sending info to WordPress authorisation, so any one might send an ‘after login’ redirect, and it might be different dependant on which is completed.

    If you also have membership plugins active, then these might also catch a login and do a redirect.

    computers are consistent (often annoying so!) so it might be either different logins, or other changes you are making to membership that are affecting.

    I’d start by stripping back and working out what is doing what.

    so

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see what changes.

    Plugins

    If that doesn’t work, also deactivate all plugins, and see what the login at the top and bottom do. Then add bbpress and see what changes.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    @robin-w

    Moderator

    so what are you using to login – bbpress login widgets, shortcodes or what?

    @robin-w

    Moderator

    presuming you don’t have anti-spam or moderation plugins, then it will be wordpress moderation settings

    dashboard>settings>discussion and check moderation, blacklist and whitelist settings, particularly no. links which is the usual one that users exceed.

    @robin-w

    Moderator

    ok, I can only suggest you look at possible conflicts

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

Viewing 25 replies - 4,426 through 4,450 (of 14,243 total)