Official: WCDDL - The DDL Script

Status
Not open for further replies.
static urlHost($u)
Returns the host part of the URL $u

Need something like that but to domain
to add in blacklist and validating submittions ex:blogspot.com

static urlHost($u, $domain)
Returns the host part of the URL $u
if domain -> Return the domain of URL $u.

now complicating same to TLD's co,cc ....
 
That's a fair point. I see now why you don't want to do that and your probably right. I've another feature request. Again I don't mind if it's not added but I think it could be useful and I know this could easily be done as a hook but that relies on people adding it which most probably wouldn't so hear me out.


Why not include a submit api system by default that would return a json reply saying if submits were rejected and why. eg site is banned, not whitelisted etc or how many were accepted.

Then in three months or whenever you find time to update warezlinkers/auto you can have it give a far more accurate response. Right now it just says downloads submitted even if they are rejected by the DDL site. This is where rardownloads is slightly better as it tries to crawl the returned page and shows the error message if they were rejected. It's really useful.

With rardownloads and linkplz-auto now the top autosubmitters you could use this to regain ground.

It's also better for the DDL admin as by just returning a json reply it's less stress on the server.
Everyone wins. Interested to hear what you think.

It is easily possible, this one ill talk to you on msn about.

static urlHost($u)
Returns the host part of the URL $u

Need something like that but to domain
to add in blacklist and validating submittions ex:blogspot.com

static urlHost($u, $domain)
Returns the host part of the URL $u
if domain -> Return the domain of URL $u.

now complicating same to TLD's co,cc ....

You mean like 'http://abcdef.blogspot.com/' will return 'abcdef.blogspot.com' and you'd like it to return 'blogspot.com'?

This is a long time problem in any language, because you can have any number of subdomains (to an extent) so it isn't easily possible to determine the original domain. E.g. 'abc.somedomain.com', you just split at the 2nd to last '.' to get 'somedomain.com'. But for 'abc.somedomain.co.uk', that'd return 'co.uk'.

You'll have to figure your own way around this in your modules.
 
Ive downloaded v3 from post 1 + read the whole thread, now my question is: my mods which work on v2 now, will work on v3?
 
WCDDL3 isn't released yet, there's been a slight delay.

The link is WCDDL2 on the first post.

Mods will not work from v2 -> v3, they will need altering slightly but not much really.
 
Yeah im like 4 days late, but ive been really busy studying and what not.

I'll release it tomorrow or saturday.
 
I am waiting for it disparately.
Thanks for doing hardwork for us. <3<3<3

Hope v3, comes with more powerful features.

Thanks,
mann
 
Just remember its mostly backend changes, feature-wise not a lot more will be implemented, ill leave that to modules.

I may release a few modules for it though to get everyone started.
 
Yeah it isn't used right now by default, but I left it in there just in case mods want to make use of it.

I imagine someone will eventually want to use it.

Also, remove the comment in the top of submit.php, just a debug line i was using.
 
lol don't worry I'll use the jquery.

I've noticed you only have a templateVar in the head of admin. What are your thoughts in having one in the head of the index, download and submit too by default?

is it making it a bit too noobish and they should be able to make basic template edits themselves?
 
Main reason I didn't do that is because I imagine when people change the design, they're likely to overlook those lines.

For one reason: it will function correctly without them, so they won't realise it is missing.
 
Status
Not open for further replies.
Back
Top