Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)

  • psfk
    Participant

    @psfk

    Any thoughts, guys?


    psfk
    Participant

    @psfk

    Any help?


    psfk
    Participant

    @psfk

    Hmmm… not getting anywhere with this nor any further support. Maybe I should start afresh here:

    https://buddypress.org/forums/topic.php?id=2346&replies=1#post-12800


    psfk
    Participant

    @psfk

    OK, I went and installed the latest patch – now I am getting numbers that look like they must correspond to each member. How do I get bp to publish the data not the integers? This is what I have now:

    <?php echo xprofile_get_field_data( 'One Line Summary', bp_the_site_member_user_id() ); ?>


    psfk
    Participant

    @psfk

    unlikely that you are teaching me to suck eggs. So in members-loop.php I am changing the code to say:

    <div class="item">
    <div class="item-title">
    <a href="<?php bp_the_site_member_link() ?>"><?php bp_the_site_member_name() ?></a></div>
    <div class=\\\\\\\"item-meta\\\\\\\">
    <p><b>Availability:</b> <?php echo xprofile_get_field_data( 'Availability To Be Hired As An Expert', $user->user_id ) ?>
    </p> </div>

    <?php do_action( 'bp_core_directory_members_content' ) ?>
    </div>


    psfk
    Participant

    @psfk

    Now I’m just getting 1s and 0s in the results with

    <?php echo xprofile_get_field_data( ‘Availability To Be Hired As An Expert’, $user->user_id) ?>


    psfk
    Participant

    @psfk

    Thanks Burtadsit. So I’ve tried every option I can think of and can’t get it to display. Andy?


    psfk
    Participant

    @psfk

    Hmmm… while it doesn\’t give me an error, this does not return any result:

    <?php echo xprofile_get_field_data( \’city\’, $user->user_id ) ?>

    See – http://purplelist.com/members


    psfk
    Participant

    @psfk

    Ah – ok. So I installed RC2 and the line failed…. any suggestions ?


    psfk
    Participant

    @psfk

    Ah – I worked it out:

    <?php echo bp_get_field_data( 'One Line Summary', $user->user_id ) ?>


    psfk
    Participant

    @psfk

    Can someone tell me how can I use this code in the bp-core-directory-members.php so that I can list say the name of the City each member lives in under their name?

    <?php echo bp_get_field_data( $field_name, $user_id ) ?>

    I can make the random call work – but I’d rather just call a certain profile field – see http://purplelist.com/members.


    psfk
    Participant

    @psfk

    Guys, I removed an ‘s’ from this line and it made the URLs work

    if ( preg_match( ‘@(https?://([-\w\.]+)+(:d+)?(/([\w/_\.]*(\?\S+)?)?)?)@’, $value ) ) {

    to

    if ( preg_match( ‘@(http?://([-\w\.]+)+(:d+)?(/([\w/_\.]*(\?\S+)?)?)?)@’, $value ) ) {


    psfk
    Participant

    @psfk

    Thanks – I actually went into bp-xprofile-filters.php and removed the s after https?


    psfk
    Participant

    @psfk

    RewriteEngine On

    RewriteBase /

    #uploaded files

    RewriteRule ^(.*/)?files/$ index.php [L]

    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*

    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    # add a trailing slash to /wp-admin

    RewriteCond %{REQUEST_URI} ^.*/wp-admin$

    RewriteRule ^(.+)$ /$1/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]

    RewriteCond %{REQUEST_FILENAME} -d

    RewriteRule . – [L]

    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]

    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]

    RewriteRule . index.php [L]

    <IfModule mod_security.c>

    <Files async-upload.php>

    SecFilterEngine Off

    SecFilterScanPOST Off

    </Files>

    </IfModule>


    psfk
    Participant

    @psfk

    thanks

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