Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 3,326 through 3,350 (of 6,813 total)
  • Author
    Search Results
  • #142814
    Robin W
    Moderator

    The page you are using to display is a full width page.

    Since you are using a child theme of twenty twelve, I presume you still have the default template which has a sidebar.

    If so, then copy this file, and rename it to bbpress.php and put it into your theme’s root ie
    wp-content/themes/twentytwelve-Child/bbpress.php

    That will ensure that bbPress uses a template with a sidebar

    #142800
    Robin W
    Moderator

    @netweb Stephen, Thanks for this, and having now looked at the trac ticket and bbp_parse_args function I see how this works.

    @nicmare

    Wherever you see bbp_parse_args, there’s a filter for the function to do this.

    bbp_parse_args has the format

    function bbp_parse_args( $args, $defaults = array(), $filter_key = '' )
    

    The resultant filter name is made up of bbp_before_’ . $filter_key . ‘_parse_args’

    (there is an bbp_after one as well!)

    The filter key is the third argument in the bbp_parse_args

    $r = bbp_parse_args( $args, array(
    		'before'            => '<ul class="bbp-forums-list">',
    		'after'             => '</ul>',
    		'link_before'       => '',
    		'link_after'        => '',
    		'count_before'      => '<span>',
    		'count_after'       => '</span>',
    		'count_sep'         => '</span><span>',
    		'separator'         => '',
    		'forum_id'          => '',
    		'show_topic_count'  => true,
    		'show_reply_count'  => true,
    	), 'list_forums' );

    so ‘list_fourms’ in the last line is the third argument.

    This should help you for the other two functions, as filters will then be obvious !

    #142783
    Mycelus
    Participant

    Ok, the problem is, these features should be integrated into bbPress by default, all forum software has this, and the plugins for quoting for example don’t work like it should, and signature plugins are also outdated and not the best.

    EDIT: Didn’t see two posts above, editing post…

    #142779

    In reply to: Mirroring Forum Posts

    Robin W
    Moderator

    Sorry, totally misread this – thought you had posts mirroring and wasted to get rid of them.

    I suspect that it would be very hard to get them to just replicate in the database, hits at core code.

    But you could re-do your forum templates to show them twice.

    Beyond my immediate knowledge, but start by looking at you forum page loop, and then the templates viz

    wp-content/plugins/bbpress/templats/default/bbpress

    #142774
    Robin W
    Moderator

    ok, so I know how to filter variables (and am documenting for the codex), but I cannto figure the syntax for an array.

    As an example (and apologies for long code – but in this case hope you’ll let me off!)

    function bbp_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 );
    
    			// 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['link_before'] . '<a href="' . esc_url( $permalink ) . '" class="bbp-forum-link">' . $title . $counts . '</a>' . $show_sep . $r['link_after'];
    		}
    
    		// Output the list
    		echo apply_filters( 'bbp_list_forums', $r['before'] . $output . $r['after'], $r );
    	}
    }

    If I wanted to turn off the topic and reply counts, I could use a filter which would look something like

    function hide_forum_counts () {
    $r['show_topic_count'] = false ;
    $r['show_reply_count'] = false ;
    $r['separator']  = ' ';
    return $r ;
    }
    add_filter('bbp_list_forums','hide_forum_counts') ;

    Stephen, JJJ or other bbp genius – can you post the answer, I have tried everything to prevent needing to copy all the original function, but have failed

    #142773
    Nic
    Participant

    Yes. So this is my code which works:

    add_filter('bbp_list_forums','custom_bbp_list_forums',10);
    function custom_bbp_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'       => '',
    		'link_after'        => '',
    		'count_before'      => '<span>',
    		'count_after'       => '</span>',
    		'count_sep'         => '</span><span>',
    		'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 );
    
    			// 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'];
    			}
    		}
    		// Output the list
    		echo apply_filters( 'bbp_list_forumss', $r['before'] . $output . $r['after'], $r );
    	}
    }

    but maybe there is an easier way to modify arguments array?!

    #142765
    Robin W
    Moderator

    BBpress uses your themes page.php file as default page template.

    If you copy this (or any other page template) into the root of your theme and call it bbpress.php, it will be used instead.

    ie

    wp-content/themes/yourtheme/bbpress.php

    If you are after individual templates, these are held in :

    bbpress/templates/default/bbpress

    If you want to alter these, create a bbpress folder under your theme

    ie

    wp-content/themes/yourtheme/bbpress

    then any of these templates that you copy to this folder will be used instead, and you can modify them there.

    #142741

    In reply to: Mirroring Forum Posts

    Robin W
    Moderator

    Ok, it should all be fine.

    Suggest you start by deactivating all your other plugins to see if that fixes. If it does, then add back one at a time to see which is causing it.

    If that doesn’t work, try changing to a default theme such as twentyeleven and see if that fixes

    Come back and let us know if that gets you anywhere

    #142734
    Robin W
    Moderator

    ok, try deactivating all your other plugins, and see if it then works. If it does, then add one at a time to see which is causing the issue.

    If still failing, switch to a default theme such as twentyeleven to see if it is theme related

    #142733
    Robin W
    Moderator

    Presuming you are using latest versions, these should work fine together.

    What other plugins have you got? Deactivate all other plugins except buddy and bb, and see if they are then ok.

    If not, then try switching to a default theme such as twentyeleven to see if it is theme related.

    If it is ok with just theme and bbpress and buddypress, add back plugins one at a time to see which is casuing the conflict

    #142732
    Robin W
    Moderator

    Yes it can be done, but you’d need to have some coding skills.

    You’d need to amend loop-single-reply.

    Start by creating a directory called “bbpress” under you theme directory

    ie

    wp-content/themes/what-every-yourtheme-is/bbpress

    and copy this file

    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.php

    to it

    This file is then used by a higher loop to display the topic and replies as you now see them, with avatars and all the content.

    You can then amend this file to display as a single line items, presumably with a post link attached.

    #142715
    futiles
    Participant

    The site was using one of the options for permalinks, not the default, and for whatever reason, only the default works. Fixed now.

    #142680

    In reply to: LABELS

    Robin W
    Moderator

    You should create a bbpress directory under your theme

    ie

    wp-content/themes/yourthemename/bbpress

    and copy any bbpress templates to there.

    bbPress will then use these instead of the default template ones

    Otherwise any templates you alter will be overwritten by any upgrades and you’ll have to do the work all over again !

    #142676
    Matoca
    Participant

    Robin,
    Thank you for the suggestions. I tried this and found that the conflict comes from the option on the bottom of the forum pages that allows users to “Notify me of follow-up replies via email.” If this is checked it sends an email to the user. It sends the same content as the plugin, but the emails are formatted slightly different, enough that I was able to identify them:
    You are receiving this email because you subscribed to a forum topic. Login and visit the topic to unsubscribe from these emails.”

    The plugin formats the emails like this:
    “Hello! A new reply has been posted by . Topic title: Reply To: Content:”

    What complicates this is that once checked on the forum page, the “notify me of follow-ups” will continue to remain checked and the users would have to uncheck it each time they posted. I read about this on another support topic, the default is supposed to be not checked but once it is checked it stays checked.

    I think this also means that if it is checked, even if you have never posted to the topic, you still get the email. I will have to follow this carefully to see what the behavior is for others.

    So without being able to control the “notify me of follow-ups” checkbox, I must rely on the moderators to take care of this themselves.
    Thank you so much for your help, it was invaluable!
    Matoca

    #142652

    In reply to: LABELS

    Robin W
    Moderator

    umm, Now I’m a bit confused.

    The filter only affects the bbp breadcrumb, so that fact that your theme doesn’t have breadcrumbs is irrelevant.

    If you just add that code to your themes functions, it will be used by bbPress as it loads and not display.

    I presume that’s where you put the previous code to change to blogs? If not try that code again!

    Whilst you can add it to a default theme such as twenty eleven, keep a note of it, as any theme upgrade will overwrite it. you should consider a child theme to let you make changes without affecting the core code and themes see https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-2/ for some info on child themes

    #142641
    rsafarnejad
    Participant

    I set up WordPress on Microsoft Azure cloud and installed bbPress. Users can add topics and type in posts/replies and the correct number of posts/replies are displayed but the actual post/reply text does not display when users click on the topic title. Take a look: http://testgene2.azurewebsites.net/?topic=which-16s-rrna-primers-to-use

    Any help or ideas are appreciated. I pretty much went with the defaults on installation and settings.

    #142621

    In reply to: Topic & Reply count

    Skez
    Participant

    Thanks for your reply Robin but unfortunately it doesn’t seem to work.
    For me the line with <?php bbp_list_forums()?> is line 44 and not 30.

    I’m not completely sure I am doing it right, I change the following in the file bbpress/templates/default/bbpress/loop-single-forum.php<?php bbp_list_forums()?> to

    <?php bbp_list_forums(array (
    'show_topic_count' => false,
    'show_reply_count' => false,
    'separator' => '',
    ));?>

    Is that correct? I tried different endings as well, since the original line ends with just )?> I tried ending the new one also like that but all it gives me when I reload the forums is the following
    Parse error: syntax error, unexpected ‘=’, expecting ‘)’ in /home/virtual/mydomain.com/public_html/familjen/wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php on line 45

    If <?php bbp_list_forums()?> is line 44 then line 45 has to be 'show_topic_count' => false,

    I’m very confused here!

    WAIT A MINUTE NOW! It was just me not realizing the => represents => but => turned to => when I copied it into this post so now it works. Many thanks!

    Matoca
    Participant

    I have a WP installation with bbPress installed. I am setting up moderators and would like them to receive emails from posted forum topics and replies so they can keep up with the forum when they are not logged in. I set up forwarders in the server for the email account for the forum domain email address (example team@ourblog.com).

    But then I realized that I get these topics and replies sent to me via the generic email account for the hosting account (myuserlogin@box###.bluehost.com) on the server. I also get then to my primary email account and I am not sure how that happens, but thought this was because I checked “Notify me of follow-up replies via email.”

    How does “Notify me of follow-up replies via email” actually work? I can’t find anything in documentation that explains this. Does it harvest the topics and replies and send it to the email of the poster who has checked this feature? Why am I getting this mail sent to the my isp default box number for my account?

    If I could figure out how bbPress is determining email addresses, then I could solve my own problem.
    Thank you, Matoca
    WordPress 3.8.1
    bbPress 2.5.3-5249
    http://www.secondchanceaihadogs.com

    #142618
    Skez
    Participant

    Hey everybody!

    Me and a friend have been looking for this for several hours now without look. I’ve found some outdated posts about it but since they’re outdated any eventual fix doesn’t work.

    What we want to do is remove the topic and reply count from the Forum titles (marked red in the image). I’ve personally checked probably all .php-files in bbpress\templates\default and few in the includes folder looking for anything related to topic, reply count. Either I’m looking in the wrong place or I’ve missed them.

    As you can see I marked something with green as well, this isn’t as important but I would like to either remove that one or rename to Star or something similar since pressing it sends you back to the start page.

    Appreciate all kinds of help, cheers!

    #142604
    Doremdou
    Participant

    Hi, I have the exact same problem, did you manage to fix this @estepix ?
    or did you have to use the outdated plugin Threaded Replies? :/

    I really need pagination WITH threaded replies on my bbpress forum the same way @estepix explained it. Because when a topic has over 500+ replies it is NOT conceivable to display them on the SAME page.

    Do someone have a trick to do the following?

    Enable threaded replies N levels deep

    Break replies into pages with N top level replies per page and the first/last page displayed by default
    Replies should be displayed with the older/newer replies at the top of the page

    Thank you very much for your help 🙂
    Dorem

    #142553
    Zonic Mirage
    Participant

    Also, I am currently using Twenty Twelve, which is a default theme. Could it have anything to do with file permissions? The server will only allow the site to function if directories and files are set in a specific way. The Buddy Press and Stop Spammers plugins haven’t had any trouble whatsoever, in either case.

    #142541
    Stephen Edgar
    Keymaster

    If you are using custom templates then adding <?php bbp_forum_subscription_link(); ?> should be all you need 🙂

    Here is the original source depending on what templates you are using: /templates/default/bbpress/content-archive-forum.php#L26
    and/or
    /templates/default/bbpress/content-single-forum.php#L16

    #142531
    Robin W
    Moderator

    possible conflict with other plugins or your theme

    Try deactivating all plugins except bbPress and then add buddypress back and restest. if ok, the add other plugins back one at a time to see which is causing the conflict.

    If no joy, then switch to default theme (eg twentytwelve) and see if it still is still there

    Come back and let us know how you got on

    #142527
    sylcollin
    Participant

    Just to be clear, both files are wrong (see below). They have the same behaviour.

    I updated bbpress to version 2.5.3, and I still have the same issue.
    I solved the other issues reported by whynopadlock.com. Only bbpress issues are remaining, here is what whynopadlock.com says:

    Total number of items: 45
    Number of insecure items: 2

    Insecure URL: http://test.paulkampfstudios.com/training/wp-content/plugins/bbpress/templates/default/css/bbpress.css?ver=2.5.3-5249
    Found in: https://test.paulkampfstudios.com/training/video-training/purchase/

    Insecure URL: http://test.paulkampfstudios.com/training/wp-content/plugins/bbpress/templates/default/js/editor.js?ver=2.5.3-5249
    Found in: https://test.paulkampfstudios.com/training/video-training/purchase/

    I found about the chrome javascript console after, but it confirms what whynopadlock.com said.

    #142525
Viewing 25 results - 3,326 through 3,350 (of 6,813 total)
Skip to toolbar