Plugin Directory

Changeset 598867


Ignore:
Timestamp:
09/14/2012 06:49:11 AM (13 years ago)
Author:
fabifott
Message:

WP-Filebase 0.2.9.21

  • Improved template engine performance
  • New option Destroy session when downloading
  • jQuery [DataTables](http://datatables.net/) included. See the default data table template (you have to reset to default templates)
  • New default template for DataTables
  • Extended upload form in Editor Plugin
  • Fixed widget upload permissions
  • Fixed using file extensions as thumbnail extensions (petebocken)
  • Fixed category sorting in multi categories lists
  • Fixed display of attachments in post lists (njsitebuilder)
  • Fixed filemtime error when adding URLs (altafali)
  • Fixed default permissions settings
  • Fixed AJAX response issue that broke the file browser on some servers
  • Added mimetype application/notebook
  • Changed wp-load in Editor Plugin (might fix blank screen)
Location:
wp-filebase
Files:
626 added
7 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • wp-filebase/trunk/classes/Core.php

    r598768 r598867  
    112112    if( ($id=self::GetPostId($query)) == WPFB_Core::GetOpt('file_browser_post_id'))
    113113    {
    114         $url = (is_ssl()?'https':'http').'://'.$_SERVER["HTTP_HOST"].$_SERVER['REQUEST_URI'];
    115         if( ($qs=strpos($url,'?')) !== false ) $url = substr($url,0,$qs); // remove query string   
    116         $path = trim(substr($url, strlen(WPFB_Core::GetPostUrl($id))), '/');
    117         if(!empty($path)) {
    118             wpfb_loadclass('File','Category');
    119             self::$file_browser_item = WPFB_Item::GetByPath(urldecode($path));
    120             if(is_null(self::$file_browser_item)) self::$file_browser_item = WPFB_Item::GetByPath($path);
     114        wpfb_loadclass('File','Category');
     115        if(!empty($_GET['wpfb_file'])) self::$file_browser_item = WPFB_File::GetFile($_GET['wpfb_file']);
     116        elseif(!empty($_GET['wpfb_cat'])) self::$file_browser_item = WPFB_Category::GetCat($_GET['wpfb_cat']);
     117        else {
     118            $url = (is_ssl()?'https':'http').'://'.$_SERVER["HTTP_HOST"].$_SERVER['REQUEST_URI'];
     119            if( ($qs=strpos($url,'?')) !== false ) $url = substr($url,0,$qs); // remove query string   
     120            $path = trim(substr($url, strlen(WPFB_Core::GetPostUrl($id))), '/');
     121            if(!empty($path)) {
     122                self::$file_browser_item = WPFB_Item::GetByPath(urldecode($path));
     123                if(is_null(self::$file_browser_item)) self::$file_browser_item = WPFB_Item::GetByPath($path);
     124            }
    121125        }
    122126    }   
  • wp-filebase/trunk/classes/Item.php

    r598768 r598867  
    220220            $url = get_permalink(WPFB_Core::GetOpt('file_browser_post_id'));   
    221221            if(!empty($ps)) $url .= str_replace('#','%23',$this->GetLocalPathRel()).'/';
    222             elseif($this->GetId() > 0) $url = add_query_arg(array("wpfb_file" => $this->GetId()), $url);
     222            elseif($this->GetId() > 0) $url = add_query_arg(array(($this->is_file?"wpfb_file":"wpfb_cat") => $this->GetId()), $url);
    223223            if($this->is_category) $url .= "#wpfb-cat-$this->cat_id";   
    224224        } else {
  • wp-filebase/trunk/readme.txt

    r598768 r598867  
    55Requires at least: 3.1
    66Tested up to: 3.4.2
    7 Stable tag: 0.2.9.20
     7Stable tag: 0.2.9.21
    88
    99Adds a powerful download manager supporting file categories, downloads counter, widgets, sorted file lists and more to your WordPress blog.
     
    105105== Changelog ==
    106106
    107 = 0.2.9.20 =
     107= 0.2.9.21 =
    108108* Improved template engine performance
    109109* New option `Destroy session when downloading`
    110110* jQuery [DataTables](http://datatables.net/) included. See the default data table template (you have to reset to default templates)
    111111* New default template for DataTables
     112* Extended upload form in Editor Plugin
    112113* Fixed widget upload permissions
    113114* Fixed using file extensions as thumbnail extensions (petebocken)
  • wp-filebase/trunk/todo.txt

    r598768 r598867  
    11wp-search: Notice: Undefined index: wpfb_s in C:\xampp\htdocs\wpt\wp-content\plugins\wp-filebase-pro\classes\Search.php on line 126
     2multiple instance file widget
    23dont re-scan pdf when editing file without upload!
    34bmp thumnails in  otuner broken??!?
    45drag & drop file widget
    56file details without permalinks
    6 singe download page
    77
    8 extended form in editor plugin
    98simpel form by default!
    109
  • wp-filebase/trunk/wp-filebase.php

    r598768 r598867  
    55Description: Adds a powerful downloads manager supporting file categories, download counter, widgets, sorted file lists and more to your WordPress blog.
    66Author: Fabian Schlieper
    7 Version: 0.2.9.20
     7Version: 0.2.9.21
    88Author URI: http://fabi.me/
    99*/
     
    1212{
    1313    define('WPFB', 'wpfb');
    14     define('WPFB_VERSION', '0.2.9.20');
     14    define('WPFB_VERSION', '0.2.9.21');
    1515    define('WPFB_PLUGIN_ROOT', str_replace('\\','/',dirname(__FILE__)).'/');
    1616    if(!defined('ABSPATH')) {
Note: See TracChangeset for help on using the changeset viewer.