Welcome to Geeklog Monday, October 19 2020 @ 08:36 pm EDT

Geeklog Forums

Easyfile 0.7.2


Status: offline

Kelvin

Forum User
Chatty
Registered: 08/10/02
Posts: 50
I've just uploaded v0.7.2 of the Easyfile file management plugin to the site. It took a bit longer than anticipated... mostly due to me being knocked out with the flu for a couple of weeks.

This is mostly a bugfix release, but also contains some new features, and code cleanups... and last but certainly not least: an italian translation!!! Thanks magomarcelo, you rock!

This version is the first one I've actually tested on Internet Explorer before release... which means no more pretty png-icons. The layout isn't quite perfect on IE yet, but it's a lot better than previous versions.

I thought I'd take a couple of minutes to answer some questions that have come up:
Q: How do I use the autotag
A: link name if "link name" is omitted, a translatable string is used instead "File link" in english.php

Q: How do I change owners of files and folders?
A: In the same way that you change owners of geeklog stories, polls, events, etc. Wink

Q: What's this new get-method in 0.7.2?
A: The get-method is useful for serving content out of easyfile. For instance, if you've uploaded images into easyfile, you're now able to serve them via regular img-tags. Example: <img src="/easyfile/file.php?get=200501011234">

Q: What about user-selectable sort-order for files?
A: This should be doable in time for 0.7.3. Patches welcome.

Q: Why isn't there thumbnail support?
A: I originally felt that thumbnails was a non-essential feature so I haven't gotten around to implementing it yet. It should be in 0.7.3 or 0.8.0. Patches welcome.

Q: the file details box that is to the right of the filetree is of a fixed size and often scrolls to the right of a screen. this is true especially when someone is using a history sidebar etc.. maybe the file details can be made relative instead of absolute.
A: That's not a question... Wink
Excellent point... I'll certainly look into this in the next development cycle. I haven't done much user testing (my wife and my cat are my only beta testers), so this type of feedback is really valuable to me.
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 17/12/04
Posts: 340
Location:Sweden
Quote by Kelvin: It took a bit longer than anticipated... mostly due to me being knocked out with the flu for a couple of weeks.


Isn´t that the best period to work on plugins Mr. Green

Sorry couldn´t resist Leaves me speechless

Heading to the download section now ... (hmm guess it still needs to be approved as it doesn´t show up)

Greetz,
Boris
Vanrillaer.com - our Family Portal
 Quote

Status: offline

ajzz

Forum User
Regular Poster
Registered: 19/01/05
Posts: 113
Kelvin, thanks for you email note. I will try this version out soon (weekendish). Shall keep the forum posted.

On a different note, you mentioned in an earlier post that the plugin development began originally with the filemgmt plugin. Are similar download blocks or inclusion into the "What's new" block imminent? Before I revisit the code to try this, any comments on cross compatibility of blocks / suggestions for a quick block hack?

Cheers!
Ajay
 Quote

Status: offline

Kelvin

Forum User
Chatty
Registered: 08/10/02
Posts: 50
On a different note, you mentioned in an earlier post that the plugin development began originally with the filemgmt plugin. Are similar download blocks or inclusion into the "What's new" block imminent?

True, I originally started out by making changes to the filemgmt plugin - however, I realized that in order to implement the features I wanted, a complete rewrite would be required, so that's what I did. I started over with the Universal Plugin and went from there... but that's ancient history (we're talking October 2004 Wink ).

To answer your questions:
1. You're going to have to explain this further... what are the download blocks of filemgmt? (I don't have filemgmt installed)
2. I finished inclusion in the "What's new" last night. This feature will be in 0.7.3
 Quote

Status: offline

ajzz

Forum User
Regular Poster
Registered: 19/01/05
Posts: 113
The Download block was a German version by Dirk. See thread here.

Its a bit handier when you have a site with wikis and downloads and everything else - where the "What's New" block takes up too much estate. (or just to spread out the contents to different topics).

Havent got to testing .7.2 yet - shall keep you posted.

Ajay

 Quote

Status: offline

Kelvin

Forum User
Chatty
Registered: 08/10/02
Posts: 50
Ah... I think I understand. You want a phpblock_ function to display new downloads and top downloads? Not a problem. As I said, integration into the whatsnew-block is already complete, so a top-downloads style phpblock should be easy.
 Quote

Status: offline

ajzz

Forum User
Regular Poster
Registered: 19/01/05
Posts: 113
Yes indeed, functions for "New Downloads" or "Top Downloads" blocks would be great!

