Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 726 through 750 (of 14,219 total)
  • @robin-w

    Moderator

    I’ve also added this as a bug fix to my style pack plugin -m see bug fixes tab

    @robin-w

    Moderator

    can you try

    add_filter ('bbp_get_statistics', 'rew_count_forums' , 10 , 3) ;
    
    function rew_count_forums ($statistics, $r, $args ) {
    	//fix counts for forums to show private forums if user can read them and not error if site is only private forums
    	// forums
    	if ( ! empty( $r['count_forums'] ) ) {
    		$private = bbp_get_private_status_id();
    		$all_forums  = wp_count_posts( bbp_get_forum_post_type() );
    
    		// Published (publish)
    		$forums['publish'] = $all_forums->publish ;
    		$forums['private'] = 0 ;
    		if ( current_user_can( 'read_private_forums' ) ) {
    
    			// Private
    			$forums['private'] = $all_forums->{$private} ;
    			
    		}
    		//now add the two 
    		$statistics['forum_count'] = $forums['publish'] + $forums['private'] ;
    		}
    // Filter & return
    return (array) apply_filters( 'rew_count_forums', $statistics, $r, $args );
    
    }

    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, so presume you are fixed

    In reply to: Will it be updated?

    @robin-w

    Moderator

    I am just a moderator here, and not a bbpress author.

    The authors tend to release updates every few years, rather than more frequently.

    My personal view is that you should consider bbpress to be a ‘mature’ product, ie any releases will be to fix issues rather than add functionality.

    bbpress is written really well, and has loads of hooks. There are no show stopper bugs in it, it may throw a few deprecation notices (and these are very few at the moment), but WordPress recommends that you should not show error messages in live sites.

    I currently have my test site running WordPress 6.4.x and php 8.2 with no issues.

    The only major issue with bbpress at the moment is that it does not work well with FSE themes.

    However my bbp style pack plugin has fixes for this

    bbp style pack

    as well as block versions of the widgets and a ton of styling and functionality add-ons.

    All plugins are subject to the authors commitment, and bbpress is no different.

    The main WordPress support forums use bbpress, and it would be mega work to move those over to some other product.

    But with open software you make your choices….

    @robin-w

    Moderator

    no problem 🙂

    @robin-w

    Moderator

    Isn’t that what it’s supposed to do?

    Honestly not a bit of code I’ve looked at in 10 years. I am presuming this is the [bbp-stats] shortcode that is doing this? and if so do you want to show this to all users, or just logged in ?

    @robin-w

    Moderator

    GDPR is less difficult to interpret than say the stateside ‘can-spam’ regs.

    according to

    https://gdpr.eu/email-encryption/#:~:text=And%20you%20must%20also%20make,is%20it%20violating%20the%20GDPR.

    ‘And you must also make it easy for people to change their mind and opt-out. Only if a marketing email does not present the option to unsubscribe, is sent to someone who never signed up for it, or does not advertise a service related to one the receiver uses is it violating the GDPR.’

    Can-spam is much less clear.

    Having a “unsubscribe from this forum/topic” link?” should be doable, but I’d not do this for free, as it is a bunch of code I’d need to work out, as it would need to fire code from a webiste link, probably using a unique code – lots of work.

    @robin-w

    Moderator

    ok, so with no ‘public’ forums, what do you want the template to display against forums – presume 0 ?

    @robin-w

    Moderator

    ok, you’ll need to refer to ACF. If they fix or have advice, do please report back, as this will help others

    @robin-w

    Moderator

    Rules vary around the world, but I’d suggest that allowing users to unsubscribe to all forums/topics without logging in is what you are wanting to achieve. If you did that, then if users want to select which bits they subscribe/unsubscribe to, then they can unsubscribe to all, and then login to select. Forcing login to subscribe is not as far as I know illegal in any country.

    So to achieve an unsubscribe to all without login (and given that few people will really use this), I would do the following.

    1. install a contact form plugin (if you don’t already have one say contact form 7)
    2. then create a contact form that simply has a field asking for email address (text maybe ‘please confirm your email address’, a submit button, and text that on submission says something like ‘thankyou for unsubscribing, you may receive emails for a short period until the unsubscribe process is complete’ On submission, set up the form to send an email to you telling you the email address, and if the plugin allows (contact form 7 does) a second email to the user confirming that you have received the unsubscribe request and re-itrating that they may receive some emails in between.
    3. Create an Unsubscribe WordPress page and add the contact form to it.
    4. install

    bbp style pack

    once activated go to
    dashboard>settings>bbp style pack>Subscription Emails
    click item 4 to enable custom emails, and in items 7 & 8 add a sentence after “Login and visit the topic to unsubscribe” saying “To unsubscribe from all emails, click here” and have that as a link to the WordPress page.
    5. then go into
    dashboard>settings>bbp style pack>subscription management and turn this on.

    Ok so that is all to set it up.

    So when a user clicks, he will be taken to that page, asked to confirm his email address, and then they are told in an email what will happen. You will get am email, so then you would go into
    dashboard>users>all users and find the user by their email address using the ‘search’. Using the ‘subscriptions’ link under their username, you will see all ghat they are subscribed to, and you can unsubscribe them. If you like, you can then send them a further email confirming that the unsubs cribe process has been successful, or even asking if they want their account deleted – whatever you feel.

    @robin-w

    Moderator

    🙂 glad to have helped.

    In reply to: PHP Deprecated

    @robin-w

    Moderator

    These are deprecated errors, meaning that they will become an issue in a later version of PHP, and are not affecting your site at the moment.

    I am just a moderator here, and not a bbpress author, the authors are aware that they exist, and if not fixed by them, I will add a fix in my

    bbp style pack

    when needed

    @robin-w

    Moderator

    bbpress in native mode does not store images, it allows you to add a link to an image that can be anywhere, but a user would need to create an image and store it where it can be seen by the internet.

    There are additional plugins, try

    Inline Image Upload for BBPress

    @robin-w

    Moderator

    Unless you are using the plugin or bespoke code to load that template, I fail to see how that can be, the error quotes a file within Youzify

    plugins/youzify/includes/public/templates/bbpress/content-statistics.php on line 33

    but quite happy for you to pursue as you feel fit

    @robin-w

    Moderator

    basically you need to raise this with youzify

    @robin-w

    Moderator

    the warning is

    Warning: Undefined array key “forum_count” in /home/clients/3db470ac3c186374a924a94534df90ab/sites/test.com/wp-content/plugins/youzify

    which says the undefined array key is in the plugin youzify

    sorry I cannot help further

    @robin-w

    Moderator

    that error is for the youzify plugin, so can only appear if that plugin is active, or if you have not cleared cache.

    @robin-w

    Moderator

    not quite sure what you mean.

    so without style pack, what method are you using to enable the visual editor?

    @robin-w

    Moderator

    sorry, I run multiple plugins and it is a national holiday here in the UK – can you tell me what settings in which tabs in style pack you amended so I don’t have to spend 20 minutes finding them

    @robin-w

    Moderator

    @robin-w

    Moderator

    These errors are as you say not bbpress errors, but ones related to a different plugin.

    You will need to post in

    https://wordpress.org/support/plugin/follow-bbpress/

    although with on 10 users and no update for 4 years, I suspect it is not actively suppprted

    @robin-w

    Moderator

    bbpress just uses wordpress registration, so it is likely that no emails are working.

    Use the test in that plugin I sent to see if they are leaving your site

    @robin-w

    Moderator

    not really bbpress related, but talk to your hoster, and try installing ten ‘check and log email’ plugin

    @robin-w

    Moderator

    can you confirm that https ones work, and how are you loading these?

    @robin-w

    Moderator

    same plugin, but explore the settings, in this case the topic/reply display item 6

Viewing 25 replies - 726 through 750 (of 14,219 total)