Jump to content

(NB40) Attachment Hits Counter


Recommended Posts

Hi, great plugin. I'd like to request an additional feature. In the 3.x series the size of the attached file would be listed as well as the download count, it would be awesome if if there was an option to enable this, could have a file icon with the size of the file next to it. 

Thanks! 

Link to comment
  • 1 month later...
Just now, ProTroll said:

I am having an issue where when users try to click on an attachment it doesn't open, but when they right click and choose "open in another tab" it works. This is only a problem when I have your mod enabled. Any ideas? 

Hello,

Give me a link on problem post

Link to comment
  • 2 weeks later...
  • 1 month later...

The main Russian translation keys:

nb_attach_hits_tooltip_title
{# [1:скачивание][2:скачивания][3:скачивания][4:скачивания][11:скачиваний][12:скачиваний][13:скачиваний][14:скачиваний][*1:скачивание][*2:скачивания][*3:скачивания][*4:скачивания][?:скачиваний]}

nb_attach_size_tooltip_title
Размер

 

Link to comment

IPB 4.1.11. Yesterday I installed the plugin and encountered a big problem. Every attachment on the Forum became undownloadable using common left-mouse click. After a click nothing happens at all. But there is ability to download an attachment using 'Save target as...' option after right-mouse click. Link HTML code stays the same no matter whether the plugin enabled or not. The problem was tested in all major browsers including Microsoft Edge, tried to reinstall the plugin and disable the rest plugins. Used options were:

KvIV.jpg

Also I never saw hits counter with images because we use external images only.
I tried to find out a configuration to avoid the problem and was succeed in. I found out that all user groups that is not set in second 'Groups' list (that is for images only) don't have a problem. But a solution would be more appropriate ;)

Edited by Safety1st
Link to comment

@newbie LAC Thank you, the issue is gone dh.gif

Just one more thing. I'm trying to test hits counter for images. Please look at the post. I uploaded the picture on the forum and made it clickable. I don't see a counter. Here is post source code:

<p>
	<a href="https://www.yandex.ru/" rel="external nofollow"><img alt="raspinovka.jpg" class="ipsImage ipsImage_thumbnailed" data-fileid="783" data-unique="v7rpkriu8" src="http://goldsrc.ru/uploads/monthly_2016_05/raspinovka.jpg.cbf885dc01c5ceb463e1940dc89c2c23.jpg"></a>
</p>

What am I doing wrong?

Link to comment
35 minutes ago, Safety1st said:

@newbie LAC Thank you, the issue is gone dh.gif

Just one more thing. I'm trying to test hits counter for images. Please look at the post. I uploaded the picture on the forum and made it clickable. I don't see a counter. Here is post source code:


<p>
	<a href="https://www.yandex.ru/" rel="external nofollow"><img alt="raspinovka.jpg" class="ipsImage ipsImage_thumbnailed" data-fileid="783" data-unique="v7rpkriu8" src="http://goldsrc.ru/uploads/monthly_2016_05/raspinovka.jpg.cbf885dc01c5ceb463e1940dc89c2c23.jpg"></a>
</p>

What am I doing wrong?

It's depends of image dimensions.

Initially it was assumed that the image would be with a thumbnail.

First. Counter works fine.

<a href="/uploads/monthly_2016_05/front.jpg.3ddeee05b785503c34702bfaccfd2d0c.jpg" class="ipsAttachLink ipsAttachLink_image" data-ipslightbox="" data-ipslightbox-group="g25055">
	<img data-fileid="219" src="/uploads/monthly_2016_05/front.jpg.3ddeee05b785503c34702bfaccfd2d0c.jpg" class="ipsImage ipsImage_thumbnailed" alt="front.jpg">
</a>

Second. Counter doesn't work.  Maximum image dimensions to save is unlimited.

<a href="/uploads/monthly_2016_05/front.jpg.e40cf5808640f6cacfce8d514b85b64c.jpg" title="Enlarge image" data-ipslightbox="" data-ipslightbox-group="g24668">
	<img alt="front.jpg" class="ipsImage ipsImage_thumbnailed" data-fileid="218" src="/uploads/monthly_2016_05/Front.jpg.e40cf5808640f6cacfce8d514b85b64c.jpg" style="width:631px;height:631px;">
</a>

Third. Image with custom link. Yours code. Counter doesn't work.

<a href="https://www.yandex.ru/" rel="external nofollow noopener noreferrer" target="_blank">
	<img alt="raspinovka.jpg" class="ipsImage ipsImage_thumbnailed" data-fileid="783" data-unique="v7rpkriu8" src="http://goldsrc.ru/uploads/monthly_2016_05/raspinovka.jpg.cbf885dc01c5ceb463e1940dc89c2c23.jpg">
</a>

I need some time to implement all the variants.

Edited by newbie LAC
Link to comment
  • 1 month later...

Hello,

15 hours ago, Safety1st said:

@newbie LAC Could you add an option to disable counter for images at all?

Yes.

7 minutes ago, MajorCyto said:

hi @newbie LAC does this work for attachments set up in the Pages add-on? Or only for the forum area? Because in Pages you can mark a field to be for uploads.

Hello,

It should work everywhere where attaches are used.

Give me a link on a page to see a code

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...