Official: WCDDL - The DDL Script

Status
Not open for further replies.

JmZ

(╯°□°)╯︵ ┻━┻
1,789
2008
729
0
Here's a big summary thread for you guys, ill try keep it up-to-date.

logo.jpg


What is it?
I don't need a huge description here. If you're reading this thread you likely already know what WCDDL is.

WCDDL is a DDL script, created to act as a base to DDL sites which can easily be modified to your needs and runs efficiently with minimal 'bloat'. It is very secure and handles high traffic well, while keeping the database size reasonable.

Who made it?
WarezCoders.com made WCDDL. I coded it myself, the team created (and still do create) modules for it, also some seem to continue releasing themes for it.

System Requirements

All Versions: MySQL, PHP.
WCDDL 2 or later: PHP5
WCDDL 3: PHP5 with PDO (built in by default)

Features
  • Admin Panel
  • Blacklist & Whitelist Support
  • SQL-based blacklist/whitelist
  • Download Submissions Queue
  • Add Downloads
  • Edit Downloads
  • Delete Downloads
  • Download Ratings
  • Pre-Optimised Database
  • Module support for extending the script
  • SEO URLs supported (not included)
  • Compatible with all Autosubmitters
  • Customisable Categories
  • Search logs (Recent searches)
  • Complete pagination
  • Delete downloads on Blacklisting a URL
  • Cookieless admin sessions
  • Completely customisable
  • Search within a category
  • No pointless bloat or frameworks, pure, efficient code

Versions
WCDDL1 - Module support, procedural
WCDDL2 - Object-oriented, module support, database restructure
WCDDL3 - Completely object-oriented, module support, PHP5

WCDDL3 Changes
  • PHP5 only
  • PDO instead of old mysql_ library for portability
  • Full object-orientation
  • Optimised database
  • Fulltext searching
  • Better module system
  • COMPLETE RECODE FROM SCRATCH
As always, don't expect huge new features and such, that is what modules are for. Instead, expect better code, higher efficiency and faster page execution. Also the database will be slightly restructured for efficiency. Security changes may also be made.

IF ANY OF THE FOLLOWING LINKS ARE DOWN, SEE THE MIRRORS AT THE END OF THIS POST.

Download WCDDL3
https://github.com/jmzrlz/WCDDL/zipball/master

Download WCDDL2
http://warezcoders.com/code/WCDDL.zip

Download Legacy v1
http://warezcoders.com/code/WCDDL1.zip

Install
Edit wcfg.php and import database.sql into your database.

Support
This script is specifically directed at webmasters with prior experience with running DDL websites and/or PHP.
I do not provide support unless im bored. If you do need help, ask on these forums or the warezcoders forums, you'll most likely get a faster response here.
All those people who claim this script allows kids to throw up 5 minute DDL sites are mentally ill. You can see from v2 to v3 that I don't care about changing how it looks or frontend functionality, just the backend code. This DDL script is not for newbies, kids, etc, it is for real webmasters with a future.

Credits
I could thank loads of people but the ones who actually helped in the past are:
Sickness, Whoo, Jomasaco and the rest of the WC team.

Links
Development Thread
WCDDL2 -> WCDDL3 themes

Mirror Links

WCDDL1
- http://www.box.net/s/7b7df188v99pju1hd5rg

WCDDL2
- http://wanted.ws/wp-content/uploads/2010/10/WCDDL.zip
- http://www.box.net/s/185tun6g8ar67sjqxfab

WCDDL3
- N/A
 
Last edited:
145 comments
After installing pluginManager you will see a link in your admin panel.

For the other ones you will have to enable them.

open up both files and look for $modEnabled = false; change false to true
 
Sorry that I forgot to mention, but I have set $modEnable=true; already. Also for the plugin manager I have followed the link domain.com/wc3admin.php&go=installPluginManager but still I don't see it. Not only the plugin manager but other modules aren't working too.
 
Haven't really played around with v3 so not quite sure why it's not working for you. In your admin panel you should see Plugin Manager after you install it. http://screensnapr.com/e/h9imlM.png

