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. 


Already downloaded 174 times. Downloading of this file is off

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 Permalink 0 roberto
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
2019-10-26 18:17 Reply Reply with quote Quote
Yagnenok Permalink -1 Yagnenok
This blog is running Joomla 3.9.2 + Php 7.2. Maybe this is your hosting php.ini warnings enabled
2019-10-26 20:44 Reply Reply with quote Quote
roberto Permalink -1 roberto
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!
2019-10-27 17:31 Reply Reply with quote Quote
Ягненков Денис Permalink 0 Ягненков Денис
Thanks for your reply. I'll have a look and do some test for solving problem while using joomla caching
2019-10-27 19:59 Reply Reply with quote Quote
roberto Permalink +2 roberto
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(); // массив для совпадений
2019-10-28 23:51 Reply Reply with quote Quote
Ягнёнок Permalink +1 Ягнёнок
Thanks!!!! :oops: code will be used in new version
2019-11-04 22:59 Reply Reply with quote Quote
roberto Permalink 0 roberto
but sometimes a warning from Cache appears like this one:
Joomla\CMS\Cache\Storage\FileStorage::_deleteFolder JFolder: :delete: Could not delete folder.

:sad:
2019-11-07 23:59 Reply Reply with quote Quote
Diego Permalink 0 Diego
Quoting roberto:
but sometimes a warning from Cache appears like this one:
Joomla\CMS\Cache\Storage\FileStorage::_deleteFolder JFolder: :delete: Could not delete folder.

:sad:

That means you/your plugin does not have rights todelete folder. Check permissions
2020-01-02 06:53 Reply Reply with quote Quote
Yagnenok Permalink 0 Yagnenok
Shanna Permalink 0 Shanna
I am really loving the theme/design of your web site.
Do you ever run into any web browser compatibility issues?

A number of my blog visitors have complained about my blog not operating
correctly in Explorer but looks great in Safari. Do you have any advice to help fix
this problem?

Here is my site: gmail login
2021-04-13 03:33 Reply Reply with quote Quote

Add comment

Answer a question:
What is the first letter in word Joomla?