Official: WCDDL - The DDL Script

Status
Not open for further replies.
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