Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 976 through 1,000 (of 6,775 total)
  • Author
    Search Results
  • #199442
    Robin W
    Moderator

    hmm

    you’ll need to alter several files, so general first

    altering bbpress templates

    You can copy all the templates across, but you only need to copy those that you want to change, and it is better just to do this, as then you know which you have altered.

    so if you wanted to amend loop-single-forum you would do the following

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/loop-single-forum.php
    bbPress will now use this template instead of the original
    and you can amend this

    files

    There may be others, but

    loop-forums (forum headings)
    loop-single forum (forum content)
    loop-topics (single forum heading)
    loop-single-topic (single forum content)

    will get you most of the way there

    #199431
    Robin W
    Moderator

    can only suggest that something else is putting it there

    maybe try

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    #199417
    lucju04
    Participant

    Hi everybody,

    I would like to creat a home for my forum who loop some forum in blocs. And in this bloc I would like to list sub forum with topic count, post count and freshness.

    I make a mockup to be more precise ^^ You can the here: https://ibb.co/zFD60d1

    I already try to make these loop but I can’t retrieve the freshness & counts for each sub forum.

    And also I need to design differently each row but bbpress retrieve data in columns…

    Do you already make something like this ?

    I found this function:

    //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'      => ' <span class="counts">[ ',
    		'count_after'       => '  réponse(s) ]</span>',
    		'count_sep'         => ' sujet(s), ',
    		'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
    				$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' );

    I got the description of subforum, it’s a good start..

    #199382
    Robin W
    Moderator

    bbpress just uses wordpress login, so

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    #199320
    Mike Witt
    Participant

    If I want to change a default user capability. For example let participants delete their own topics or replies. Am I supposed to edit capabilities.php directly? Or is there some other way to do this? I see a number pages discussing this, but they all seem to talk about editing that file. I also found a reference to something called “keep_gate” but I can’t actually find the documentation on it. Sorry if I’m being dense 🙂

    #199265

    In reply to: bbpress topic problem

    ckriegel
    Participant

    Hi, for future people who may meet this issue, i used this fix but it worked only on one of my 2 websites. However, i could solve it on my website, and i believe that the origin of the problem has been found :

    This solution may work for those who have installed a membership plugin (s2member, wishlistmember, optimizepress). The issue seems to be with the way these plugins manage the searches. They seem to catch on the fly the searches to hide content, and can create a conflict of compatibility with some other plugins like bbpress which need to display content based on roles. Plugins like Wishlistmember and S2member (or optimizepress, based on s2member,) allow deactivating of this without creating any major issue for the membership site. For those using optimizepress, it can be done thanks to the alternative view protection feature in OP. I only unchecked “Searches”, and the problem disapeared, which would confirm this idea that the issue comes from the way that searches are handled by the membership plugin.

    For those using WLM, here is someone who found where to made a similar configuration (although it may have a bigger impact) :
    “The issue on my site had to do with a setting in WishList Member. For me I had to go to WishList Member >> Settings >> Protection Defaults and then set the “Only show content for each membership level:” and set to “No”. After I did that it worked.”

    #199264
    ckriegel
    Participant

    Hi, for future people who may meet this issue, i could solve it on my website :

    This solution may work for those who have installed a membership plugin (s2member, wishlistmember, optimizepress). The issue seems to be with the way these plugins manage the searches. They seem to catch on the fly the searches to hide content, and can create a conflict of compatibility with some other plugins like bbpress which need to display content based on roles. Plugins like Wishlistmember and S2member (or optimizepress, based on s2member,) allow deactivating of this without creating any major issue for the membership site. For those using optimizepress, it can be done thanks to the alternative view protection feature in OP. I only unchecked “Searches”, and the problem disapeared, which would confirm this idea that the issue comes from the way that searches are handled by the membership plugin.

    For those using WLM, here is someone who found where to made a similar configuration (although it may have a bigger impact) :
    “The issue on my site had to do with a setting in WishList Member. For me I had to go to WishList Member >> Settings >> Protection Defaults and then set the “Only show content for each membership level:” and set to “No”. After I did that it worked.”

    #199262

    In reply to: Delete “Header”

    Robin W
    Moderator

    best way would be to edit the templates

    loop_forums
    loop-single-forum
    loop-topics
    loop-single-topic

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-forums.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/loop-forums.php
    bbPress will now use this template instead of the original
    and you can amend this

    then repeat for the others

    Robin W
    Moderator

    It could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    #199131
    Robin W
    Moderator

    It could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    #199054
    Robin W
    Moderator

    that is presuming you have run the normal tests

    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 twentyfifteen, and see if this fixes.

    #199001

    In reply to: Layout for Categories

    Robin W
    Moderator

    ok, now I can see – this is well beyond free help, buy suggest you start by looking at modifying

    wp-content/plugins/bbpress/templates/default/bbpress/content-archive-forum.php

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/content-archive-forum.php

    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/content-archive-forum.php
    bbPress will now use this template instead of the original
    and you can amend this

    #198927
    info99928
    Participant

    Default:
    “My website title that is fricking long” > Forums > Forum > Post

    I know how to change everything except “My website title that is fricking long”. I obviously don’t want to change my website’s name, I just want to change what is shown in the forum breadcrumb and there is not a setting for that.

    Thanks

    #198856

    In reply to: Breadcrumb

    raugul
    Participant

    These changes I made in php files
    BbPress plugin
    \wp-content\plugins\bbpress\templates\default\bbpress\content-single-forum.php
    \wp-content\plugins\bbpress\templates\default\bbpress\content-single-topic.php
    Add this
    <?php bbp_breadcrumb(); ?>
    After this
    <?php bbp_get_template_part( ‘pagination’, ‘replies’ ); ?>

    #198803
    Robin W
    Moderator

    It could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    #198770
    wurkagency
    Participant

    Hi All,

    Had the same issue as described above. The default phpbb.php import script didn’t convert anonymous users of topics and replies and the Pixenated script looped infinately with the conversion of users.

    I’ve fixed the script and uploaded to PasteBin. Feel free to share widely.
    https://pastebin.com/FpWsxsUG

    How To:
    1) Upgrade phpBB to v.3.2.5
    2) Install BBpress 2.6 RC7
    3) Upload to /wp-content/plugins/bbpress/includes/admin/converters/phpbb.php

    Remember that real men don’t do backups. They cry a lot. 🙂

    #198697
    domyit
    Participant

    Hi, I imported a vbulletin forum into bbpress.
    When I do the repair, I get a blank page for these 2:
    – Recalculate the position of each re-entry
    – Reset existing users to default forum rules

    I tried again and again, always the same result.
    How can I solve?
    Thanks!

    #198574

    In reply to: Links in new topic

    Oaz
    Participant

    here is all the code I have (line 614 to 626) :

    function custom_bbp_has_replies($args) {
    $args[‘order’] = ‘DESC’; // ‘ASC’ (Ascending, Default), ‘DESC’ (Descending)

    return $args;
    }
    add_filter(‘bbp_before_has_replies_parse_args’, ‘custom_bbp_has_replies’ );

    function custom_bbp_show_lead_topic( $show_lead ) {
    $show_lead[] = ‘true’;

    return $show_lead;
    }
    add_filter(‘bbp_show_lead_topic’, ‘custom_bbp_show_lead_topic’ );

    The errors :

    Notice: Use of undefined constant ‘custom_bbp_has_replies’ – assumed ‘‘custom_bbp_has_replies’’ in /home/acania/public_html/demo/wp-content/themes/woffice-child-theme/functions.php on line 619

    Notice: Use of undefined constant ‘bbp_show_lead_topic’ – assumed ‘‘bbp_show_lead_topic’’ in /home/acania/public_html/demo/wp-content/themes/woffice-child-theme/functions.php on line 626

    Notice: Use of undefined constant ‘custom_bbp_show_lead_topic’ – assumed ‘‘custom_bbp_show_lead_topic’’ in /home/acania/public_html/demo/wp-content/themes/woffice-child-theme/functions.php on line 626

    In fact answers are not inverted anymore…

    #198571

    In reply to: Links in new topic

    Robin W
    Moderator

    your first bit of code should be

    function custom_bbp_has_replies($args) {
     $args[‘order’] = ‘DESC’; // ‘ASC’ (Ascending, Default), ‘DESC’ (Descending)
    
    return $args;
     }
    
    add_filter(‘bbp_before_has_replies_parse_args’, ‘custom_bbp_has_replies’ );
    

    The ($args) brings in all the existing args and then your next line modifies just the ‘order’ arg. Otherwise the only argument passed to the query is the ‘order’ arg, so there is nothing to display.

    #198569
    Oaz
    Participant

    Hello there,

    I have a problem with pasting links in new topics : they do not display. (They do display normall in replies though)

    This is due to trying to inverse order of replies : I used bbpress toolkit for that purpose and the problem happened.
    I also tried inverting replies order with this snippet in functions.php file :

    function custom_bbp_has_replies() {
    $args[‘order’] = ‘DESC’; // ‘ASC’ (Ascending, Default), ‘DESC’ (Descending)

    return $args;
    }

    add_filter(‘bbp_before_has_replies_parse_args’, ‘custom_bbp_has_replies’ );

    function custom_bbp_show_lead_topic( $show_lead ) {
    $show_lead[] = ‘true’;
    return $show_lead;
    }

    add_filter(‘bbp_show_lead_topic’, ‘custom_bbp_show_lead_topic’ );

    the snippet works as far as replies rder is concerned, but then I bump in the same problem, links not displaying in new topics.

    Any clue how to invert replies order without this link issue ?

    thanks

    #198553
    Robin W
    Moderator

    by default bbpress send one email to the noreply address and bcc’s in the subscibers, so only one email sent.

    code to change

    add_filter ('bbp_get_do_not_reply_address', 'rew_no_reply') ;
    
    function rew_no_reply ($no_reply) {
    	$no_reply = abc@def.com ;
    return $no_reply ;
    }

    You’d think the bbpress coders would have created setting for this by now

    the bbpress coders are busy people who can code what they wish to. Not up to us to criticise free software

    #198527
    kahlidah
    Participant

    Need some help getting this forum looking decent on a mobile. I’ve toned it back to a very basic one page forum and it looks fine on desktop/laptop etc, but the mobile layout is horrible..even if I can get the words “last post” to show on one line.

    I’ve played around with the responsive settings on CSS (all back to default now when this screenshot was taken)..but no luck.

    Screenshot

    Any help would be appreciated. Thanks

    #198408

    In reply to: Topic View

    kahlidah
    Participant

    Well I managed a workaround and appear to have come up with a good solution.

    I installed the custom sidebars plug in, then used a text widget to place my desired page content in for the topic page. I made that my default widget which means it automatically shows up on the topic page. To set the rest of my pages back to my standard widget, I used the custom sidebars plug in. It’s not a solution to solving the template issues with intricate themes, but a good workaround. Only took me three days to think of it 🙂

    #198334

    In reply to: Topic View

    kahlidah
    Participant

    Yes, I read that and according to my edit panel I am using the default template – which I am guessing is just my theme. All my pages say they are using the default template regardless of the layout on the actual page. I have searched through file manager on cpanel and can only find the one page.php with no obvious other php files. Is there any other way to determine which php file I should be copying because right now – there only appears to be the one.

    #198299
    Robin W
    Moderator

    ok, not something I’ve seen, as can only suggest that you do the basic fault finding process ie

    It could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

Viewing 25 results - 976 through 1,000 (of 6,775 total)
Skip to toolbar