Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 51 through 75 (of 9,524 total)

  • Robin W
    Moderator

    @robin-w

    <?php global $current_user; get_currentuserinfo(); $uid = bbp_get_current_user_id(); ?>
    <?php if ( bbp_get_user_forum_subscriptions( $uid ) ) : ?>
    <?php $subs = bbp_get_user_forum_subscriptions( $uid ) ; ?>
    <?php $subs = explode(',', $subs);
      <?php while ( bbp_forums() ) : bbp_the_forum(); ?>
      <?php $forum_id = $bbp->forum_query->post->ID; ?>
    	<?php if (in_array($forum_id, $subs)) { ?>
        <p><?php bbp_forum_title(); ?></p>
    	<?php } ?>
      <?php endwhile; ?>
    <?php endif; ?>

    Robin W
    Moderator

    @robin-w

    hold on you haven’t got the line

    <?php $subs = explode(',', $subs);


    Robin W
    Moderator

    @robin-w

    can I have the full error (you can take out site specific)


    Robin W
    Moderator

    @robin-w

    try

    <?php global $current_user; get_currentuserinfo(); $uid = bbp_get_current_user_id(); ?>
    <?php if ( bbp_get_user_forum_subscriptions( $uid ) ) : ?>
    <?php $subs = bbp_get_user_forum_subscriptions( $uid ) ; ?>
      <?php while ( bbp_forums() ) : bbp_the_forum(); ?>
      <?php $forum_id = $bbp->forum_query->post->ID; ?>
    	<?php if (in_array($forum_id, $subs)) { ?>
        <p><?php bbp_forum_title(); ?></p>
    	<?php } ?>
      <?php endwhile; ?>
    <?php endif; ?>

    Robin W
    Moderator

    @robin-w

    can you post your corrected code


    Robin W
    Moderator

    @robin-w

    although this might fix that

    <?php global $current_user; get_currentuserinfo(); $uid = bbp_get_current_user_id(); ?>
    <?php if ( bbp_get_user_forum_subscriptions( $uid ) ) : ?>
    <?php $subs = bbp_get_user_forum_subscriptions( $uid ) ; ?>
    <?php $subs = explode(‘,’, $subs);
    <?php while ( bbp_forums() ) : bbp_the_forum(); ?>
    <?php $forum_id = bbp_get_forum_id( $forum_id ); ?>
    <?php if (in_array($forum_id, $subs)) { ?>
    <p><?php bbp_forum_title(); ?></p>
    etc.
    <php } ?>
    <?php endwhile; ?>
    <?php endif; ?>


    Robin W
    Moderator

    @robin-w

    can you post the full error msg

    In reply to: Foum category?

    Robin W
    Moderator

    @robin-w

    “bbPress 2.6.5 is out!” is a topic not a forum.

    so you have a forum called forum rules and if you click that, then yes, users will need to click the forum to see the topic.


    Robin W
    Moderator

    @robin-w

    untested but something like

    <?php global $current_user; get_currentuserinfo(); $uid = bbp_get_current_user_id(); ?>
    <?php if ( bbp_get_user_forum_subscriptions( $uid ) ) : ?>
    <?php $subs = bbp_get_user_forum_subscriptions( $uid ) ; ?>
      <?php while ( bbp_forums() ) : bbp_the_forum(); ?>
      <?php $forum_id = bbp_get_forum_id( $forum_id ); ?>
    	<?php if (in_array($forum_id, $subs)) { ?>
        <p><?php bbp_forum_title(); ?></p>
    	etc.
    	<php } ?>
      <?php endwhile; ?>
    <?php endif; ?>

    Robin W
    Moderator

    @robin-w

    wow, could be many of these or combination of them or your theme

    The best I can suggest is

    Themes

    As a test switch to a default theme such as twentyfifteen, 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


    Robin W
    Moderator

    @robin-w

    and then same shortcode on every topic page, and above or below the reply form ?


    Robin W
    Moderator

    @robin-w

    ok, thanks for sending that – I had something set that was not giving me that on my test site – now I can match your process, but i do not get the error.

    what other bbpress related plugins are you running ?


    Robin W
    Moderator

    @robin-w

    Now you will see that the trash link has turned to the Delete Admin Link , and from there you can click Delete to delete the topic permanently.

    when I trash a topic, then it disappears from the front end and it reverts to the forum list.


    Robin W
    Moderator

    @robin-w

    sorry, step 1 & 2 fine, but where are you seeing step 3? – if I trash a topic it disappears from the front end.


    Robin W
    Moderator

    @robin-w

    bbpress sends out emails as a single email, with the recipients BCC’d in.

    Many sending email servers see this as spam, and block.
    Intermediate mail servers can have the same attitude (eg gmail hotmail) so cut out those they see as spam
    Client firewalls frequently have an email component that will also filter perceived spam.
    Finally receiving email clients often see bcc as spam, so put them in the junk mail.

    This could explain why some are receiving and others not – depends on their mail server and mail client !

    Basically email is a fight between trying to get valid emails tjrough and stopping spam, and computer algorithms are frankly crap at this.

    sending them asynchronously can help a lot in getting then through

    AsynCRONous bbPress Subscriptions

    In reply to: Sort topics in a Forum

    Robin W
    Moderator

    @robin-w

    I’ve taken a look, and yes lots of code changes to get replies in reverse order, and currently too much of a challenge to try and do !

    Sorry !


    Robin W
    Moderator

    @robin-w

    do you mean after the main forum page, or each forum page, or each topic page ?


    Robin W
    Moderator

    @robin-w

    ok, I cannot say why it is not displaying.

    so you just have bbpress, not any other bbpress related plugins ?


    Robin W
    Moderator

    @robin-w

    and read https://bbpress.org/forums/topic/how-to-remove-default-bbpress-login/

    that should work, it might be that another plugin is overriding this.

    what other bbpress related plugins do you have ?


    Robin W
    Moderator

    @robin-w

    @lruzza -great glad it works

    Maintenance can be nothing or major – that’s the problem when one plugin is changing another – we are reliant on what – in this instance – bbpress does. If they don’t change the template that this hooks to or the function that is behind it – then nothing will be needed. I can’t see any WordPress updates affecting it as these are stable.

    Anyway I’ll look to add to style pack as a big fix – that way if bbpress fixes it it is a tick box to remove

    In reply to: Log In page

    Robin W
    Moderator

    @robin-w

    ok, so I’ve created a shortcode that should do this

    I’ve added this to my bbp-style-pack plugin

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>shortcodes

    and you’ll see how to add the shortcode there


    Robin W
    Moderator

    @robin-w

    @xprojectsx I meant to put a couple of smiley faces on the end of my last – it was said light heartedly !!


    Robin W
    Moderator

    @robin-w

    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

    @robin-w

    so rainy afternoon, so I have wrapped wpup’s code into a plugin, and fixed a couple of things that were different.

    This plugin technically works, but without creating multiple threads I can’t really test !

    so if anyone fancies trying it out, feel free and let me know if it does what it is supposed to.

    and sorry @xprojectsx – I am just putting it out there, I don’t promise to fix it if it doesn’t work, but am happy to take a look, and I don’t promise to maintain it – you download and use on this basis !

    If it does work, I’ll add it to the trac ticket for this thread, and maybe add it to my style pack plugin bug fix page.

    bbp threaded replies


    Robin W
    Moderator

    @robin-w

    great -thanks for posting the solution 🙂

Viewing 25 replies - 51 through 75 (of 9,524 total)