Skip to:
  • <?php echo $user->avatar ?>

    where does one find more of these?

    specifically where/how to add elements to the users blog

    I have the blog admin information dispalying on their sidebar, but cannot get the other codex samples to work

    how do i define a dynamic user_id ?

    if ( bp_has_blogs() ) :

    <div class="pag-count" id="blog-count">…[Read more]

  • ok… never mind… this DOES work

    thanks for your help guys

    <?php echo 'Welcome' . xprofile_get_field_data('First Name', $bp->loggedin_user->id) .', access your account below.'; ?>

  • sorry to bother you further….

    that corrects the fatal error… however the field_1 value is not called back……(thought field_1 was full name…)

    echo 'Welcome' . xprofile_get_field_data(field_1, $curauth->the_user). ', access your account below.' ;
    I named it wrong? or there’s more function to add? I think I will move onto the latest trunk…[Read more]

  • Fatal error: Call to undefined function xprofile_get_field_data() in…


    my code:

    if( xprofile_get_field_data(field_1, $curauth->the_user) ):

    echo 'Welcome' . xprofile_get_field_data(field_1, $curauth->the_user). ', enter here' ;


    Thanks Andy, your skills humble me

  • echo 'Welcome' . ??????????????(field_7, $curauth->the_user). ' , How Are You' ;

    notice the ????????????? aboveā€¦. what do i put there to get Xprofile fields?
    here is what I use on regular wordpress profile field…

    if( get_user_option(first_name, $curauth->the_user) ):

    echo 'Welcome'. get_user_option(first_name, $curauth->the_user) .' ' ;…[Read more]

  • echo "<ul class="main-nav">";

    echo "<li >Main Link</li >";

    echo "<ul >";

    echo "<li >sub link</li >";

    echo "<li >sub link</li >";

    echo "<li >sub link</li >";

    echo "<li >sub link</li >";

    echo "<ul >";

    echo "</ul >";

    why doesnt the above create a dropdown in the admin…

  • question

    I’ve hand coded the bp-core-admin-bar.php to add additional links

    and add a If(user_is_logged_in) so I can switch links when the user logs in..

    but my li / ul aren’t creating droppdowns


    <li> main link </li>
    <li>sub link</li>
    <li>sub link</li>

    instead of getting the sub-links to show as a dropdown, they show up as…[Read more]

Skip to toolbar