Simple Download Counter вышла версия 1.2

Today is 14th of April, my birthday, so I have much time to release new version of my Simple Download Counter plugin laughing  Well, in version 1.2 I made some fixes, you can see changelog, admin panel screenshot and download link below in this article. 

Changelog from version 1.1

1. For user Francesco I made an option not to show filename in download text. If you also like link just "Download file", this option is for you too. 

2. Fixed empty class style in <a tag> if option CSS style for download link is empty. Now if it`s empty, plugin will use standard template`s css style for links. 

3. Another small fixes in showing file sizes, cleaning language files constants and Russian users specific fixes. 

Download file plg_content_sdc-v12.zip (8kb)
Already downloaded 122 times

If you have a problem or any idea - please post a comment, I`l answer as fast as possible. Thank you for your attention, good luck for your projects.

If you like this - share it with your friends. That would be the best "donation" for me!


Or just buy me a beer :-)

If you want to ask question or comment - login by using your favourite social network

Comments  
roberto
# roberto 2019-10-26 18:17
Don't work in Joomla 3.9 and php 7.2.

Deprecated: Non-static method SdcHelper::check() should not be called statically in /web/htdocs/www.ayco.it/home/plugins/content/sdc/sdc.php on line 28

Deprecated: Non-static method SdcHelper::fsize() should not be called statically in /web/htdocs/www.ayco.it/home/plugins/content/sdc/sdc.php on line 41

Deprecated: Non-static method SdcHelper::showclick() should not be called statically in /web/htdocs/www.ayco.it/home/plugins/content/sdc/sdc.php on line 45

Deprecated: Non-static method SdcHelper::plural() should not be called statically in /web/htdocs/www.ayco.it/home/plugins/content/sdc/sdc.php on line 47

Notice: Undefined index: download in /web/htdocs/www.ayco.it/home/plugins/content/sdc/sdc.php on line 50
Reply | Reply with quote | Quote
Yagnenok
# Yagnenok 2019-10-26 20:44
This blog is running Joomla 3.9.2 + Php 7.2. Maybe this is your hosting php.ini warnings enabled
Reply | Reply with quote | Quote
roberto
# roberto 2019-10-27 17:31
The problem was the Joomla cache! The plugin works well only if I disable Joomla cache. When enabled I can't download the file when cache don't expired, may be every 15 minutes for me. But this is a problem...
Thank you all for reply!
Reply | Reply with quote | Quote
Ягненков Денис
# Ягненков Денис 2019-10-27 19:59
Thanks for your reply. I'll have a look and do some test for solving problem while using joomla caching
Reply | Reply with quote | Quote
roberto
# roberto 2019-10-28 23:51
Adding the first two rows of code seems to resolve the progressive cache problem.
public function onContentPrepare($context, &$article, &$params, $limitstart)
{
$cache = JCache::getInstance('callback');
$cache->clean(null, 'notgroup');
$matches = array(); // массив для совпадений
Reply | Reply with quote | Quote
Ягнёнок
# Ягнёнок 2019-11-04 22:59
Thanks!!!! :oops: code will be used in new version
Reply | Reply with quote | Quote
roberto
# roberto 2019-11-07 23:59
but sometimes a warning from Cache appears like this one:
Joomla\CMS\Cache\Storage\FileStorage::_deleteFolder JFolder: :delete: Could not delete folder.

:sad:
Reply | Reply with quote | Quote
Add comment