Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 12,076 through 12,100 (of 14,129 total)
  • @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' );

    @robin-w

    Moderator

    Live and learn 🙂

    Maybe a theme or plugin issue?

    with

    wp 4.0
    bp 2.5.4
    theme : twentyten
    Yoast SEO

    I get

    In reply to: CSS questions

    @robin-w

    Moderator

    usually putting #bbpress-forums in front does the trick eg

    #bbpress-forums .entry {
    background-color: #f4f4f4;
    }

    In reply to: change the post

    @robin-w

    Moderator

    there is a setting for this

    Dashboard>settings>forums

    Disallow editing after….

    change this to whatever you want

    @robin-w

    Moderator

    Ok, I created the changes needed – go to my site and download the changed files – instructions are there

    bbPress – Making Profile Pages Private

    Come back if you have any queries

    @robin-w

    Moderator

    @peterwsterling

    Are you saying that you get this issue with

    wp 4.0
    BP 2.5.4
    NO plugins apart from bbPress
    Twentyfourtenn theme

    ?

    @robin-w

    Moderator

    ok, there are two issues with wp 4.0

    ISSUE 1

    The first 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

    I’m working on patch for bbpress, but otherwise in the meantime there are 3 workarounds

    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

    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.

    ISSUE TWO

    The second hides topics and/or replies with some themes and other plugins. This is due to a change in wp4.0 on how it handles searches.

    For the second, the patch in either of these plugins may help.

    bbpress wp4 fix

    bbpress wp4 fix2

    ONLY have one active at a time. The first form some users may show the same topic content against several topics, so fully check several posts to ensure it isn working for you.

    If it does, please come back and say

    @robin-w

    Moderator

    The normal behaviour is to allow anyone to see profiles.

    You can limit this to only logged in users by adding some code to a couple of files.

    If you have c-panel or ftp access and know how to transfer files, come back and I’ll help you with the changes.

    @robin-w

    Moderator

    @seojobb – so now you ned to work out which one is causing the conflict by re-enabling one at a time

    In reply to: Online Magazine Theme

    @robin-w

    Moderator

    ok, save this file as bbpress.php into the root of your theme

    ie

    wp-content/themes/%yourthemename%/bbpress.php

    where %yourthemename% is the name of your theme !! 🙂

    Then add a line above the last, so that it now reads

    <? get_sidebar(); ?>
    <?php get_footer(); ?>

    bbpress will now use that page as the one for bbpress, and should display a sidebar.

    ‘tweaks’ should tghen sue this fro your forum sidebar.

    Come back if any of that doesn’t work, or you need more explanation

    @robin-w

    Moderator

    @vegas778 – I’m just a humble wordpres/bbpress user, and it may well be that I cannot help you, but I’ll try if I can.

    I tried googling meta title, but that phrase doesn’t seem to exist.

    You have again posted several pages, but I still don’t know which are ‘correct’ and which are ‘wrong’ in your view, and to be frank, which bit the meta title is?

    @robin-w

    Moderator

    @peterwsterling – which theme are you using?

    In reply to: Online Magazine Theme

    @robin-w

    Moderator

    can you post the code for the full width one here please

Viewing 25 replies - 12,076 through 12,100 (of 14,129 total)