Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 06:10:16 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149621 Posts in 21098 Topics by 7537 Members
Latest Member: lotte2
* Home Help Search Login Register
Pages: 1 ... 6 7 [8] 9 10   Go Down
Print
Author Topic: Downloads Module: Download Gallery v1.0 Final released  (Read 64189 times)
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7660



WWW
« Reply #175 on: February 20, 2007, 08:47:42 AM »

Hello,

Quote
I can post some enhancements (patch) if you're interested.

I'm interested, so pleas post

Thanks

Matthias
Logged
cmiper

Offline Offline

Posts: 34



« Reply #176 on: February 22, 2007, 03:05:49 PM »

Can someone tell me if the current version does the same thing I just went through with 1.6x

The was unable to upgrade from 1.6x to 1.8x as the script showed the same version, which happens from time to time.  I decided to uninstall 1.6x and install 1.8x clean.  I figured that I would just have to recreate the links to the files in the media folder and start fresh, no big deal.  The problem is that the uninstall of 1.6x DELETED all the media files that the old page referenced...not good.  I would think that the script should have no effect on the files as the script should only be pointing to them, not managing them...at least not without warning.  I have lost about 6 months worth of weekly publications which stinks.  I do not upload the files through the module, I FTP the files up and then connect to them through the browse feature in the module. 

I guess I just want to make sure that this is no longer the case, and/or if it is the case, how to avoid this in the future if I have to do an install again.  I was looking at about 15-20 minutes worth of work before this upgrade, now am looking at a couple hours. Sad
Logged
DGEC

Offline Offline

Posts: 386


WWW
« Reply #177 on: March 09, 2007, 09:39:54 PM »

I just noticed after installing the new version - there are GROUPS now!  Should have mentioned that in the upgrade notice! That's why I was checking out the thread, to see if there was anything about groups.  Fantastic guys!  cool

Although you can't change a group once you've added a file, you have to delete it and re-add it in... v 1.8.2?  wink 

Oh, and need to tweak the spacing... the default jams the group title up against the previous group's last file. I had to add an empty TR & nbsp to get it spaced nicely.

One thing other suggestion - to add a possible text description block.
Logged
Olli

Offline Offline

Posts: 288


« Reply #178 on: March 15, 2007, 10:33:32 AM »

hello everyone,
i've got a problem which crashes the internet-explorer when loading pdf-files stored inside the download-gallery.

there is a 3mb pdf file which get (sometimes) loaded directly into the internet-explorer pdf plugin. but it never finishes loading...

sometimes a box opens saying in german "dateigröße wird ermittelt..." which means something like "estimating file size" and after 20 sec. it says "file not found"...

i tested this on a few machines with different internet-explorer versions from 5.x to up...

firefox works fine all the time, but i was never able to load pdf-files completly with the internet-explorer...

download_gallery is set to 777 for testing...
maybe this is related to the header_location redirection?

any ideas? smiley
bye
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7660



WWW
« Reply #179 on: March 15, 2007, 11:35:39 AM »

Hello

...or simply a ie pdf plugin bug  wink

I'm pretty shure if you deactivate this IE plugin, pdf can be downloaded fine.

Matthias
Logged
Olli

Offline Offline

Posts: 288


« Reply #180 on: March 15, 2007, 12:33:57 PM »

hi matthias,

i tested all morning and the reason for this is related to the "web preview feature" of the pdf-plugin. when disabling this inside the pdf-document everything loads fine...(but does not get displayed inside the browser and a white page appears at 100% loading time).

so this seems to be a PDFplugin bug as you stated. so there's nothing i can do about this i guess...  undecided
Logged
DGEC

Offline Offline

Posts: 386


WWW
« Reply #181 on: March 15, 2007, 08:48:23 PM »

That's odd, because it works for me great.

I can do download and view PDF files with no problem on IE 6.  Maybe you have an old version of Reader or IE is configued wrong somehow?  I'm using XP SP2.
Logged
DGEC

