Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > CSDb Discussions > Linking to files in CSDb directly
2008-12-08 15:05
Cruzer

Registered: Dec 2001
Posts: 1048
Linking to files in CSDb directly

I'm getting an error msg on pouet.net saying "please link to the file directly" when I try to submit a prod with a download link from CSDb. Guess this is a new "feature" they added recently, since this always used to work. Unless CSDb has changed the way files are linked ofcoz.

Anyway, since the Pouët'ers don't seem to wanna change this, and since I'm too lazy to upload the files elsewhere - is there any way to link to the files in CSDb more directly than copying the URL location or the URL caption, both of which have started producing the before-mentioned error?
2008-12-08 16:25
Perff
Administrator

Posts: 1679
If you use urls looking like:
http://noname.c64.org/csdb/getinternalfile.php/XXX/filename.ext
I can't see why it should not work on any foreign site, unless they added some block for it.
2008-12-09 11:42
Cruzer

Registered: Dec 2001
Posts: 1048
I tried these two, which gave the same error:

http://noname.c64.org/csdb/getinternalfile.php/68944/octopusinr..
http://noname.c64.org/csdb/release/download.php?id=92689

It always used to work, so I don't know why they decided to block it.
2008-12-09 15:11
chatGPZ

Registered: Dec 2001
Posts: 11360
none of these is a direct link, so ... :) (pouet? who cares? =P)
2008-12-09 16:53
Cruzer

Registered: Dec 2001
Posts: 1048
Quote:
none of these is a direct link, so ... :)

Well, one of them ends with .prg - but do you know a way to link more directly?

Quote:
(pouet? who cares? =P)

I did it for teh glöps. :)
2008-12-09 18:13
Perff
Administrator

Posts: 1679
As Groepaz said none of these links are actually direct links.

The one with download.php, is a counter-script, which counts how many downloads are made, and then forwards to the correct url.

The other link with getinternalfile.php, should appear as a direct link to anyone on the outside (that how it's supposed to work), but it actually is a script also, which fetches the file from whereever it's actually located, and pases it along.

True direct linking is not possible, as the files are stored where it's not available to the public directly. Still I think the getinternalfile-thing ought to work, so... ??
2008-12-09 18:36
hollowman

Registered: Dec 2001
Posts: 474
Once upon a time someone said that the http://noname.c64.org/csdb/release/download.php?id=xxx links should be used when linking from pouet

Quoting Groepaz

none of these is a direct link, so ... :) (pouet? who cares? =P)

While your comments and smileys are ever so interesting
2008-12-09 18:54
Burglar

Registered: Dec 2004
Posts: 1089
Quote:
The one with download.php, is a counter-script, which counts how many downloads are made, and then forwards to the correct url.

yes, not a great solution, imho. it causes problems, one being the pouet thing, the other is that this is about the only site that doesn't allow me to auto-open .d64, .prg or even .zip (which sucks badly).

I'd be happy to rewrite it for you in a way that local forwards aren't used and that the right content/mime-types are set properly, while retaining the ability to count every download.

but oh well, I offered my help twice already, no response... so I'll continue to click links, save file, go to folder, open file, start vice, yawn.
2008-12-09 19:08
Perff
Administrator

Posts: 1679
Quoting Burglar
yes, not a great solution, imho. it causes problems, one being the pouet thing, the other is that this is about the only site that doesn't allow me to auto-open .d64, .prg or even .zip (which sucks badly).

Hm. Funny. Works fine for me. Click the dl-link. Chose "open file", and vice starts and run.
So as long as I don't know any different I don't fix what is not broken. :)

Quoting Burglar
I'd be happy to rewrite it for you in a way that local forwards aren't used and that the right content/mime-types are set properly, while retaining the ability to count every download.

Well, I would be glad to get help to set the content/mime-types better if I did something wrong. I did what I thought was right back when I made it.
Help is always gladly accepted. Can't remember you offerings to help about this earlier.. Sorry.
2008-12-11 18:11
Burglar

Registered: Dec 2004
Posts: 1089
I'll drop you a pm this weekend, Perff, got some relatively simple ideas that can improve a couple of things drastically (performance!), without the need to change anything in the codebase.
Also need to figure out what exactly is going on with the content/mimetypes. Should have some time on sunday ;)
2008-12-11 22:07
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
Uh, CSDB still has the nasty bug, when you dl a file with "'" in the filename, then all after that sign is removed!
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
alwyz/udi
krissz
Guests online: 82
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 The Demo Coder  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Libertongo  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Morph  (9.5)
9 Dawnfall V1.1  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Triad  (9.2)
Top Graphicians
1 Mirage  (9.7)
2 Archmage  (9.7)
3 Mikael  (9.6)
4 Carrion  (9.6)
5 Sulevi  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.056 sec.