Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 12,176 through 12,200 (of 14,219 total)
  • @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

    @robin-w

    Moderator

    @vegas778

    I’m sure there is a question in there somewhere, but I have no idea what it is.

    Can you come back and explain
    What the issue is
    what is currently showing
    when or where it is showing it wrongly, and where correctly
    and how you would like it to show

    Thaanks

    @robin-w

    Moderator

    great – glad you’re fixed

    @robin-w

    Moderator

    images are doable, but you’d need code that is beyond the free help on here

    In reply to: Online Magazine Theme

    @robin-w

    Moderator

    yes, you will need to rename one of your theme pages (the one that has only one sidebar) to bbpress.php and put it into your theme

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

    In reply to: disable Sidebar

    @robin-w

    Moderator

    yes, you will need to rename one of your theme pages (the one that has only one sidebar) to bbpress.php and put it into your theme

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

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

    @robin-w

    Moderator

    Yes, each of your

    ['my_custom_role']

    needs to be different, otherwise it’s just overwriting each time, which is why only the last one shows
    eg my_custom_role1 my_custom_role2

    giving

    $bbp_roles['my_custom_role1>'] = array( 
        'name' => 'Recruit',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
    
      );
      
      $bbp_roles['my_custom_role2'] = array( 
        'name' => 'Corporal',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
    
      );
    
    

    @robin-w

    Moderator

    Great – glad you’re fixed !

    In reply to: change forum sidebar

    @robin-w

    Moderator

    @martinperreault – hey thanks for that – it’s good to know that advice works, and always nice to be appreciated 🙂

    @robin-w

    Moderator

    try running repair

    Dashboard>tools>forums>repair forums

    and run one at a time

Viewing 25 replies - 12,176 through 12,200 (of 14,219 total)