Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 13,026 through 13,050 (of 14,128 total)
  • @robin-w

    Moderator

    then it’s probably a conflict with one of your 29 other plugins ! 🙂

    @robin-w

    Moderator

    Suspect it is theme or plugin related!

    Normally I’d just post the standard text viz

    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, switch to a default theme such as twentytwelve, and see if this fixes.

    but with 29 plugins that could take you a while ! and it could even be a combination.

    Think I’d start with a quick theme change to eliminate that and then I suppose it depends on who needs access as non admin but able to add links as to whether you plough through and work out where it is failing.

    @robin-w

    Moderator

    new version 1.5 with unlimited groups just added to website

    bbp Private Groups

    and will be uploaded to wordpress plugins in the next few days !

    @robin-w

    Moderator

    keep us updated, this is not my field of expertise, so can’t directly help you !

    @robin-w

    Moderator

    @iclimb hopefully Nathan will share his solution with us.

    @robin-w

    Moderator

    @pasquale-galasso

    Thanks, glad you are finding it useful. The unlimited groups version is on it’s way, I’ve coded it, but just need to tidy up the user interface.

    bbPress have said that they intend to have groups in the core product at some stage, but I have no idea on timescales.

    @robin-w

    Moderator

    @vikr0001 – thanks for your comments.

    There are many ‘group’ and ‘member’ plugins for wordpress out there, and whilst they share some common features, many work in totally different ways, and to make my plugin work with any/all of these could be very difficult.

    Alongside this people use group and member plugins in different ways, so how you would like my plugin to work with groups may be different from how someone else would like to

    I can usually however make it so that my plugin doesn’t conflict – ie not cause any issues and can be used alongside.

    If my plugin is conflicting with ‘groups’ plugin, please let me know and I’ll take a look.

    If you want me to look at any further at compatibility, can you summarise what you would like my plugin to do with the groups plugin that it currently doesn’t, and I may take a look to see how easy that would be to do.

    Regards

    Robin

    @robin-w

    Moderator

    The function is

    bbp_add_user_forum_subscription

    it is in

    bbpress/includes/users/functions.php

    you pass it user-id and forum_id

    @robin-w

    Moderator

    @matoca

    I think you’ve had your forum for a while now? Presume you’ve not loaded a new plugin?

    Otherwise, can’t really suggest anything else.

    Hopefully someone better than me will pop in and suggest something ! 🙂

    @robin-w

    Moderator

    Actually

    <p> <?php if (!is_user_logged_in()) echo do_shortcode ('[bbp-login]') ; ?>
    

    would be a better line of code, as then someone logged in with a spectator role would not see the login prompt

    @robin-w

    Moderator

    If you want a quick solution to this

    create a directory within your theme called bbpress

    ie wp-content/your-theme-name/bbpress

    And into this folder copy the following file

    bbpress/templates/default/bbpress/form-reply.php

    Then alter this file to have a new line 175 as follows

    <p> <?php echo do_shortcode ('[bbp-login]') ; ?>
    

    so that

    <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
    		<div class="bbp-template-notice">
    			<p><?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'You must be logged in to reply to this topic.', 'bbpress' ); ?></p>
    	</div>
    	</div>
    

    becomes

    <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
    		<div class="bbp-template-notice">
    			<p><?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'You must be logged in to reply to this topic.', 'bbpress' ); ?></p>
    		<p> <?php echo do_shortcode ('[bbp-login]') ; ?>
    		</div>
    	</div>
    

    Save this file, and bbpress will use this and a login panel will be displayed.

    @robin-w

    Moderator

    If my response in

    Why is BBPress not following css?

    does not solve it, please respond on that thread

    Thanks

    @robin-w

    Moderator

    ok, it could be coded, but is not available as far as I know.

    @robin-w

    Moderator

    sorry it was the weekend, and all the helpers on here are volunteers on have jobs and a social life to lead as well 🙂 please be patient.

    The coding for this is quite complicated, but I’d suggest you start by looking at the bbp_has_topics function in

    bbpress/includes/topics/template

    this will give you a lot of the code for pagination

    @robin-w

    Moderator

    great – glad you’re fixed !

    @robin-w

    Moderator

    Not sure if this parameter is there ie set or just blank in buddypress

    However you can test if empty – empty meaning not set or set to 0 or set to “”

    by changing

    echo 'Location: ' . $user_location; 
    

    to

    if (!empty($user_location)) {echo 'Location: ' . $user_location; }
    

    @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, switch to a default theme such as twentytwelve, and see if this fixes.

    @robin-w

    Moderator

    Do you mean that when registering, the user would put in their email address, and the username would be generated from that?

    @robin-w

    Moderator

    May be as simple as the order that the plugins are loading.

    see

    Layout and functionality – Examples you can use

    No. 6

    you could also put the word !important after the change to prevent bbpress overriding it eg

    /* Remove nav bar and search form */
    .page #nav-bar {
    display: none !important;
    }
    
    .page #s {
    display: none !important;
    }
    

    @robin-w

    Moderator

    you’re welcome !!

    @robin-w

    Moderator

    great- glad you’re fixed

    @robin-w

    Moderator

    you were pretty much there

    the following, which is just two lines nicked from elsewhere and joined by a ‘by’ text should do what you want

    <span class="bbp-last-post-by-author"><?php printf( __( 'Last Post: %1$s', 'bbpress' ),bbp_get_topic_freshness_link( array() ) ); ?></span>
    <?php _e(' by ', 'bbp'); ?>
    <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); ?></span>
    

    Come back if that’s not what you wanted !

    In reply to: Multiple revisions log

    @robin-w

    Moderator

    could be plugin or theme related

    try

    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, switch to a default theme such as twentytwelve, and see if this fixes.

    @robin-w

    Moderator

    “I havent put every file from bbpress in my child theme ”

    yes that’s fine, you only need to put in files that you have changed.

    I’ll look at the rest of your comments shortly !

    @robin-w

    Moderator

    Sounds like you’re further through hacking the code than most people get !

    ok, just in case you haven’t already seen it, if you’re changing the template files, you should create a bbpress directory in the root of your (child)theme, and copy the files there. bbPress will then use these instead, and they won’t get overwritten by upgrades to bbpress. You should also have a child theme, and put them in there rather than someone else’s theme, and then theme updates won’t overwrite them either!

    see

    Step by step guide to setting up a bbPress forum – part 2

    and

    https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-3/ section 3

    I presume you’ve tried the code? That’s the other great thing about using the bbpress folder in your child theme, you can just delete the server version and it goes back to the default one.

    If so where is it falling over?

    can you copy the lines between

    <?php do_action( 'bbp_theme_before_topic_started_by' ); ?>
    

    and

    `<?php do_action( ‘bbp_theme_after_topic_started_by’ ); ?>

    and paste them into here, and I’ll take a look

    I’m out today, but if I get a chance later I’ll then run it and debug for you.

Viewing 25 replies - 13,026 through 13,050 (of 14,128 total)