Downloadmanager

Creating and modifying plugins.
Post Reply
jensolav
Regular
Posts: 8
Joined: Mon Oct 17, 2005 3:03 pm

Downloadmanager

Post by jensolav »

Could/would somebody explain how to configure the Downloadmanager and how to build the tree-structure of directories?

Exampleson how to are very welcome!

kind regards


Jensolav :roll:
dma147
Regular
Posts: 132
Joined: Thu Sep 08, 2005 1:50 pm
Location: Berlin
Contact:

Post by dma147 »

Hi...

I really don't know, where the difficulties could be when configuring the downloadmanager...?
But well, I'll try to explain all related points here:

Page title
Enter the title of the whole downloadmanager content, which will appear on the top of each downloadmanager-page.

Headline
Enter a descriptive headline, which will appear right below the page title.

Static URL
This is only the name of the downloadmanager-link
So, if you'll enter "downloads" here, then you can call the downloadmanager through the link:
http://your.blog.com/index.php?serendip ... ]downloads[/b]
If you'll enter "something_else" here, then you can call your downloadmanager with this link:
http://your.blog.com/index.php?serendip ... thing_else[/b]

Permalink
This is the name of the short-url which can be used to give away a shorter url to your users than the Static URL.
This Permalink always has to start with a slash!
If you'll enter "/downloads.html" here, then you can call the downloadmanager with this link:
http://your.blog.com/downloads.html
All further clicks within the downloadmanager will then again use the Static URL links.

Incoming data path
This has to be the absolute server path to a directory in which you can upload files via FTP to import them through the downloadmanager-administration. The entered path must exist and has to be writeable for the webserver (chmod 777).

Absolute download data path
This has to be also an absolute server path too, which is the directory where all downloadable files will be stored by the downloadmanager.
This path also must exist and has to be writeable for the webserver (chmod 777).

Icon width
This is the width of all file- and directory-icons which are shown when browsing through the categories and files.

Icon height
Same as Icon width.

Dateformatting
All files does have a creation date which will be shown when clicking on a file. This option is used to format this date. See the following link for more details on the different options of the date() function of PHP:
http://www.php.net/manual/en/function.date.php

Show ***
With these four options you can switch the displaying of the appropriate fields on or off.

Label of ***
With these four options you can rename all related fields in the filelists.

--------------------------------------------------------------------------------------------

For creating categories and downloadable files in these categories, you have to be the administrator of your blog.
Log in to your admin-account and visit the administration interface. There you'll have a link on the left side, called "downloadmanager". When clicking on this link you'll be able then to create categories.
After creating some categories you can click on the folder-icon to upload some files to these categories.
Alexander Mieland, dma147
http://blog.linux-stats.org
jensolav
Regular
Posts: 8
Joined: Mon Oct 17, 2005 3:03 pm

Post by jensolav »

Thank you so much for your kind answer.

I have tried to follow your instructions, but I get:

Warning: opendir(http://bjoerchmart.dk/serendipity/incoming): failed to open dir: not implemented in /home/web/web12253/serendipity/plugins/serendipity_event_downloadmanager/serendipity_event_downloadmanager.php on line 1639

Warning: readdir(): supplied argument is not a valid Directory resource in /home/web/web12253/serendipity/plugins/serendipity_event_downloadmanager/serendipity_event_downloadmanager.php on line 1641

Warning: closedir(): supplied argument is not a valid Directory resource in /home/web/web12253/serendipity/plugins/serendipity_event_downloadmanager/serendipity_event_downloadmanager.php on line 1662

when I am trying to start uploading of files.

What did I wron, can you look through the errormessages?

Kind regards

Jensolav
dma147
Regular
Posts: 132
Joined: Thu Sep 08, 2005 1:50 pm
Location: Berlin
Contact:

Post by dma147 »

jensolav wrote:Thank you so much for your kind answer.

I have tried to follow your instructions, but I get:

Warning: opendir(http://bjoerchmart.dk/serendipity/incoming): failed to open dir: not implemented in /home/web/web12253/serendipity/plugins/serendipity_event_downloadmanager/serendipity_event_downloadmanager.php on line 1639
As I said above, the incoming directory *and* the download data directory has to be absolute paths and not URLs.

So in your case the incoming directory should be set to:
/home/web/web12253/serendipity/incoming

And the download data directory has to be set to:
/home/web/web12253/serendipity/files

both directories must exist and has to be writeable by the webserver!
So create them and chmod them to 777.

Btw. the default paths which were autodetected right after the installation of the downloadmanager should be correct.
So why have you changed them?
Warning: readdir(): supplied argument is not a valid Directory resource in /home/web/web12253/serendipity/plugins/serendipity_event_downloadmanager/serendipity_event_downloadmanager.php on line 1641

Warning: closedir(): supplied argument is not a valid Directory resource in /home/web/web12253/serendipity/plugins/serendipity_event_downloadmanager/serendipity_event_downloadmanager.php on line 1662

when I am trying to start uploading of files.

What did I wron, can you look through the errormessages?

Kind regards

Jensolav
Alexander Mieland, dma147
http://blog.linux-stats.org
Post Reply