Regarding Q/A #2 of your first post in this thread, check this neat workaround out. I use this regularly for an intranet-type site. Perhaps an easy option would just be to add to this staticpage-embedded function to work for easyfile?

Best,

Ajay

edit: Any upgrade instructions for the .7.1 to .7.2 transition? Install doc seems to cover only fresh installs.
 Quote

Status: offline

Kelvin

Forum User
Chatty
Registered: 08/10/02
Posts: 50
Upgrade instructions: There were no database or theme changes, so all you need to do is to install *.php AND functions.inc over your existing versions, and copy the updated icons to the images directory.

There were no theme file changes, so any modified themes should keep functioning as before.

edit: added functions.inc to upgrade instructions
 Quote

Status: offline

ajzz

Forum User
Regular Poster
Registered: 19/01/05
Posts: 113
Thanks, I copied public_html/easyfile/*.php and public_html/admin/plugins/easyfile/*.php from the new to the old and the image directory as you recommended.

Just doing that, however, led to a message saying Easyfile has be disabled. Anyway, replacing the old /path/to/geeklog/plugins/easyfile/functions.inc with the new one seemed to solve the problem. From doing a diff between the two files, the only significant difference seems to be in the installCheck around line 228 where $_EF_CONF has been globalized.
PHP Formatted Code
228c173
new<     global $_TABLES, $LANG_EF00, $_EF_TABLES, $_EF_CONF;
---
old>       global $_TABLES, $LANG_EF00, $_EF_TABLES;
 

Cheers and thanks for the mods!

Ajay

PS: To make future upgrades easier, perhaps we should consider separating all the style elements into a style.css that can be appended to the main public_html/layout/name/style.css. This would reduce the job of making changes to the folder.class.php and other rendering templates. If I get time, I shall do this next weekend and send you the same. Ciao.
 Quote

Status: offline

Kelvin

Forum User
Chatty
Registered: 08/10/02
Posts: 50
Doh! - that was a mistake My bad. True, I should have said "replace *.php AND functions.inc"...

And yeah, that's a good idea separating out all the style in a separate css-file, but I recall reading a forum post about this... Yes, here it is. To insert easyfile-specific code in the headers, create the following function: plugin_getheadercode_easyfile()

By using this method, we avoid adding plugin-cruft to the global style.css
 Quote

Emmental

Anonymous
Thanks for a great plugin. Very Happy I have a question related to the What's New inclusion.

I recently patched a couple of files to allow the What's New block to display comments from plugins, from here:

http://project.geeklog.net/tracker/index.php?func=detail&aid=366&group_id=6&atid=108

I'm not sure if you're familiar with that patch and how it works, but this still doesn't result in easyfile comments being displayed in What's New, since it apparently isn't a plugin "supporting the What's new comment section".

However, I have managed to add an extra case statement to the patched code that does now show easyfile comments in What's New, but I was wondering if your 0.7.3 version will do this, either with or without the above patch.

I'm quite new to all this, so I apologise if any of that is a bit vague.

Thanks,
Emmental.
 Quote

Status: offline

ajzz

Forum User
Regular Poster
Registered: 19/01/05
Posts: 113
A small glitch in 0.7.2 - if you have more than one page of files listed for a given subfolder, using the page 2 link returns page two of the main index (i.e. the folder name-value is not passed on the url). Same for "next" and "last" links.

example:
....easyfile/index.php?folder=10 (page 1)
....easyfile/index.php?page=2 (when you click link for page2)
....easyfile/index.php?folder=10&page=2 (correct link - works when folder id is added manually to the url)

cheers!

ajay
 Quote

Status: offline

Kelvin

Forum User
Chatty
Registered: 08/10/02
Posts: 50
True, this bug has been around forever. I found (and fixed) it when I implemented sort-order for the new version. I really, really need to get 0.7.3 out the door now.
 Quote

Status: offline

shinji

Forum User
Newbie
Registered: 18/03/05
Posts: 3
Then get on it already! If you need a tester then email me. shinji257 at uplink dot net.
 Quote

Status: offline

Kelvin

Forum User
Chatty
Registered: 08/10/02
Posts: 50
Quote by shinji: Then get on it already! If you need a tester then email me. shinji257 at uplink dot net.


Done! I've been busy with real life, so this took longer than anticipated. v0.7.3 is uploaded to the site and should be available shortly. Note: due to a couple of serious bugs in v0.7.2, I rushed the release a bit. This means that selectable sort order is implemented, but there's no UI for it. It will be in 0.7.4 for sure.
 Quote

All times are EDT. The time is now 08:36 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content