Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for ' . default . '

Viewing 25 results - 3,276 through 3,300 (of 6,759 total)
  • Author
    Search Results
  • #142901

    In reply to: Removing "Started by:"

    Robin W
    Moderator

    Ok, you need to do the following

    If you have a child theme, then do this in there

    If you don’t have a child theme, then seriously consider creating one, it’s very quick and easy, and will ensure that changes you make don’t get lost on theme or bbpress upgrades. Just google wordpress child theme videos and you’ll get lots of help.

    In your theme create a bbpress directory
    wp-content/themes/yourthemename/bbpress

    then copy

    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-topic.php to this directory so that you have
    wp-content/themes/yourthemename/bbpress/loop-single-topic.php

    Edit this file to delete line 60 which says

    <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>
    

    and save.

    bbPress will now use the file in your theme’s bbpress folder instead of the default, and you won’t lose your change on bbpress upgrades – but will it it is in your main theme, so if you don’t create a child theme, keep a note of what you changed, as if your theme updates, then you may/will lose the bbpress folder and file.

    #142891
    crzyhrse
    Participant

    Thanks Robin and hi again… 🙂

    That doesn’t find anything that seems to pertain, plenty of padding in the normal sense for various aspects of replies… And pertaining to replies is what I’m looking for because that is where the nesting (offsetting? indenting?) or threading occurs, per the Reply threading setting in the forum settings section of the Admin settings section…

    I’ve searched through directories everywhere that made sense, php and css, for terms like nest, thread, indent, offset… found nothing… It would need to be some sort of code that recognized whether it was a first, second or third reply, etc, and also somehow say how much to indent… It would also seem to need to some way be affected by the setting for it, as mentioned above…

    I was kinda hoping to maybe attract John James Jacoby’s attention on this, noticing how much he seems to know in the various support areas I’ve looked over time..?

    This would seem to be something that would be helpful to others as well..? The default indent distance I believe is much more than is needed to show nesting, and the less it indents the less the following indents will be crowded to the right, don’t know but maybe even get cut off…?

    Thanks… It is nice when someone replies, doesn’t always happen… 🙂

    John.

    #142890
    w2kd
    Participant

    Not a total new install but a new install of BBPress and we do have wishlist.
    Also the page is not totally blank it still has the banner and footer but no menu or content generated. No side bar widgets.
    I tried to deactivate the plugin without success.
    Changing to the default template did work so its the AIR theme from Yootheme

    So what next – look for something in the theme that could be causing it

    #142869
    Robin W
    Moderator

    Is this a new installation, or has this just started on an old one.

    Try disabling all other plugins, and seeing if that fixes it. If so then re-add back one at a time to see which is causing.

    If none, the switch to a default theme such as twentytwelve and see if it still occurs

    Come back and let us know the results

    #142868
    Robin W
    Moderator

    Try

    Step by step guide to setting up a bbPress forum – part 4

    The actions are used in the templates held in

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

    #142849

    Topic: Freshness Date Format

    in forum Plugins
    lajd
    Participant

    Hi,

    How should I modify the format of the freshness date.
    I want to change it to date and time.
    I already google it,also search in this forum but can’t find clear solution.

    see attached image:
    screenshot

    Thanks

    #142817
    e11eca
    Participant

    Hello!

    I’m having an issue with bbPress 2.5.3, Slider Revolution 4.0.5, and Woocommerce 2.1.2. I contacted Slider Revolution, and they said they couldn’t figure out the issue and that I should contact my theme creator since their plugin came bundled with my theme, but the theme creator says it isn’t a theme issue, so I’m reaching out to bbPress since the Woocommerce help desk is down for the weekend in hopes I can at least get a leg up – even though it’s a pretty weird triple-plugin conflict.

    1. When all plugins are activated, layer styles in Revolution Slider’s slide editor show a tiny white font in all the previews, but only generate default dark text.

    2. When all plugins are activated, I cannot add a slider to a page where bbPress forums are active – it just doesn’t appear, even when I have disabled the theme’s default header, or tried to insert it via shortcodes or php. (Any other page and the slider loads fine)

    3. When I deactivate bbPress and its associated plugins, the slider loads correctly because there is no forum on the page.

    4. When bbPress and Woocommerce are both deactivated, everything works as it is supposed to in the editor as well.

    Existing sliders on the website still load correctly – it’s just an issue of making new ones with a forum on the same page, and getting the editor to work. bbPress prevents a slider created in the Slider Revolution plugin from being published on a page with a forum, and Woocommerce messes up the editor.

    Any help or ideas are appreciated. I’ve tried the troubleshooting options in the plugins and nothing seems to fix the issue. Thanks!

    #142815
    tom211221
    Participant

    thanks for the help i do not have the default template this was created for me…is there someway i can get it?

    and where do i copy it to and how? sorry im new to all this

    #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
    nicmare
    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!

Viewing 25 results - 3,276 through 3,300 (of 6,759 total)
Skip to toolbar