Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 40 total)
  • @philippmuenchen

    Participant

    Yes! And he made me to a lucky man. 😉 Special thanks to @imath and @henrywright for your help and support. It’s working as expected now.

    Best!

    @philippmuenchen

    Participant

    Thanks! Yes I do use BP 2.2.

    I just used another Browser and cleared the cache. Nothing changed.

    @philippmuenchen

    Participant

    For some its NULL and for others bool(false).

    @philippmuenchen

    Participant

    🙂 Sorry, I got you wrong. It simply displays nothing. It’s blank.

    @philippmuenchen

    Participant

    I set up two types (‘kw’ & ‘max’) so what i want to achieve is that the echo $type; prints ‘kw’ or ‘max’ depending on what the user is.

    @philippmuenchen

    Participant

    Hi @ all,

    still it’s not working. Also if I echo bp_get_member_type( bp_get_member_user_id() );.
    Here’s my code again to show that I’m in the loop:

    <?php do_action( 'bp_before_directory_members_list' ); ?>
    
    	<ul id="members-list" class="item-list" role="main">
    
    	<?php while ( bp_members() ) : bp_the_member(); ?>
    
    		<?php 
    		$user_id = bp_get_member_user_id();
    		$type = bp_get_member_type( $user_id );
    		?>

    I also tried it with global $bp; and global $wpdb; but without success.

    BTW the code by @imath is working great.

    @philippmuenchen

    Participant

    Hi and thanks for your answers.


    @henrywright
    : If I echo bp_get_member_user_id() it returns the correct ID for each user. And yes, I’m in the members-loop.


    @shanebp
    : It accepts both with ” and without.

    Best regards,

    Philipp

    @philippmuenchen

    Participant

    Thanks for your reply. It’s absolutely weird and I wasn’t able to find the fix. Might this happen if the function is loaded more then once?

    Maybe you’re able to reproduce what I did. If it’s working with someone else it might be another issue with my install. But in general it’s working fine if I hardcode the ID. That’s why I’m confused.

    Best,

    Philipp

    @philippmuenchen

    Participant

    I’m using BP since <1.0 – So for a long time, now.
    I also was frustrated from the problem, that I always had to say “Hi Joshua-Felix Mustermann”, but I found several ways to solve this at those places, I just want to say Hi to the first name:

    Somehow you’ll have to get the full name and cut it between the names like this:

    $fullname = bp_core_get_user_displayname( $user_id );
    list($fname, $lname) = explode(' ', $fullname,2);

    E.g. I built a Plugin which just takes a look who is logged in, explodes the name and outputs the first name for the short code [name].

    So this discussion will never stop and there are easy ways to resolve it. BTW I edited the registration field name to say “Vor- und Nachname” (Pre- and Surname) and it just works perfect.

    Best regards,

    Philipp

    @philippmuenchen

    Participant

    @sarah_lena

    I spend a lot of time to find a fix for that. So if you still have problems do the following:
    1.) Download the “avatars” folder and delete all bpfull-XXxXX.jpg pictures and reupload it
    2.) Take a look here: https://buddypress.trac.wordpress.org/ticket/4092
    @boonebgorges gave the comment with the workaround (Thanks for this!)…

    So this is the code to replace with in bp-core-avatars.php, line 211:
    `// Check for current avatar
    foreach( $avatar_files as $key => $value ) {
    if ( strpos ( $value, $avatar_size )!== false ) {
    $avatar_url = $avatar_folder_url . ‘/’ . $avatar_files[$key];
    break;
    }
    }
    `

    For me there are no more problems now… It would be great if the BuddyPress-Team could get this into the next release… ;)

    Best!

    @philippmuenchen

    Participant

    Sorry for coming up with this again – But I have no idear how to fix this!

    @philippmuenchen

    Participant

    It seems that it’s not generating the 35x35px avatars for all users?! Thats so strange!

    @philippmuenchen

    Participant

    Thank you for the reply @karmatosed !
    I do use the latest version of Salutation. But I already asked the developer and he’s sure that it has nothing to do with the theme?!

    @philippmuenchen

    Participant

    I use this PlugIn: http://bp-tutorials.de/2010/09/private-buddypress

    It’s not updated since a long time but it still works fine for me…

    @philippmuenchen

    Participant

    Same problem here… Instead of using the -bpfull.jpg it loads bp-full-16×16.jpg and resizes it by css to 80×80… ?!

    @philippmuenchen

    Participant

    Some more ideas?!

    @philippmuenchen

    Participant

    Hi Paul!
    Thanks, but the code isn’t working. If I use the code above as a plugin I’m able to use all WP Tables from both installations. So e.g. I have access from both pages on the same articles,…
    But with the BP tables nothing happens. Maybe there is another way I could go to reach my goal. Some ideas?! :)

    @philippmuenchen

    Participant

    I would like to add the following:

    function table_prefix_switch() {
    global $wpdb;
    $options = $wpdb->options; //Save the site 2 options table
    $wpdb->set_prefix(‘wp_’); //The prefix to site 1
    $wpdb->options = $options; //Put the options table back
    }

    add_action(‘init’, ‘table_prefix_switch’);

    Maybe this could help me to hack it a little bit?!

    UPDATE: It’s just using the tables of WordPress – Not of Buddypress! Why?! :(

    @philippmuenchen

    Participant

    @aljuk Another 6 hours of work and sill no solution. I tried exactly what you said. And I also tried it on my development installation – There it’s working like a charm. I don’t have an idear what to do… ;(
    I use the latest versions of bp and wp. On my testdrive I use the same plugins. I also checked another theme.
    All this work just to hide ONE profile field.
    Do you have another idear? ;)

    Thanks a lot!

    Philipp

    @philippmuenchen

    Participant

    @aljuk Thanks a lot for you answer. But I also tried that and I logged out as admin and signed in as a normal user. Still the same.
    Another idear?

    Thanks a lot for the link. I’ll take a look to it! :)

    All the best!

    @philippmuenchen

    Participant

    Hi and sorry for the second post. But I’m trying to find out since one week why the BP Profile Privacy PlugIn isn’t working for me.
    If I activate it and set a field (e.g. birthdate) to “users only” – nothing happens. There are also no settings for the users in the frontend of buddypress. So there’s something wrong? Any idear what to try to fix it?

    I’m looking forward – Hopefully for an answer! ;)

    Philipp

    @philippmuenchen

    Participant

    It is in the fieldgroup “ID1”.

    @philippmuenchen

    Participant

    I activated it and made my settings but nothing happens. E.g. I said “Birthday” just for “User” but it’s still visible. There are also no settings in the frontend if I use “Let user decide”.
    I already deleted all fields with “bp_profile_privacy” in the database and activated the plugin again. But it’s still the same… No idear!?

    Thanks a lot!

    @philippmuenchen

    Participant

    I just tried BP Profile Privacy. It’s not working with the latest BP release, isn’t it!? :(
    So maybe another idear?

    @philippmuenchen

    Participant

    Thanks for the answers. But I just want to hide one of the profile fields from public….
    But you could also help me, if you tell me this:

    Is it possible to convert a date (e.g. Birthday 12.07.1987) to an “age” “23”?! That would solve the Problem also.
    I just don’t want that anyone is able to see the birthdate of my users…

    Thanks a lot and all the best!

Viewing 25 replies - 1 through 25 (of 40 total)
Skip to toolbar