Forum Replies Created
-
Hi @hnla I appreciate the help, and yes I did read it…just not sure I was interpreting it correctly.
Thanks for the help, I got this working as follows:
.....// display code $data=bp_get_member_profile_data(array('field'=>'Experience')); echo '<h3>Experience</h3>'; echo wpautop($data); endif; ?>
Ian
Apologies, I’m not a developer but trying to find a solution that works.
I tried editing bp-profile-filters.php by adding
add_filter( ‘xprofile_get_field_data’,’wpautop’ );
I also tried upgrading Buddypress Xprofile Custom Fields Type plugin, as it was out of date, but this hasn’t helped.
From my rudimentary understanding, What I think I need to do is edit echo $data; to somehow include wpautop but I am not finding a way to do that…apologies if it is simple.
Thanks,
Ian
Thanks for the pointer @henrywright – I’ve tried a few executions but can’t seem to generate the breaks/p tags that are needed.
Here is an example of where I am seeing the problem with profile fields – is there a way within the text that is outputted to enable wpautop? Thanks…
<div class="keyPeople"> <?php if (bp_get_profile_field_data('field=Key People') == "") : echo ''; else: // display code $data=bp_get_member_profile_data(array('field'=>'Key People')); echo '<h3>Key People</h3>'; echo $data; endif; ?> </div>
I’m using the multi line text box, but in the front end, line breaks don’t work.
Any ideas what could be wrong?
@barney92 your photo makes you look like a dancing hotdog…wait…
Is it really acceptable to come on here and use abusive, offensive slurs like that? Using the word ‘retard’ is completely inappropriate.
Anyway, this is a support forum, and I am asking for support. Most people are happy to help.
I am still learning Buddypress so this is a great place to develop. I contribute regularly to WordPress forums and Stack Exchange to help others.
Thanks @danbp
I read that, and tried a few times, but didn’t get very far.
Is this the only way to do it?
Thanks,
Ian
Sorry guys, turns out this was in my functions.php extending the search functionality (Single Search page for all buddypress components)
Apologies.
@henrywright-1 annoyingly it doesn’t have a class round it so I can’t hide it, I don’t know where it is coming from. The HTML is:
<a href="http://siteurl.com/members/?s=test">View all 13 matched Members</a>
Thanks @shanebp
I found the following but removing it didn’t take out the line, could it be anywhere other than members-loop.php?
<div id="pag-bottom" class="pagination"> <div class="pag-count" id="member-dir-count-bottom"> <?php bp_members_pagination_count(); ?> </div> <div class="pagination-links" id="member-dir-pag-bottom"> <?php bp_members_pagination_links(); ?> </div> </div>
Can anyone offer a solution for this?
Thanks.
Ok so
<?php do_action( 'template_notices' ); ?>
is referenced in member-header.phpI have modified edit.php @henrywright-1 – as we’re not using the sub menu of activity, forums, etc.I just have profile and change avatar.
It’s been a while since this file was edited, but I’m wondering if it’s this line that’s affecting the notices:
<?php bp_profile_group_tabs_exc_empty(); ?>
I’ll try with the default theme too and see what happens.
Thanks @henrywright-1
It doesn’t seem to make any difference. As I said, my change-avatar page does show a notification, but I just checked change-avatar.php and that doesn’t have
<?php do_action( 'template_notices' ); ?>
in it either, so I’m not sure how it’s working.Any ideas?
OK thanks @henrywright-1
Do you know where it should go? It’s not currently in my edit.php file
Sorry, this can be resolved, I had a link hardcoded – sorry for not realising sooner
Thanks
Hi @modemlooper – is this for functions.php or bpcustom? Added to both and it didn’t remove the tab from the profile.
Anything I could be doing wrong here?
Thanks,
Ian
Thanks again @henrywright-1
we’re looking at writing a simple plugin to user the Xprofile ‘Your Name’ that we have added, in the format of firstname-secondname-1 (-2 if a duplicate)
If anyone finds it useful in the future let me know and we can share.
Thanks @henrywright-1 – I don’t want to remove it, just wondering if I can replace it with something more friendly – before I changed to the email address authentication it was of course /username, so I was hoping I could replace that string with ‘USER_DISPLAY_NAME’ and then maybe ‘USER_DISPLAY_NAME-1′ if there was a duplicate?
Wondering if it is possible to use ‘USER_DISPLAY_NAME’ in the url somehow…?
This is perfect thanks @rfauster
I realise this is a pretty old post now, and I have done what is mentioned here (including the email login plugin)
It works perfectly, however the URL for a users profile is now http://sitename.com/members/e2cd18d97f62a5432557784b2f7e68957ad0f42e//profile
I understand that email address wont work here, is there anything I Can do to make this more SEO friend/pretty?
Thanks,
Ian
Ooh I didn’t know that was possible, is this for functions.php @henrywright-1 ?
hi guys, hate to ask again on here, but hoping after a few months it’s ok
Anybody know how to do this?
Apologies this can be resolved – apologies.
Yeah I did that in the end @bphelp thanks
Thanks @henrywright-1 and @shanebp
Works a treat 🙂