Hi,

Which plugin will show the downloads for an specific site?

http://www.domain.com/index.php?site=mydomain.com

Thanks

---------- Post added at 05:33 PM ---------- Previous post was at 04:18 PM ----------

nvm,

I added a query to wc3.php and it works.
AFTER
PHP Code: 
class Downloads {
    public 
$page 1;
    public 
$perPage 30;
    public 
$query;
    public 
$type
ADD new variable
PHP Code: 
    public $site
AND AFTER
PHP Code: 
        if(!empty($this->type)) {
            
$where .= (empty($where) ? ' WHERE' ' AND') . ' d.type = :type';
            
$whereParams['type'] = $this->type;
        } 
ADD
PHP Code: 
        if(!empty($this->site)) {
            
$where .= (empty($where) ? ' WHERE' ' AND') . ' s.url = :site';
            
$whereParams['site'] = $this->site;
        } 
I changed Index.php also

FROM
PHP Code: 
$downloads Core::load()->mapRequest('Downloads', array('page''query''type')); 
TO

PHP Code: 
$downloads Core::load()->mapRequest('Downloads', array('page''query''type''site')); 


---------- Post added at 05:53 PM ---------- Previous post was at 05:33 PM ----------

Ahhhhh, but Pages number is not showing lol plz tell me how to fix that