Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 4,751 through 4,775 (of 64,487 total)
  • Author
    Search Results
  • #210537

    In reply to: Tag html

    Scordisian
    Participant

    Thnx for the quick reply. Just to make sure, you mean the bbpress-functions.php file right?

    Also, I noticed some other pieces of code that are not directly found in the template files like these. So a seperate bbpress file might be very handy.

    #210536

    In reply to: Tag html

    Robin W
    Moderator

    Put this in your child theme’s function file – or use

    Code Snippets

    and change “bbp-topic-tags” to whatever you want

    add_filter ('bbp_before_get_topic_tag_list_parse_args' , 'rew_change_class' ) ;
    
    function rew_change_class ($args) {
    	$args['before'] = '<div class="bbp-topic-tags"><p>' . esc_html__( 'Tagged:', 'bbpress' ) . '&nbsp;' ;
    return $args ;
    }
    #210506
    adamgby
    Participant

    Hey. The shortcut [bbp-single-forum id = $ forum_id] has stopped working on my web page. When a parent forum should be displayed with sub-forums, nothing is displayed. When I upload ids of sub-forums, the topics embedded in them are visible.
    For exemple: parent id=1, sub id=2:
    [bbp-single-forum id = 1] – nothing displays, no sub-forums visible
    [bbp-single-forum id = 2] – topics are displayed

    After entering [bbp-forum-index], nothing is displayed either.
    What’s going on?

    Info: bbPress 2.6.4, Jannah Theme
    Plugins with bbPress: bbp profile information, bbp style pack, bbP topic count, GD bbPress Attachments, GD bbPress Tools, rtMedia for WordPress, BuddyPress.

    blad-forum

    #210501
    Mike Witt
    Participant

    I guess this is a long shot, but I wonder if anyone here is familiar with the WP QuickLaTeX plug-in. I have latex support turned on “sitewide” and it works everywhere except in forum posts. Any ideas?

    #210481
    Robin W
    Moderator

    bbpress uses

    edit_topics and edit_replies so doesn’t use the capabilities above

    but suspect your code needs an if statement, so I’d do

    // check frontend user privileges
    if ( is_user_logged_in() && ( (current_user_can('edit_posts') || current_user_can('edit_pages') ) ) $canEdit = true ;
    #210435
    Robin W
    Moderator

    but if you really want this box gone then,

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

    transfer this to your pc and edit to remove

    <?php do_action( 'bbp_theme_before_topic_form_subscriptions' ); ?>
    
    						<p>
    							<input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe" <?php bbp_form_topic_subscribed(); ?> />
    
    							<?php if ( bbp_is_topic_edit() && ( bbp_get_topic_author_id() !== bbp_get_current_user_id() ) ) : ?>
    
    								<label for="bbp_topic_subscription"><?php esc_html_e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
    
    							<?php else : ?>
    
    								<label for="bbp_topic_subscription"><?php esc_html_e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
    
    							<?php endif; ?>
    						</p>
    
    						<?php do_action( 'bbp_theme_after_topic_form_subscriptions' ); ?>

    and save

    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

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/form-topic.php

    bbPress will now use this template instead of the original

    then repeat for form-reply.php removing

    <?php do_action( 'bbp_theme_before_reply_form_subscription' ); ?>
    
    						<p>
    
    							<input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> />
    
    							<?php if ( bbp_is_reply_edit() && ( bbp_get_reply_author_id() !== bbp_get_current_user_id() ) ) : ?>
    
    								<label for="bbp_topic_subscription"><?php esc_html_e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
    
    							<?php else : ?>
    
    								<label for="bbp_topic_subscription"><?php esc_html_e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
    
    							<?php endif; ?>
    
    						</p>
    
    						<?php do_action( 'bbp_theme_after_reply_form_subscription' ); ?>
    #210427
    Yuval
    Participant

    Hi Robin,

    Thank you very much for your fast reply.

    I mean I don’t anyone to receive any email from the forum: every user that posts a question in the forum, as well as the admin notices.

    I don’t have any other plugins that integrates with bbPress (except Akismet).

    These are my current settings: https://i.imgur.com/dywXsPl.png

    Under these settings, the users can still see the checkbox for receiving emails when there is a comment. I don’t want this checkbox checked, I don’t want it at all.

    Thanks again 🙂

    #210425
    Robin W
    Moderator

    '_bbp_user_slug' => 'users', // User profile slug

    is definately the slug

    so is the context right – maybe ‘polylang’ which seesm to be the default?

    and possibly change it’s hook to ‘plugins_loaded’ to make sure bbpress and polylang have both loaded before firing

    but i’m guessing 🙂

    #210420
    Robin W
    Moderator

    depends on why you are getting them at the moment.

    You can turn off all subscriptions for the whole site in

    dashboard>settings>forums>Allow users to subscribe to forums and topics

    If you just mean for you as a user or admin, then just unsubscribe from forums and topics in your profile

    additionally you may have other bbpress plugins that are sending you emails.

    #210415
    Kenny Lajara
    Participant

    Hi, I have WP WordPress 5.4 with bbPress 2.8.3.1 and Polylang Pro 2.7 installed.

    All the forums, topics, replies, everything are correctly translated, except the user profile.

    I even attempted to manually register the slug but didn’t work.

    The code I used to try to register the slug was:

    /* Translate Users profile slug with Polylang */
    add_action( 'after_setup_theme','bbp_polylang_integration' );
    function bbp_polylang_integration() {
    	if ( function_exists( 'pll_register_string' ) ) {
    		pll_register_string( 'slug_users', '_bbp_user_slug', 'URL slugs' );
    	}
    }

    I tried with _bbp_user_slug and with users as well.

    #210405
    Kikis
    Participant

    How can I add topic excerpt content to the bbpress topic list

    I only saw the topic title
    Author name
    And date but I couldn’t figure out how to add the topic excerpt into the topic widget please help

    #210398
    Robin W
    Moderator

    you can only merge topics in bbpress, so yes merge two topics

    #210383
    Robin W
    Moderator

    found and fixed.

    I’ve put the fix in my style pack plugin version 4.5.0

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>bug fixes

    or put this in your child theme’s function file – or use

    Code Snippets

    add_filter ('bbp_get_topic_merge_link', 'rew_get_topic_merge_link' , 10 , 3) ;
    add_filter ('bbp_is_topic_merge' , 'rew_is_topic_merge' ) ;
    
    function rew_get_topic_merge_link( $args = array() ) {
    
    		// Parse arguments against default values
    		$r = bbp_parse_args( $args, array(
    			'id'           => 0,
    			'link_before'  => '',
    			'link_after'   => '',
    			'merge_text'   => esc_html__( 'Merge', 'bbpress' ),
    		), 'get_topic_merge_link' );
    
    		// Get topic
    		$topic = bbp_get_topic( $r['id'] );
    
    		// Bail if no topic or current user cannot moderate
    		if ( empty( $topic ) || ! current_user_can( 'moderate', $topic->ID ) ) {
    			return;
    		}
    
    		$uri    = add_query_arg( array( 'action' => 'bbp-merge-topic' ), bbp_get_topic_edit_url( $topic->ID ) );
    		$retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" class="bbp-topic-merge-link">' . $r['merge_text'] . '</a>' . $r['link_after'];
    
    		// Filter & return
    		return apply_filters( 'rew_get_topic_merge_link', $retval, $r, $args );
    	}
    
    function rew_is_topic_merge() {
    
    	// Assume false
    	$retval = false;
    
    	// Check topic edit and GET params
    	if ( bbp_is_topic_edit() && ! empty( $_GET['action'] ) && ( 'bbp-merge-topic' === $_GET['action'] ) ) {
    		return true;
    	}
    
    	// Filter & return
    	return (bool) apply_filters( 'rew_is_topic_merge', $retval );
    }
    #210380

    i try to post my video on bbpress forum but admin panel show video but after posting on forum post video not showing , show like this
    [video width="1920" height="1080" mp4="https://forum.eroticalife69.com/wp-content/uploads/2020/04/aliz-nbp_aleska-d-nbp_v_bg_01_trailer01_hdv.mp4"][/video]

    what i need to do

    #210374
    neon67
    Participant

    Halo!
    I’m looking for a way to show the 10 most viewed topics in the last month. I have 20 sub-forums and about 50 responses per day. Important – do not load the server too much.
    Ideally, if the list should be formed once a day, but not for each visitor.

    I did not find among standard methods. Maybe there is a plugin (widget)?

    “BbPress Popular Topics” for over 3 years. Seems no longer working.

    #210371
    ticsandthoughts
    Participant

    Thank you for the tip Robin. I believe I have done this correctly, in my menus I removed the custom link and inserted the actual forums page, and from what I can see it still has the title Archive: Forums along with the description of bbPress Forums below that… any other tips I can try?

    Thanks again for all of your help

    #210334
    fabwintle
    Participant

    I’ve sorted my problem by using the built in bbpress widget and displaying it with one topic only.

    #210332
    shonty
    Participant

    Hi guys,

    Quite simply the “favorites” button does not show beside the subscribe button on any topic or forum on my site.

    I have deactivated – reactivated bbPress. Tried the Twenty Seventeen Theme. Nothing has worked.

    I have the latest WordPress version 5.4
    I have bbPress version 2.6.4

    My site is https://fashioncollaborate.com but you wont be able to see anything unless you are a subscribed member. I can provide admin credentials privately?

    #210322

    In reply to: Search form styling

    Hum Gurung
    Participant

    Hi @robin-w
    Thank you for quick reply and code. I placed the code to customizer and it looks little better, however the width of the search form is still half of the area. Is it possible to display 100% width? BTW, the search form is displayed automatically without any shortcode. Here is my bbpress installation.
    Thanks again.
    Etchbee

    #210320
    Kikis
    Participant

    I would like to display all topic tags list but I could not find the widget ot shortcode so please help me out here

    #210309

    Hi Robin,

    Those that relate to BBpress are:
    Advanced noCaptcha & invisible Captcha
    bbP private groups
    bbp style pack
    bbPress Login Register Links On Forum Topic Pages
    bbPress Messages
    bbPress Unread Posts v2
    LoginPress – Customizing the WordPress Login
    WP User Avatar

    I’m sure your next suggestion will be to disable them all, which I am happy to do if necessary, The forum is not publicly visible yet. I was just hopeful the OP may have already found the problem 🙂

    Let me know if that’s the direction you would like me to go.

    Best regards,

    John

    #210308
    mehrankhanjan
    Participant

    Hi!
    I have a solution.
    In wp-content/plugins/bbpress/templates/default/js/reply.min.js
    replace (d.scrollHeight) with (64)
    that’s it.
    my email for more question if you have:
    mehrankh1913@gmail.com

    #210305
    Robin W
    Moderator

    Put this in your child theme’s function file – or use

    Code Snippets

    function rew_get_topic_split_link( $retval, $r, $args ) {
    
    		// Parse arguments against default values
    		$r = bbp_parse_args( $args, array(
    			'id'          => 0,
    			'link_before' => '',
    			'link_after'  => '',
    			'split_text'  => esc_html__( 'Split',                           'bbpress' ),
    			'split_title' => esc_attr__( 'Split the topic from this reply', 'bbpress' )
    		), 'get_topic_split_link' );
    
    		// Get IDs
    		$reply_id = bbp_get_reply_id( $r['id'] );
    		$topic_id = bbp_get_reply_topic_id( $reply_id );
    
    		// Bail if no reply/topic ID, or user cannot moderate
    		if ( empty( $reply_id ) || empty( $topic_id ) || ! current_user_can( 'moderate', $topic_id ) ) {
    			return;
    		}
    
    		$uri = add_query_arg( array(
    			'action'   => 'bbp-split-topic',
    			'reply_id' => $reply_id
    		), bbp_get_topic_edit_url( $topic_id ) );
    
    		$retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" title="' . $r['split_title'] . '" class="bbp-topic-split-link">' . $r['split_text'] . '</a>' . $r['link_after'];
    
    		// Filter & return
    		return apply_filters( 'rew_get_topic_split_link', $retval, $r, $args );
    	}
    
    add_filter ('bbp_get_topic_split_link', 'rew_get_topic_split_link' , 10 , 3) ;
    
    function rew_is_topic_split() {
    
    	// Assume false
    	$retval = false;
    
    	// Check topic edit and GET params
    	if ( bbp_is_topic_edit() && ! empty( $_GET['action'] ) && ( 'bbp-split-topic' === $_GET['action'] ) ) {
    		$retval = true;
    	}
    
    	// Filter & return
    	return (bool) apply_filters( 'rew_is_topic_split', $retval );
    }
    
    add_filter ('bbp_is_topic_split' , 'rew_is_topic_split' ) ;

    and come back and confirm that it works

    #210297
    ticsandthoughts
    Participant

    Hello,

    I am using the latest version of wordpress (5.4) and the most recent version of bbPress (2.6.4)

    Website: ticsandthoughts.com

    I am using the Responsive theme.

    I am extremely new to all of this, so apologies if this is a dumb question. I recently set up a forum through bbPress and am wanting to remove the top text on the page “Archive: Forums”, as well as the text description “bbPress forums”.

    Here’s a link to how it looks right now: https://ticsandthoughts.com/forums/

    Thanks so much in advance!

    Alex

    #210280
    Kikis
    Participant

    I’m trying to get single topic titlt but I was u unable to find it in the bbpress template folder

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