• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

******* - Limit Resource Downloads [Paid] [Deleted]

Status
Not open for further replies.

Brivium

Well-known member
#1
******* submitted a new resource:

******* - Limit Resource Downloads - This addon adds the ability to limit the number of resources users can download per period.

INFORMATION:
This addon adds the ability to limit the number of resources users can download per period.

FEATURES:
- Permission for limit the number of resources user can download per period.
- Permission for delay between download.
- Ability to choose resource categories will be ignored to limit download.
- Ability to choose file extensions will be ignored to limit download.

INSTALLATION:
Please follow the installation instructions as noted in README.txt
Read more about this resource...
 

otto

Well-known member
#5
Hello, i also interested in a:

limit resource download by download quota (MB eg)

is this possible?

regards
 

otto

Well-known member
#10
By any, but not all resources i become this error on frontend:

Server Error
Cannot load class using XFCP. Load the class using the correct loader first.

  1. XenForo_Autoloader->autoload()
  2. spl_autoload_call() in *******/LimitResourceDownloads/Model/Attachment.php at line 3
  3. include() in XenForo/Autoloader.php at line 119
  4. XenForo_Autoloader->autoload() in XenForo/Application.php at line 1001
  5. XenForo_Application::autoload() in XenForo/Application.php at line 451
  6. XenForo_Application::resolveDynamicClass() in XenForo/Model.php at line 189
  7. XenForo_Model::create() in XenForo/Controller.php at line 101
  8. XenForo_Controller->getModelFromCache() in *******/LimitResourceDownloads/ControllerPublic/Resource.php at line 13
  9. *******_LimitResourceDownloads_ControllerPublic_Resource->actionView() in FireDaemon/ResourceManager/ViewCount/ControllerPublic/Resource.php at line 14
  10. FireDaemon_ResourceManager_ViewCount_ControllerPublic_Resource->actionView() in XenForo/FrontController.php at line 347
  11. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  12. XenForo_FrontController->run() in /var/www/vhosts/zetor-forum.de/httpdocs/forum/index.php at line 13
