This topic has 12 replies, 3 voices, and was last updated 9 years by parousia.

  • Author
  • #44944
     parousia
    Participant

    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!

    #44945
     parousia
    Participant
    This reply has been set as private.
    #44950
     parousia
    Participant

    This problem also extends to deleting plugins?

    #44996
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #44998
     parousia
    Participant

    Hi 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

    #45001
     sharmstr
    Moderator

    Not 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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #45015
     parousia
    Participant

    Hi 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' );
     
    		 ?>
    
    #45022
     sharmstr
    Moderator

    This works for me with a dropdown

    COPY CODE
    
    
    add_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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #45136
     parousia
    Participant

    Thanks for the code sharmstr but unfortunately its still displaying the multiselect box answers as “array” Is there a way to stop this?

    #45143
     parousia
    Participant

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

    #45157
     sharmstr
    Moderator

    Sorry, I tested with a single select dropdown. Try this, which assumes that ‘specialty’ is your multiselect

    COPY CODE
    
    
    add_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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #45165
     parousia
    Participant

    Thanks 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?

    #45196
     parousia
    Participant

    Hi, 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>'; with echo $speciality . ', '; Is there a way to make the last entry end either with a . or nothing at all?

Viewing 13 posts - 1 through 13 (of 13 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?