Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 4,876 through 4,900 (of 64,294 total)
  • Author
    Search Results
  • #208423

    In reply to: sub topics not showing

    hydrogriff
    Participant

    Regarding the first code, you are right. This dequeues bbPress related style-sheets for most of the users who don’t visit forum page.

    The second code highlights the lead topic, like it does on this forum. I used the code from the codex.

    #208416
    Robin W
    Moderator

    unless I am not understanding you, every other forum I have seen does what bbpress does

    #208415
    chickencurry
    Participant

    Dear Robin,

    thanks for coming up with a solution but this is not working for me. Because of two reasons, if I create a page for every forum (and subforum I am using), I don’t have real forum overview anymore.

    The second reason is, I am using BuddyPress, where people can create facebook like groups. Those groups will get there own forum, which won’t appear on the site if I do it this way.

    So it looks like I have to do some tweaks to the code that adds topic title to the output. Honestly it’s really weird that bbPress is behaving like this. I’ve never seen a forum that doesn’t show a titles on the front page.

    #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]

    .

    #208412
    Robin W
    Moderator

    this is theme specific issue, so could be many things.

    you could try

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

    item 3 method 2, that might force your theme to use a page name

    #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.

    #208406

    In reply to: sub topics not showing

    Robin W
    Moderator

    and this one tends to suggest that your theme or anther plugin is doing stuff with the replies side of bbpress

    //Lead Topic Enable
    function custom_bbp_show_lead_topic( $show_lead ) {
      $show_lead[] = 'true';
      return $show_lead;
    } 
    add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
    #208405

    In reply to: sub topics not showing

    Robin W
    Moderator

    looked in pastebin.

    I’m not sure what this function is there for, except possibly to speed up site display if they have not accessed the forum part ?

    function dequeue_bbpress_style() {
        if ( class_exists('bbPress') ) {
          if ( ! is_bbpress() ) {
            wp_dequeue_style('bbp-default');
            wp_dequeue_style( 'bbp_private_replies_style');
            wp_dequeue_script('bbpress-editor');
          }
        }
    }
    add_action( 'wp_enqueue_scripts', 'dequeue_bbpress_style', 99 );

    it does tend to suggest that you have bbp_private_replies enabled ???

    #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' );
    	}
    }
    #208401

    In reply to: sub topics not showing

    hydrogriff
    Participant

    If my post cannot be found, here are the custom functions I use – https://pastebin.com/n27s5S9s.
    The only plugin related to bbPress I use is – bbPress Do Shortcode and WP-Avatar.

    Hope this helps.

    #208398
    abdurhmaan
    Participant

    Good night …
    How are you doing …
    How to get bbPress 2.7 Alpha
    The download link is not working ..

    #208390
    Matthias
    Participant

    Hi Robin,
    this code works fine, thanks. I put it in functions.php

    After this I changed some code in bbpress/includes/common/widgets.php
    The changes work fine, but it only works when I change the core file.

    When I copy widgets.php into child theme it does not work.
    Is there now way to put core code to child theme?

    Thanks
    Matthias

    #208388
    Matthias
    Participant

    <?php bbp_user_profile_link( bbp_get_current_user_id() ); ?>

    How can I change the code above, to show only the name, without the link to bbpress profile?

    Thanks
    Matthias

    #208385

    In reply to: Theme problem

    chetan0412
    Participant

    getting lots of 404 erros.

    plugins/bbpress/templates/default/js/user.js?ver=5.3.2

    can i have the solution ?

    #208380
    samtime
    Participant

    Is there any code in buddypress > notifications that we can copy over to bbpress > includes > extend > buddypress > notifications.php (or vice versa), to make bbPress notifications automatically dismiss like Private Message, Friend Request, and other BuddyPress notifications do?

    If it’s not that straight forward, then is there a way to disable this style off bbPress notifications being sent to BuddyPress?

    My users (and I) really love the notification feature, but just find it really time-consuming to have to dismiss these notifications manually.

    Appreciate any help / advice,
    Sam

    #208373

    In reply to: Oh no!

    Robin W
    Moderator

    @casiepa

    you need to change this in your toolkit plugin includes/go-functions.php

    lines 55 & 56

    from

    function bbptoolkit_bbpress_list_forums() {
    	$args = array();

    to

    function bbptoolkit_bbpress_list_forums($args) {

    This brings through default values, otherwise under 2.6 sub forums don’t get shown.

    #208368

    In reply to: Oh no!

    Matthias
    Participant

    Thanks to all:
    I changed these senctence directly in feedback-no-forum.php and put it in my child theme.
    I tried this before, but did not know that this sentence has a problem with german special characters. There is an ΓΌ in this sentence and it works only if I write it in html
    &uuml; code

    <div class="bbp-template-notice">
    	<ul>
    		<li><strong><?php esc_html_e( 'Dieses Forum ist nur f&uuml;r Dauerbenutzer!', 'bbpress' ); ?></strong></li>
    	</ul>
    </div>

    Thanks all for your suggestions
    Matthias

    #208363

    In reply to: 2.64 thank you!

    Chuckie
    Participant
    #208355
    #208328

    In reply to: Oh no!

    Matthias
    Participant

    Hi Robin,
    I tell you why there was this strange behavior πŸ˜‰
    I was using a german umlaut ΓΌ in the sentence…
    Changed it into html and everthing is fine!
    <?php esc_html_e( ‘Dieses Forum ist nur für Dauerbenutzer!’, ‘bbpress’ ); ?>

    #208323

    In reply to: Oh no!

    Robin W
    Moderator

    not sure I can help further, I don’t have content restrict, so I cannot see what is happening.

    I suspect that even as a paid plugin they don’t offer compatibility with every other plugin, so suspect that they will just say it is a bbpress problem.

    I’d suggest that you try deactivating their plugin and confirming that without it then say style pack solution or function solution works which will tell you that it is a combination.

    #208322

    In reply to: Oh no!

    Matthias
    Participant

    Hi Robin,
    I tried the workarounds you suggested here:

    No forum found message in a members only forum

    In feedback-no-topics.php and feedback-no-forums I translated the Oh, bother text directly into the text I want.

    In style pack I tried to translate the sencentce and I tried to make it invisible.

    Nothing works, it seems to me, that the content restriction plugin cuts all solutions before the can change the sentence…

    If you have no solution, can you tell me, what I can say to EDD Support. There are Pippin and Jacoby in the background they should no what to do πŸ˜‰

    Thanks
    Matthias

    #208321
    Robin W
    Moderator

    ‘One of my users discovered that they can post potentially malicious HTML into the bbPress reply box.’

    could you user state what ‘potentially malicious HTML’ they were able to post – that would help

    #208315

    Topic: Oh no!

    in forum Troubleshooting
    Matthias
    Participant

    I read many posts for removing the “Oh, bother” message.
    I tried to remove it with
    1. function.php
    2. tried to change feedback-no-topics.php and feedback-no-forums.php
    3. tried bbpress style pack

    Would like to show “Only for registered users” but the only thing I get with solution 2 and 3 is a blank yellow field with nothing.

    I use a Content Restrict Plugin for EDD and they say it’s a bbpress problem.

    Any suggestions?
    Thanks
    Matthias

    #208312

    In reply to: sub topics not showing

    brandaoj
    Participant

    Hi,

    Together with bbPress I am using UM and bbPress extension from UM; it does not work with or without it.

    FYI the way I manage to make it work is to change the forum visibility to Public and rely on UM to restrict access, read and write permissions.

    Before changing forum visibility setting from Private to Public I noticed that if the full url is provided the topics belonging to the forum are showed correctly; for those who do not have permissions to see it a message is displayed instead.

    So, it might be somehow related to it.

Viewing 25 results - 4,876 through 4,900 (of 64,294 total)
Skip to toolbar