WordPress.org

Ready to get started?Download WordPress

Forums

WP file upload and manager by N-Media
[resolved] Delete the redirection audentification (2 posts)

  1. rollerdie
    Member
    Posted 1 year ago #

    Hello, thank's for the plugin ans sorry for my english..

    I would like to delete the redirection because when a user click in the onglet "upload" he is redirected to the log and i didn't member space so the can't acces to the onglet.

    I wan't supp the redirection and

    i tried but it's doesn't work..

    function renderUserArea()
    	{
    		global $wpdb ;
    		global $user_ID;
    		global $current_user;
    		get_currentuserinfo();
    
    		if ( is_user_logged_in() ) {
    			ob_start();
    	         nmFileUploader::renderForm();
    			$output_string = ob_get_contents();
    			ob_end_clean();
    			return $output_string;
    		}
    		else
    		{
    
    			/*wp_redirect( home_url() ); exit;*/
    			echo '<script type="text/javascript">
    			window.location = "'.wp_login_url( get_permalink() ).'"
    			</script>';
    		}
    
    	}

    Thank you
    best reagard

    http://reallifecamtv.tonsite.biz/

    http://wordpress.org/extend/plugins/nmedia-user-file-uploader/

  2. N-Media
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    well free (this) version allow only logged in users to upload files. But if you want to allow any user (without login) to upload file then please get the Pro Verion from here

    Cheers.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.