Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 2,549 total)
  • Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    There is no connection between them. They are separate classifications.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Glad to hear it.
    imo – you should add to this thread whenever there is a new issue of the newsletter.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    That is used by the backbone – javascript library which is included with WordPress.
    Perhaps something, maybe your theme, is preventing it from being loaded.
    Try switching to a WP theme like 2015.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    It looks like your theme has replaced the toolbar… ?

    To confirm that the issue is due to your theme, try switching momentarily to a WP theme like 2015.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    On a test site, your template shows all field labels and data.
    So something is happening specific to your install.

    Have you tried switching themes?

    Are you sure that the fields have data?

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Does the profiler show that BP is loaded before you call your function?
    If not, then it will fail.

    Try placing your function in bp-custom.php

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    You didn’t do anything wrong. These forums are strictly volunteer. There is no guarantee that a question will be answered.

    I don’t know what is generating that link. If I did, I’d suggest a way to remove it.
    The only suggestion I can make is to check your permalink settings, and resave them.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Please use pastebin or gist – both are free – to share your code.
    Based on the info you’ve provided, we can’t make suggestions.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Use the same hook in the same way as you did above.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    You need to pass additional fields – and in the correct order.
    http://hookr.io/functions/xprofile_get_field_data/

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    You’re probably calling xprofile_get_field_data() too early.
    Wait until BP is loaded, use the bp_ready hook.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    >Am I on the right track?

    This is wrong. bp_get_group_id(get_current_user_id());
    Look up that function to see how it is used.

    Ask LearnDash how to get the group id on the LearnDash screen that you want to use.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    You need to create the code. Do so in bp-custom.php.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Try using bp_get_group_id().
    If you can get the group id, then use groups_get_group_admins( $group_id ) to get the group admins.
    Pull out the user ids of the group admins and use the ids to get the user data that you want.

    NOTE: you should be asking LearnDash these questions.
    By asking them here, you are asking volunteers to answer questions about a third-party premium plugin.
    Therefore, you most likely won’t get much assistance here.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Have you tried one of the privacy plugins?
    For example: https://wordpress.org/plugins/bp-simple-private/

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Try :

    wp_redirect( 'https://failtrafic.ro/wp-admin/' ); exit;

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Try:

    function iuda_screen_content() { 
    	bp_core_redirect( 'https://failtrafic.ro/wp-admin/' );
    }
    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    is_super_admin() checks to see if the current user is an administrator.
    To check if they are an editor, you need to check whether they have an editor permission.

    Try:

    if ( is_super_admin() || current_user_can('editor') ) {

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Yes, use is_super_admin()

    For example:

    function add_iuda_tab() {
    	global $bp;
    	
    	if ( is_super_admin() ) {
    	
    		bp_core_new_nav_item( array(
    			'name'                  => 'Iuda',
    			'slug'                  => 'iuda',
    			'parent_url'            => $bp->displayed_user->domain,
    			'parent_slug'           => $bp->profile->slug,
    			'screen_function'       => 'iuda_screen',			
    			'position'              => 200,
    			'default_subnav_slug'   => 'iuda'
    		) );
    
    	}
    }
    add_action( 'bp_setup_nav', 'add_iuda_tab', 100 );
    
    function iuda_screen() {
        add_action( 'bp_template_title', 'iuda_screen_title' );
        add_action( 'bp_template_content', 'iuda_screen_content' );
        bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    }
    
    function iuda_screen_title() { 
    	echo 'iuda Title<br/>';
    }
    
    function iuda_screen_content() { 
    	echo 'iuda Content<br/>';
    }
    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Please use the code button when sharing code.

    'show_for_displayed_user' => true,

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Talk to your theme author.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    > Query runs fine when I replace bp_displayed_user_id() with an integer.

    You need to adjust your sql so that it uses a variable.
    Try something like :

    $user_id = bp_displayed_user_id(); 
    ... where wpyn_ks_trick_post.ID = $user_id

    This is a basic php / mysql issue. There are lots of tutorials on the subject.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    It sounds like you need more server resources. Talk to your hosting provider about that.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    It may be due to a javascript conflict with your theme or some other plugin.

    To check if it’s your theme, try switching momentarily to a WP theme like 2015 and see if the issue persists.

Viewing 25 replies - 1 through 25 (of 2,549 total)
Skip to toolbar