Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 95 total)

  • applegateian
    Participant

    @applegateian

    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


    applegateian
    Participant

    @applegateian

    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


    applegateian
    Participant

    @applegateian

    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>	

    applegateian
    Participant

    @applegateian

    I’m using the multi line text box, but in the front end, line breaks don’t work.

    Any ideas what could be wrong?


    applegateian
    Participant

    @applegateian

    @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.


    applegateian
    Participant

    @applegateian

    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


    applegateian
    Participant

    @applegateian

    Sorry guys, turns out this was in my functions.php extending the search functionality (Single Search page for all buddypress components)

    Apologies.


    applegateian
    Participant

    @applegateian

    @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>


    applegateian
    Participant

    @applegateian

    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>

    applegateian
    Participant

    @applegateian

    Can anyone offer a solution for this?

    Thanks.


    applegateian
    Participant

    @applegateian

    Ok so <?php do_action( 'template_notices' ); ?> is referenced in member-header.php

    I 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.


    applegateian
    Participant

    @applegateian

    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?


    applegateian
    Participant

    @applegateian

    OK thanks @henrywright-1

    Do you know where it should go? It’s not currently in my edit.php file


    applegateian
    Participant

    @applegateian

    Sorry, this can be resolved, I had a link hardcoded – sorry for not realising sooner

    Thanks


    applegateian
    Participant

    @applegateian

    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


    applegateian
    Participant

    @applegateian

    Thanks again @henrywright-1


    applegateian
    Participant

    @applegateian

    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.


    applegateian
    Participant

    @applegateian

    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?


    applegateian
    Participant

    @applegateian

    Wondering if it is possible to use ‘USER_DISPLAY_NAME’ in the url somehow…?


    applegateian
    Participant

    @applegateian

    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


    applegateian
    Participant

    @applegateian

    Ooh I didn’t know that was possible, is this for functions.php @henrywright-1 ?


    applegateian
    Participant

    @applegateian

    hi guys, hate to ask again on here, but hoping after a few months it’s ok

    Anybody know how to do this?


    applegateian
    Participant

    @applegateian

    Apologies this can be resolved – apologies.


    applegateian
    Participant

    @applegateian

    Yeah I did that in the end @bphelp thanks


    applegateian
    Participant

    @applegateian

    Thanks @henrywright-1 and @shanebp

    Works a treat 🙂

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