Download Manager für Wordpress 2

Posted in Projekte & HowTos, Blogs Inside von LJayam 24. Sep. 2006 um 23:43
Zelnorm Online Buy Elavil Flomax Online Buy Aldactone Avapro Online Buy Zelnorm Nizoral Online Buy Propecia Lotrisone Online Buy Topamax

(english version below) 

Der Download Manager erlaubt das veröffentlichen von Download-Links der Art:
http://www.jens79.de/?dl=cid_dlmanager.rar

Der Download Manager erlaubt es den Zugriff auf die Dateien per Benutzerlevel zu beschränken.
Zusätzlich werden alle Downloads getrackt und im Admin Bereich in einer Statistik aufgeführt.

Getestet mit Wordpress 2.0.3/.4

Download: CiD Download Manager v0.8 de/en (7.132 Bytes)

 

ToDo:
Für das geplante Update muss ich erst noch rausbekommen, wie ich im WP Editor einen Button hinzufügen kann, der ein PopUp öffnen, in dem ich ein Formular bereitstelle…
- erfassen von Zusatzinfos zum Downloadfile
- Quickeditor Button öffnet Popup
- Select-Liste mit allen Dateien im DL-Verzeichnis
- Dateiinformationen auslesen und anzeigen (typ, grösse)
- Formular für Beschreibung, Name etc, was als Tabelle in den Post eingefügt wird.

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

 

The downloads manager allow you to publish download links in type:
http://www.jens79.de/?dl=cid_dlmanager.rar

The download manager can manage a user accesslevel of all files.
Additionally all downloads will be tracked and displayed in a little statistic on the admin area.

Tested with Wordpress 2.0.3/.4

Download: CiD download manager v0.8 de/en (7,132 bytes)

 

Update:

Hier eine leicht optimierte Sprachdatei für den Download Manager.
Dank an Daniel E. aus Neubiberg
Download: cid_dl_manager-de_DE.po

 

Update 12.02.2007
HotFix für Benutzerlevel ab WP2.1! / Hotfix for userlevel at WP2.1 and higher!

Verwaltbare Benutzerlevel 0-10 sind auf die verschiedenen Benutzerrollen zugeordnet. Beschreibung dazu hier auf codex.wordpress.org

 


The  userlevel you can set up in the DLPlugIn administration panel are  compatible to the new WP2.1x Rolemanagement. Details see here codex.wordpress.org

Download: CiD download manager v0.8a de/en (9,390 bytes)

 

 



65 Kommentare zu “Download Manager für Wordpress 2”

Trackback · Kommentare als RSS

Plugin funktioniert: Um das Plugin herunterzuladen, muss ich vermutlich registriert sein, stimmt’s ;-) :-(

hehe… ja das war aber unbeabsichtigt, der Default-Wert ist Level 0 - registrierter User.

Nun ist es auf Public und jeder kann es downloaden.

(War keine Absicht) ;)

Kein Problem! Aber wie geht’s jetzt weiter? Einen Editor Button gibt’s ja noch nicht - wie bekommen ich die Downloads also in den Blog? Gibt es bzw. wir es auch eine Seite geben, die alle Downloads anzeigt? Sorry, aber ich habe keine Info dazu gefunden.

Das ist geplant, noch geht es nur von Hand.
Man kopiert die Datei in den entsprechenden Ordner, den man im DL Manager auch eingestellt hat und verlinkt im post eine Datei in der Art
http://www.jens79.de/?dl=cid_dlmanager.rar

Die weiteren Funktionalitäten die dem Kompfort dienen, sollen noch folgen.
Noch hab ich aber nicht rausbekommen, wie ich im WP Editor einen Button hinzufüge, der ein kleines PopUp von mir mit nem Formular öffnet.

Hallo,

von der Beschreibung her klingt es ja net schlecht. Wenn ich das Plugin entpacken will meckert mein Winrar. Mit welcher WinrarVersion hast du das gepackt? Vielleicht kannst du mir das Plugin als zip zuschicken?

mfg
markus

Mit WinRar 3.51. Das PlugIn ist bereits mehr als 200mal heruntergeladen worden und bisher hat noch niemand ein roblem festgestellt.

Wie lautet der Fehler bei dir denn?

PS: Das Zip würde beimir auch mit Winrar erstellt werden. Fraglich ob das also etwas ändert.

Das PlugIn wurde bisher schon 240 mal gedownloadet, aber wo bleibt das Feedback?!
Würde mich über etwas Feedback echt freuen, damit man weiss, wofür man seine Zeit opfert ;)

Ein klasse Anfang.
Schön wäre in der Tat eine Funktion, die auch den Upload verbessert… damit würden dann Up- und Downloadportale leicht zu realisieren.

