Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 9,801 through 9,825 (of 32,679 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?

    icetek
    Participant

    It just redirects the user back to the site index and I have to go manually activate their account.

    I’m using WordPress v4.0 and was wondering if there is a fix for this?

    #229121
    ripulkr
    Participant

    In the latest BuddyPress versions, it seems that the activity pagination has been disabled.
    ( https://buddypress.org/support/topic/pagination-count-and-links-dont-work/ ) the alternate suggested solution does not seem to work (http://bpdevel.wordpress.com/2014/06/09/changes-to-bp_has_activities-queries-in-bp-2-1/). Is there any other alternate solution for the activity pagination ?

    franklinkevin321
    Participant

    Recent install of wordpress/buddypress and all of my profile fields of my members are returning in the format of a hyperlink. I need them to return in plain text. I believe there’s a PHP file somewhere I just need to make a small edit too to accomplish this. Any ideas?

    #229248
    MaWe4585
    Participant

    Hello.

    i installed WP and after that BuddyPress.
    i also installed the plugin “WP piwik”

    now i want to use the registration-form of BuddyPress.
    so i created an emtpy page with the name Registration(lower-case in the permalink) and assigned it to the register-page in the BuddyPress Settings.

    i also allowed registration for all.

    the registration page behaves like this:

    the page opens if i click on “register”.
    i can enter all my data.
    after i click on submit, the browser sends a post and returns to the registration-page still having all the data, with both password-fields empty.
    the “manage singups” table is still empty.

    every new attempt ends the same way.

    i deactivated all plugins.
    i use wenty fourteen theme.

    don’t know what is wrong here..

    ah yeah.. i installed it on localhost:40080 since port 80 is already used by another application.
    path is d:\xampp\htdocs\wordpress\…

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

    #229195
    VentureCore
    Participant

    I’m basically having the same problem as described in this thread.
    https://buddypress.org/support/topic/alphabetically-displaying-only-buddypress-users-in-multisite/

    If I select alphabitical it lists all of the members on the Network and writes them into the bp_xprofile_data table.

    I have bp multiblog true
    Networks for wordpress (network activated)
    buddypress for networks by BuddyDev (network activated)
    buddypress is activated site by site
    buddypress xprofile also

    Wp 4.0
    BP 2.1.1

    I also have a couple of blogs that only have 3 members but on the ‘members’ page is say’s it’s displaying 1-5 of 5

    I have tried to manually clean up the database but can’t seem to find where to fix that…

    If I use the BP members count tool it just ends up populating the site with every member from throughout the network.

    Thank you wpengine and vaultpress!

    #229169
    lynnham
    Participant

    Dear BuddyPress,
    I am contacting you all on behalf of my client who is currently having problems with their website. One of her staff members sent me an email saying they were unable to edit, delete or remove posts on my site’s forum. Not even their own. Their also experiencing problems with posting and/or responding to post. It sometimes allows them to write the post and press the post button but when they check to see if their post has loaded, it is nowhere to be found. I reached out to the organization that powers the forum but I don’t think they will be able to assist me. I’m not sure if WordPress or Buddypress controls the forums on various websites or if the organization that powers the forum can help with forum issues.
    My client is using WordPress 3.7.4. and bbPress 2.4.

    #229162
    eventkonsulterna
    Participant

    Hi guys.
    I have an issue when looking at a profile page that the members username shows up in top left of the page with “/> trailing it. Above the header of wordpress.
    Shows up on profile page and edit profile page.

    Any1 else seen this?
    Member Username

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

    imdreamer
    Participant

    Hello

    this is my first time to install buddypress, my WP is 3.9.1

    in back end, buddypress is newest version which showed this following message, how can i solve this problem ?

    Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /var/www/mysite.com/wp-includes/functions.php on line 3245

    thanks a lot

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

    #229122
    telatabi
    Participant

    Hello. I am from turkey.
    I installed buddypress and bbpress.
    Requests:
    1-I want to use default wordpress registration page, how can I do?
    2-If I want to use buddypress registiration page, There are problems below.
    I tested a lot of users. My SMTP is not problem, registiration e-mail is sending. But If I click http://www.okulsayfam.com/aktivasyon/?key=f1ee6d467bd0e031b7d73be9cbf61313 : (link is for example)

    Invalid activation key.
    Please provide a valid activation key.

    I tested a lot of users. Please hepl me, I am looking for a long time.

    #229118
    gyfi
    Participant
    #229107
    JibsouX
    Participant

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

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

    #229096

    Topic: Fan club?

    in forum Miscellaneous
    rsrmedia
    Participant

    I want to build a fan club type site using wordpress. Is Buddypress a good system to use for something like this?

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

Viewing 25 results - 9,801 through 9,825 (of 32,679 total)
Skip to toolbar