Offline Offline

Posts: 386


WWW
« Reply #182 on: June 12, 2007, 09:03:13 PM »

FYI - I am trying to add Group Description field to the gallery. 

Adding and modifying works fine at this point, but actually viewing the gallery isn't working yet.
Bombs actually. Typical vague PHP error message "Call to a member function on a non-object" without specifying which one. I'll have to walk through it carefully I guess. I believe changing error_reporting level or something in php.ini increases the debug level, but I haven't figured that out yet.

Also, I haven't parsed the upgrade scripts enough to figure out how to make it automatic.

Update
Hmm. Really should add upload directory for Local File - no idea how to do that yet. Description should have Local File OR Media Folder File instructions.  I was totally confused trying to put in local file AND media directory to "upload" it into.

Making progress: view.php now will run without bombing. Have to get the description to print still. Added groups to Ssearch function.
« Last Edit: June 18, 2007, 06:32:43 PM by DGEC » Logged
DGEC

Offline Offline

Posts: 386


WWW
« Reply #183 on: June 18, 2007, 06:44:22 PM »

Another modification question:

Did Kozmoz ever post the patch somewhere?  I have audio and pdf in a download gallery and want people to be able to save the files, but if your browse is set up to stream or open PDFs, then it doesn't seem to be possible with this version of Download.  (And I don't really like seeing that intermediate file, either - it still doesn't give the actual URI).

Quote from: ruebenwurzel
One point is to mask the real download url and to add a counter and also to give the ability to restart a download.

Still not sure if I need this intermediate page, maybe to display some copyright stuff and to add an "I Agree" checkbox. When possible, I would handle these things by a Javascrip dialog and start download asap.

I can post some enhancements (patch) if you're interested.

This is what I did to handle the download:
http://www.domeo.nl/pages/templates.php
Logged
smsoft

Offline Offline

Posts: 4


« Reply #184 on: July 15, 2007, 10:16:37 AM »

Hi to all,
It's possible assign some download file only to one user?

Thank you
Logged
Panther

Offline Offline

Posts: 168



WWW
« Reply #185 on: July 15, 2007, 05:43:06 PM »

Pulling this here from a thread in the Help area...

script_digger ported some code from the news rss feed for the download module, I tweeked it a bit.

http://baker.mnpages.com/pages/add-on-modules/page-type/downloads.php

Basically, it adds some code to the view.php file from DL Module, adds the rss.php and rss_button.png, just download, unzip and copy into your DL Module folder.

There are two variables assigned in the view.php file that you can change, $rss_level $rss_align

Basically, you choose if you want the button on the top of the page or the bottom of the page, and if you want it on the left, right, or centered.

Default is bottom-right (I just don't like how it looks at the top of the page with all the white space, but maybe it's just my template)

The rss.php was modified to display them in the order modified, most-recent first, and to add the file description to the RSS feed.

I switched to using the variables with the expectation that eventually the feed could be controlled by some radio button or check box options on the admin settings page for the module.

I haven't kept up with the other changes going on with this module, but to add this to whatever else is going on is easy, about 10-12 lines of code, and adding the rss.php and rss_button.png files to the mix.
Logged
DGEC

Offline Offline

Posts: 386


WWW
« Reply #186 on: July 17, 2007, 09:33:31 PM »

Panther - not sure what your intent is.... does your code create an RSS updated message to subscribers whenever you upload a file, or if you change one of the files?

This is a suggestion/request for the module:
I would like to see it divided up by subdirectory and files when adding a new file. That way, you could select the group and/or folder (I am grouping by folder in most cases), then update the file listing. Eg:

Code:
  Media Directory:  [media/download/sermon/] V     File:  [2007-02-05] V

It's going to get very unwieldy trying to select a file with 3 dozen or more files in the media download listing. Might even crash the browser if it gets too big. I'd like to restrict it to the download folder too.