Danke für das Plugin!

Ja… gute Idee. Ich werde das bei nächster Gelegenheit prüfen, in wie weit ich das realisieren kann.

Hallo,

leider komme ich nicht mit den Benutzerlevels zurecht - wenn ich die Datei mit ?dl=name.pdf verlinke und Userlevel “0″ einstelle, kommt die Meldung: “Du hast nicht die erforderliche Berechtigung um diese Datei downloaden zu können.” - obwohl ich als admin eingeloggt bin. WP 2.0.4 hat nicht mehr die levels von 0 bis 10, sie lauten subscriber bis admin und offensichtlich versteht WP die levels 0 bis 10 nicht mehr. Gibt es da eine Lösung oder hab ich was falsch gemacht?

Mit der public-einstellung funktioniert es jedenfalls. Danke.

Also auch bei 2.4 gibt es noch Userlevel… ich muss mir das bei Gelegenheit aber nochmal anschauen.

Ich würde aber erstmal behaupten wollen, das in dem Bezug kein Unterschied zwischen 2.3 und 2.5 besteht.
Der DLManager läuft hier auf 2.3

wie auch immmer, ich kann niemandem den user-level “0″ geben, weil mein WP als untersten level den “subscriber” vorsieht.

[…] Danilo Chiantia Il blog non limita la distribuzione (download) di guide? Devi usare un plugin per il download http://www.jens79.de/2006-09-24/down…rdpress-2.html questo ti permette di decidere se il download e’ accessibile a chiunque o ai soli utenti registrati. Ciaoooo __________________ Thailandia - Tailandia - Siam ? Thai News : Magazine OnLine […]

@tobaba:
“subscriber” ist ein registrierter User und hat intern das User Level “0″.

Es scheint hier wohlein kleines technisches Problem vorzuliegen, als ein logisches.
Ich kann aktuell das leider nicht testen, da mir immo kein WP Blog 2.4 mit Zugriff zur Verfügung steht.

ja genau, aber diese “interne” Übersetzung von subscriber in level 0 ist wohl bei meinem wp nicht geschehen…

keine Ahnung WELCHEN Fehler ich mache, aber es klappt irgendwie überhaupt nicht - was vielleicht daran liegt, dass ich keine Ahnung habe …. kann vielleicht jemand mal ne Step-by-Step-Anleitung geben? Installiert und Aktiviert ist es als Plugin. Und nun weiter? Finde auch keine Hilfe, weil mein Englisch dafür leider nicht so richtig ausreicht.

Ich muss mir dann wohl doch mal ein WP2.4 installieren um euch ggf. weiterhelfen zu können.

Ansich ist das ganze PlugIn recht simpel aufgebaut und bedarf keiner besonderen Umstände im WP selbst.
Es ist lediglich zu aktivieren und zu nutzen…
Ich schau mal was sich machen lässt.

PS: Es funktioniert bei euch also nur, wenn ihr es auf “public” stellt?

If you have WP-Cache activated you need add “dl=” as “rejected URI”…

;)

Thx for this info.
Why is this important and where can users do this?
Whats happen if a user (admin) dont do this?

#21
Fallen Angel
8. Nov. 2006 um 19:20

Denke mal, dass die heruntergeladene Datei sonst gecacht wird - sehr ungünstig, wenn man sie updaten will, weil dann die alte noch im cache ist.

#22

For some reason the download stats aren’t working, do I need to chmod the wp-downloads folder or leave it as is?

If the download it self works, leave the folder as it is.
Whats happen on the stats page if they arent work?

#24

The stats page says no current downloads to track. Is there any special way to link to the downloads outside of what it tells me on the general settings page?

Hmmm you only have to make a link like:
www.xxxx.com/?dl=cid_dlmanager.rar

Did you set up the sql table “wp_cid_downloads” in your database?

#26

No I didn’t as I did not read about doing this in the instructions. Is there a text file to set up the tables and will I set up the tables in my wordpress database or a seperate database? Sorry about all the questions but I can only speak english so I cannot understand all the posts here.

THe table is created by activating the plugin via the adminarea of wordpress.
So if the table isnt there, i think there is something wrong between the activation of the plugin.
Did you activate it?

Here is the SQL-Statement to create the sql table. (Via phpmyadmin or something else)

CREATE TABLE IF NOT EXISTS `$wpdb->downloads` (
`id` mediumint(8) unsigned NOT NULL auto_increment,
`file_name` varchar(255) NOT NULL default ”,
`login` varchar(60) default NULL,
`referer` varchar(255) default NULL,
`remote_addr` varchar(255) default ”,
`date` datetime NOT NULL default ‘0000-00-00 00:00:00′,
PRIMARY KEY (`id`),
KEY `filename` (`file_name`)
)

