Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 6,801 through 6,825 (of 22,685 total)
  • Author
    Search Results
  • Niels Pilon
    Participant

    Nope, it returns an error that there are no members to display. I guess that I could replace ‘Robin van Persie’ with something blank like this

    substr( strstr( ' ', ' ' ), 1 )

    Just to clarify, this is the full code in my functions.php to sort the members:

     function alphabetize_by_last_name( $bp_user_query ) {
        if ( 'alphabetical' == $bp_user_query->query_vars['type'] )
            $bp_user_query->uid_clauses['orderby'] = "ORDER BY substring_index(u.display_name, ' ', -1)";
    }
    add_action ( 'bp_pre_user_query', 'alphabetize_by_last_name' );
     
    // To reflect the alphabetical sorting of the member directory, you
    // could also format the names to show the last name first. Here is
    // a helper function to format names as follows: Last, First Middle
    // Etc.
    //
    // To use this function every time a user's name is shown or queried,
    // simply add it as a filter:
    //
    // <code>add_filter ('bp_get_member_name', 'format_last_name_first' );</code>
    //
    // To only reformat the name in the member directory, change your
    // members/members-loop.php file in your (child)theme. Look for
    // <code>bp_member_name()</code>
    // and replace it with
    // <code>echo format_last_name_first ( bp_get_member_name() );</code>
     
    /**
     * Helper function for formatting a name: Last, First Middle Etc.
     *
     * @param string $name
     * @return string Formatted name
    **/
    
    function format_last_name_first( $name ) {
        if ( $first_space = strrpos( $name, " ") )
            $name = substr( $name, $first_space + 1 ) . ", " . substr( $name, 0, $first_space );
        return $name;
    }
     
    // BONUS: To make alphabetical sorting the default sorting, use the
    // function below. 
    //
    // In order for this to work properly, <code><option value=&quot;alphabetical&quot;></code>
    // must be the first option for the members-order-select in
    // members/index.php.
     
    function sort_members_alphabetically( $qs = '', $object = false ) {
        if( $object != 'members' ) //for members only
            return $qs;
     
        if ( empty( $qs ) || ! strpos( $qs, "type=" ) ) {
            $args = wp_parse_args($qs);
            $args['type'] = 'alphabetical';
            $args['action'] = 'alphabetical';
     
            $qs = build_query( $args );
        }
     
        return $qs;
    }
    add_action( 'bp_ajax_querystring', 'sort_members_alphabetically', 11, 2 );

    I guess that members are sorted by the default WordPress first and last name fields right? Just because we’ve added some custom fields to the member profile pages to split their names in first name, ‘surname prefix (it’s for words like ‘van’ ‘de’) and last name. Not all members have a surname prefix though.

    #229279
    MaWe4585
    Participant

    i think i found my problem.

    in bp-core-functions.php there is this part:

    // Nonce check failed
    if ( empty( $result ) || empty( $action ) || ( strpos( $matched_url, $home_url ) !== 0 ) ) {
    $result = false;
    }

    i wrote $matched_url and $home_url to the log-file and TADAA
    $matched_url = http://localhost:40080:40080/wordpress
    $home_url = http://localhost:40080/wordpress

    Yes, twice the port in matched_url.
    This seems odd to me, can anyone say if it is correct this way, or if it is a bug?

    #229237
    shanebp
    Moderator

    This will require good coding skills. You may need to hire a developer. Or maybe somebody will be willing to create the code for you.

    To any devs: BP 2.2 will include ‘BP_XProfile_Query‘ to make these kinds of tasks much easier !!!

    #229223
    Hugo Ashmore
    Participant

    At this stage we can’t help as you provide no idea of what sort of issue you are having; this plugin author you contacted replied to you thusly You might want to contact one of the developers of the plugin that is causing the problem and send them the information in your console no information though!

    Not sure why you have arrived at the conclusion BuddyPress is the issue here though, BP is coded very tightly to WP standards and is less a plugin and more an extension of WP functionality.

    You actually list a number of fairly complex plugins that you consider cause the issue and seem to have posted this question on bbPress forum their response is going to be the same as ours at this stage without much more information, but frankly if one states a number of plugins appear to cause an issue on an individual basis then the one common denominator would likely be the problem and in this case that’s the bol.com plugin, but that’s not pointing the finger so to speak at bol but the resolution will lie with bol rather than bbPress or BuddyPress.
    https://wordpress.org/support/topic/produktlink-doesnt-work

    #229209
    Security
    Participant

    Hi i think i know whats happening here i was working on status theme to make it work with the latest versions of both buddypress and wordpress and i faced the similar issue so this is what i did to resolve it goto wp-content>>themes>>yourthemename>>members folder>>single>>home.php and add these lines of code there

    elseif ( bp_is_user_notifications() ) :
    					locate_template( array( 'members/single/notifications.php' ), true );	
    

    just before this kinda statement // If nothing sticks, load a generic template
    next create a file named notifications.php in wp-content>>themes>>yourthemename>>members folder>>single folder and add these lines to it

    <?php
    
    /**
     * BuddyPress - Users Notifications
     *
     * @package BuddyPress
     * @subpackage bp-legacy
     */
    
    ?>
    
    <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    	<ul>
    		<?php bp_get_options_nav(); ?>
    
    		<li id="forums-order-select" class="last filter">
    			<?php bp_notifications_sort_order_form(); ?>
    		</li>
    	</ul>
    </div>
    
    <?php
    switch ( bp_current_action() ) :
    
    	// Unread
    	case 'unread' :
    		bp_get_template_part( 'members/single/notifications/unread' );
    		break;
    
    	// Read
    	case 'read' :
    		bp_get_template_part( 'members/single/notifications/read' );
    		break;
    
    	// Any other
    	default :
    		bp_get_template_part( 'members/single/plugins' );
    		break;
    endswitch;

    and try to reload your site now your problem should be solved.
    Note: only create notifications.php if its not already there and please backup your site before making these changes

    #229207
    shanebp
    Moderator

    Re: 2. Importing s2member custom fields to buddypress fields
    Instead of, for now, editing the codex page, please note the args parameter for add_action.

    So the ‘2’ here is the arguments parameter. add_action('wp_login','s2_profile_field_update',10,2);
    So the hook provides 2 arguments – very handy & useful.
    But your example doesn’t use them in the function s2_profile_field_update.
    You can use the $user arg instead of $current_user and thereby get rid of that global.
    Use this to see the data in $user:

    function hook_arg_display( $user_login, $user ) { 
       var_dump( $user ); 
    }
    add_action('wp_login','hook_arg_display',10,2);

    imo: There is no Option 1.

    #229196
    Security
    Participant

    Hi @icaroferreira try theme my login plugin to bring the login process to front end then use custom admin bar plugin to remoove or add links on your admin bar https://wordpress.org/plugins/custom-admin-bar/screenshots/

    #229156
    shanebp
    Moderator

    I wrote a function that would check a users information when they login.

    Your function runs on every page load.
    You could use this hook instead to run only on login. Note that the hook provides all the WP_User info that you need in the $user parameter.

    For the user_id gathering, bp_parse_args is the way to go.

    An s2member codex page would be very useful. It will be editable.

    #229153

    In reply to: Invalid activation key

    telatabi
    Participant

    I found a temporary solution for this problem.
    https://wordpress.org/plugins/bp-disable-activation-reloaded/

    This plugin provides “disable activation e-mail”. User registers the form and directly go to main page. Activation code is not necessary.

    But I hope, someone find real solution. I looked all forum the same problems, but there isn’t any solve.

    #229144
    Hugo Ashmore
    Participant

    @myg0t Thanks for sharing that with the community, S2 Member has wide use so this ought to be useful to people.

    One point though it’s best not to advise that people edit a core file /buddypress/bp-templates/bp-legacy/..etc BP has a fairly well defined template hierarchy overload allowing files to be copied to the theme or child theme, those are the copies one should edit.

    Another minor point rather than have to edit & pass the arguments in the template could bp_parse_args() perhaps work for this?
    Using bp_parse_args() to filter BuddyPress template loops

    In respect of the profile data would not setting the user visibility options on the profile field/s in the backend not work to provide the privacy for address fields, just a thought but I may have missed the point of this aspect.

    Lastly this could make a nice user example guide for the BP codex if you’d care to post it there and we’ll slot it under a section appropriate.

    #229134

    In reply to: buddypress rtl

    Henry Wright
    Moderator

    Hi @zemenik

    Have you tried searching the WordPress Themes Directory? Perhaps search for something like “rtl language support” or just “rtl” and look through the results retuned for themes that are compatible with BuddyPress.

    #229124

    In reply to: groups added to phpbb?

    shanebp
    Moderator

    Integrating phpbb with BuddyPress would be a lot of work and would require a good developer with strong knowledge of both BP and phpbb.

    I’m not aware of any plugin that bridges phpBB with WP and BuddyPress.

    This might get you part of the way.

    #229118
    gyfi
    Participant
    #229107
    JibsouX
    Participant

    okey thanks in fact i will use the wonderfull plugin : BWP Minify 😉

    https://wordpress.org/plugins/bwp-minify/

    #229095
    Henry Wright
    Moderator

    You’ll have to deregister them and then re-register them ensuring the fifth param of wp_register_script() is set to true

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

    Note: Careful things don’t break as a result of moving scripts to the footer.

    shanebp
    Moderator

    There are several plugins for that.
    Do a search for front end post.

    #229078

    In reply to: Unban from Group?

    Skyrie
    Participant

    @hnla I agree, especially since a lot of BuddyPress sites (including my own) prohibit a user from seeing the backend at all. We need an option in the actual frontend for the admin of a group to be able to unban, perhaps with a list of banned members. Right now my users have to contact a member of our staff to get someone unbanned from their group, which they shouldn’t have to do.

    I’ve raised a ticket for this issue:
    https://buddypress.trac.wordpress.org/ticket/6013

    #229063
    Paul Wong-Gibbs
    Keymaster

    Switching from multisite to normal flavour WordPress looks kind of complicated. I came across http://wpebooks.com/2010/09/how-to-enable-multisite-in-wordpress/ from a good source (see page 24 of the PDF).

    Make backups of everything first. 🙂

    #229053
    modemlooper
    Moderator

    You edit this text via a language file.

    Customizing Labels, Messages, and URLs

    or wordpress.org/plugins/quick-localization/

    #229044
    wrify
    Participant

    Thank you for your reply. Maybe I didn’t explain myself well or maybe I am using the wrong approach.

    What happens is as follows:

    I have a set of categories listed on a page. These categories are for content purposes. Click on a category and get the list of post under that category. Just a regular WordPress thing.

    However, I need to do the same thing for type of users.

    For example:

    Under arts, I list categories as Arts, Photography, News etc. (These are for content)

    But the I need to list Artists, Photographers, Galleries (These are for users)

    Thanks,
    Joe

    Hugo Ashmore
    Participant
    #229014
    ronia
    Participant
    #229010
    marcmiquel
    Participant

    I did! With no success…He doesn’t reply. I know that it must work with this combination of plugin + theme + wordpress because I tried it in an empty one. But I just cannot lose all the work done in this website.
    Do you know of any ‘cleaner’ or restore to defaults for certain things? Thanks!

    Marc

    #228997
    marcmiquel
    Participant

    “Buddypress Upload Avatar Ajax” upload the pics in a folder during the registration as I checked right now. But then they don’t appear in the profile. Plus, the tab associated to user profile area “change…” does not appear. What could it be? I tried with a new wordpress and theme and it works, so it must something related to my specific combination. I deactivated all the plugins besides buddypress and this one, but still, it does not work. I am afraid using super caché before or any security plugin broke my wordpress…Any idea?

    #228987
    jbird
    Participant

    Just a little more info…

    I’ve tried this with all plugins deactivated except buddypress and akismet, and also with the twenty thirteen theme. Still no blog comments are showing up in the Activity Stream at all in either scenario. I would think that should eliminate plugin or custom theme conflicts as issues.

    I have WordPress multisite installed elsewhere on my domain, but this is installed in a fresh, single WordPress installation (4.0) in a different directory.

    I’ve seen a bunch of old threads in this forum that talk about search engine blocking being a factor, but I’m not sure which settings are relevant to that in the recent version of WP.

    I am desperate for some insight!

    Cheers,
    Jason

Viewing 25 results - 6,801 through 6,825 (of 22,685 total)
Skip to toolbar