Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 12,676 through 12,700 (of 13,958 total)
  • In reply to: Newby a little lost

    @robin-w

    Moderator

    ok, so we’re back to setting the default template that bbpress uses, but this time to one with a sidebar

    Step by step guide to setting up a bbPress forum – Part 1

    @robin-w

    Moderator

    ok, let me know how you get on.

    If you’d like specific coding done, then try wordpress jobs

    http://jobs.wordpress.net/

    @robin-w

    Moderator

    I presume they used to be ok? or have they never worked?

    Since they are images, almost anything in wordpress could have affected.

    have you added any plugins, or updated/changed themes?

    @robin-w

    Moderator

    possibly a conflict

    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

    You were very close !

    function change_reply_post_date($output) {
    $day= '('.get_post_time('D').')';
    $output = preg_replace( '/at/' , $day , $output );
    return $output;
    }
    add_filter( 'bbp_get_reply_post_date' , 'change_reply_post_date');
    

    the line $day…etc. sets $day equal to an ‘open bracket’, followed by the day, followed by a ‘close bracket’ – the full stops are a concatenate in php.

    your original "<?php echo get_post_time('D'); ?>" does the following
    <?php = switch on php – we’re already in php, so not needed
    echo = send to screen – but we don’t want that, we want the result to be sent, which will be done by other code
    get_post_time= that’s the key part that you had figured
    ?> = ends php, which we don’t want to do as the rest of the line is php

    @robin-w

    Moderator

    ok, no problem !

    @robin-w

    Moderator

    sorry, but recent replies doesn’t have a category part – which widget exactly do you mean?

    @robin-w

    Moderator

    you could try adding the following to your functions file

    add_filter( 'd4p_is_bbpress', '__return_true' );
    

    or seeing if your theme or other plugins are affecting

    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

    Can you just eliminate theem or plugin issues, this should show descriptions (content) on the category pages.

    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

    @robin-w

    Moderator

    I don’t know, I’ve never used it !

    @robin-w

    Moderator

    yes that’s the way it is supposed to work – try the plugin

    https://wordpress.org/plugins/gd-bbpress-attachments/

    @robin-w

    Moderator

    ‘Why is there no way to control this with shortcodes and nobody has found a solution 🙁 ‘

    Solutions require problems, and clearly not enough think this a problem. 🙂

    There are probably several hundred things that the developers are working on or could work on (I’m not a developer, just a volunteer helping here).

    I’m not actually sure what you are saying isn’t there – is this just controlling the numbers, or are you after more functionality.

    If you could write a detailed problem definition, I’ll take a look !

    @robin-w

    Moderator

    since I don’t know courseware, I can’t directly say.

    You could always put in a link

    eg http://www.mysite.com/forums/forum1

    from somewhere within courseware

    @robin-w

    Moderator

    great – glad you’re fixed !

    @robin-w

    Moderator

    ok, then install the plugin

    https://wordpress.org/support/plugin/bbp-private-groups

    then each course would have a group, and you would add users to that forum group.

    @robin-w

    Moderator

    so you’ve put

    <?php if ($countr !=0) bbp_reply_author_link( array( ‘sep’ => ‘<br />’, ‘show_role’ => true ) ); ?>
    

    on the loop single reply – yes?

    Try adding a line before that

    <?php echo ‘countr is ‘ . $countr ; ?>

    that should then show what the value is somewhere on the page (bottom left of each topic/reply would be my bet), so you can see what’s happening !

    If it’s not coming through you might need to declare it before using it in replies

    eg new line before line 45 saying

    <?php global $countr ; ?>

    @robin-w

    Moderator

    Do you have a donation link?

    I do, but it’s probably not etiquete to put it on this forum !

    But when you do find the solution, PLEASE post it back here, so that others searching later can find it !

    @robin-w

    Moderator

    ok, so

    //function to remove the comma
    function change_comma_time($output) {
    $output = preg_replace( ‘/[,]/’ , ‘ ‘ , $output );
    return $output;
    }
    add_filter( ‘bbp_get_time_since’, ‘change_comma_time’ );
    add_filter(‘bp_core_time_since’, ‘change_comma_time’);

    will take out the commas. You need to add this to your functions file and

    ‘function custom_get_forum_freshness_link() {
    $time_since = bbp_get_forum_last_active_time( $forum_id );
    $anchor = $time_since ;
    return $anchor ;
    }

    add_filter( ‘bbp_get_forum_freshness_link’, ‘custom_get_forum_freshness_link’ );’

    will take out the link

    You will need to add these to your functions file.

    Come back if you need further help

    @robin-w

    Moderator

    ‘course are posts for “courses” custom post type.’

    That is the part that confuses me.

    Bbpress uses three custom post types – forum, topic and reply – none of which would concern you.

    If you just want forums for each course, that is out of the box, but a course participant would be able to see other course’s forums – is this an issue?

    Otherwise if you want separate private group forums then try adding the following plugin on top of bbpress.

    https://wordpress.org/support/plugin/bbp-private-groups

    Since I have never used courseware I can’t say how well bbpress would integrate with it

    I think you best option is to install bbpress and see how it works for you.

    @robin-w

    Moderator

    Try this link and come back if that doesn’t solve it for you

    https://codex.bbpress.org/bbpress-in-your-language/

    In reply to: bbPress Codex

    @robin-w

    Moderator

    looks good Stephen, will be interesting to see how that develops !

    for plugins, a list of wordpress plugins by what they do rather than what they’re called would be useful, which I’d be happy to work on. At the moment you have to want something and then articulate this in a search. Most newcomers don’t realise what they can do with a few plugins, and a simple list would be great to stimulate the mind.

    @robin-w

    Moderator

    I’m not quite sure what you are asking.

    do you want a separate forum for each course?
    and does each forum need to be private from the others?

    so
    course 1 would have forum 1
    course 2 would have forum 2

    that is do-able, but I am not sure where your question on custom post types comes in?

    @robin-w

    Moderator

    ok, quick and messy way (based on some code I did elsewhere)

    create a directory in your theme root called bbpress

    wp-content/themes/%your-theme-name%/bbpress

    copy

    wp-content/plugins/bbpress/templates/default/bbpress

    loop-replies.php
    and
    loop-single-reply.php

    into this directory

    bbpress will now use these files instead

    in loop-replies change from line 40 to

    <li class="bbp-body">
    
    		<?php if ( bbp_thread_replies() ) : ?>
    
    			<?php bbp_list_replies(); ?>
    			
    			
    		<?php else : ?>
    			<?php global $countr ;
    			$countr=0 ; ?>
    		
    			<?php while ( bbp_replies() ) : bbp_the_reply(); ?>
    			
    			<?php 
    			$countr ++ ; 
    			
    			<?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
    
    			<?php endwhile; ?>
    
    

    This is basically just putting a count into this, so that we can see that the topic is count 0

    then in loop-single-reply change line 45 to read

    <?php if ($countr !=0) bbp_reply_author_link( array( ‘sep’ => ‘<br />’, ‘show_role’ => true ) ); ?>

    I’ve not tested this, but you should be able to get it to work.

    @robin-w

    Moderator

    ‘I’m sure it’s just a matter of understanding how WordPress or specifically BuddyPress implement PHP forms and the rest should be a cakewalk.’

    Absolutely. Most answers are simple once you’ve found them!

    I don’t quite know what to suggest next !

Viewing 25 replies - 12,676 through 12,700 (of 13,958 total)