and in backend:
XenForo_Exception: Cannot load class using XFCP. Load the class using the correct loader first. - library/XenForo/Autoloader.php:108
Generiert durch: xxxxxxxx, Vor 11 Minuten
PHP:
#0 [internal function]: XenForo_Autoloader->autoload('XFCP_*******_Li...')
#1 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/*******/LimitResourceDownloads/Model/Attachment.php(3): spl_autoload_call('XFCP_*******_Li...')
#2 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/XenForo/Autoloader.php(119): include('/var/www/vhosts...')
#3 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/XenForo/Application.php(1001): XenForo_Autoloader->autoload('*******_LimitRe...')
#4 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/XenForo/Application.php(451): XenForo_Application::autoload('*******_LimitRe...')
#5 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/XenForo/Model.php(189): XenForo_Application::resolveDynamicClass('*******_LimitRe...', 'model')
#6 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/XenForo/Controller.php(101): XenForo_Model::create('*******_LimitRe...')
#7 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/*******/LimitResourceDownloads/ControllerPublic/Resource.php(13): XenForo_Controller->getModelFromCache('*******_LimitRe...')
#8 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/FireDaemon/ResourceManager/ViewCount/ControllerPublic/Resource.php(14): *******_LimitResourceDownloads_ControllerPublic_Resource->actionView()
#9 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/XenForo/FrontController.php(347): FireDaemon_ResourceManager_ViewCount_ControllerPublic_Resource->actionView()
#10 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#11 /var/www/vhosts/zetor-forum.de/httpdocs/forum/index.php(13): XenForo_FrontController->run()
#12 {main}
PHP:
array(3) {
  ["url"] => string(68) "http://www.zetor-forum.de/forum/resources/druckbegrenzungsventil.23/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
Whats wrong? I have uploaded all files and updated the addon. Should i make a new install?

Edit: i use xenforo 1.3.3 and the actual resource manager version
 

otto

Well-known member
#11
Hm ... a new, clean install after uninstall brings up the same errors by a part of my existing resources, not for all resources.

And how can i select the categories like in the 1.0.2 ? I dont see a option for this.
 

Brivium

Well-known member
#12
Hm ... a new, clean install after uninstall brings up the same errors by a part of my existing resources, not for all resources.

And how can i select the categories like in the 1.0.2 ? I dont see a option for this.
We changed to resource category permission. You can grant permission for specific RM category .

Regards,
 

otto

Well-known member
#14
Hello,

with the newest Release (1.1.1) i have this error, multiple time...

Code:
Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Unknown column 'file_size' in 'field list' - library/Zend/Db/Statement/Mysqli.php:77
PHP:
#0 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('????SELECT SUM(...')
#1 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), '????SELECT SUM(...')
#2 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('????SELECT SUM(...')
#3 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/Zend/Db/Adapter/Abstract.php(825): Zend_Db_Adapter_Abstract->query('????SELECT SUM(...', Array)
#4 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/*******/LimitResourceDownloads/Model/Attachment.php(119): Zend_Db_Adapter_Abstract->fetchOne('????SELECT SUM(...', Array)
#5 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/*******/LimitResourceDownloads/Model/Attachment.php(97): *******_LimitResourceDownloads_Model_Attachment->sumFileSizeResourceDownloadInTime(486, 1407763350)
#6 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/*******/LimitResourceDownloads/ControllerPublic/Resource.php(15): *******_LimitResourceDownloads_Model_Attachment->brCouldResourceDownload(1, '')
#7 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/FireDaemon/ResourceManager/ViewCount/ControllerPublic/Resource.php(14): *******_LimitResourceDownloads_ControllerPublic_Resource->actionView()
#8 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/XenForo/FrontController.php(347): FireDaemon_ResourceManager_ViewCount_ControllerPublic_Resource->actionView()
#9 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#10 /var/www/vhosts/zetor-forum.de/httpdocs/forum/index.php(13): XenForo_FrontController->run()
#11 {main}
Code:
array(3) {
  ["url"] => string(70) "http://www.zetor-forum.de/forum/resources/bedienungsanleitung-zetor.1/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
I use xenforo 1.4.0 with the actual resource manager 1.1.4 The resource above is only a external link to a download. Any Idea?
 
Last edited:

otto

Well-known member
#16
Hello again,

the error i reported above, is already here - also with the newest version 1.1.2, RM 1.1.4 and XF 1.4.1:

*******_01.png

Error Log:

Code:
Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Unknown column 'file_size' in 'field list' - library/Zend/Db/Statement/Mysqli.php:77
Generated By: Joachim, A moment ago
PHP:
#0 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('????SELECT SUM(...')
#1 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), '????SELECT SUM(...')
#2 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('????SELECT SUM(...')
#3 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/Zend/Db/Adapter/Abstract.php(825): Zend_Db_Adapter_Abstract->query('????SELECT SUM(...', Array)
#4 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/*******/LimitResourceDownloads/Model/Attachment.php(119): Zend_Db_Adapter_Abstract->fetchOne('????SELECT SUM(...', Array)
#5 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/*******/LimitResourceDownloads/Model/Attachment.php(97): *******_LimitResourceDownloads_Model_Attachment->sumFileSizeResourceDownloadInTime(2, 1408952662)
#6 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/*******/LimitResourceDownloads/ControllerPublic/Resource.php(96): *******_LimitResourceDownloads_Model_Attachment->brCouldResourceDownload(35, '')
#7 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/XenForo/FrontController.php(347): *******_LimitResourceDownloads_ControllerPublic_Resource->actionDownload()
#8 /var/www/vhosts/zetor-forum.de/httpdocs/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#9 /var/www/vhosts/zetor-forum.de/httpdocs/forum/index.php(13): XenForo_FrontController->run()
#10 {main}
PHP:
array(3) {
  ["url"] => string(93) "http://www.zetor-forum.de/forum/resources/resource-with-big-download.133/download?version=132"
  ["_GET"] => array(1) {
    ["version"] => string(3) "132"
  }
  ["_POST"] => array(0) {
  }
}
Is there a missing column in my table or a other error?
 

otto

Well-known member
#17
Ok - i found it now by my self...

Why ever, in the table xf_br_resource_download the column file_size has not exist. I make this column by hand:

PHP:
ALTER TABLE xf_br_resource_download ADD file_size INT(10) AFTER download_user_id;
and test again... Now i have no new error message or error log entry.

I have bevor ever made a upgrade when a new version of resource limit come out and no new install - is there my mistake?
 

Allan

Well-known member
#18
I have buy this add-on, but when i want add my domain for download, i have this message:

Sorry, you need purchase license of Limit Resource Downloads first
 

Allan

Well-known member
#19
Suggestion: highlight this expression ("You have reached your limit for performing this action"), for example under the button "Download" instead of the tooltip.
 
Status
Not open for further replies.