Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 3,126 through 3,150 (of 22,713 total)
  • Author
    Search Results
  • #271703

    In reply to: Customize member loop

    Venutius
    Moderator

    I think you are really talking about new page, one that performs a search of the members profile fields and comes up with matches. If I were you, I’d look at using BP Match Me as a basis for this, or maybe BP Profile Search and then providing my own custom code to automate the search process.

    Venutius
    Moderator

    The following change will remove the What’s New area from the Activity page, it will still be visible in Groups and on the users profile activity page.

    You will need to set up a childtheme (there’s plenty of plugins that will do this for you).

    <?php
    /**
     * BuddyPress - Activity Post Form
     *
     * @package BuddyPress
     * @subpackage bp-legacy
     */
    
    ?>
    
    <form action="<?php bp_activity_post_form_action(); ?>" method="post" id="whats-new-form" name="whats-new-form">
    
    	<?php
    
    	/**
    	 * Fires before the activity post form.
    	 *
    	 * @since 1.2.0
    	 */
    	do_action( 'bp_before_activity_post_form' );
    	
    	if ( bp_is_my_profile() || bp_is_group() ) : ?>
    
    	<div id="whats-new-avatar">
    		<a href="<?php echo bp_loggedin_user_domain(); ?>">
    			<?php bp_loggedin_user_avatar( 'width=' . bp_core_avatar_thumb_width() . '&height=' . bp_core_avatar_thumb_height() ); ?>
    		</a>
    	</div>
    
    	<p class="activity-greeting"><?php if ( bp_is_group() )
    		printf( __( "What's new in %s, %s?", 'buddypress' ), bp_get_group_name(), bp_get_user_firstname( bp_get_loggedin_user_fullname() ) );
    	else
    		printf( __( "What's new, %s?", 'buddypress' ), bp_get_user_firstname( bp_get_loggedin_user_fullname() ) );
    	?></p>
    
    	<div id="whats-new-content">
    		<div id="whats-new-textarea">
    			<label for="whats-new" class="bp-screen-reader-text"><?php
    				/* translators: accessibility text */
    				_e( 'Post what\'s new', 'buddypress' );
    			?></label>
    			<textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10"
    				<?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?>
    			><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea>
    		</div>
    
    		<div id="whats-new-options">
    			<div id="whats-new-submit">
    				<input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="<?php esc_attr_e( 'Post Update', 'buddypress' ); ?>" />
    			</div>
    
    			<?php if ( bp_is_active( 'groups' ) && !bp_is_my_profile() && !bp_is_group() ) : ?>
    
    				<div id="whats-new-post-in-box">
    
    					<?php _e( 'Post in', 'buddypress' ); ?>:
    
    					<label for="whats-new-post-in" class="bp-screen-reader-text"><?php
    						/* translators: accessibility text */
    						_e( 'Post in', 'buddypress' );
    					?></label>
    					<select id="whats-new-post-in" name="whats-new-post-in">
    						<option selected="selected" value="0"><?php _e( 'My Profile', 'buddypress' ); ?></option>
    
    						<?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100&populate_extras=0&update_meta_cache=0' ) ) :
    							while ( bp_groups() ) : bp_the_group(); ?>
    
    								<option value="<?php bp_group_id(); ?>"><?php bp_group_name(); ?></option>
    
    							<?php endwhile;
    						endif; ?>
    
    					</select>
    				</div>
    				<input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />
    
    			<?php elseif ( bp_is_group_activity() ) : ?>
    
    				<input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />
    				<input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="<?php bp_group_id(); ?>" />
    
    			<?php endif; ?>
    
    			<?php
    
    			/**
    			 * Fires at the end of the activity post form markup.
    			 *
    			 * @since 1.2.0
    			 */
    			do_action( 'bp_activity_post_form_options' ); ?>
    
    		</div><!-- #whats-new-options -->
    	</div><!-- #whats-new-content -->
    
    	<?php wp_nonce_field( 'post_update', '_wpnonce_post_update' ); ?>
    	<?php
    
    	/**
    	 * Fires after the activity post form.
    	 *
    	 * @since 1.2.0
    	 */
    	endif;
    	do_action( 'bp_after_activity_post_form' ); ?>
    
    </form><!-- #whats-new-form -->

    Just place this file content in your themes/child-theme/buddypress/activity/post-form.php file. Activity, replacing everything that’s in the current file.

    If you want an easier way to manage your template overloads you should look at BP Template Overloader, which will help you keep track. When you overload a theme page, you need to remember that you will have to take responsibility for keeping it up to date since any changes to the master file will no longer be loaded.

    #271682

    In reply to: report

    Scott Hartley
    Participant

    Try this plugin.

    BuddyPress Moderation

    #271674
    Venutius
    Moderator

    Yep this looks like it’s broken, I’ve raised a trac ticket for it here.

    #271663

    In reply to: Forgotten Password

    Venutius
    Moderator

    Hi there,

    Regarding point 1) This could be to do with the source address that is being used for the emails WordPress is sending. it’s pretty old now but I use CB Change Mail Sender to set an appropriate mail sender address.

    Regarding point 2) I suggest this must be down to a plugin conflict or some other problem, as I can’t replicate your issue. have you tried it with just BuddyPress running?

    #271658
    Venutius
    Moderator

    I’ve been looking at that, it seems it’s not possible to use that shortcode and create a link with it from a wordpress post, I tried several ways and none delivered the required result.

    I’m trying to contact the plugin developer at the moment as I’ve written some extensions to this, I think creating a short code that returns a link to the user name would be quite simple, I could look at this later and let you know how I get on.

    Venutius
    Moderator

    Have you looked at overloading your BuddyPress pages?

    This is the process of getting BuddyPress to load your costomised pages instead of the default pages. For example, the page that loads the “What’s new” section and post form is located in plugins/buddypress/bp-templates/bp-legacy/buddypress/activity.posts-form.php

    If you copy this file to themes/your-child-theme/buddypress/activity/posts-loop.php you can edit this file and remove the “What’s new” section. You would need to know php to do this.

    More information on overloading bp templates is located here: https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/

    A plugin that tries to make the management of your overloads easier is https://wordpress.org/plugins/bp-template-overloader/

    #271640
    Venutius
    Moderator

    What I’m doing at the moment is running a mobile specific theme, my main wordpress theme just does not scale down right. By running a theme switcher I’m able to have a mobile specific setup that works a lot better overall.

    Regarding mobile devices in particular the button styles used in the current BuddyPress template set is not ideal, I’m hoping this will improve with Nouveau. What I do on the mobile side is I tend to place all the main bp options in the main menu, which with my theme works pretty well.

    I think you have to be very careful with what features you offer on mobile, the bbPress forums for example don’t work that well, you can get the basic members pages to work, have chat, basic groups with activity feeds but trying to do much else gets very difficult with mobile.

    #271637

    In reply to: Using header cover

    Venutius
    Moderator

    I think what you are looking for is the ability to place a shortcode on a page, that displays the members header on a page of your choice for any given member id.

    There isn’t such a thing, however https://wordpress.org/plugins/buddypress-profile-shortcodes/ comes close in that it allows you to display most of the components of the members header on a page.

    BuddyPress Profile shortcodes is a pretty simple plugin, I think it should be possible to combine VapVarun’s contributed code with BP Profile Shortcodes in order to create a shortcode that does something similar to what you are looking for.

    #271636

    In reply to: Using header cover

    Venutius
    Moderator

    If you want to get to know the structure of the BP overload files, could I suggest you try installing https://wordpress.org/plugins/bp-template-overloader/ this maps out all of the overload files, it’s pretty daunting the sheer number of files you can modify, but if you look for that one file you can view it’s contents.

    Also the link I mentioned but forgot to include about overloading BP is here. https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/

    #271626
    Venutius
    Moderator

    One possible way of achieving this could be to implement custom rewrite rules for the URL, I’ve not tried it but here’s a page that describes how it’s done:

    How to Create a Virtual Page in WordPress

    #271622
    Venutius
    Moderator

    That’s a WordPress page so you might be wise to ask in the WordPress Forums as well. I don’t knw, hopefully someone will come along who knows?

    Venutius
    Moderator

    Have you enabled the wordpress debug and log file? I think that’s where I’d start looking, see if there are any errors shown. I’d also install Debug Bar and Query Monitor.

    Query Monitor will allow you to see if the WP query is failing.

    Venutius
    Moderator
    #271581
    Slava Abakumov
    Moderator

    @meganelford

    Make sure, that you are looking in a correct place for a registered user.
    In case of WordPress Multisite – user can be listed in Network admin area, but NOT listed in individual sites Users.

    #271576
    Graham
    Participant

    Found the solution in this post:

    https://buddypress.trac.wordpress.org/ticket/7704

    Go to:

    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php

    Around line 807, Find:

    	// The template part can be overridden by the calling JS function.
    	if ( ! empty( $_POST['template'] ) && 'groups/single/members' === $_POST['template'] && 'group_members' === $object ) {

    Change “group_members” to just “members”:

    	// The template part can be overridden by the calling JS function.
    	if ( ! empty( $_POST['template'] ) && 'groups/single/members' === $_POST['template'] && 'members' === $object ) {

    Fixed.

    #271504
    Venutius
    Moderator

    I still think it’s the database that is dishing out the unique keys so it is what’s controlling the user id’s not WordPress itself. BuddyPress just uses the WordPress User Id.

    #271485
    Venutius
    Moderator

    during initial registration, WordPress has yet to create a user_id for the member, so can not save the avatar, only after the user has confirmed their email address will WordPress be able to save the avatar and reference it to that user.

    #271478
    Venutius
    Moderator

    I mean the debug log in WordPress.

    https://codex.wordpress.org/Debugging_in_WordPress

    jonleesky
    Participant

    Thanks for your help. but it didn’t work, the screen prompt: ERR_TOO_MANY_REDIRECTS

    I’m using the wordpress 4.9.4 and buddypress 2.9.3, don’t know what to do…o(╥﹏╥)o


    @mcpeanut

    #271474
    Steve
    Participant

    Thanks, I did do a quick search at WordPress.org. But thought BuddyPress would have some already built within their own system.

    Nothing inherent within BuddyPress?

    #271469
    Venutius
    Moderator

    There’s a few plugins that provide shortcodes, take a look at the BP Activity Shortcode and also Shortcodes for BuddyPress in wordpress.org.

    mcpeanut
    Participant

    @jonleesky I posted the solution to this nearly two years ago, I have not tested this code recently but you can try it out.

    function my_disable_bp_registration() {
      remove_action( 'bp_init',    'bp_core_wpsignup_redirect' );
      remove_action( 'bp_screens', 'bp_core_screen_signup' );
    }
    add_action( 'bp_loaded', 'my_disable_bp_registration' );
    
    add_filter( 'bp_get_signup_page', "firmasite_redirect_bp_signup_page");
        function firmasite_redirect_bp_signup_page($page ){
            return bp_get_root_domain() . '/wp-signup.php'; 
        }

    What you will need to do is first create a bp-custom.php file (make sure you add the opening and closing tags at the top and bottom ) and put it in your plugins folder, then paste the code between the PHP opening and closing tags and save.

    This should disable BuddyPress registration and let you use WordPress registration as default, hope this helps.

    #271441

    In reply to: Creating Tutor website

    owen2
    Participant

    A good example of a WordPress based “Tutor website” is the mgrmusic.com Music Teacher Database.

    Using the Geo My WordPress plugin users can search the database for music teachers local to them. The can also filter the teachers dependant on instrument or level, so this achieves two of the aims you mentioned in terms of the “search page”.

    As for sign-ups; tutors submit information via a Contact Form 7 plugin form on a Sign-Up page and receive enquiries in a “Community” area of the website where enquiries are send to teachers, enabling them to respond to the students. I am not sure about how this website facilitates payment from either the teachers or students, however, I am sure you could add some type of Paypal payment facilitation that creates the release of a download file upon payment, in the file a student could find a teacher’s contact details. The whole website is ran on WordPress so it is certainly achievable to create a tutor website based only on WordPress achieving the aims that you set up above.

    Hope this helps, I would research the plugins and theme options out there.

    jonleesky
    Participant

    I just want the original wordpress registration page. After I installed buddypress, It becomes a new registration page. is there any way to stop it? ((o(^_^)o))

Viewing 25 results - 3,126 through 3,150 (of 22,713 total)
Skip to toolbar