Make sure in your wcfg.php file that you have the correct path for the modules folder(don't use your domain)
PHP:
define('WCDDL_PATH_MODULES', '/path/to/wcddl/modules/');
 
Sorry that I forgot to mention, but I have set $modEnable=true; already. Also for the plugin manager I have followed the link domain.com/wc3admin.php&go=installPluginManager but still I don't see it. Not only the plugin manager but other modules aren't working too.

Same here ..

Haven't really played around with v3 so not quite sure why it's not working for you. In your admin panel you should see Plugin Manager after you install it. http://screensnapr.com/e/h9imlM.png

Make sure in your wcfg.php file that you have the correct path for the modules folder(don't use your domain)
PHP:
define('WCDDL_PATH_MODULES', '/path/to/wcddl/modules/');

That's not helping me :(
Any ideas ?
 
Not sure what else it could be.
Triple check all your site path settings, an extra space or a spelling mistake can cause problems. and make sure you have uploaded the mod files to your modules folder
 
I have edited it and I have given the path already. It is showing the list of modules on the admin page but modules doesn't seem to work.

Edit : Since JMZ releases on GitHub, you might have download some other version I hope so. I downloaded the latest I think though not sure. Also I have seen your demo of v3 working. So it works for you, nice :)
 
I wrote the plugin manager. I've an updated version on my computer which I updated yesterday. Even if you get the version you have working it won't uninstall as that wasn't finished. It's finished and at home so I'll release it as soon as I get home. Very sorry I can't post it now.


@JmZ - Suggestion
When someone installs v3 they don't set the correct path to the modules folder in the config file. As the script works they think they have it installed correctly.

Then when they upload a plugin I made they say the plugin doesn't work. Can you make it so it gives a warning message in the admin area under list modules if the modules folder isn't found and that they need to change it in the config. I know it sounds (very) stupid but it's happened and was very hard to help the guy find the cause of the problem. It's just one line of code to add anyway.
 
Last edited:
what should be the correct path to the modules.. is this
define('WCDDL_PATH_MODULES', '/modules/');
correct if you have the script installed in the root
 
I have a vps , what will the username be in
username/public_html/modules/ be ?

I don't know if its right but you can always try.

  1. Create a new file with .php extension and name it to path.php
  2. Open path.php with any text editor and insert this
    PHP:
    <?php echo getcwd(); ?>
  3. Upload this path.php to your modules folder.
  4. Point to http://domain.com/wcddl/modules/path.php
  5. It'll give you the exact path to your modules directory.

Enjoy.

(correct me if I'm wrong)
 
Change the way the queue works so it's more flexible for modules and developers.

Replace
PHP:
public function queue() {
	Core::load()->executeHook('DownloadQueuePre', array(&$this));
	$this->id = Database::quickExecute('INSERT INTO ' . WCDDL_DB_PREFIX . 'queue (sid, title, type, url) VALUES (:sid, :title, :type, :url)', array(
		'sid' => $this->sid, 'title' => $this->title, 'type' => $this->type, 'url' => $this->url), true);
	return $this->id;
}

with
PHP:
public function queue() {
	$query = 'INSERT INTO ' . WCDDL_DB_PREFIX . 'queue (sid, title, type, url) VALUES (:sid, :title, :type, :url)';
	$params = array('sid' => $this->sid, 'title' => $this->title, 'type' => $this->type, 'url' => $this->url);
	Core::load()->executeHook('DownloadQueuePre', array(&$query, &$params));
	$this->id = Database::quickExecute($query, $params, true);
	return $this->id;
}
 
Paste here or PM me your index.php file and I'll fix it for you. I'm guessing you didn't replace the code correctly or it has some minor error.
 
Updated the version to 3.1

Changes:
- Common save/update queries generated now rather than hardcoded
- A few hooks changed
- Version number added to wcfg (so modules not compat. with a certain version can check)

See the dev thread/sticky for more info.
 
yo,

just dled V3 frm Jmz's 1st post, installed n uploaded, got error


Fatal error: Class 'PDO' not found in /home/warezrel/public_html/WcDDL3/wc3.php on line 24

plz help
 
Hi,

I tried to search something on my fresh WCDDL3 website. But just returned no result although i searched exactly a download title.

Can you plz tell me why?
 
@resoft11

You shouldn't search the whole title at once.
Try something like this:
Download: Mac OS X Lion 10.7.2 build 11C37
Search like this "Mac" or "Lion"

If that doesn't work, there might be a problem in your index.php file
 
Status
Not open for further replies.
Back
Top