Hmm... a file-type filter might be nice too... Why not throw in a whole file browser, or at least a tree select object. And a manual sort option. And...  wink

(FYI, I was on vacation and haven't had time to work on group descriptions again, yet. )
Logged
Panther

Offline Offline

Posts: 168



WWW
« Reply #187 on: July 18, 2007, 03:26:25 AM »

Panther - not sure what your intent is.... does your code create an RSS updated message to subscribers whenever you upload a file, or if you change one of the files?

I didn't write the original code for rss.php, but I think the way it works is that when you subscribe and update your feeds, it basically triggers rss.php to produce the xml file on the fly... if nothing has changed, your feed reader shows no change, if a new file has been added... your reader sees a change in the xml file it's being presented with and lets you know there's something new.


Logged
melissa

Offline Offline

Posts: 166


« Reply #188 on: August 24, 2007, 10:28:54 AM »

Hi guys,

The Downloads module is really helpful. I'd like to ask for some features to be considered that would make the module even better for me:

1. A setting to preset which folder in Media to browse - I have heaps of files in Media, and it is really tedious to scroll through the whole structure to find a particular file

2. A way to make newly uploaded files stand out more - either by saying NEW or by having a way to make a section at the top of the list that lists the newest downloads

Many thanks,

Melissa
Logged
DGEC

Offline Offline

Posts: 386


WWW
« Reply #189 on: August 24, 2007, 08:25:52 PM »

1. A setting to preset which folder in Media to browse - I have heaps of files in Media, and it is really tedious to scroll through the whole structure to find a particular file
Ya! That's one thing I was wanting, as I've got at least 3 dozen files and I'm barely started. I definitely need it, and was thinking that I need to have have to try - after I get section pictures & descriptions working, that is. Might be awhile before I get to it, so anybody else, please have at it! Getting the wysiwyg editor in there would be nice, but I suspect it would require heavy changes.

Quote
2. A way to make newly uploaded files stand out more - either by saying NEW or by having a way to make a section at the top of the list that lists the newest downloads
That sounds interesting.  Are you talking about the front-end, such as "uploads this week/day" or "X newest uploads" kind of things, like the News Anywhere snippet?

[edit]
I'd like love some AJAXy drag & drop to be added (note - ADDED!) to the back-end interface here (and elsewhere of course), as someone talked about awhile ago, so that manual re-ordering of files or pages is not such a pain. The stay-open page structure now is so nice.  Version 3.0 I guess.

Oh ya, one other thing - a "duplicate file name except for the file type" option. I.e. if you have the same event or article in MP3, OGG, WMF, MPG, AVI, PDF, ODF and DOC.... you're taking up a lot of real estate instead of only one line smiley   (I only have MP3 and PDF by the way, though I'd like to offer OGG at least)
« Last Edit: August 24, 2007, 08:38:51 PM by DGEC » Logged
melissa

Offline Offline

Posts: 166


« Reply #190 on: August 26, 2007, 09:39:44 AM »

Re: newest uploads - perhaps an option to have "x" newest uploads listed at the top of the display would be good. I have MP3 recordings on my page that I add to every so often, and it's not easy to see which are new unless you read every single date.

Which leads to the other thing I wanted to mention - automated RSS feed. I don't know how hard that is to make, but it sure would be useful to me and visitors to my site.

Melissa.
Logged
DGEC

Offline Offline

Posts: 386


WWW
« Reply #191 on: August 30, 2007, 03:56:36 PM »

Re: newest uploads - perhaps an option to have "x" newest uploads listed at the top of the display would be good. I have MP3 recordings on my page that I add to every so often, and it's not easy to see which are new unless you read every single date.

Which leads to the other thing I wanted to mention - automated RSS feed. I don't know how hard that is to make, but it sure would be useful to me and visitors to my site.

Ya, I get you. Basically, you're talking a marriage of the News & Gallery modules.  That would be fantastic for notifying people of new uploads, and something I would be most interested in as well... especially if there were a "podcast" capability. And the News Anywhere snippet would be exactly what you're talking about for recent files. Oy, a whole bunch of integration going on there.