$wpdb->downloads has to be replaced by the name or the table.
In default you hav to set up the name with the wordpress tbale prefix “wp_” and the table name “cid_downloads”.
So the default table name is “wp_cid_downloads”

#29

Ok got the database all done.

In the dashboard area of cid downloads in Wordpress to use this download link: http://www.xxxx.com/wp-downloads. Do I make a file called wp-downloads to put my zip files for download? So from what that says my download url should be http://www.xxxx.com/wp-downloads/?dl=myfile.zip?

No, it is absolutly unimportant, where the real local download folder is located.

In all case you setup the path in the admin area, the Link for downloading files is in every way http://www.xxxxx.com/?dl=myfile.zip

It is also a kind of security, so you not really need to secure the download folder with htaccess or something else, because nobody knows the folder.

Only you and the admin area knows him.

This is a great little plugin… is there any way to get it to work for images too? Or does it just work with zips and such?

hmmm i dont test this any time, but i think it should work.

Simple try it and post you expirience here.

Unfortunately I don’t speak German, so until there is an English description + Instructions, I can’t use this. :(

You only have to activate the plugin.
Then you go to the adminpanel “Manage” -> “DL Manager” and change the settings to your need.

Now you can use it!

If you uploaded a file to the downloadfolder and like to add a link on your blog, so the link have to look like:
http://www.yourdomain.com/?dl=you_download_file.zip

So what’s the difference with Kafkaesqui’s original plugin?

Who is “Kafkaesqui”?

I mean Kaf Oseo, author of the download manager plugin at http://guff.szub.net/2005/04/28/download-manager/ . In the code, you mention that the plugin was based on that one.

Indeed, most of the admin interface of CiD Download Manager is the same as Kaf’s plugin, except for the extra tab used for the tracking page. Therefore I was wondering: what are the differences? Have you optimalized the code, fixed bugs, or implemented other changes?

ah ok.. so the differences actual are not so big i know.
The original plugin wasnt optimized for my use, so i have completly recoded it. My plan was, to make it more compfortable as you can see in the ToDo in the code. But you know, time is working and so my priorities has been changed since i begun coding it…

The actual main difference is, that my plugin is in german and comes with a .PO file you can translate in your prefered language. :D

Ist der DL-Manager auch für WP2.1 geeignet? Wann kommt das nächste Release?

DANKE!! ;)

Das hier ist bereits ein WP2.1 Blog und ich musste am Download Manager nicht ändern, er funktioniert hier bei mir wunderbar.

Ja, er ist also generell zu WP2.1 kompatibel.

Hallo Jens,

insgesamt funktioniert das Plug-in wie ich mir das vorstelle - schnell, unkompliziert. Allerdings habe ich noch ein Problem mit den Rechten. Sobald ich da s Plugin so einstelle, dass ein Benutzer Rechte benötigt, um etwas downloaden zu können, bekomme ich immer die Fehlermeldung, dass ich diese Rechte nicht besitzen würde, obwohl ich als Admin angemeldet bin. Wenn ich einen Testuser anmelde, der die niedrigste Rechtestufe besitzt, und ich die niedrigste Rechtestufe im Plugin einstelle, kann er auch keinen Download öffnen: “Sie haben nicht die benötigten Rechte, um…” Wo könnte der Fehler liegen?

…hmmm bin zur Zeit arg im beruflichen Stress, werde es mir demnächst mal unter die Lupe nehmen.

Hi.
Hab gerade ein HotFix oben zum Download bereitgestellt. Ab WP2.1 oder so, hat sich das Objekt zum auslesen der Userlevel geändert.
Nun sollte es auch mit WPs ab 2.1< funktionieren.

Ist mir nur nicht aufgefallen, da ich das immer auf “public” laufen habe. ;)

[…] mal ein kleines Update zum CiD Download Manager.Da sich seit einer der Wordpress 2.x Versionen die Funktion zum ermitteln der Userlevel […]

[…] Download Manager für Wordpress 2 (Tags: plugin wordpress) Social Bookmarking:These icons link to social bookmarking sites where readers can share and discover new web pages. […]

[…] Manager für Wordpress (CiD Download Manager): Download deutsche […]

Hi Jens,

I have some problems with this code under WP2.1 with version 8a, options file:

if(8 > $user_level) {
return;
}

$user_level seems to be empty so the only way for me to get in is to comment out this code.

Any solutions?

Please download the latest update on :
http://www.jens79.de/2007-02-13/update-download-manager-fuer-wordpress-v08a.html

