Viewing 4 replies - 1 through 4 (of 4 total)
  • @alexandraka

    You are missing the current domain and the UM upload folder and user_id addition to your link.

    
    $current_domain_um_uploads = ( is_ssl() ? 'https://' : 'https://' ) . $_SERVER['HTTP_HOST'] . '/'. WP_CONTENT_DIR . '/uploads/ultimatemember/';
     
    $link = '<a href="' . $current_domain_um_uploads  . $row->ID . '/' . $meta_value . '">' . $CACI_txt . '</a>';
    
    

    My solution using the UM functions for the meta value:

    
    um_fetch_user( $row->ID ); 
    $meta_value = um_user( 'caci_file' );
    

    If your link will be displyed on the profile page of the user owning the uploaded file you can use um_fetch_user( um_profile_id());

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @alexandraka

    Please try using the CODE option in the editor when creating a topic or response to the topic with codes so that it will display as plain text.

    Regards,

    • This reply was modified 3 years, 7 months ago by Champ Camba.
    • This reply was modified 3 years, 7 months ago by Champ Camba.
    Thread Starter alexandraka

    (@alexandraka)

    great it works ; thxs !

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know.

    Regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘url to file_uploaded’ is closed to new replies.