Hmm.... question is whether to add that functionality to News or to Download Gallery. My thought (and goals) would be more inclined to add RSS as a Gallery feature, since at this point, I'm doing more Gallery updating than News, although I many people might be the opposite - plus I'd like to have News postings more regularly.

Actually, ideally, would be to have the rss.php file expose a function that News, Gallery or any other module could call and an RSS update would get sent out.  Eh... probably WB 3.0 but maybe it's cleaner than I expect. Like I said, group description & image is my first priority though. For that I can swipe enough code that I know works already. After the dozen other firster priorities I have to do before I can get to it of coruse.  rolleyes Enough babel.
Logged
Ploc

Offline Offline

Posts: 52


« Reply #192 on: December 03, 2007, 10:34:52 PM »

I've found a bug in the last release of the download gallery module, and probably in all the previous releases...

Let see a small part of the view.php file (lines 89 to 107) :

Code:
$orderkey=$fetch_settings['ordering'];
if($orderkey =='2' or $orderkey == '3') {
    $orderby=TABLE_PREFIX."mod_download_gallery_files.title";
} else {
    $orderby=TABLE_PREFIX."mod_download_gallery_files.position";
}

if ($orderkey == '0' or $orderkey == '2') {
    $ordering = "ASC";
} else {
    $ordering = "DESC";
}
   
///set the extension order,but  position order over rides
if ($setting_extordering=='0' and $orderby!="position"){$extorder=" extension ASC, ";}elseif($setting_extordering=="1" and $orderby!="position") {
    $extorder=" extension DESC,";
} else {
    $extorder="";
}

In the first block, we can see that $orderby equals TABLE_PREFIX."mod_download_galler y_files.title" or TABLE_PREFIX."mod_download_galler y_files.position".

But the last block checks if $orderby is different from "position", which is always true !

Then ordering by position is buggy... I have a working patch but I don't want to put it here as I think thas it would be a dirty patch.

Has anyone a smart idea to fix this bug ?
Logged
Turskis

Offline Offline

Posts: 50


« Reply #193 on: January 21, 2008, 06:35:07 AM »

Would it be somehow possible to allow uploading of files for some group/user only? Currently there are only "none", "public" or "registered" options available in "User Upload" setting.
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7660



WWW
« Reply #194 on: January 21, 2008, 07:09:13 AM »

Hello,

registered user schould do the trick.

Matthias
Logged
Turskis

Offline Offline

Posts: 50


« Reply #195 on: January 21, 2008, 07:23:35 AM »

But if I want to give permission of adding files for SOME group/user only?
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7660



WWW
« Reply #196 on: January 21, 2008, 07:32:38 AM »

Hello,

simply sent him username and password wich you can create in the acces section of WB.

Matthias
Logged
Turskis

Offline Offline

Posts: 50


« Reply #197 on: January 21, 2008, 08:28:26 AM »

Hmm.. How can I say this clear enough...

I have several groups and users. I want to give upload permission for ONE group only. Or maybe for ONE user only.

If I select "Registered", i quess EVERY group/user gets uploading permission.
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7660



WWW
« Reply #198 on: January 21, 2008, 08:38:32 AM »

Hello,

yes you are right. If you set it to registered every user from WB can upload. And as i now understand you wanna limit this only to a specified user or group.

Think for this you need to edit the view.php of this modul. The code is about line 295. Simply add the code to use fe. a specified uploadgroup instead of all users. Creat this group in access settings of Wb and add users to this groups. This way the upload link only appears if a user is logged in wich is in this upload group.

Is this what you mean?

Matthias
Logged
Turskis

Offline Offline

Posts: 50


« Reply #199 on: January 21, 2008, 08:46:43 AM »

Yes, that's exactly what I mean. I'll try that out.
Logged
Pages: 1 ... 6 7 [8] 9 10   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!