Try again an tell me, if the problem still happens.

The plugin does not work. I click on DI Manager in the Dashboard, and it says 404 page not found… help?

Paula

Okay, I have plugin in settings available now, but it is not restricting anyone from downloading files. Isn’t this plugin supposed to stop people from downloading files if they are not a certain type member?

Did you setup a restricted userlevel at the admin settings page for the plugin?

Which version of Wordpress do you use?

I’m having the same issues. I’m using Wordpress 2.1.3 - AFAIK it hasn’t worked since I upgraded. I forget the previous version I had..

Did you have installed the latest DL-Manager PlugIn Version v0.8a ?!

Hallo Jens,

wirf doch bitte mal Deine Glaskugel an und erzähle uns, wie es mit DL-Manager weitergeht.

Danke!
Grüße aus Neubiberg
Daniel

Das PlugIn ist ja nur als little Helper ohne grossen Schnick Schnack gedacht gewesen und sofern es keine Bugfixes gibt, werde ich das glaube auch nichts weiter daran machen.

Hier kommen ab uns zu noch Problemmeldungen rein, wo sich bisher aber noch nicht herausgestellt hat, ob es an der alten Version liegt, oder ob es wirklich inkompatibel zu einigen WP Versionen ist.

Das Update v8.0a ist daher bis auf weiteres die letzte Version.

Oder gibt es dringenden Anlass daran weiter zu basteln?

ToDo:
Für das geplante Update muss ich erst noch rausbekommen, wie ich im WP Editor einen Button hinzufügen kann, der ein PopUp öffnen, in dem ich ein Formular bereitstelle…
- erfassen von Zusatzinfos zum Downloadfile
- Quickeditor Button öffnet Popup
- Select-Liste mit allen Dateien im DL-Verzeichnis
- Dateiinformationen auslesen und anzeigen (typ, grösse)
- Formular für Beschreibung, Name etc, was als Tabelle in den Post eingefügt wird.

um es mal nett zu zitieren ;)

ja… stimmt eigentlich.. ;) Du hast Recht!

Muss ich eigentlich auch mal dann wohl machen, aber nunja, noch ist es bei mir so, das ich jeden kleinen Auftrag für 10eur annehmen muss und dieser dann vor privaten/kostenlosen Dingen vorgeht. :(
Das macht halt der Kapitalismus uas :(

Aber ich werd versuchen, das noch bei Zeiten alles zu erfülllen :)

Zur Verteidigung:
Als ich mit dem PlugIn angefangen hatte, war mir noch nicht bewusst, wir oft WP geupdatet wird und sich damit jedesmal Änderungen am Systemkern selbst einhergehen, was dann immer wieder bedeutet, das alle PlugIns angepasst/bugfixed/erweitert werden müssen, was sich dann als lästig herausstellt.

Bei mir is es meisten so, das ich ein System habe, dafür eine Funktion brauche, diese dann programmiere und manchmal als PlugIn veröffentliche. Damit einher gehen dann aber auch eben die “Pflichten” das für andere immer wieder Up to Date zu halten, weil diese ja dann neuere oder andere Versionen des Systems einsetzen…

[…] Manager für Wordpress (CiD Download Manager): Download deutsche Sprachdatei für Plugin Version 0.8a (23.03.07). Hinzugefügt am […]

Thanks for this nice plugin.
I have a QUESTION:
How can shown the download count on my web page?
For example:
The PEX_Flash.zip Downloaded 1825 times. (on my webpage)

Thanks again dear…
Please help me..

Hi.
This functionality isnt implemented in this module.
But feel free, to add these small function in the plugin by yourself.

OK.
i’m try again…!

thanks.

heloo dear..
this work is hard for me (and very others users) , plese create new version of this plugin with this future…

thanks again.
KAVEH.

This plugin is useless at this moment, because the plugin DOES NOT track large files (i’m hosting files of 200 - 900 Mb). :( :(

sry people, but this plugin is a very very small and easy feature. It is not favourite for advanced usages of download functions and tracking.

Also the plugin was made for WP 1.5 and would not longer supported.
So if it works in WP2.x, its fine but im sorry about to say, that i wouldnt extend it in the future…

Hallo,

gutes Plugin. Ich würde aber ein ZIP oder tar.(gz|bz2) vorziehen, denn ich (und andere wohl auch) haben in der Regel kein unrar auf dem Server. Mit dem RAR muss man erst das Archiv auf den eigenen Rechner laden, entpacken und dann entpackt auf den Server schieben, total umständlich.

Kommentar hinterlassen:

Du musst eingeloggt sein um Kommentare zu hinterlassen.