Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 20,901 through 20,925 (of 64,534 total)
  • Author
    Search Results
  • #145402
    Stephen Edgar
    Keymaster

    You could write some custom code to do it in a child theme though it would probably be quicker to fork an existing plugin that will do it for you with bbPress.

    @imath’s BuddyPress plugin comes close to what you want I think and would be a good starting point to convert it from BuddyPress to bbPress.

    https://wordpress.org/plugins/bp-avatar-suggestions/

    #145400

    Topic: Showing Sub-SubForums

    in forum Themes
    bayzest
    Participant

    Hi There,

    I am currently using the free KnowledgeBase Theme with bbPress. I have created many sub forums, sub-sub forums, and even sub-sub-sub forums. I would like to see them all, but it is only showing forum and sub-forum. Is this possible?

    the site can be seen here: http://www.whiskeyinthewild.com/

    Thanks,

    Brendan

    nirgalo
    Participant

    Hi, I am using is_bbpress() in page.php to check whether I am in a bbPress context. It seems BuddyPress and bbPress are sharing the same profile page. Therefore, when the latter is being displayed, bbPress is being defined, and this triggers wrong behavior in my code. So, how can I check a bbPress or BuddyPress profile page is being displayed so I can fix my code? thx.

    #145393
    Robin W
    Moderator

    ok,

    so create a file called bbpress-functons.php as above and in to this put

    <?php
    //code to add tutor role 
    
    function add_tutor_role( $bbp_roles )
    {
    	/* Add a role called tutor */
    	$bbp_roles['bbp_tutor'] = array(
    		'name' => 'Tutor',
    		'capabilities' => custom_capabilities( 'bbp_tutor' )
    		);
    	return $bbp_roles;
    }
     
    add_filter( 'bbp_get_dynamic_roles', 'add_tutor_role', 1 );
    
    function tutor_role_caps_filter( $caps, $role )
    {
    	/* Only filter for roles we are interested in! */
    	if( $role == 'bbp_tutor' )
    		$caps = custom_capabilities( $role );
     
    	return $caps;
    }
     
    add_filter( 'bbp_get_caps_for_role', 'tutor_role_caps_filter', 10, 2 );
    
    function custom_capabilities( $role )
    {
    	switch ( $role )
    	{
    		 
    		/* Capabilities for 'tutor' role */
    		case 'bbp_tutor':
    			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,
    			);
    			break;
     
    		default :
    			return $role;
    	}
    }
    
    

    This sets up a role called ‘tutor’ – just change this name everywhere to the one you want, and then edit the capabilities.

    the default capabilities for each role are :

    https://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    you’ll probably want to make delete topics and delete replies true

    #145390
    tharsheblows
    Participant

    bbpress-functions.php should go in the main theme directory eg /twentythirteen/bbpress-functions.php. It doesn’t go in the /twentythirteen/bbpress/ directory. This is also true for the default bbpress template, bbpress.php.

    So for bbpress custom templates, you’ll have eg :

    /mytheme/bbpress-functions.php <– custom functions file, overwrites plugin file
    /mytheme/bbpress.php <– custom main bbpress index file, overwrites plugin file
    /mytheme/bbpress/*.php (eg /mytheme/bbpress/loop-forums.php) <– all the template files you want to overwrite from the plugin folder /bbpress/templates/default/bbpress/

    #145388
    buzoo
    Participant

    yes , i think i have to upload the filter/action function to capabilities.php in bbpress core.And one more thing i found that bbpress not looking for custom functions in /twentythirteen/bbpress/ so i have to edit the functions in main plugin.
    Thanks

    #145386
    tharsheblows
    Participant

    @netweb – with filters, do they only add or modify the function? I mean, can you only add or modify parameters in them, not delete? Eg if I had this:

    add_filter( 'bbp_kses_allowed_tags', 'ntwb_bbpress_custom_kses_allowed_tags' );
     
    function ntwb_bbpress_custom_kses_allowed_tags() {
    	return array(
     
    		// Links
    		'a'          => array(
    			'class'    => true,
    		)
    }

    would I *only* be allowed to add a tags with a class (no, I don’t know why either but just pretend…) and not able to add the default img, blockquote, etc tags? I guess I’m asking is it like a child functions.php file (which overwrites) or a child css file (which adds to / modifies)? I am hoping I’ve got my analogies right, hmm.

    I had a similar question last year but never really figured it out – gave up when I decided it didn’t matter: https://bbpress.org/forums/topic/using-wp_filter_kses-filter-for-bbpress-posts/

    I fully appreciate this highlights how little I know these things! And thank you. 🙂 This has been a really interesting discussion.

    #145377

    In reply to: Sidebar formatting

    Robin W
    Moderator

    oh and sorry – see

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

    for how to add this -several options.

    #145373

    Hi All,

    I just wanted to know How many sessions can be handled in BBpress. I am just concern about the load it can handle. or it is depending on the wordpress site?

    Iam just confused. Any help would be appreciated.

    Thanks,
    Kailash

    #145369
    Stephen Edgar
    Keymaster

    I don’t know if any of the avatar plugins will do what you need it to do though with ~350 + avatar plugins via https://wordpress.org/plugins/search.php?q=avatar and/or 26 listed also with ‘bbPress’ at https://wordpress.org/plugins/search.php?q=avatar+bbpress maybe take a look at some of these other plugins and see if one of those will do what you want.

    #145366

    It sounds like this theme added bbPress specific templates to both the parent theme, and the child theme, both of which are overriding bbPress’s default template compatibility (because bbPress will yield to those overrides, which is how you can customize bbPress without needing to hack bbPress.)

    Can be a bit confusing at first, especially since there’s no real indication of what is being loaded from where.

    You could try installing the WordPress Debug Bar plugin, and then install the bbPress Debug Bar extension: https://wordpress.org/plugins/debug-bar-bbpress/

    This will give you some information about what bbPress template is loading from where, but it’s still only providing a small window into a somewhat hidden experience.

    #145365
    tharsheblows
    Participant

    Thank you so much for the update! I’m glad it’s working. 🙂

    I have just now finished helping troubleshoot a bug with copying and pasting text from pdfs into the new WP visual editor. The guy thought it was a problem with WP 3.9 but it is an issue with one of his plugins – however, I can see why he thought that. (I didn’t go all the way through to finding out which plugin it is – this is just some guy I follow on twitter.) So it’s happened to someone I’ve come across, too.

    I want to use Parsedown in my forums and got as far as making a plugin that got it to work when writing posts but then realised I needed something like “Parseup” (current status: imaginary) to make the editing posts possible and sane. Doh.

    Perhaps there will be a plugin in the future that will allow moderators with administrator rights to have these tools directly in the forum, but not have them accessible to the general public?

    Your users can still use a limited number of html tags, although they probably don’t know it because now it doesn’t say so anywhere. I think that’s true… it’s in includes/common/formatting.php
    Note that they can’t upload images but can simply hotlink them. I was worried about this initially but it hasn’t been a problem so far although now I’ve probably jinxed it.

    /** Kses **********************************************************************/
    
    /**
     * Custom allowed tags for forum topics and replies
     *
     * Allows all users to post links, quotes, code, formatting, lists, and images
     *
     * @since bbPress (r4603)
     *
     * @return array Associative array of allowed tags and attributes
     */
    function bbp_kses_allowed_tags() {
    	return apply_filters( 'bbp_kses_allowed_tags', array(
    
    		// Links
    		'a' => array(
    			'href'     => array(),
    			'title'    => array(),
    			'rel'      => array(),
    			'target'   => array()
    		),
    
    		// Quotes
    		'blockquote'   => array(
    			'cite'     => array()
    		),
    
    		// Code
    		'code'         => array(),
    		'pre'          => array(),
    
    		// Formatting
    		'em'           => array(),
    		'strong'       => array(),
    		'del'          => array(
    			'datetime' => true,
    		),
    
    		// Lists
    		'ul'           => array(),
    		'ol'           => array(
    			'start'    => true,
    		),
    		'li'           => array(),
    
    		// Images
    		'img'          => array(
    			'src'      => true,
    			'border'   => true,
    			'alt'      => true,
    			'height'   => true,
    			'width'    => true,
    		)
    	) );
    }
    #145364
    Matoca
    Participant

    Update. Monday I asked my iPad, iPhone moderator to see if she could get a keyboard to come up, see what she was typing and actually post to the forum. She reported that it was working perfectly! No kidding! So after the WordPress 3.9 upgrade, the tinyMCE 4 upgrade has improved interaction with iPads and iPhones.

    See: http://www.tinymce.com/index.php
    Also: tinyMCE 4 has a presentation that explains what is different.
    http://www.tinymce.com/presentation/index.html#/

    I did a little research about tinyMCE because honestly it sounds like the name of a toy. So once I found the name, Tiny Moxiecode Content Editor, it made more sense to me. Wikipedia describes it as “platform-independent web-based JavaScript/HTML WYSIWYG editor control.” So, in a sense, this is the core element of WordPress (and other CMS platforms), giving the user the ability to get content on the blog without having to necessarily understand anything about HTML.

    After browsing some forums I better understand that this upgrade of WP and tinyMCE has rendered many previous plugins dead in the water. It means that users need to do some serious spring cleaning and get rid of any plugins that have not been specifically updated for use with WP 3.9.

    A lot of plugins have necessarily cropped up over time to add back lost functionality in tinyMCE as functions were removed. So the bbPress plugin I was using in the past that added back the visual tab to the forum message field was just one of many. Luckily I did disable it prior to the release of 3.9 but it clearly was already unstable with 3.8.

    I made a mistake when I posted earlier, enabling the tools in the dashboard does give them to everyone who is not registered or logged in, not just those logged in as moderators. So I have rethought having the text editor tools on the open forum. I don’t like the ability of non-registered posters to add images directly nor do I like them adding links. These people don’t register so I have removed all editing tools from the forum in forum>settings. I have asked moderators to use the tools in the dashboard for adding images and links. Perhaps there will be a plugin in the future that will allow moderators with administrator rights to have these tools directly in the forum, but not have them accessible to the general public?

    So if you do want your moderators to have undo, redo, add link, remove link and insert/edit image in the forum then enable this in forum>settings, it standard with tinyMCE 4, and looks exactly as it does on this forum

    I became interested in more functionality and I installed TinyMCE Advanced plugin this afternoon to play with. I realized the many things I could do just with tables! So it’s a versatile plugin and they claim has been tested with 3.9.
    my best, matoca

    #145363
    jbdizzle
    Participant

    Okay, I figured it out. I deleted all of the PHP files that had the phrase @package bbpress.

    #145362
    jbdizzle
    Participant

    Man, I tried just about anything that I can think of other than installing a new wordpress theme and starting from scratch… I ran across this by the way:

    How to Use
    The plugin creates a new menu item, Appearance → Suffusion bbPress Pack. Once you click on that, you will see the capability to (Re)Build bbPress Files. If you click on this button, all your bbPress-specific templates will be regenerated. You can selectively pick specific folders that you want to overwrite.Note that this action is irreversible.

    So what are my options?

    #145360

    Hi @ryanric,

    I’ve attempted to duplicate this with bbPress 2.5.3 and am unable to.

    I changed my replies per page to 3 here:

    https://www.dropbox.com/s/69moej1wnlfqhi5/Screenshot%202014-04-22%2018.35.05.png

    ryanric
    Participant

    Hello Forum,
    My bbPress forum is displaying all of the replies instead of showing just a few replies per page.

    WHAT I WANT: I’m trying to set up a single-topic forum on my website on this page (http://learn.serve-smart.com/topic/the-secret-to-service-reflection-learner/). Right now I’m using this short code: [bbp-single-topic id=2073]. I want users to get a prompt, see the responses of three or so other users, and respond to the prompt themselves.

    WHAT IS HAPPENING NOW: The page is displaying every single reply to the topic on a single page. This is despite changing the bbPress settings to “3” for “Topics per page” and “Replies per page” under the “Topics and Replies Per Page” and Topics and Replies Per RSS Page.”

    WHAT I’M RUNNING:
    Database: Latest WP
    Theme: WP-Forge
    Key Plugins: Latest bbPress plugin, Latest LearnDash plugin

    Thanks in advance for your help!
    -Ryan

    #145356
    kdumas123
    Participant

    The Remember Me area of the Sidebar is wrapping onto 2 lines. I’m not sure how to fix this. I’m using the Divi Theme (Elegant Themes). Do I have to edit CSS within my template or within BBpress files? I tried to find the CSS using Firebug but wasn’t successful.

    Here’s the url: http://www.boostacademy.com/forums

    #145355

    In reply to: SMF Import to bbPress

    landshark
    Participant

    I’m having some issues converting an SMF forum to BBPress. The SMF forum has about 7,500 members, 7000+ topics and 45,000+ replies.

    It seems the links to images are not being imported, my guess it is a problem with the [img] bbcode? But not sure.
    I understand that I won’t be able to get attached images imported but i would think that linked images would not be a problem.

    Also some of the posts are being truncated. I might get the first sentence but the rest is dropped. But not on all of them.

    I tired slowing the import down to 50 items at a time with a 2 second pause but still same results.

    I’m on a dedicated server. Latest bbpress version, and SMF version is 2.0.4

    Any help will be greatly appreciated.

    #145353
    buzoo
    Participant

    Hi i want to extend “participant” user role so that they can delete there own replies and images they have attached(For attaching i am using a plugin called GD bbpress attachment).I got some hint from this link but being novice i got more confused were to put the code.
    Can any one tell me if there is particular plugin to do the work so that i can extend “participants” capabilities ? or help me out to configure the file according to the link as it doesn’t mention were to put them
    Thanks

    #145352
    Robin W
    Moderator

    maybe a theme or plugin conflict

    try

    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, switch to a default theme such as twentytwelve, and see if this fixes.

    #145351
    Robin W
    Moderator

    Have you tried

    Step by step guide to setting up a bbPress forum – Part 1

    In essence you need a .php from your theme that has a sidebar, and rename this bbpress.php within the root of your theme.

    #145346
    Matt
    Participant

    Hello,

    My sidebar is missing with my newly installed Striking MultiFlex theme. I’ve tried many of the solutions from this board, but none have worked.

    These did not work:
    http://codex.bbpress.org/theme-compatibility/

    http://bpsocialnetwork.wordpress.com/2013/06/02/twenty-eleven-theme-compatibility/
    I think Step 3 is missing a ‘)’, but I don’t know where to put it.

    Any ideas on how to make my sidebars appear on all of my bbpress pages? My site is in maintenance mode, so I can’t post a link.

    Thanks,
    Matt

    #145345
    msteelman
    Participant

    Ok, here is a very simple answer to a very simple question.

    Inside of your website admin area under appearance is a place to put custom CSS called Edit CSS.

    At the bottom of whatever else is in there add the following code:

    #bbpress-forums .bbp-topic-content p, #bbpress-forums .bbp-reply-content p {font-size: 16px;}

    That will make the font 16 pt. if you want it some other size then change the number.

    #145344
    Mike
    Participant

    This turned out to be a clash with the admin-message plugin (wpmudev.org).
    If I comment out the include_once statement at the very bottom of admin-message.php, which pulls in all the spammy advertising stuff WPMU put into your admin pages, the forum menus reappear.

    As this issue seems to occur with quite a few plugins, it might be useful to draw up a list of plugins which cause compatibility issues with bbPress.

    If you know of any please comment in this thread.

Viewing 25 results - 20,901 through 20,925 (of 64,534 total)
Skip to toolbar