-
Author
-
February 6, 2015 at 15:45 #44944parousiaParticipant
Hi,
I’ve got a weird issue.
For some reason whenever I click save when adding a field it redirects to my homepage with “/#tabs-1” at the end of the url.
Any help would be greatly appreciated!
February 6, 2015 at 19:06 #44996LauraModeratorHello, this issue may be related to a plugin, disable all but buddypress and let me know if it works
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
February 6, 2015 at 19:13 #44998parousiaParticipantHi Thanks for the quick reply.
The issue seems to have resolved itself? Maybe a cookie problem?
I also have one other issue which I was going to start a thread for but in the member header I’ve added this code before the close of item meta:
COPY CODE<div id="member_profile"> <div class="profile_fields"><span><?php bp_profile_field_data( 'field=Role' );do_action( 'bp_before_member_header_meta' );?></span></div> <div class="profile_fields"><span><?php bp_profile_field_data( 'field=Speciality' );do_action( 'bp_before_member_header_meta' );?></span></div> </div>
However its displaying the speciality field as an “array”? How do i get it to display as text?
see the link as an example http://cultexposure.com/members/lauriedugdale/profile/
Thanks again for your help
February 6, 2015 at 20:24 #45001sharmstrModeratorNot sure where you go that code, but those do_actions should not be in there. Remove them or do it this way
https://codex.buddypress.org/themes/guides/displaying-extended-profile-fields-on-member-profiles/
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
February 6, 2015 at 22:16 #45015parousiaParticipantHi I’ve followed the steps but its still displaying “array” for the speciality field (which is a multi select box). Theyre also both now on the same line as each other. How do I display them on different lines? Thanks for your help.
COPY CODE<?php add_action( 'bp_profile_header_meta', 'display_user_role' ); function display_user_role() { echo ''; $args = array( 'field' => 'role', // Field name or ID. ); bp_profile_field_data( $args ); } add_action( 'bp_profile_header_meta', 'display_user_speciality' ); function display_user_speciality() { echo ''; $args = array( 'field' => 'speciality', // Field name or ID. ); bp_profile_field_data( $args ); } do_action( 'bp_profile_header_meta' ); ?>
February 6, 2015 at 23:36 #45022sharmstrModeratorThis works for me with a dropdown
COPY CODEadd_action( 'bp_profile_header_meta', 'display_user_info' ); function display_user_info() { bp_profile_field_data('field=role'); echo "</br>"; bp_profile_field_data('field=speciality'); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
February 7, 2015 at 23:31 #45136parousiaParticipantThanks for the code sharmstr but unfortunately its still displaying the multiselect box answers as “array” Is there a way to stop this?
February 8, 2015 at 00:35 #45143parousiaParticipantAlso is it possible to set the background image of a row to cover. So it not only goes full width but fills the height of the page? Would really like to do this without using revolution slider.
February 8, 2015 at 14:43 #45157sharmstrModeratorSorry, I tested with a single select dropdown. Try this, which assumes that ‘specialty’ is your multiselect
COPY CODEadd_action( 'bp_profile_header_meta', 'display_user_info' ); function display_user_info() { bp_profile_field_data('field=dropdown'); echo '</br>'; if ( $specialities = xprofile_get_field_data( 'speciality') ) { foreach ( $specialities as $speciality ) { echo $speciality . '</br>'; } } }
For your cover question, give me a link so I can see what you’re trying to do.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
February 8, 2015 at 16:47 #45165parousiaParticipantThanks very much that fixed it!
I’m currently achieving a large image by using revolution slider as seen on this page (http://cultexposure.com/). However this has a few draw backs and would like to be able just to select a background image on the row and have it cover the page. custom css like “background-size: cover;” doesnt seem to work?
February 9, 2015 at 01:37 #45196parousiaParticipantHi, I think I was having a dull moment I’ve figured it out.
Just needed to select browser full dimension in the background override option.
I have just one last question i replaced
echo $speciality . '</br>';
withecho $speciality . ', ';
Is there a way to make the last entry end either with a . or nothing at all? -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.