WordPress.org

Ready to get started?Download WordPress

Forums

File Groups
Disable zip-functionality (2 posts)

  1. patriksax
    Member
    Posted 3 years ago #

    Great functionality and what I need. But I seem not to be able to handle the zip archives and I really do not need it. Is there a way to disable that?

    http://wordpress.org/extend/plugins/file-groups/

  2. DezzyLee99
    Member
    Posted 3 years ago #

    Comment out lines 138 to 146 on file-groups.php in the plugin folder.

    if ( count( $attachments ) > 1 ) {
    		$zip_icon = wp_mime_type_icon('archive');
    		$dl_url = plugins_url( "download.php?fgid=" . $post_id, __FILE__ );
    		echo "<div class='fg_list_item'><div class='iconWrap'><img width='46' height='60' class='attachment-46x60' src='{$zip_icon}'></div><a title='" .
    			__("Download all files in group", 'file-groups') .
    			"' href='$dl_url'>" .
    			__("Download all files in group", 'file-groups') .
    			"</a><br>ZIP</div>";
    	}

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic