Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'register'

Viewing 25 results - 401 through 425 (of 4,248 total)
  • Author
    Search Results
  • #208943
    kazunamtm
    Participant

    Hi

    It’s not a big deal but, I am just curious why I am getting new registered members with usernames that are random letters.

    #208865
    webmasterfreya
    Participant

    WP 5.3.2
    BBpress 2.6.4
    Buddypress 5.1.2 (with private forums)

    Hi,

    When entering a registered user name via [bbp-search], messages from this user are shown eventhough they are in a private forum and the requesting user is NOT a member of that group.
    This clearly violates the privacy and should not be happening.

    I have removed all occurences of [bbp-search] , and with that lost the ability to search through the forums.

    To test
    – create 2 users (eg user-1, user-2)
    – Make user-1 member of a private forum (forum-1) and create a topic and some replies.
    – Make user-2 member of anothher private forum (forum-2) and create a topic and some replies.

    – create a testpage with content [bbp-search], publish
    – login with user-1
    – got to testpage and search for user_2

    No messages should show up, but i’m afraid they will.

    Could anyone please try and get back here to share the result?

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

    #208739

    In reply to: Shortcode

    Matthias
    Participant

    I found this code and can now show five popular entries on my frontpage 🙂
    // Top five of bbpress on startpage
    function rk_top_five_view() {
    bbp_register_view( ‘top-five’, __( ‘5 Most Popular Topics’ ), array(
    ‘meta_key’ => ‘_bbp_reply_count’,
    ‘posts_per_page’ => ‘5’ ,
    ‘ max_num_pages’ => ‘1’,
    ‘orderby’ => ‘meta_value_num’ ),
    false );
    }

    add_action( ‘bbp_register_views’, ‘rk_top_five_view’ );

    Thanks
    Matthias

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

    #208285
    Pascal Casier
    Moderator

    Hi @philippowell, user signups are following WordPress user subscriptions.
    1) You could remove ‘Anyone can register’ in /wp-admin/options-general.php, but that is probably not what you want to do
    2) Check for WordPress plugins that will add protection to people signing up (like captcha)

    #208185

    In reply to: Spam Registrations

    Robin W
    Moderator

    I’m not sure what you mean by a ‘spam registration’ – when a user registers, how could the system know whether they were a genuine user or a spam one ??

    bbpressyzh
    Participant

    I’m using buddypress + bbpress + ultimate member
    I found that only avatar from ultimate member has been fetched, which is not what I want.
    I think the ultimate member caused this bug but I need ultimate member to create login and register page.
    Can I fetch buddypress avatar to show up in the bbpress forum without deleting ultimate member?
    Thanks in advance!
    The website is https://marshallyin.com

    #207866
    danielsgirl
    Participant

    Sorry, this thing is finicky — now it’s causing the register and lost password to be spaced weird on desktop:

    Forum

    #207829

    In reply to: user profile

    kriskl
    Participant

    I know about aravatars. when I turned them on after migration fro phpbb – lost of users got pissed off, and left to other similar forums which provide what our forum does…

    But at least buddypress allows uploading the avatar..

    IMHO not being able to upload their own avatar.. but having to register and use aravatars.. is a major drawback in otherwise great BBPress

    #207670
    commium
    Participant

    WP 5.3.2
    Buddypress 5.1.2
    Website https://connect.commium.fr/
    Theme : Woffice wordpress

    Hi guys,

    I’m beginner developper and i have a problem which i’m trying to solve on my website, i created a function to show groups website statistics on their group -> stats tab on group page, the thing work perfectly with an embedded public stats API, but i want to show theses tab on user dashboard too, not only on group -> stats tab, so i tried to copy past the function display() but it didn’t work, the $setting variable and $setting2 variable are NULL..

    Someone can help me on this problem please, you can check the code below for more informations :

    function stats() {
    	
    if ( bp_is_active( 'groups' ) ) :
     
    class Entreprise_Statistiques extends BP_Group_Extension {
        /**
         * Your __construct() method will contain configuration options for 
         * your extension, and will pass them to parent::init()
         */
        function __construct() {
            $args = array(
                'slug' => 'entreprise_statistiques',
                'name' => 'Statistiques',
            );
            parent::init( $args );
        }
     
        /**
         * display() contains the markup that will be displayed on the main 
         * plugin tab
         */
    
    	
    	
        function display( $group_id = NULL ) {
    		$setting = groups_get_groupmeta( $group_id, 'entreprise_statistiques_setting' );
    		$setting2 = groups_get_groupmeta( $group_id, 'entreprise_statistiques_setting2' );
            $group_id = bp_get_group_id();
    		?>
    			
    		<script>
    		StatHatEmbed=new function(){function d(){var a=document.getElementsByTagName("script");return a[a.length-1]}function e(a,b){var d=document.createElement("script"),c="//www.stathat.com/embed/"+a+"/"+b.s1;b.dev&&(c="//localhost:8081/embed/"+a+"/"+b.s1);b.s2&&(c+="/"+b.s2);b.s3&&(c+="/"+b.s3);c+="?w="+b.w+"&h="+b.h+"&tf="+b.tf;b.style&&(c+="&style="+b.style);b.dev&&(c+="&dev=1");b.title&&(c+="&title="+b.title);d.src=c;d.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(d)}function f(a){return[a.s1,
    		a.s2,a.s3,a.w,a.h,a.tf,a.style].join("_")}this.render_graph=function(a){DIV_ID="statd_embed_graph_"+f(a);d().insertAdjacentHTML("AfterEnd","<div id='"+DIV_ID+"' style='display:none'></div>");e("graph",a)};this.render_histogram=function(a){DIV_ID="statd_embed_histogram_"+f(a);d().insertAdjacentHTML("AfterEnd","<div id='"+DIV_ID+"' style='display:none'></div>");e("histogram",a)};this.render_data=function(a){DIV_ID="statd_embed_data_"+f(a);d().insertAdjacentHTML("AfterEnd","<div id='"+DIV_ID+"' style='display:none'></div>");
    		e("data",a)};this.render_table=function(a){DIV_ID="statd_embed_table_"+f(a);d().insertAdjacentHTML("AfterEnd","<div id='"+DIV_ID+"' style='display:none'></div>");e("table",a)};this.render_text=function(a){DIV_ID=["statd_embed_text",a.s1,a.u].join("_");d().insertAdjacentHTML("AfterEnd","<div id='"+DIV_ID+"' style='display:none'></div>");e("text",a)};this.render=function(a){a.tf||(a.tf="week_compare");a.kind||(a.kind="graph");switch(a.kind){case "graph":this.render_graph(a);break;case "histogram":this.render_histogram(a);
    		break;default:this.render_graph(a)}}};
    
    		</script>
    		<div id="stats">
    		<script>StatHatEmbed.render({s1: '<?php echo($setting); ?>', w: 760, h: 235, tf:'month_compare', style:'fill', title:'<?php echo($setting2); ?>'});</script>
    		</div>
    
    		<?php
    		
    		if ($setting == NULL) {
    			echo ("Aucun site internet détecté, merci de contacter l'équipe COMMIUM.");
    		}
        }
     
        /**
         * Création
         */
        function settings_screen( $group_id = NULL ) {
            $setting = groups_get_groupmeta( $group_id, 'entreprise_statistiques_setting' );
    		$setting2 = groups_get_groupmeta( $group_id, 'entreprise_statistiques_setting2' );
     
            ?>
    				<input type="text" name="entreprise_statistiques_setting2" id="entreprise_statistiques_setting2" placeholder="Nom d'entreprise"><?php echo esc_attr( $setting2 ) ?></input>
    				<input type="text" name="entreprise_statistiques_setting" id="entreprise_statistiques_setting"placeholder="Code suivi"><?php echo esc_attr( $setting ) ?></input>
            <?php
    			$settingInfo = $_POST['entreprise_statistiques_setting'];
    			$settingInfo2 = $_POST['entreprise_statistiques_setting2'];
        }
    	function settings_screen_save( $group_id = NULL ) {
    		$setting = '';
    		$setting2 = '';
    
    		if ( isset( $_POST['entreprise_statistiques_setting']) && isset($_POST['entreprise_statistiques_setting2'] ) ) {
    			$setting = $_POST['entreprise_statistiques_setting'];
    			$setting2 = $_POST['entreprise_statistiques_setting2'];
    		}
    
    		groups_update_groupmeta( $group_id, 'entreprise_statistiques_setting', $setting );
    		groups_update_groupmeta( $group_id, 'entreprise_statistiques_setting2', $setting2 );
    		}
    	}
    bp_register_group_extension( 'Entreprise_Statistiques' );
     
    endif; // if ( bp_is_active( 'groups' ) )
    }
    echo stats();
    #207329
    faustodassenno
    Participant

    Hi all,
    I am designing a community website using WP and I would like to run multiple forums. Every forum will be connected to a group and for this, I am using the private group plugin.
    Users can register to the community but not necessarily be part of any group.
    Scenario:
    As a user registered on the website (wp)
    when I try to access a forum I am not a member
    then I see a call to action that allows me to request access to the forum
    then a request is recorded and an email is sent to the admins

    Is there any plugin to do the above?

    Thx!

    F.

    Milan Petrovic
    Participant

    Hi,

    My GD bbPress Attachments plugin gets file uploaded through media library, and MIME Types check is done in WP core. So, MIME control code should work. But, many security plugins also limit MIME types, so it might be related to that.

    But, my GD bbPress Toolbox Pro https://plugins.dev4press.com/gd-bbpress-toolbox/ has MIME Types control alowing you to add new types and limit upload to select types.

    Problem is that WordPress checks actual MIME Type for files, so if the extension is not registered with the file’s real MIME Type, it will fail. If you have archive that you connect to text file MIME, it will fail, because WP uses PHP function to read file MIME if possible.

    Milan

    johnnyontheweb
    Participant

    you mean:

    	// First we unregister the old key
        unset( $mime_types['txt|asc|c|cc|h'] );
        // Then we add a new one
        ! isset( $mime_types['txt|asc|c|cc|h|nvn'] ) AND $mime_types['txt|asc|c|cc|h|<strong>nvn</strong>'] = 'text/plain';

    No way, same error.

    As a partecipant user, in the Reply to: box, I click on the button “Browse…” and I select a .nvn text file.

    Robin W
    Moderator

    have a look at this

    https://wordpress.stackexchange.com/questions/44777/upload-mimes-filter-has-no-effect

    seems maybe you can only have one text/plain entry?

    the types are listed in

    https://codex.wordpress.org/Function_Reference/get_allowed_mime_types

    and maybe try

    add_filter( 'upload_mimes', 'wpse44777_upload_mimes' );
    function wpse44777_upload_mimes( $mime_types )
    {
        // First we unregister the old key
        unset( $mime_types['txt|asc|c|cc|h'] );
    
        // Then we add a new one
        ! isset( $mime_types['txt|asc|c|cc|h|nvn'] ) AND $mime_types['txt|asc|c|cc|h|nvn'] = 'text/plain';
    
        return $mime_types;
    }
    johnnyontheweb
    Participant

    I tried by taking out the code as you said, but then the admin/keymaster account was not able to upload files.

    Hence, the code is correct.
    I checked also the file type, nvn does not exist as a registered mime type.

    #207083
    thecraneadmin
    Participant

    I am still waiting for an answer. Anyone??? Any ideas?? I realize that bbPress always call the core wp-login.php to login, register or reset your password. I know that I can probably add code to wp-login.php but that would be a very bad thing to do as it is a core file and any updates to WP will overwrite your changes. I need a way to intercept the call from bbPress to wp-login.php.

    Thanks,
    J

    #207070

    In reply to: Last Post date stamp

    Juha Metsäkallas
    Participant

    Hello!

    I’m not sure, whether I have the same issue or a different one. I have simple forum structure with a forum list and every forum has a topic list. You may take a look at my forum list.

    The features

    • You don’t need to log in to read.
    • The first forum is read-only for all users except the admin.
    • Anyone can register and gets write-permission to all forums except the first one (Loginizer and Akismet in use).
    • The forum with most topics gets its topics from posts by the plugin “bbPress Topics for Posts“. Despite being old the plugin has worked flawlessly until the most recent update

    The issue

    • Some of the forums have kept displaying “juuri nyt” (just now) since the update, because some of their topics show the same freshness.

    What I have tried

    • recalculated everything
    • disabled the plugin “bbPress Topics for Posts” and recalculated everything
    • changed to the Twenty Twenty theme and recalculated everything

    but in vain. Is this caused/related by the bug #3297? Any pointers appreciated.

    David
    Participant

    Hi All,

    Is there a way to re-direct users that are logged in and land on the bbpress home location e.g /chat/ and re-direct them to a specific forum.

    E.g, logged in users visits mysite.com/chat, and it redirects them to mysite.com/chat/forum/support.

    i am using the code below found in the bbpress forums which re-directs guest to another page. It works great.

    /**
    * Redirect bbPress pages to registration page
    */
    function kleo_page_template_redirect()
    {
        //if not logged in and on a bp page except registration or activation
        if( ! is_user_logged_in() && is_bbpress() ) {
            wp_redirect( home_url( '/register/' ) );
            exit();
        }
    }
    add_action( 'template_redirect', 'kleo_page_template_redirect' );
    #206469
    Robin W
    Moderator

    can you check

    dashboard>settings>forums

    item – Automatically give registered visitors the xx role

    I suspect you have this checked and set to spectator?

    #206466
    huetherb
    Participant

    Here is what I needed to do:

    add_filter( ‘bbp_register_topic_post_type’, ‘enable_restAPI_bbpress_topics’, 10,1);
    function enable_restAPI_bbpress_topics ($args) {
    $args[‘show_in_rest’] = true;
    $args[‘supports’] = array( ‘title’, ‘editor’, ‘author’ );
    return $args;
    }
    Notice the supports variable. By including author that ensures post_author is set.

    Seriously, BBPress should simply include a setting in backend to enable restAPI. That is the direction that the web is heading in already, with headless CMS, decoupling front and and backend.

    huetherb
    Participant

    Hi, I am trying to use the wordpress restAPI to get topic data. I am trying to do so via

    add_filter( ‘bbp_register_topic_post_type’, ‘enable_restAPI_bbpress_topics’, 10,1);
    function enable_restAPI_bbpress_topics ($args) {
    $args[‘show_in_rest’] = true;
    return $args;
    }

    That is to enable some functionality in another plugin.

    But for some reason, doing so causes the bbpress topic editor to alter behavior. It shows a different editor type.

    Instead of normal editor which shows a title field and then a content area below, it shows a Gutenberg block for title and content.

    But more importantly, when I submit a topic it gets saved with userid set to 0. The revision is saved with correct user id, but the post itself is saved with post_author 0.

    Any idea what is going on?

    Brian

    #206123
    armyadarkness
    Participant

    That could be… I can tell you that the moderator does not ever actually moderate anything. And, the forum is usually locked… Private. You must be registered to read or post in it, and yet my daily users constantly lose posts to the spam filter. Why would the software think that a regular poster was spam? Especially when I have to unspam them daily?

    #206117
    armyadarkness
    Participant

    Do you see the ghosts that everyone posts from it? It occurs every 18-20 posts. I can certainly register you if that’ll help diagnose.

Viewing 25 results - 401 through 425 (of 4,248 total)
Skip to toolbar