Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 12,076 through 12,100 (of 14,141 total)
  • In reply to: Forum Restrictions

    @robin-w

    Moderator

    Patience please ! This forum is monitored by volunteers who give there time for free, and have day jobs and families 🙂

    Try

    https://wordpress.org/plugins/bbp-private-groups/

    In reply to: Forum Error

    @robin-w

    Moderator

    This is a recent issue with wp4.0, and there is a bug fix outstanding for this.

    The Issue

    This gives 404 errors with sub forums for users with default permalinks. This is due to a bug in wp4.0, and netweb is on the case to get this fixed in 4.0.1

    Three wordarounds

    1. Change your permalinks to any of the other settings

    Dashboard>settings>permalinks

    The most often used is ‘postname’

    This will not only fix your issue, but make your links look prettier. However if you have links to your site forums from other sites/emails, these links might break (ie they will come up as 404 errors), but if your choice is between users not accessing, or users complaining that the link in that old email no longer works, then resetting might seem a good idea.

    2. revert to 3.9.2

    see https://www.youtube.com/watch?v=_lX3E-qIpJM

    for quite a good video on how to do it

    3. Move your sub-forums up a level ie make them all main forums

    and keep monitoring this site for a solution.

    In reply to: Full Width Forum Pages

    @robin-w

    Moderator

    that’s a bit of styling needed

    add

    #bbpress-forums {
    margin: 25px !important;
    width: 960px !important;
    }

    to your theme’s style sheet, or preferably to your child theme

    Functions files and child themes – explained !

    In reply to: Full Width Forum Pages

    @robin-w

    Moderator

    Sorry, you’ll need to explain what the remaining issue is – it’s probably obvious to you, but not to me looking at the links.

    Please explain rather than just posting links 🙂

    @robin-w

    Moderator

    The forum is held as the post_parent in wp_posts

    so you would update this

    eg

    // Update topic 37
      $my_post = array(
          'ID'           => 37,
          'post_parent' => 27
      );
    
    // Update the post into the database
      wp_update_post( $my_post );
    
    

    where 27 is the id of the parent forum

    In reply to: CSS Plugin

    @robin-w

    Moderator

    Developers: please… design a simple plugin for people like me. A very-simple-plugin that allows me to change colors, fonts and two or three things more. I would be help a lot to BBPress users than don’t know how to use CSS.

    It’s on my list of things to do when I get some time – agree it would be really useful, but I need to learn a bit more about how to get plugins to write css !

    In reply to: Full Width Forum Pages

    @robin-w

    Moderator

    Ok, you’ll need to copy this and rename it bbpress as per the above

    As this is a theme file, I’m having to guess a bit about what it is doing, so this may or may not work.

    So once you have this as bbpress.php

    delete

    $is_page_builder_used = et_pb_is_pagebuilder_used( get_the_ID() );
    

    and replace it with

    $is_page_builder_used = TRUE ;
    

    come back and let us know if that works

    @robin-w

    Moderator

    Great – glad you’re fixed !

    @robin-w

    Moderator

    Sorry, no immediate way to style it, the words use the font size and other styling from the bbp-reply-author class.

    I’ll look to add this ability in the next version

    In reply to: Full Width Forum Pages

    @robin-w

    Moderator

    You need to get bbpress to use the full width template

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

    @robin-w

    Moderator

    click a forum subject on the left hand side

    eg installation, troubleshooting

    Now at the bottom of the page there will be a new topic area.

    Yes I know a ‘new topic’ button on the left would be great, I’m just a humble contributor here !

    @robin-w

    Moderator

    Try

    https://wordpress.org/plugins/bbp-private-groups/

    which I pretty much wrote following this and other requests for that sort of functionality

    @robin-w

    Moderator

    great – glad you’re fixed !

    In reply to: Online Magazine Theme

    @robin-w

    Moderator

    Great – I do hate that them authors won’t write variants of themes for no-sidebar/1 sidebar/2 sidebar, it would make life so much easier 🙂

    In reply to: Online Magazine Theme

    @robin-w

    Moderator

    ok, I downloaded the theme and had a play

    you need to create this file as bbpress.php

    <?php global $theme; get_header(); ?>
    
        <div id="main">
        
            <?php $theme->hook('main_before'); ?>
    
            <div id="content2">
                
                <?php $theme->hook('content_before'); ?>
            
                <?php 
                    if (have_posts()) : while (have_posts()) : the_post();
                        /**
                         * Find the post formatting for the pages in the post-page.php file
                         */
                        get_template_part('post', 'page');
                        
                        if(comments_open( get_the_ID() ))  {
                            comments_template('', true); 
                        }
                    endwhile;
                    
                    else :
                        get_template_part('post', 'noresults');
                    endif; 
                ?>
                
                <?php $theme->hook('content_after'); ?>
            
            </div><!-- #content -->
        
            <div id="sidebar-primary">
    
       <?php
            if(!dynamic_sidebar('sidebar-bbpress')) {
                /**
                * The primary sidebar widget area. Manage the widgets from: wp-admin -> Appearance -> Widgets 
                */
                $theme->hook('sidebar-bbpress');
            }
            $theme->hook("sidebar_primary_after");
        ?>
        
    </div><!-- #sidebar-primary -->
            
            <?php $theme->hook('main_after'); ?>
            
        </div><!-- #main -->
        
    <?php get_footer(); ?>
    
    

    Then in your style.css you need to add the following to the bottom just above the

    /* =END
    
    
    #content2 {
      float: left;
      overflow: hidden;
      width: 630px;
    }
    
    

    That should do it

    In reply to: Online Magazine Theme

    @robin-w

    Moderator

    sorry…

    <? get_sidebar(); ?>
    

    should read

    <?php get_sidebar(); ?>

    @robin-w

    Moderator

    try using the method shown here

    Layout and functionality – Examples you can use

    @robin-w

    Moderator

    you have a smart theme that is displaying that, which someone has customised.

    can you look in your theme and see if you have a folder here

    wp-content/themes/eighties/bbpress

    If you have can you list the files held there

    @robin-w

    Moderator

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

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

    In reply to: UNDEFINED Header. . .

    @robin-w

    Moderator

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

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

    In reply to: UNDEFINED Header. . .

    @robin-w

    Moderator

    Try method 2 !

    In reply to: UNDEFINED Header. . .

    @robin-w

    Moderator

    how are you accessing this page – which of these is it?

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

    @robin-w

    Moderator

    ok,

    In your theme create a bbpress directory

    wp-content/themes/%yourtheme%/bbpress

    where %yourtheme% is your theme name

    Then copy the following file to that folder

    wp-content/plugins/bbpress/template/default/bbpress/form-topic.php

    So you end up with

    wp-content/themes/%yourtheme%/bbpress/form-topic.php

    You can then edit this file, and bbpress will use this version.

    @robin-w

    Moderator

    @editor-mike – sorry do you have a problem after deleting 100 replies at a time?

    @robin-w

    Moderator

    I think this should do it. It’s from my library of code and haven’t used it in a while, so come back if it’s not what you want

    You’ll need to add it to your functions file

    Functions files and child themes – explained !

    //This function adds descriptions to the sub forums
    function custom_list_forums( $args = '' ) {
    
    	// Define used variables
    	$output = $sub_forums = $topic_count = $reply_count = $counts = '';
    	$i = 0;
    	$count = array();
    
    	// Parse arguments against default values
    	$r = bbp_parse_args( $args, array(
    		'before'            => '<ul class="bbp-forums-list">',
    		'after'             => '</ul>',
    		'link_before'       => '<li class="bbp-forum">',
    		'link_after'        => '</li>',
    		'count_before'      => ' (',
    		'count_after'       => ')',
    		'count_sep'         => ', ',
    		'separator'         => ', ',
    		'forum_id'          => '',
    		'show_topic_count'  => true,
    		'show_reply_count'  => true,
    	), 'list_forums' );
    
    	// Loop through forums and create a list
    	$sub_forums = bbp_forum_get_subforums( $r['forum_id'] );
    	if ( !empty( $sub_forums ) ) {
    
    		// Total count (for separator)
    		$total_subs = count( $sub_forums );
    		foreach ( $sub_forums as $sub_forum ) {
    			$i++; // Separator count
    
    			// Get forum details
    			$count     = array();
    			$show_sep  = $total_subs > $i ? $r['separator'] : '';
    			$permalink = bbp_get_forum_permalink( $sub_forum->ID );
    			$title     = bbp_get_forum_title( $sub_forum->ID );
    			$content = bbp_get_forum_content($sub_forum->ID) ;
    
    			// Show topic count
    			if ( !empty( $r['show_topic_count'] ) && !bbp_is_forum_category( $sub_forum->ID ) ) {
    				$count['topic'] = bbp_get_forum_topic_count( $sub_forum->ID );
    			}
    
    			// Show reply count
    			if ( !empty( $r['show_reply_count'] ) && !bbp_is_forum_category( $sub_forum->ID ) ) {
    				$count['reply'] = bbp_get_forum_reply_count( $sub_forum->ID );
    			}
    
    			// Counts to show
    			if ( !empty( $count ) ) {
    				$counts = $r['count_before'] . implode( $r['count_sep'], $count ) . $r['count_after'];
    			}
    
    			// Build this sub forums link
    			$output .= $r['before'].$r['link_before'] . '<a href="' . esc_url( $permalink ) . '" class="bbp-forum-link">' . $title . $counts . '</a>' . $show_sep . $r['link_after'].'<div class="bbp-forum-content">'.$content.'</div>'.$r['after'];
    		}
    
    		// Output the list
    		return $output ;
    	}
    }
    
    add_filter('bbp_list_forums', 'custom_list_forums' );
Viewing 25 replies - 12,076 through 12,100 (of 14,141 total)