Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 16,651 through 16,675 (of 64,516 total)
  • Author
    Search Results
  • #158355
    Robin W
    Moderator

    ok, more drastic action required

    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.

    Sorry I’m running out of ideas beyond this … šŸ™‚

    #158352
    Robin W
    Moderator

    @vikingpoker

    I have another plugin user with this issue, which helps as it should get me quicker to a solution.

    But can I also ask your help?

    Could I please ask you to do 2 things (or any combination will help me)

    1. Could you try version 1.2 – I’m not sure if the latest version 1.3 is an issue

    Therefore could you go to http://www.rewweb.co.uk/bbp-style-pack-1-2/ and follow the instructions.

    If this works, then let me know, as it will eliminate much of my code as the issue.

    2. If you are able to could you :
    a. Deactivate all plugins except bbpress and bbp style pack and see if this fixes. if it does, re-enable one at a time to see which is causing the error when my plugin is also active.
    b. If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.

    Then switch back to your normal theme and re-enable all plugins (except mine as this is causing the issue) and come back with the results

    #158319
    paigedah
    Participant

    forum can be found under forums: http://www.stardatesbahamasinternational.com

    i cant figure out why it isnt formatted properly, can anyone help?

    #158317
    vikingpoker
    Participant

    bbPress, bbPress New UI, Black Studio TinyMCE Widget, BuddyPress, Contact Form 7, iFlyChat, Regenerate Thumbnails, Responsive Lightbox, Widget Logic, WP-PageNavi

    Other than yours thats it.

    #158316

    In reply to: i ask theme ?

    crewockeez
    Participant

    i want theme bbpress in pic

    #158306

    In reply to: Layout in progress

    peter-hamilton
    Participant

    I agree with you there, and I am hoping to improve where they failed

    in the mean time, a shot of the BBPress forum index

    Robin W
    Moderator

    It was quicker to code it than describe it.

    Basically I’ve created a new widget called (rew) Login Widget

    Copy all the below into your functions file

    You’ll see that all it required was taking out the label, and putting ‘placeholder’ into the input line

    I even changed lost password into forgot your password !

    The go into widgets and you’ll see the new widget (rew) Login Widget

    enjoy !

    class Rew_Login_Widget extends WP_Widget {
    
    	/**
    	 * bbPress Login Widget
    	 *
    	 * Registers the login widget
    	 *
    	 * @since bbPress (r2827)
    	 *
    	 * @uses apply_filters() Calls 'bbp_login_widget_options' with the
    	 *                        widget options
    	 */
    	public function __construct() {
    		$widget_ops = apply_filters( 'rew_login_widget_options', array(
    			'classname'   => 'bbp_widget_login',
    			'description' => __( 'A simple login form with optional links to sign-up and lost password pages.', 'bbpress' )
    		) );
    
    		parent::__construct( false, __( '(rew) Login Widget', 'bbpress' ), $widget_ops );
    	}
    
    	/**
    	 * Register the widget
    	 *
    	 * @since bbPress (r3389)
    	 *
    	 * @uses register_widget()
    	 */
    	public static function register_widget() {
    		register_widget( 'Rew_Login_Widget' );
    	}
    
    	/**
    	 * Displays the output, the login form
    	 *
    	 * @since bbPress (r2827)
    	 *
    	 * @param mixed $args Arguments
    	 * @param array $instance Instance
    	 * @uses apply_filters() Calls 'bbp_login_widget_title' with the title
    	 * @uses get_template_part() To get the login/logged in form
    	 */
    	public function widget( $args = array(), $instance = array() ) {
    
    		// Get widget settings
    		$settings = $this->parse_settings( $instance );
    
    		// Typical WordPress filter
    		$settings['title'] = apply_filters( 'rew_widget_title', $settings['title'], $instance, $this->id_base );
    
    		// bbPress filters
    		$settings['title']    = apply_filters( 'rew_login_widget_title',    $settings['title'],    $instance, $this->id_base );
    		$settings['register'] = apply_filters( 'rew_login_widget_register', $settings['register'], $instance, $this->id_base );
    		$settings['lostpass'] = apply_filters( 'rew_login_widget_lostpass', $settings['lostpass'], $instance, $this->id_base );
    
    		echo $args['before_widget'];
    
    		if ( !empty( $settings['title'] ) ) {
    			echo $args['before_title'] . $settings['title'] . $args['after_title'];
    		}
    
    		if ( !is_user_logged_in() ) : ?>
    
    			<form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form">
    				<fieldset>
    					<legend><?php _e( 'Log In', 'bbpress' ); ?></legend>
    
    					<div class="bbp-username">
    						<input type="text" name="log" placeholder = "Username" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>" />
    						
    					
    					</div>
    
    					<div class="bbp-password">
    						<input type="password" name="pwd" placeholder = "Password"  value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" tabindex="<?php bbp_tab_index(); ?>" />
    					</div>
    
    					<div class="bbp-remember-me">
    						<input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ), true, true ); ?> id="rememberme" tabindex="<?php bbp_tab_index(); ?>" />
    						<label for="rememberme"><?php _e( 'Remember Me', 'bbpress' ); ?></label>
    					</div>
    
    					<div class="bbp-submit-wrapper">
    
    						<?php do_action( 'login_form' ); ?>
    
    						<button type="submit" name="user-submit" id="user-submit" tabindex="<?php bbp_tab_index(); ?>" class="button submit user-submit"><?php _e( 'Log In', 'bbpress' ); ?></button>
    
    						<?php bbp_user_login_fields(); ?>
    
    					</div>
    
    					<?php if ( !empty( $settings['register'] ) || !empty( $settings['lostpass'] ) ) : ?>
    
    						<div class="bbp-login-links">
    
    							<?php if ( !empty( $settings['register'] ) ) : ?>
    
    								<a href="<?php echo esc_url( $settings['register'] ); ?>" title="<?php esc_attr_e( 'Register', 'bbpress' ); ?>" class="bbp-register-link"><?php _e( 'Register', 'bbpress' ); ?></a>
    
    							<?php endif; ?>
    
    							<?php if ( !empty( $settings['lostpass'] ) ) : ?>
    
    								<a href="<?php echo esc_url( $settings['lostpass'] ); ?>" title="<?php esc_attr_e( 'Forgot Your Password', 'bbpress' ); ?>" class="bbp-lostpass-link"><?php _e( 'Forgot Your Password', 'bbpress' ); ?></a>
    
    							<?php endif; ?>
    
    						</div>
    
    					<?php endif; ?>
    
    				</fieldset>
    			</form>
    
    		<?php else : ?>
    
    			<div class="bbp-logged-in">
    				<a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>" class="submit user-submit"><?php echo get_avatar( bbp_get_current_user_id(), '40' ); ?></a>
    				<h4><?php bbp_user_profile_link( bbp_get_current_user_id() ); ?></h4>
    
    				<?php bbp_logout_link(); ?>
    			</div>
    
    		<?php endif;
    
    		echo $args['after_widget'];
    	}
    
    	/**
    	 * Update the login widget options
    	 *
    	 * @since bbPress (r2827)
    	 *
    	 * @param array $new_instance The new instance options
    	 * @param array $old_instance The old instance options
    	 */
    	public function update( $new_instance, $old_instance ) {
    		$instance             = $old_instance;
    		$instance['title']    = strip_tags( $new_instance['title'] );
    		$instance['register'] = esc_url_raw( $new_instance['register'] );
    		$instance['lostpass'] = esc_url_raw( $new_instance['lostpass'] );
    
    		return $instance;
    	}
    
    	/**
    	 * Output the login widget options form
    	 *
    	 * @since bbPress (r2827)
    	 *
    	 * @param $instance Instance
    	 * @uses BBP_Login_Widget::get_field_id() To output the field id
    	 * @uses BBP_Login_Widget::get_field_name() To output the field name
    	 */
    	public function form( $instance = array() ) {
    
    		// Get widget settings
    		$settings = $this->parse_settings( $instance ); ?>
    
    		<p>
    			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'bbpress' ); ?>
    			<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $settings['title'] ); ?>" /></label>
    		</p>
    
    		<p>
    			<label for="<?php echo $this->get_field_id( 'register' ); ?>"><?php _e( 'Register URI:', 'bbpress' ); ?>
    			<input class="widefat" id="<?php echo $this->get_field_id( 'register' ); ?>" name="<?php echo $this->get_field_name( 'register' ); ?>" type="text" value="<?php echo esc_url( $settings['register'] ); ?>" /></label>
    		</p>
    
    		<p>
    			<label for="<?php echo $this->get_field_id( 'lostpass' ); ?>"><?php _e( 'Lost Password URI:', 'bbpress' ); ?>
    			<input class="widefat" id="<?php echo $this->get_field_id( 'lostpass' ); ?>" name="<?php echo $this->get_field_name( 'lostpass' ); ?>" type="text" value="<?php echo esc_url( $settings['lostpass'] ); ?>" /></label>
    		</p>
    
    		<?php
    	}
    
    	/**
    	 * Merge the widget settings into defaults array.
    	 *
    	 * @since bbPress (r4802)
    	 *
    	 * @param $instance Instance
    	 * @uses bbp_parse_args() To merge widget settings into defaults
    	 */
    	public function parse_settings( $instance = array() ) {
    		return bbp_parse_args( $instance, array(
    			'title'    => '',
    			'register' => '',
    			'lostpass' => ''
    		), 'login_widget_settings' );
    	}
    }
    
    add_action( 'widgets_init', function(){
         register_widget( 'Rew_Login_Widget' );
    });
    #158302
    kc9wwh
    Participant

    Its weird…I can change permissions for Posts and Pages and they come through instantly…its just with bbPress that I am noticing issues.

    Tomorrow I may just have to remove bbPress and try re-installing it and see what happens. Anyway, I’ll check back here tomorrow first.

    #158296
    Robin W
    Moderator

    Come back if you rae still having problems tomorrow, but the code you posted works with bbpress !

    crystalleeanne
    Participant

    For some reason the forum wiped out my reply so here it is again:

    I’m trying to get the bbPress login form to use input placeholder text so I can eliminate the old style labels that appear above the fields:

    On the left, what I’m trying to achieve and how my theme styles forms (placeholder text set for input fields rather than text above each field).

    On the right, the bbPress login widget styled similarly to the form on the right… just need to figure out how to write a function to set the placeholder text for these fields…hopefully.

    http://tinypic.com/r/zj6whw/8

    #158289
    Joe Dostie
    Participant

    I guess that makes sense…I took out http:

    Hi Robin,

    Thanks for your response, hopefully I can clear this up a little with some images.

    My goal is to have my forums as a child page
    //69.195.124.253/~ctwocndo/wp-content/uploads/2015/02/forums_child.jpg

    With my Forums Root = forums
    //69.195.124.253/~ctwocndo/wp-content/uploads/2015/02/root-forums.jpg

    The breadcrumbs (both bbPress and WordPress) will show correctly
    //69.195.124.253/~ctwocndo/wp-content/uploads/2015/02/correctBreadcrumb.jpg

    The problem is that when I create a new forum, it will not take the “connect” parent page into consideration.
    //69.195.124.253/~ctwocndo/wp-content/uploads/2015/02/BadForum.jpg

    In order to fix this, I can modify the Forum root = “connect/forums”
    //69.195.124.253/~ctwocndo/wp-content/uploads/2015/02/root-connect-forums.jpg

    And that will fix the permalink of a new forum
    //69.195.124.253/~ctwocndo/wp-content/uploads/2015/02/Page31.jpg

    But when I do that, the the breadcrumbs no longer work.
    //69.195.124.253/~ctwocndo/wp-content/uploads/2015/02/brokenBreadcrumb.jpg
    (I am sure the “Forums” in this image are truly the “connect/forum”)

    So that where I kind of am.

    I did see your recommendation, but wouldn’t that get wiped the next time I upgrade bbPress?

    Again, thank you for your response.

    Kind Regards,

    Joe

    #158281
    Robin W
    Moderator

    Hmmm.. I’ve just spent some time playing with this code, and it’s not really working.

    It is quoted in lots of sites inc http://gawainlynch.com/customising-dynamic-roles-in-bbpress-2-2/

    But as far as I can see you get the member role, but the site default role capabilities – can’t work out why at the moment. What is you site default, and would that make sense?

    #158280
    kc9wwh
    Participant

    Here is the list of plugins installed and activated…

    • bbPress
    • bbPress Pencil Unread
    • BuddyPress
    • Buddypress Xprofile Custom Fields Type
    • GD bbPress Attachments
    • GD bbPress Tools
    • If Menu
    • Jetpack by WordPress.com
    • Login Logo
    • The Events Calendar
    • Theme Logo
    • WPFront User Role Editor
    • WP Maintenance Mode
    #158272
    kc9wwh
    Participant

    Hello Everyone,

    So I’ve been working to get some custom permissions setup for our site and are running into some issues…I’ve followed the document located here and in turn have added the following code to my functions.php file in my child theme:

    //code to add members and board roles
     
    function add_new_roles( $bbp_roles )
    {
        /* Add a role called member */
        $bbp_roles['bbp_member'] = array(
            'name' => 'Member',
            'capabilities' => custom_capabilities( 'bbp_member' )
            );
     
        /* Add a role called board */
        $bbp_roles['bbp_board'] = array(
            'name' => 'Board Member',
            'capabilities' => custom_capabilities( 'bbp_board' )
            );
     
        return $bbp_roles;
    }
     
    add_filter( 'bbp_get_dynamic_roles', 'add_new_roles', 1 );
     
    function add_role_caps_filter( $caps, $role )
    {
        /* Only filter for roles we are interested in! */
        if( $role == 'bbp_member' )
            $caps = custom_capabilities( $role );
     
        if( $role == 'bbp_board' )
            $caps = custom_capabilities( $role );
     
        return $caps;
    }
     
    add_filter( 'bbp_get_caps_for_role', 'add_role_caps_filter', 10, 2 );
     
    function custom_capabilities( $role )
    {
        switch ( $role )
        {
     
            /* Capabilities for 'Member' role */
            case 'bbp_member':
                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'   => true,
                    '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'   => true,
     
                    // Reply caps
                    'publish_replies'       => true,
                    'edit_replies'          => true,
                    'edit_others_replies'   => false,
                    'delete_replies'        => false,
                    'delete_others_replies' => false,
                    'read_private_replies'  => true,
     
                    // Topic tag caps
                    'manage_topic_tags'     => false,
                    'edit_topic_tags'       => false,
                    'delete_topic_tags'     => false,
                    'assign_topic_tags'     => true,
                );
     
                /* Capabilities for 'Board Member' role */
            case 'bbp_board':
                return array(
                    // Primary caps
                    'spectate'              => true,
                    'participate'           => true,
                    'moderate'              => true,
                    'throttle'              => true,
                    'view_trash'            => false,
     
                    // Forum caps
                    'publish_forums'        => true,
                    'edit_forums'           => true,
                    'edit_others_forums'    => true,
                    'delete_forums'         => true,
                    'delete_others_forums'  => true,
                    'read_private_forums'   => true,
                    'read_hidden_forums'    => true,
     
                    // Topic caps
                    'publish_topics'        => true,
                    'edit_topics'           => true,
                    'edit_others_topics'    => true,
                    'delete_topics'         => true,
                    'delete_others_topics'  => true,
                    'read_private_topics'   => true,
     
                    // Reply caps
                    'publish_replies'       => true,
                    'edit_replies'          => true,
                    'edit_others_replies'   => true,
                    'delete_replies'        => true,
                    'delete_others_replies' => true,
                    'read_private_replies'  => true,
     
                    // Topic tag caps
                    'manage_topic_tags'     => true,
                    'edit_topic_tags'       => true,
                    'delete_topic_tags'     => true,
                    'assign_topic_tags'     => true,
                );
     
                break;
     
            default :
                return $role;
        }
    }

    The problem I am running into is that the bbp_member role can’t seem to read and private topics, even though I have that capability set to true…? The bbp_board role works just as expected and in playing with the bbp_member role it seems to come down to the “moderate” capability…which I really don’t want on for our regular members.

    Any help on this would be greatly appreciated.

    I have the latest versions of WP, bbPress and BuddyPress installed.

    Thank you

    #158267
    Robin W
    Moderator

    Sorry, using css don’t know how to do that. As before it would I think involve a rewrite of the function bbp_reply_author_link

    And lastly, how to modify the css so that I can display the role as its displayed here on this website, ie., role covered in a box.

    just add

    background-color : green ;

    to your

    #bbpress-forums div.bbp-forum-author .bbp-author-role-admin,
     #bbpress-forums div.bbp-topic-author .bbp-author-role-admin,
     #bbpress-forums div.bbp-reply-author .bbp-author-role-admin { etc
    

    code above

    #158264
    –Q–Shadows
    Participant

    No worries, you took time to even respond is good enough for me.

    Anyways, I played a little bit with css and was able to color the forum roles by adding this is my css file –

    ‘#bbpress-forums div.bbp-forum-author .bbp-author-role-admin,
    #bbpress-forums div.bbp-topic-author .bbp-author-role-admin,
    #bbpress-forums div.bbp-reply-author .bbp-author-role-admin {
    color:red;
    font-size:14px;
    font-family:lucida sans unicode, lucida grande, sans-serif;line-height:1;
    } ‘
    and different colors for different roles by adding the role name at the end (instead of admin).

    Now the issue I am running into is with this –
    ‘ #bbpress-forums div.bbp-topic-author a.bbp-author-name
    #bbpress-forums div.bbp-reply-author a.bbp-author-name {
    clear: left;
    display: block;
    color:red;
    } ‘

    Using this code I am able to change the color of Usernames too, but unfortunately its applied globally and am not much familiar with bbpress to know exactly how to make it role wise. Is there anything that can be added to the above code that would make it apply depending on the role of that author.

    And lastly, how to modify the css so that I can display the role as its displayed here on this website, ie., role covered in a box.

    Would really appreciate if you could at the very least guide me in a proper direction.

    Cheers.

    #158262

    In reply to: Import Forums

    Robin W
    Moderator

    No bbpress doesn’t need these, so if you have a backup of them, then yes they can be deleted.

    #158261

    In reply to: Import Forums

    Springgg
    Participant

    Well.. the site is still down… and I can only hope they are just punishing me for the “abuse” the wrong import produced, because I can not imagine the idea that bbPress is causing something worse than Mingle.
    That said, could you please tell me whether bbPress needs these tables or I can delete them (they should be Mingle’s):

    wp_forum_forums
    wp_forum_groups
    wp_forum_posts
    wp_forum_threads
    wp_forum_usergroup2user
    wp_forum_usergroups

    #158260

    In reply to: Layout in progress

    Nicolas Korobochkin
    Participant

    In my opinion your templates have to many extra details. Checkout my super tiny and cleanest bbPress forum http://selenaselena.ru/community/talks/

    #158256
    Robin W
    Moderator

    You’d be filtering the function

    bbp_get_breadcrumb

    in

    bbpress\includes\common\template.php

    to put an extra link in

    #158249

    In reply to: Layout in progress

    peter-hamilton
    Participant

    Hi Q-Shadows

    It is quite a list of plugins, some hardcoded into my child theme, others just as plugins.

    Plugins Installed

    BBpress
    Rewrote most of the template files

    Buddypress
    Version 2.1.1, tried updating yesterday but broke my site so have to rewrite my plugins before updating

    BBpress Like Button
    Likes for forums

    BP Profile Widgets
    To show a music or video player on members profile

    Buddypress Activity Plus

    Buddypress Like
    For activity likes

    BuddyPress Activity Stream Bump to Top
    Liked and commented activity goes to top of list

    Buddypress Upload Avatar Ajax
    To allow avatar upoad during registration

    Front-End Publishing
    So members can write blogs without multisite activated

    GD bbPress Attachments
    For forum image uploads

    BP Profile as Homepage
    All links to a user links to profile page instead of user activity

    Post rating

    WanGuard

    And I have a few plugins hardcoded into my child theme, not sure about the names

    BuddyPress Group Customizer Lite
    For group backgrounds

    User Signature
    For a signature on forum posts

    Easy View count
    displays views count on single-topic-list

    BP custom background for user profiles
    Or something like that to recreate the facebook/twitter function

    And I added a lot more functions that I found through other members on these forums that have been added to my Functions.php etc.
    Theme had had a lot of alterations since my last visit and is almost finished, have a look.

    Onlijn.com

    Peter Hamilton

    crystalleeanne
    Participant

    Okay, this topic gets me part of the way there…
    Can someone please help me figure out how to modify this filter code to create placeholder text for the bbPress login form widget? (Username and Password fields).

    #158234
    Joe Dostie
    Participant

    Hello all,

    I have been going through the threads and I am sure this has come up but I just cant find it…

    I would like to have the forums in a child page but I cant seem to find any documentation on it.

    Everything I see shows bbPress being used like this:
    Home > forums…

    But is it possible to do

    Home > Page > forums…

    I was partially successfully by changing the settings of forums root to “page\forums” and that made the “Create New Forums” work but the breadcrumbs ended up not working.

    I guess before I get to deep into my troubleshooting I will just first ask the question if bbPress is absolutely required to be at the top level?

    #158231

    In reply to: Log In Problems

    don5999
    Participant

    Yes, it has that shortcode.

    a) I have no idea if it is sending – I havent set anything up email wise
    b) I have tried my business email and personal email addresses and its not receiving on either
    c) I have looked in both junk folders and nothing in there

    Do I need to set up an external link to email or setting inside of wordpress or bbpress to open my Outlook to send it or should it automatically send through wordpress?

    #158223

    In reply to: Forum Width

    Robin W
    Moderator

    you’ll need to work you way through this article

    Functions files and child themes – explained !

Viewing 25 results - 16,651 through 16,675 (of 64,516 total)
Skip to toolbar