Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '\"wordpress\'

Viewing 25 results - 2,701 through 2,725 (of 26,834 total)
  • Author
    Search Results
  • #208819
    Robin W
    Moderator

    ok, thanks, got it

    my style pack lets you put then topic title in the last column

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Freshness Display

    #208804
    vinem
    Participant

    Hi there,

    I’m building a website with Elementor Pro and bbPress.
    I created 2 different Headers: a main one for the Landing page and blog, and another one for the forums.
    I used the shortcode to display the forums index on a page I’ve built with Elementor and the Header works fine. But when it comes to the automatically created single pages (topic, reply, search, etc.), it displays the main Header.

    I contacted Elementor support, not knowing if the issue was on their side or on yours, and they told me I had to contact you, explaining me this :
    “For your information, we usually find this happening when creating custom post types where it is excluded from showing in menus via the custom post type’s “show_in_nav_menus” option; this option is found in the post type’s “register_post_type” function used to add it in WordPress and may be set to “false” in this case […] we highly recommend contacting the bbPress support team to help with changing this option to “true”. The solution we suspect would be similar to using the function code mentioned in this bbPress support post but with the ‘show_in_nav_menus’ variable set to ‘true’ > https://bbpress.org/forums/topic/plugin-snippet-hack-to-include-bbpress-topics-in-wordpress-search/

    So, here I am! Can someone help me, please?

    Thank you!

    #208790

    In reply to: Syntax Highlight

    Chuckie
    Participant

    I just wanted to point out that Enlighter is a fantastic plugin for syntax highlighting.

    Enlighter – Customizable Syntax Highlighter

    The current version works with bbPress 2.6 although it has a conflict of interest with one feature. It is discussed here:

    https://github.com/EnlighterJS/Plugin.WordPress/issues/211

    At the moment I don’t really know how I can supress the conflicting CSS styles referred to in the above link.

    I should also point out that at the moment the version 4 beta is not working with bbPress yet. Although, it is supposed to resolve the aforementioned issue concerning conflicting CSS styles.

    Eitherway, I am happy to know about Enlighter. Thumbs up from me!

    #208748
    Robin W
    Moderator

    basically bbpress has the ability to add columns via a filter

    This should do it

    add_filter("bbp_admin_replies_column_headers", 'rew_IP_column_add');
    add_filter("manage_reply_posts_custom_column", 'rew_IP_column_value', 10, 3);
    
    function rew_IP_column_add($columns)  {
    	$new = array();
      foreach($columns as $key => $title) {
        if ($key=='bbp_reply_forum') // Put the forum ID column before the Replies forum column
          $new['rew_id'] = 'IP Address';
        $new[$key] = $title;
      }
      return $new;
    }
    	
    function rew_IP_column_value($column_name, $id) {
    		if ($column_name == 'rew_id') echo get_post_meta( $id, '_bbp_author_ip', true );
    }

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

    Code Snippets

    #208637
    Robin W
    Moderator

    registration is a function of WordPress, not bbpress.

    you can switch it off using

    Disable New User Notification Emails

    #208629
    Robin W
    Moderator

    your best bet would be to raise a trac ticket with a list of missing labels

    https://bbpress.trac.wordpress.org/

    #208617

    In reply to: HTML in text

    BrokenPixel
    Participant

    I’m never quite sure if I should add to a post that has the same problem, but is obviously unanswered for a long while, or post a new topic. But… our forum also has a very similar issue so it seems sensible to add it here.

    For us, it seems to be specific to text-align (left, right or centre) and for “non-admin” logged in users.

    It displays the html code as is, rather than using it to display the correct text alignment. All other html options in the visual editor we’ve tested so far seem to work – it’s just the text alignment that doesn’t. And only for non-admin users – the html works as it should if an admin user posts.

    <p style=”text-align: right;”>right align</p>

    Hoping for a solution? Am on current versions of bbpress, wordpress and bbp style pack and php version 7.3

    #208609
    Chuckie
    Participant

    I raised an issue nearly a month ago now here in their forum:

    https://wordpress.org/support/topic/how-errors-are-raised/#post-12418564

    I thought I would mention here in case they might be able to have a look.

    Thanks.

    #208589
    Robin W
    Moderator

    so you couldput this in your functions file of your child theme, it takes out then new filter and puts back the old one

    remove_filter( 'bp_notifications_get_notifications_for_user', 'bbp_format_buddypress_notifications', 10, 8 );
    add_filter( 'bp_notifications_get_notifications_for_user', 'rew_format_buddypress_notifications', 10, 5 );
    
    function rew_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
    
    	// New reply notifications
    	if ( 'bbp_new_reply' === $action ) {
    		$topic_id    = bbp_get_reply_topic_id( $item_id );
    		$topic_title = bbp_get_topic_title( $topic_id );
    		$topic_link  = wp_nonce_url( add_query_arg( array( 'action' => 'bbp_mark_read', 'topic_id' => $topic_id ), bbp_get_reply_url( $item_id ) ), 'bbp_mark_topic_' . $topic_id );
    		$title_attr  = __( 'Topic Replies', 'bbpress' );
    
    		if ( (int) $total_items > 1 ) {
    			$text   = sprintf( __( 'You have %d new replies', 'bbpress' ), (int) $total_items );
    			$filter = 'bbp_multiple_new_subscription_notification';
    		} else {
    			if ( !empty( $secondary_item_id ) ) {
    				$text = sprintf( __( 'You have %d new reply to %2$s from %3$s', 'bbpress' ), (int) $total_items, $topic_title, bp_core_get_user_displayname( $secondary_item_id ) );
    			} else {
    				$text = sprintf( __( 'You have %d new reply to %s',             'bbpress' ), (int) $total_items, $topic_title );
    			}
    			$filter = 'bbp_single_new_subscription_notification';
    		}
    
    		// WordPress Toolbar
    		if ( 'string' === $format ) {
    			$return = apply_filters( $filter, '<a href="' . esc_url( $topic_link ) . '" title="' . esc_attr( $title_attr ) . '">' . esc_html( $text ) . '</a>', (int) $total_items, $text, $topic_link );
    
    		// Deprecated BuddyBar
    		} else {
    			$return = apply_filters( $filter, array(
    				'text' => $text,
    				'link' => $topic_link
    			), $topic_link, (int) $total_items, $text, $topic_title );
    		}
    
    		do_action( 'bbp_format_buddypress_notifications', $action, $item_id, $secondary_item_id, $total_items );
    
    		return $return;
    	}
    }
    Young
    Participant

    Hello.
    First of all, thank you for developing such a great plugin program.
    However, I would like to ask you a bit of trouble nowadays.
    The issue is that the number of topics in forums index page are incorrect.

    1. My system environment:
    -Wordpress 5.3.2
    -Bbpress 2.6.4
    -Buddypress 5.1.2
    -Bbpress Style pack 4.3.8
    – Jetpack 8.1.1

    2. My issue detail:
    See captured image 1.
    This is a page of Forums Index Main page.
    (Sorry for not English, but I’ll try explain)
    As you see the summary count number(left side) of each forum counts are incorrect with the parent forum’s count.
    Captured image 1
    And in the parent forum index page,
    each count of each line for forums are correct.
    See captured image 2.
    Captured image 2

    3. I tried to run recalculation.

    I ran the recovery and recalculation tool. Though I have run it several times and it failed.
    I am using some forums on a group page.
    What is the problem?
    In the past, it used well without any problems. There was no error in adding up posts. Recalculation also worked well.
    Please let me know if you have a solution.
    Thank you.

    #208573
    Gary Eckstein
    Participant

    Does the social login available in the Jetpack plugin (JetpackSettingsDiscussion then enable “Let readers use WordPress.com, Twitter, Facebook, or Google accounts to comment.”) allow for visitors to comment on bbPress topics? I’ve tried on my bbPress and I don’t see the Google, Facebook etc. options so wondering if it’s something on my side or that the Jetpack social login doesn’t work with bbPress.
    Any advice appreciated.

    Tanmoy Biswas
    Participant

    I installed the bbPress plugin and activated the plugin, but my WordPress gives an error that the plugin is not activated.

    Any suggestion?
    What should I do now?
    My Website here: https://wcblogs.com

    Thanks in advance

    #208544
    natsu12345
    Participant

    Hi there,

    i am quite new to wordpress\bbpress but i already looked at https://bbpress.org/forums/topic/how-do-i-extract-a-topicreply-excerpt/

    What i want to create is this.

    #208536
    Robin W
    Moderator
    #208531
    hydrogriff
    Participant

    The current support bbPress has a neat theme. It will be helpful if we can refer it for the best practices and customization. I searched and could not find the source code for the forum’s theme or WordPress’s support theme. Where to find it? Is it open source?

    #208520
    Robin W
    Moderator

    ok, so you could use

    Private groups

    then when you set up each forum ‘I put the Forum creating shortcode on a page.’ you could also set up a group for the forum, add the creator as a member and give him permission to create topics.

    It is a but labor intensive, but would work.

    How many forums are you planning ?

    Chuckie
    Participant

    I saw this discussion:

    a way to check for subforums

    It implied it was fixed in bbpress 2.1:

    https://bbpress.trac.wordpress.org/ticket/1803

    But I don’t get it.

    This is a sub forum with child forums:

    <a class="bbp-forum-title" href="https://www.publictalksoftware.co.uk/support-forums/forum/meeting-schedule-assistant/midweek-editor/">Midweek Editor</a>

    This is a forum with no child forums:

    <a class="bbp-forum-title" href="https://www.publictalksoftware.co.uk/support-forums/forum/meeting-schedule-assistant/assignments-editor/">Assignments Editor</a>

    As you can see, the code is exactly the same. I understood from the associated discussion that the forum with child forums would have a additional class specified so that we could use pseudo before / after to add a symbol to indicate it is a forum with sub forums.

    Or do I have to go about this differently?

    I am using bbp style pack.

    Thanks for shedding any light on this.

    #208471
    Chuckie
    Participant
    Robin W
    Moderator

    The best I can suggest is

    GD bbPress Attachments

    If you want better than this, then contact the developer https://www.dev4press.com/ Milan does bespoke development as well

    #208414
    Robin W
    Moderator

    ok it is showing what I would expect.

    topics are shown only when you go into each forum which is standard bbpress behavior.

    If you would like all the forums listed with titles, then create a WordPress page for your firums and put a list of forums in it as shortcode

    [bbp-single-forum id=$forum_id] – Display a single forums topics. eg. [bbp-single-forum id=32]

    so for instance out this on a page

    [bbp-single-forum id=32]
    [bbp-single-forum id=33]
    [bbp-single-forum id=34]

    .

    #208410
    domi80
    Participant

    Hi

    In the past, I had the same question, but I didn’t try to find a solution yet.
    I’ll try to continue this thread.

    It’s about the page title for the opening page or index page of the forum, shown in the browser’s title bar. For the topic starter, that title starts with:
    Archiwum Fora
    It’s Polish for “archive forums”.

    For my site, it’s in Dutch:
    Archief forums
    It’s Dutch for “archive forums”.

    It’s the title of the index page of the forum shown by the browser.
    For forums themselves, the browser shows the title of the forum as text in the browser’s title bar. So that’s going well.

    As the forum opening page or index page is live and active, it’s expected to not to see “archive” as title in the browser.

    On my setup, I tried the suggestion of mclegend.
    Administration -> You mean the WordPress Back-End with all the configuration settings?
    For ‘Configuration’, I don’t see ‘Server Settings’, only ‘Settings’ and indeed ‘General’, which points to basic WordPress options / item “Forum Title” is not there.
    There is however a ‘Settings’ with ‘Forums’, and I see forum-related options. eg. Forum root and below the title ‘Single Forum Slugs’, there is ‘forum’, which could be a title, but not labeled that way.
    The setting or word ‘archive’ or Dutch translated variant is on those pages not mentioned.
    I suppose the Dutch (or for topic starter, Polish version) is by using translation file(s) and localized version of the WordPress.
    But it’s not about the translation, it’s about the original ‘archive’ in the title.

    So, question remains:
    How to get rid of the word ‘archive’ in the browser’s title bar for the opening page or index page of the forum, and/or where can we set a title manually?

    Current setup: PHP 7.3.12 / WordPress 5.3.2 / bbPress 2.5.14 and seen on earlier versions of 2.5.x and on the later 2.6.x versions while testing.

    #208404
    Robin W
    Moderator

    The best solution is to clone this widget and then amend.

    so put this in your functions.php

    It creates a duplicate login widget, but you’ll find it in dashboard>appearance>widgets called
    (mat) login Widget. You can then add your code to this version

    function register_mat_login_widget() {
        register_widget("MAT_Login_Widget");
    
    }
    
    add_action('widgets_init', 'register_mat_login_widget');
    
    class MAT_Login_Widget extends WP_Widget {
    
    	/**
    	 * MAT Login Widget amended
    	 *
    	 */
    	public function __construct() {
    		$widget_ops = apply_filters( 'mat_login_widget_options', array(
    			'classname'                   => 'mat_widget_login',
    			'description'                 => esc_html__( 'A simple login form with optional links to sign-up and lost password pages.', 'bbpress' ),
    			'customize_selective_refresh' => true
    		) );
    
    		parent::__construct( false, esc_html__( '(mat) Login Widget', 'bbpress' ), $widget_ops );
    	}
    
    	/**
    	 * Register the widget
    	 *
    	 *
    	 */
    	public static function register_widget() {
    		register_widget( 'MAT_Login_Widget' );
    	}
    
    	/**
    	 * Displays the output, the login form
    	 *
    	 * 
    	 * @param array $args Arguments
    	 * @param array $instance Instance
    	 */
    	public function widget( $args = array(), $instance = array() ) {
    
    		// Get widget settings
    		$settings = $this->parse_settings( $instance );
    
    		// Typical WordPress filter
    		$settings['title'] = apply_filters( 'widget_title', $settings['title'], $instance, $this->id_base );
    
    		// mat filters
    		$settings['title']    = apply_filters( 'mat_login_widget_title',    $settings['title'],    $instance, $this->id_base );
    		$settings['register'] = apply_filters( 'mat_login_widget_register', $settings['register'], $instance, $this->id_base );
    		$settings['lostpass'] = apply_filters( 'mat_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 class="bbp-form">
    					<legend><?php esc_html_e( 'Log In', 'bbpress' ); ?></legend>
    
    					<div class="bbp-username">
    						<label for="user_login"><?php esc_html_e( 'Username', 'bbpress' ); ?>: </label>
    						<input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" maxlength="100" id="user_login" autocomplete="off" />
    					</div>
    
    					<div class="bbp-password">
    						<label for="user_pass"><?php esc_html_e( 'Password', 'bbpress' ); ?>: </label>
    						<input type="password" name="pwd" value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" autocomplete="off" />
    					</div>
    
    					<div class="bbp-remember-me">
    						<input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ) ); ?> id="rememberme" />
    						<label for="rememberme"><?php esc_html_e( 'Keep me signed in', 'bbpress' ); ?></label>
    					</div>
    
    					<?php do_action( 'login_form' ); ?>
    
    					<div class="bbp-submit-wrapper">
    
    						<button type="submit" name="user-submit" id="user-submit" class="button submit user-submit"><?php esc_html_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 esc_html_e( 'Register', 'bbpress' ); ?></a>
    
    							<?php endif; ?>
    
    							<?php if ( ! empty( $settings['lostpass'] ) ) : ?>
    
    								<a href="<?php echo esc_url( $settings['lostpass'] ); ?>" title="<?php esc_attr_e( 'Lost Password', 'bbpress' ); ?>" class="bbp-lostpass-link"><?php esc_html_e( 'Lost 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
    	 *
    	 * 
    	 * @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
    	 *
    	 * 
    	 * @param $instance Instance
    	 */
    	public function form( $instance = array() ) {
    
    		// Get widget settings
    		$settings = $this->parse_settings( $instance ); ?>
    
    		<p>
    			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_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 esc_html_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 esc_html_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 2.3.0 bbPress (r4802)
    	 *
    	 * @param $instance Instance
    	 */
    	public function parse_settings( $instance = array() ) {
    		return bbp_parse_args( $instance, array(
    			'title'    => '',
    			'register' => '',
    			'lostpass' => ''
    		), 'login_widget_settings' );
    	}
    }
    #208389
    Robin W
    Moderator

    untested, but try this

    add_filter ('bbp_get_user_profile_link' , 'rew_get_user_name', 10 , 2) ;
    
    function rew_get_user_name ($user_link, $user_id ) {
    	// Validate user id
    		$user_id = bbp_get_user_id( $user_id );
    		if ( empty( $user_id ) ) {
    			return false;
    		}
    
    		$user      = get_userdata( $user_id );
    		$user_link = esc_html( $user->display_name ) ;
    
    		// Filter & return
    		return apply_filters( 'rew_get_user_name', $user_link, $user_id );
    }

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

    Code Snippets

    #208366

    In reply to: Oh no!

    Pascal Casier
    Moderator

    @matthias70 I have something for that in my https://wordpress.org/plugins/bbp-toolkit/ plugin to remove the ‘Oh Bother’, but I should check how it works with 2.6

    #208363

    In reply to: 2.64 thank you!

    Chuckie
    Participant
Viewing 25 results - 2,701 through 2,725 (of 26,834 total)
Skip to toolbar