Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 2,751 through 2,775 (of 6,788 total)
  • Author
    Search Results
  • #153585
    cryx
    Participant

    Hi, I’m having a big problem with a client’s site of mine.

    Last week there was no problems. His forums are set to be private so only users with the correct roles can read and write. New registered users get assigned to a role I’ve created called “webshop customer” and forum role is Spectator (I created this using a guide I found). So as you know with Private forums a Spectator shouldn’t even get access to it. This worked to maybe 3 days ago for no apparent reason. Now suddenly all users with Spectator role can read and even write(!) in the forums without any barriers.

    I fixed this yesterday by reinstalling BBPress and it worked. But the next day the problem was back… I don’t know how to fix this.

    If you want admin details or FTP I can send you them. The only file I’ve changed is the “feedback-no-forums.php” inside “bbpress/templates/default/bbpress” to show some info for the Spectator user. I have no idea…

    #153553
    jessy
    Participant

    @cubeacid: You want this: Do not allow users to publish new topics, just replies on your topics. Correct?

    1, Install plugin: WPFront User Role Editor
    2, Go to Roles => All roles => and choose Participant, it has 8 capabilities
    3, You need uncheck publish_topics and edit_topics and assign_topic_tags and delete_topic_tags
    4, with this plugin you can do it because it is built in role from plugin bbPress
    5, But, we can customize it with filter function pasted below
    6, Jast paste it into function.php and refresh the page in admin plugin WPFront User Role Editor in Participate role how magicaly capabilities are removed šŸ™‚
    7, If the participant or regular registered user will go on topics, they will be message “You cannot create new topics.” and if user click on your own created topic, he can reply šŸ™‚

    Paste it into functions.php

    function my_custom_get_caps_for_role_filter($caps, $role)
    {
        /* Only filter for roles we are interested in! */
        if ($role == 'bbp_participant' )
            $caps = my_custom_get_caps_for_role($role);
    
        return $caps;
    }
    add_filter('bbp_get_caps_for_role', 'my_custom_get_caps_for_role_filter', 10, 2);
    
    function my_custom_get_caps_for_role($role)
    {
        switch ($role) {
            case 'bbp_participant':
                return array(
                    
                    // Primary caps
                    'spectate' => true,
                    'participate' => true,
                    'moderate' => false,
                    'throttle' => false,
                    'view_trash' => false,
                    
                    // Forum caps
                    'publish_forums' => false,
                    'edit_forums' => false,
                    'edit_others_forums' => false,
                    'delete_forums' => false,
                    'delete_others_forums' => false,
                    'read_private_forums' => false,
                    'read_hidden_forums' => false,
                    
                    // Topic caps
                    'publish_topics' => false,
                    'edit_topics' => false,
                    'edit_others_topics' => false,
                    'delete_topics' => false,
                    'delete_others_topics' => false,
                    'read_private_topics' => false,
                    
                    // Reply caps
                    'publish_replies' => true,
                    'edit_replies' => true,
                    'edit_others_replies' => false,
                    'delete_replies' => false,
                    'delete_others_replies' => false,
                    'read_private_replies' => false,
                    
                    // Topic tag caps
                    'manage_topic_tags' => false,
                    'edit_topic_tags' => false,
                    'delete_topic_tags' => false,
                    'assign_topic_tags' => false
                );
                break;
            default:
                return $role;
        }
    }

    I have try that ad for me it works.

    #153523
    Robin W
    Moderator

    you may need to rule out other factors, as far as I know bbpress works with woocommerce eg

    bbPress WooCommerce Integration: Tutorial on How to setup a Paid Forum on WordPress

    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 woocommerce 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.

    #153517
    esportsstream
    Participant

    So i made a new file called bbpress-functions.php and put this into it

    <?php
    //code to add tutor role 
    
    function add_apply_role( $bbp_roles )
    {
    	/* Add a role called apply */
    	$bbp_roles['bbp_apply'] = array(
    		'name' => 'apply',
    		'capabilities' => custom_capabilities( 'bbp_apply' )
    		);
    	return $bbp_roles;
    }
     
    add_filter( 'bbp_get_dynamic_roles', 'add_apply_role', 1 );
    
    function apply_role_caps_filter( $caps, $role )
    {
    	/* Only filter for roles we are interested in! */
    	if( $role == 'bbp_apply' )
    		$caps = custom_capabilities( $role );
     
    	return $caps;
    }
     
    add_filter( 'bbp_get_caps_for_role', 'apply_role_caps_filter', 10, 2 );
    
    function custom_capabilities( $role )
    {
    	switch ( $role )
    	{
    		 
    		/* Capabilities for 'apply' role */
    		case 'bbp_apply':
    			return array(
    				// Primary caps
    				'spectate'              => true,
    				'participate'           => true,
    				'moderate'              => false,
    				'throttle'              => false,
    				'view_trash'            => false,
     
    				// Forum caps
    				'publish_forums'        => false,
    				'edit_forums'           => false,
    				'edit_others_forums'    => false,
    				'delete_forums'         => false,
    				'delete_others_forums'  => false,
    				'read_private_forums'   => false,
    				'read_hidden_forums'    => false,
     
    				// Topic caps
    				'publish_topics'        => true,
    				'edit_topics'           => true,
    				'edit_others_topics'    => false,
    				'delete_topics'         => false,
    				'delete_others_topics'  => false,
    				'read_private_topics'   => false,
     
    				// Reply caps
    				'publish_replies'       => true,
    				'edit_replies'          => true,
    				'edit_others_replies'   => false,
    				'delete_replies'        => false,
    				'delete_others_replies' => false,
    				'read_private_replies'  => false,
     
    				// Topic tag caps
    				'manage_topic_tags'     => false,
    				'edit_topic_tags'       => false,
    				'delete_topic_tags'     => false,
    				'assign_topic_tags'     => true,
    			);
    			break;
     
    		default :
    			return $role;
    	}
    }
    

    I have no idea where i put this file in my site directory……

    #153514
    esportsstream
    Participant

    I am using bbpress ver 2.5.4

    This is my problem. Spectator can not post (want to change this) spectator can not see private forums (which I want to keep the same)

    Contributor can post (I do want) Can see private forums (dont want)

    This is what i want to do. I want to either make it so a spectator can post and not see private forums or I want to set it up a new default subscriber role that can post in normal forum sections but can not see or post in private sections until I turn them into contributor.

    How do I do this? I am using bbpress as a plugin for my wordpress site not on wordpress.org

    Thanks

    #153490
    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.

    #153483
    raulliive
    Participant

    Figured out all my issues with bbpress :).

    The culprit was that I had hidden a default language in WPML, which broke in bbpress quite some things.

    #153472
    Robin W
    Moderator

    If I have understood, you would probably need to alter

    wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php

    copy it to a bbpress directory within the root of your theme and edit it there, and bbpress will use it

    probably change line 42/43 to take out the if single forum bit ?

    #153442
    josuawahyudi
    Participant

    hi robin,

    many thanks for your respond.
    yes i use default permalinks…

    i just change it to “postname” and the result: all the parent & child forum cannot work

    this is the message i got:
    The requested URL ****** was not found on this server
    Apache Server at domain.com Port 80

    looks like i just got to use 1 level forum only?

    #153439
    Robin W
    Moderator

    Presuming you have default permalinks (don’t worry if you have no idea what this means) then it is a known issue with wordpress 4.0 and is in the queue for a fix on the next release.

    in the meantime you can either

    move you child themes up a level

    or (better) change your permalinks to ‘pretty’ ones.

    see https://codex.wordpress.org/Using_Permalinks for explanation of what a permalink is

    go to

    Dashboard>settings>permalinks and set them to ‘postname’

    #153437

    In reply to: 404 on Edit my post

    Robin W
    Moderator

    @creator2000

    ok, if you haven’t already try

    dashboard>tools>forums>repair forums run all of them but only one at a time
    the run the permalink reset again.


    @solosails

    Presume you have tried resetting permalinks, have disabled all the plugins and switched to default theme as above?

    #153416
    unihead
    Participant

    A day has passed and the flood of spam registrations seems to have completely stopped. So far I’m very impressed with Wangguard. For a start, it does one simple thing which the default installation of bbPress should do – it allows me to pose a question to new registrars that has to answered correctly to proceed. Seems so simple, but it took me ages to find something that would allow me to do that.

    I really don’t understand why like bbPress doesn’t have basic tools included that can stop the inevitable wave of spam registrations that happen to every new bbPress user. It’s just an endless waste of time for everyone who has to go through the same process of frustration, every time.

    #153401

    In reply to: bbp_setup_current_user

    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.

    #153365

    In reply to: "Reply" button

    Robin W
    Moderator

    If I have understood you correctly you want to change the reply form you’ll be looking at

    wp-content/plugins/bbpress/templates/default/bbpress/form-reply.php which sets up the forum and on line 57 calls

    bbp_the_content
    

    this function is in

    wp-content/plugins/bbpress\includes\common\template.php

    line 1706

    you’d probably want to write a filter fro that function

    if you’re familiar with wordpress args parsing, bbpress does it in the same way

    apply_filter (‘xx’ , ‘bbp_before_get_the_content_parse_args’)

    and then write a function xx that adds you initial text to $args[‘before’] should do it

    Don’t; have time to write and test it at the mo, but come back if you need further help

    #153315
    robertosalemi
    Participant

    Hi,
    i’m using Buddypress groups extras plugin for to add custom pages in section of group

    I have created manually three page for one group so the administrator can edit them.

    But I ask you:
    1) can I create this three pages as default for all present groups and future?
    2) can I associate a template to these pages?

    Thanks.

    CodingMachine
    Participant

    I found Solution…! hope may someone else with same customs…
    steps to do display wp_users roles excluding bbpress default role
    1) First create a folder in your child theme named wp-content/theme/yourchildtheme/bbpress.
    2) Then copy the loop-single-reply.php from wp-content\plugins\bbpress\templates\default\bbpress
    3) Go line 47 and replace the line

    bbp_reply_author_link( array( ‘sep’ => ‘<br />’, ‘show_role’ => false ) );

    with

    bbp_reply_author_link( array( ‘sep’ => ‘<br />’, ‘show_role’ => false ) );
    $reply_author_id = get_post_field( ‘post_author’, bbp_get_reply_id() );
    $user = new WP_User( $reply_author_id );

    if ( !empty( $user->roles ) && is_array( $user->roles ) )
    {
    foreach ( $user->roles as $role )
    {
    /*if (preg_match(“/”.$roles.”/i”, “administrator”))
    {
    echo(“Administrator”);
    break;
    }
    else*/
    echo “<div class=’role_custom_bhush’>”.ucfirst($role).”</div>”;
    break;
    }
    }

    hope anyone find it helpful and can reply for any queries on this

    #153313

    In reply to: Two forum index pages?

    lmcookie62
    Participant

    Here it is: thanks

    <?php get_header(); ?>

    <?php
    /** Themify Default Variables
    * @var object */
    global $themify;
    ?>

    <!– layout-container –>
    <div id=”layout” class=”clearfix pagewidth”>

    <?php themify_content_before(); //hook ?>
    <!– content –>
    <div id=”content” class=”clearfix”>
    <?php themify_content_start(); //hook ?>

    <?php
    /////////////////////////////////////////////
    // 404
    /////////////////////////////////////////////
    ?>
    <?php if(is_404()): ?>
    <h1 class=”page-title” itemprop=”name”><?php _e(‘404′,’themify’); ?></h1>
    <p><?php _e( ‘Page not found.’, ‘themify’ ); ?></p>
    <?php endif; ?>

    <?php
    /////////////////////////////////////////////
    // PAGE
    /////////////////////////////////////////////
    ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div id=”page-<?php the_ID(); ?>” class=”type-page” itemscope itemtype=”http://schema.org/Article”&gt;

    <!– page-title –>
    <?php if($themify->page_title != “yes”): ?>
    <h1 class=”page-title” itemprop=”name”><?php the_title(); ?></h1>
    <?php endif; ?>
    <!– /page-title –>

    <div class=”page-content entry-content” itemprop=”articleBody”>

    <?php the_content(); ?>

    <?php wp_link_pages(array(‘before’ => ‘<p>‘.__(‘Pages:’,’themify’).’ ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>

    <?php edit_post_link(__(‘Edit’,’themify’), ‘[‘, ‘]’); ?>

    <!– comments –>
    <?php if(!themify_check(‘setting-comments_pages’) && $themify->query_category == “”): ?>
    <?php comments_template(); ?>
    <?php endif; ?>
    <!– /comments –>

    </div>
    <!– /page-content –>

    </div><!– /.type-page –>
    <?php endwhile; endif; ?>

    <?php
    /////////////////////////////////////////////
    // Query Category
    /////////////////////////////////////////////
    ?>

    <?php
    ///////////////////////////////////////////
    // Setting image width, height
    ///////////////////////////////////////////
    if($themify->query_category != “”): ?>

    <?php if(themify_get(‘section_categories’) != ‘yes’): ?>

    <?php query_posts( apply_filters( ‘themify_query_posts_page_args’, ‘cat=’.$themify->query_category.’&posts_per_page=’.$themify->posts_per_page.’&paged=’.$themify->paged.’&order=’.$themify->order.’&orderby=’.$themify->orderby ) ); ?>

    <?php if(have_posts()): ?>

    <!– loops-wrapper –>
    <div id=”loops-wrapper” class=”loops-wrapper <?php echo $themify->layout . ‘ ‘ . $themify->post_layout; ?>”>

    <?php while(have_posts()) : the_post(); ?>

    <?php get_template_part(‘includes/loop’, ‘query’); ?>

    <?php endwhile; ?>

    </div>
    <!– /loops-wrapper –>

    <?php if ($themify->page_navigation != “yes”): ?>
    <?php get_template_part( ‘includes/pagination’); ?>
    <?php endif; ?>

    <?php else : ?>

    <?php endif; ?>

    <?php else: ?>

    <?php $categories = explode(“,”,str_replace(” “,””,$themify->query_category)); ?>

    <?php foreach($categories as $category): ?>

    <?php $category = get_term_by(is_numeric($category)? ‘id’: ‘slug’, $category, ‘category’);
    $cats = get_categories( array( ‘include’ => isset( $category ) && isset( $category->term_id )? $category->term_id : 0, ‘orderby’ => ‘id’ ) ); ?>

    <?php foreach($cats as $cat): ?>

    <?php query_posts( apply_filters( ‘themify_query_posts_page_args’, ‘cat=’.$cat->cat_ID.’&posts_per_page=’.$themify->posts_per_page.’&paged=’.$themify->paged.’&order=’.$themify->order.’&orderby=’.$themify->orderby ) ); ?>

    <?php if(have_posts()): ?>

    <!– category-section –>
    <div class=”category-section clearfix <?php echo $cat->slug; ?>-category”>

    <h3 class=”category-section-title”>cat_ID) ); ?>” title=”<?php _e(‘View more posts’, ‘themify’); ?>”><?php echo $cat->cat_name; ?></h3>

    <!– loops-wrapper –>
    <div id=”loops-wrapper” class=”loops-wrapper <?php echo $themify->layout . ‘ ‘ . $themify->post_layout; ?>”>
    <?php while(have_posts()) : the_post(); ?>

    <?php get_template_part(‘includes/loop’, ‘query’); ?>

    <?php endwhile; ?>
    </div>
    <!– /loops-wrapper –>

    <?php if ($themify->page_navigation != “yes”): ?>
    <?php get_template_part( ‘includes/pagination’); ?>
    <?php endif; ?>

    </div>
    <!– /category-section –>

    <?php else : ?>

    <?php endif; ?>

    <?php endforeach; ?>

    <?php endforeach; ?>

    <?php endif; ?>

    <?php endif; ?>
    <?php wp_reset_query(); ?>

    <?php themify_content_end(); //hook ?>
    </div>
    <!– /content –>
    <?php themify_content_after() //hook; ?>

    <?php
    /////////////////////////////////////////////
    // Sidebar
    /////////////////////////////////////////////
    if ($themify->layout != “sidebar-none”): get_sidebar(); endif; ?>

    </div>
    <!– /layout-container –>

    <?php get_footer(); ?>

    #153307

    In reply to: Two forum index pages?

    lmcookie62
    Participant

    Thank you for your reply.

    I’ve had a look at the article but unfortunately i’m not much further with this. I only have one page template – the default page.php and i’ve tried creating a bbpress page template as described but this doesnt change anything. I can’t see in my page.php any reference to a different style for the index page.

    If feels like i should focus first on sorting out my breadcrumb/structural issue. I can’t understand why my site isnt using the page name in the breadcrumb as appears to be the case on other example bbpress sites. See here.

    The example site uses the default slugs whilst the breadcrumb uses the page name – as you’d expect. I’m not clear what to do to get my site working in this way which would get rid of my double index page issue.

    #153290
    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.

    #153284
    NLBlackEagle
    Participant

    I found the way to fix the gray out issue for most people. However this didnt worked for me.

    In this folder: /wp-content/plugins/bbpress/templates/default/css
    Open up bbpress.css and find #bbpress-forums .status-closed,

    I changed color: #ccc; to #000;

    This should have fixed the gray out issue. However it did not worked =/

    This is a paste of the bbpress.css file: I changed line 59

    http://www.hastebin.com/ilehunucay.css

    #153273
    xprt007
    Participant

    Hi

    If you mean “3. Creating a forum page”, method 2, I tried that & was able to create this forum using the shortcode => [bbp-forum-index].

    On the Forum settings page & “/wp-admin/post-new.php?post_type=forum” page, it seems this only deals with the forum supposed according to the bbpress default settings to appear at /forums, but consistently wont.

    Does it mean all the forums & subforums have to be created using shortcodes (if so, any link where to find them?).

    This problem is not being experienced on another site sharing the same web hosting account, and has a separate domain. In the root of this particular, problematic site is some web directory. I wonder whether its moved the site to?

    I had a similar issue of consistent failure of accessing /recipes, generated by the recipepress reloaded plugin showing the recipe archive page, even with recommended default settings & permalinks, but just like the bbpress forum at /forums, it had the right url, but content of the site/blog front page. The plugin author, though said it was a bug in the plugin & changes in the code corrected the problem described here. Correct link now here.

    Could there be anything in this root folder .htaccess of the web directory (unrelated to WordPress), which may be causing this & affecting the functioning of bbpress (& not other plugins like Buddypress & co) or WordPress proper & in directory.com/wordpress & even in wordpress.directory.com? I ma not conversant with .htaccess & co. šŸ˜‰

    So just wondering what to do next.

    Thank you for taking the time to look into this.

    Kind regards

    #153256
    ShMk
    Participant

    Hello,
    I’m trying to convert a phpBB 3.0.x to bbPress using the default import tool by bbPress, but it looks that user avatars are not imported.
    Anyone know how to import theme? (my phpBB has over 5000 users so I cannot import them 1 by 1 :P)

    #153248
    Robin W
    Moderator

    I think you found a topic on an issue – since it didn’t fix it, suggest it is not relevant.

    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.

    #153229
    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.

    #153227
    Robin W
    Moderator

    ok, than, I now understand.

    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.

    Then come back and tell us where the issue is

Viewing 25 results - 2,751 through 2,775 (of 6,788 total)
Skip to toolbar