Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 19,751 through 19,775 (of 64,534 total)
  • Author
    Search Results
  • #148763

    In reply to: Content Not Showing

    Michael Bryner
    Participant

    It should not be taking this long to work unless there is something seriously wrong. I mean only thing I can think it is, is my computer or something serious going on about the TTL of my site. I have refresh and hard refreshed and ipconfig /flushdns, and even rebooted. All everything I listed we already tried. It is beyond stupid to me that it would be this difficult. So the more we keep doing the same thing all over again and again is going to make me pull my hair out before I get old.

    I thought I would try bbPress, since I can’t use a normal MySQL forum software on it, because I am using Azure Website hosting that only uses MSSQL server. Probably is that, but it worked before as I said before in first post. So really this is just dumb as heck that it has to be this hard.

    #148761
    Robin W
    Moderator

    bbpress has a separate set of capabilities, so you can set permissions for the wordpress part of your site totally separately to the capabilities for bbpress.

    see

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

    and if needbe

    Custom Capabilities

    Robin W
    Moderator

    long answer I’m afraid and in two parts

    part 1 – setting the user permission to allow delete topic and delete reply

    delete is easy, making it only trash is in part 2 !

    Basically you’ll need to change a couple of capabilities of the participant role

    see

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

    you see the abilities delete topics and delete replies (as distinct from delete others topics and delete others replies)

    Whilst you could amend the participant role, I haven’t documented that, so easiest is just for you to create a new role and give it the participant capabilities plus the ‘delete topics’ and ‘delete replies’. This article explains how

    Custom Capabilities

    add this code to your functions file – see

    Functions files and child themes – explained !

    part 2 – changing the function, so that delete is only shown for keymasters

    This code will only allow a keymaster to permanently delete a topic

    add the following to your functions file

    add_filter ('bbp_get_topic_trash_link', 'topic_dont_delete');
    add_filter ('bbp_get_reply_trash_link', 'reply_dont_delete');
    
    function topic_dont_delete( $args = '') {
    
    		// Parse arguments against default values
    		$r = bbp_parse_args( $args, array(
    			'id'           => 0,
    			'link_before'  => '',
    			'link_after'   => '',
    			'sep'          => ' | ',
    			'trash_text'   => esc_html__( 'Trash',   'bbpress' ),
    			'restore_text' => esc_html__( 'Restore', 'bbpress' ),
    			'delete_text'  => esc_html__( 'Delete',  'bbpress' )
    		), 'get_topic_trash_link' );
    
    		$actions = array();
    		$topic   = bbp_get_topic( bbp_get_topic_id( (int) $r['id'] ) );
    
    		if ( empty( $topic ) || !current_user_can( 'delete_topic', $topic->ID ) ) {
    			return;
    		}
    
    		if ( bbp_is_topic_trash( $topic->ID ) ) {
    			$actions['untrash'] = '<a title="' . esc_attr__( 'Restore this item from the Trash', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_topic_trash', 'sub_action' => 'untrash', 'topic_id' => $topic->ID ) ), 'untrash-' . $topic->post_type . '_' . $topic->ID ) ) . '" class="bbp-topic-restore-link">' . $r['restore_text'] . '</a>';
    		} elseif ( EMPTY_TRASH_DAYS ) {
    			$actions['trash']   = '<a title="' . esc_attr__( 'Move this item to the Trash',      'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_topic_trash', 'sub_action' => 'trash',   'topic_id' => $topic->ID ) ), 'trash-'   . $topic->post_type . '_' . $topic->ID ) ) . '" class="bbp-topic-trash-link">'   . $r['trash_text']   . '</a>';
    		}
    		
    		if ( bbp_is_topic_trash( $topic->ID ) || !EMPTY_TRASH_DAYS ) {
    		if ( bbp_is_user_keymaster()) {
    		$actions['delete']  = '<a title="' . esc_attr__( 'Delete this item permanently',     'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_topic_trash', 'sub_action' => 'delete',  'topic_id' => $topic->ID ) ), 'delete-'  . $topic->post_type . '_' . $topic->ID ) ) . '" onclick="return confirm(\'' . esc_js( __( 'Are you sure you want to delete that permanently?', 'bbpress' ) ) . '\' );" class="bbp-topic-delete-link">' . $r['delete_text'] . '</a>';
    		}
    		}
    
    				// Process the admin links
    		$retval = $r['link_before'] . implode( $r['sep'], $actions ) . $r['link_after'];
    
    		return $retval ;
    	}
    	
    	function reply_dont_delete( $args = '' ) {
    
    		// Parse arguments against default values
    		$r = bbp_parse_args( $args, array(
    			'id'           => 0,
    			'link_before'  => '',
    			'link_after'   => '',
    			'sep'          => ' | ',
    			'trash_text'   => esc_html__( 'Trash',   'bbpress' ),
    			'restore_text' => esc_html__( 'Restore', 'bbpress' ),
    			'delete_text'  => esc_html__( 'Delete',  'bbpress' )
    		), 'get_reply_trash_link' );
    
    		$actions = array();
    		$reply   = bbp_get_reply( bbp_get_reply_id( (int) $r['id'] ) );
    
    		if ( empty( $reply ) || !current_user_can( 'delete_reply', $reply->ID ) ) {
    			return;
    		}
    
    		if ( bbp_is_reply_trash( $reply->ID ) ) {
    			$actions['untrash'] = '<a title="' . esc_attr__( 'Restore this item from the Trash', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'untrash', 'reply_id' => $reply->ID ) ), 'untrash-' . $reply->post_type . '_' . $reply->ID ) ) . '" class="bbp-reply-restore-link">' . $r['restore_text'] . '</a>';
    		} elseif ( EMPTY_TRASH_DAYS ) {
    			$actions['trash']   = '<a title="' . esc_attr__( 'Move this item to the Trash',      'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'trash',   'reply_id' => $reply->ID ) ), 'trash-'   . $reply->post_type . '_' . $reply->ID ) ) . '" class="bbp-reply-trash-link">'   . $r['trash_text']   . '</a>';
    		}
    
    		if ( bbp_is_reply_trash( $reply->ID ) || !EMPTY_TRASH_DAYS ) {
    		if ( bbp_is_user_keymaster()) {
    		$actions['delete']  = '<a title="' . esc_attr__( 'Delete this item permanently',     'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'delete',  'reply_id' => $reply->ID ) ), 'delete-'  . $reply->post_type . '_' . $reply->ID ) ) . '" onclick="return confirm(\'' . esc_js( __( 'Are you sure you want to delete that permanently?', 'bbpress' ) ) . '\' );" class="bbp-reply-delete-link">' . $r['delete_text'] . '</a>';
    		}
    		}
    
    		// Process the admin links
    		$retval = $r['link_before'] . implode( $r['sep'], $actions ) . $r['link_after'];
    
    		return $retval ;
    	}
    

    I haven’t fully tested this code as my test site is in some disarray whilst I test something else, so you’ll need to check that it works

    #148754

    In reply to: Content Not Showing

    Michael Bryner
    Participant

    Just one topic is added now, and I had two before that, but I been trouble shooting after removing everything from refresh to cleaning the forums and topics, and recreating them after, and I just added one topic only. I even tried a reply to the topic to see if it showed too, and no go, and removed it after that.

    Here is list of plugins I have:

    all in one seo pack pro

    all in one wp security

    bbpress

    disqus comment system

    easy smtp mail

    fusion core

    infolinks

    private messages add on for userpro

    user role editor

    VK.com Social Connect for UserPro

    WordPress User Bookmarks plugin for UserPro

    WP-Optimize

    WP Smush.it

    #148751

    In reply to: Content Not Showing

    Michael Bryner
    Participant

    nevermind it is just plugin settings page, and I can get to it with out it at (Dashboard -> Settings -> bbPress).

    #148749

    In reply to: Content Not Showing

    Michael Bryner
    Participant

    I noticed that I don’t have this in my WordPress dashboard (Dashboard -> Settings -> bbPress).

    Would that have anything to do with this? I read a post in these trouble shooting threads about someone asking the guy about checking that, and I don’t even have that at all.

    #148745

    In reply to: Content Not Showing

    Michael Bryner
    Participant

    I know you’ve done themes already, but you need to test if it works on a default theme with just twentyfourteen and the bbpress plugin. If it doesn’t then something in your site is screwed up 🙂

    I just did that with twentyfourteen, because I don’t have twenty twelve on it, and this is what it says with under that just reply box and buttons with no content, just like avada theme, but avada does not even show the below text.

    Your account has the ability to post unrestricted HTML content.

    #148744

    In reply to: Content Not Showing

    Robin W
    Moderator

    did you install any other plugins in between?

    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.

    I know you’ve done themes already, but you need to test if it works on a default theme with just twentyfourteen and the bbpress plugin. If it doesn’t then something in your site is screwed up 🙂

    #148742

    Topic: BBPress advise wanted

    in forum Plugins
    parambyte
    Participant

    Hello

    I am planning to install BBpress along with WP for my small film making community.
    Before starting I wanted to know if its possible to:

    1. create login in the wp home page for BBpress
    2. allow only offline registered members to be registered as BBpress users
    3. enable/disable users, and hence their profiles
    4. allow users to create profiles with their filmography and perhaps a vimeo embed or two
    5. can users have simple URLs for their profiles, like perhaps example.com/username?

    #148736
    Robin W
    Moderator

    presume you removing the titles from

    wp-content/bbpress/templates/default/bbpress/loop-forums

    and renaming as per

    https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-3/ section 3

    then

    wp-content/bbpress/templates/default/bbpress/loop-single-forum

    has the content that you’ll want to take out

    #148735
    sagive
    Participant

    i need to create a new top of user and want to give it “read=>true” capability only…

    example

    $cpar_capabilities = array(
        'read'	=> true
    )
    add_role('course_participant', 'Course Participant', $cpar_capabilities);

    would this mean he / she cant publish on the forums and if so how can i add the right capabilities so those user can participate in the forums but have read only permission
    or any type of other permissions on my site?

    #148731
    AlvaroFG
    Participant

    Hi,

    This is my current settings

    mydomain.com/ <– a Q2A site
    mydomain.com/blog <– WordPress

    I want bbpress to be

    mydomain.com/forums <– Desired Uri

    yet I installed bbpress as a via the plugin section in wordpress and I’m getting

    mydomain.com/blog/forums/forum/

    is there a way to change this to my desired uri?

    Thanks

    website: http://respuestas.ca/
    (Just imported my current vanilla forum )
    WordPress 3.9.1
    bbPress Version 2.5.4

    #148727
    Stephen Edgar
    Keymaster

    Make a copy of your full width template, maybe page.php and rename it bbpress.php 🙂

    #148716
    Robin W
    Moderator

    hmmm.. ok but we’re starting to need lots of extra code

    ok so add

    #bbpress-forums a {
    color: #111111 !important ;
    }

    This will change the font throughout, and you can play with the colour.

    If you want the topic and date to be different, we’re getting into some real css styling, which is beyond the purpose of the bbpress support forum, and perhaps you need to start to look at how to use firebug so you can see what you need to change eg

    then you can style any forums part by preceding it with

    #bbpress-forums as I’ve done above.

    #148715
    feb992
    Participant

    hello, I am using bbpress in my theme, I have diferents page themeplates, full-width, left-widget-colum…

    when I load the bbpress forum in a page, i select the full-width, and it works fine, but, when click in a sub-forum, it load the default page themplate (“left-widget-colum”)

    This is the link of the page wher the forum is:

    Complete User Integration

    This load in full width

    and when I click in the subforum, it redirect to:
    http://s454230239.mialojamiento.es/rideanddrift/?forum=test

    And this width the widget bar

    How can I modify this?

    Thanks

    #148708
    lyhiz
    Participant
    #148707
    Robin W
    Moderator

    to change the font (sorry I missed that) , change it to

    #bbpress-forums div.bbp-forum-title h3, #bbpress-forums div.bbp-topic-title h3, #bbpress-forums div.bbp-reply-title h3, #bbpress-forums a.bbp-forum-title, #bbpress-forums a.bbp-topic-permalink {
    color: #666 !important;
    font-family: ‘Open Sans’,Arial,sans-serif !important;
    font-size: 16px !important;
    }

    #148705
    lyhiz
    Participant

    Remove border and add

    height: 15px;
    width: 15px;
    or

    height: 0px;
    width: 0px;

    Example:

    /* =Avatars
    ————————————————————– */

    #bbpress-forums p.bbp-topic-meta img.avatar,
    #bbpress-forums ul.bbp-reply-revision-log img.avatar,
    #bbpress-forums ul.bbp-topic-revision-log img.avatar,
    #bbpress-forums div.bbp-template-notice img.avatar,
    #bbpress-forums .widget_display_topics img.avatar,
    #bbpress-forums .widget_display_replies img.avatar {
    float: none;
    margin-bottom: -7px;
    height: 15px;
    width: 15px;

    Live:

    http://gameboss.eu/forums/forum/gameboss/

    #148703
    Leonyipa
    Participant
    #148702
    Leonyipa
    Participant

    after putting the new code, it now says:

    Fatal error: Cannot redeclare ntwb_custom_topic_form_notice() (previously declared in /home/gleam/public_html/wp-content/plugins/bbpress/includes/core/functions.php:633) in /home/gleam/public_html/wp-content/plugins/bbpress/includes/core/functions.php on line 627

    I actually placed the code in bbpress/includes/core/functions.php
    is it wrong?

    #148695
    thecatholicwoman
    Participant

    I am not sure if this helps but when I select bbpress forum index template from the side menu for page templates it does not allow me to put in the side bar and runs full width but the text and coloring matches my theme. When I do it with the page builder in the divi theme and I use the [bbp-forum-index] short code in a text box element and then add a sidebar element on the side, I get the side bar but the forum does not match the theme because I have to use the default template. So it is almost like it is not pulling from the coding in the style.css at all so it may make sense that my altering that file does not change it.

    Stephen Edgar
    Keymaster

    That is not the correct patch to use, please do not use that patch.

    If you look further down the ticket you will see the actual changeset and commit that was made to to bbPress /trunk, changeset r5417

    Also, you should not be using WP_DEBUG on live sites….

    #148690
    Stephen Edgar
    Keymaster

    Do it the same way you would for WordPress and use the bbPress custom post types, forum, topic, and reply.

    #148689
    Stephen Edgar
    Keymaster

    I don’t see anything wrong in either the code you added above or in your post you linked to.

    I see that long lines of solid text do not ‘wrap’ but this isn’t really a WordPress/bbPress issue, if you need to support code/content like that you should look at adding a plugin that will format this type of text for you.

    Maybe Crayon Syntax Highlighter….

    #148687
    Stephen Edgar
    Keymaster

    Go and do a search of the plugin repo https://bbpress.org/plugins/ https://wordpress.org/plugins/

Viewing 25 results - 19,751 through 19,775 (of 64,534 total)
Skip to toolbar