Forum Replies Created
-
Any thoughts, guys?
Any help?
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
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() ); ?>
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>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) ?>
Thanks Burtadsit. So I’ve tried every option I can think of and can’t get it to display. Andy?
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 ) ?>
Ah – ok. So I installed RC2 and the line failed…. any suggestions ?
Ah – I worked it out:
<?php echo bp_get_field_data( 'One Line Summary', $user->user_id ) ?>
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.
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 ) ) {
Thanks – I actually went into bp-xprofile-filters.php and removed the s after https?
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>
thanks