Forum Replies Created
-
I found the anwser heres a link if anyone else wants to know how to in the future. https://gist.github.com/sbrajesh/2142009
Yes ok thanks again!!! Very happy!!!
Yes perfect thanks so much!!! and thanks for sticky with it!! I would of never worked it out. Its ok if i move it a couple of lines so the text comes in a more convenient area?
Yes the same with me its coming through but all the same.
oh ok ill try now
Thanks very much for your help anyway. Ill keep trying, I always get myself in these situations
yeah I just tried changing it, didn’t . Oh no. Ok maybe I will just check the code a few more times. would spaces in the code make it not work?
its is a multi-line text area. i can change it to see if that works maybe but then they don’t have enough area to text
I have opened a new members loop file in subline text to see if there is any thing that i did wrong but i can’t see any changes
Thanks I have inserted it but its still not working. All the members come up but not the field 2 excerpt.
Yes I can confirm it is 2. id=2 is the end of the url
Oh sorry I thought I added the backticks.
Yes sorry for the changes Im just trying to work out the problem.
I will explain better what I am trying to do.
On my website when a member fills out there profile or edits it one of the fields is a description field.Then when someone goes to the members page, the members profiles show up with the profile pic (and you can scroll down the page getting a quick look at the profiles) but there is no except about the profile. I want that description field to show up individually for each members description.
No I can’t confirm the field id, I tried looking for it but can’t find it. If I do a page inspect I can see field_2 but alot of other text after it. But I am not sure I am right about that, I was just going of the field name.
i tried changing the code still nothing please see if maybe I am doing somthing wrong.
<?php if ( bp_nouveau_member_has_meta() ) : ?>
<p class=”item-meta last-activity”><?php if ( bp_has_profile(‘profile_group_id=2’) ) : ?>
<?php bp_nouveau_member_meta(); ?>
</p><!– #item-meta –><?php endif; ?>`
<?php if ( bp_has_profile(‘profile_group_id=2’) ) : ?>`
is the new code i was trying but is seams every time i put any php code in there it frezzes that part of the page. Maybe an array or I dont know. thanksit seams to stop the file once i add the <?php ?> do I need to create a div class it seams the other content has there own div?
Yes when I do that the members part of the page just stays a please wait.
the post i got this code from says underneath that if you need checking ad this<?php if ( $company = bp_custom_get_member_list_xprofile_data('Company') ) : ?> <p><?php echo $company ?></p> <?php endif; ?>
and if you don’t need checking add this
<p><?php bp_custom_member_list_xprofile_data('Company') ?></p>
Thanks for showing me the right place, I am shore that it is the right place. But I having trouble finding the right code for it. Ive tried a few and they show up in the area but its the actual code not the data. I am wondering if i have the wrong field name? I have changed the field name to 2 as a way to make it easier to work. function bp_custom_member_list_xprofile_data( $2 ) {
echo bp_custom_get_member_list_xprofile_data( $2 );
}
function bp_custom_get_member_list_xprofile_data( $2 ) {
global $site_members_template;
return xprofile_get_field_data( $field, $site_members_template->member->id );
}` but I am not sure. This code shows up where i want the field 2 excerpt to show. Thanks
Hi Venutius thanks for that i will give it a try