<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Module: Attachment Download Counter</title>
        <description> This module keeps a count of the number of times each attachment is downloaded. This information can be displayed alongside of the attachment. The date that the attachment was last downloaded can also be displayed. The admin can also enter a date to display as the starting date for counting downloads (eg. &amp;quot;Downloaded X times since 1/1/2009.&amp;quot;) If the admin chooses to display this information, it will also be displayed for any links rendered by the Embed Attachments module.

Installation Instructions:
After installing this module in the mods folder, you will also have to edit the read.tpl, read_hybrid.tpl, and read_threads.tpl files for your template. In each file, you will need to add the following code:{INCLUDE &amp;quot;attachment_download_counter::counter_read&amp;quot;}
This should be added inside the attachments loop:{LOOP MESSAGES-&amp;gt;attachments} . . . {/LOOP MESSAGES-&amp;gt;attachments}
Here is a sample from an edited version of the Emerald template&amp;#039;s read.tpl file:{LOOP MESSAGES-&amp;gt;attachments}
    &amp;lt;a href=&amp;quot;{MESSAGES-&amp;gt;attachments-&amp;gt;url}&amp;quot;&amp;gt;{LANG-&amp;gt;AttachOpen}&amp;lt;/a&amp;gt; | &amp;lt;a href=&amp;quot;{MESSAGES-&amp;gt;attachments-&amp;gt;download_url}&amp;quot;&amp;gt;{LANG-&amp;gt;AttachDownload}&amp;lt;/a&amp;gt; -
    {MESSAGES-&amp;gt;attachments-&amp;gt;name}
    ({MESSAGES-&amp;gt;attachments-&amp;gt;size}){INCLUDE &amp;quot;attachment_download_counter::counter_read&amp;quot;}&amp;lt;br/&amp;gt;
{/LOOP MESSAGES-&amp;gt;attachments}
At this time, all templates will use the default Emerald layout found in the mods/attachment_download_counter/templates/emerald/counter_read.tpl and counter_hook_render_embedded_attachment.tpl files. If you want to edit the way the download counter, counter starting date, or last downloaded date are displayed, you can edit this file, or create a copy of this file in your own template&amp;#039;s folder (eg. mods/attachment_download_counter/templates/my_custom_template/counter_read.tpl).

Todo:
- Add the ability to count the downloads of files uploaded to the &amp;quot;My Files&amp;quot; section.

- Add features as they are requested.</description>
        <link>https://www.phorum.org/support/read.php?62,142487,142487#msg-142487</link>
        <lastBuildDate>Sat, 11 Jul 2026 18:52:52 -0500</lastBuildDate>
        <generator>Phorum 6.0.0</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,142487,142495#msg-142495</guid>
            <title>Re: Module: Attachment Download Counter</title>
            <link>https://www.phorum.org/support/read.php?62,142487,142495#msg-142495</link>
            <description><![CDATA[ Lastly u made it. Thx a lot]]></description>
            <dc:creator>bluelov</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 28 Dec 2009 23:44:50 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,142487,142487#msg-142487</guid>
            <title>Module: Attachment Download Counter</title>
            <link>https://www.phorum.org/support/read.php?62,142487,142487#msg-142487</link>
            <description><![CDATA[ This module keeps a count of the number of times each attachment is downloaded. This information can be displayed alongside of the attachment. The date that the attachment was last downloaded can also be displayed. The admin can also enter a date to display as the starting date for counting downloads (eg. &quot;Downloaded X times since 1/1/2009.&quot;) If the admin chooses to display this information, it will also be displayed for any links rendered by the Embed Attachments module.<br />
<br />
<b>Installation Instructions:</b><br />
After installing this module in the mods folder, you will also have to edit the read.tpl, read_hybrid.tpl, and read_threads.tpl files for your template. In each file, you will need to add the following code:<pre class="bbcode">{INCLUDE &quot;attachment_download_counter::counter_read&quot;}</pre>
This should be added inside the attachments loop:<pre class="bbcode">{LOOP MESSAGES-&gt;attachments} . . . {/LOOP MESSAGES-&gt;attachments}</pre>
Here is a sample from an edited version of the Emerald template&#039;s read.tpl file:<pre class="bbcode">{LOOP MESSAGES-&gt;attachments}
    &lt;a href=&quot;{MESSAGES-&gt;attachments-&gt;url}&quot;&gt;{LANG-&gt;AttachOpen}&lt;/a&gt; | &lt;a href=&quot;{MESSAGES-&gt;attachments-&gt;download_url}&quot;&gt;{LANG-&gt;AttachDownload}&lt;/a&gt; -
    {MESSAGES-&gt;attachments-&gt;name}
    ({MESSAGES-&gt;attachments-&gt;size})<span style="color:#006600"><b>{INCLUDE &quot;attachment_download_counter::counter_read&quot;}</b></span>&lt;br/&gt;
{/LOOP MESSAGES-&gt;attachments}</pre>
At this time, all templates will use the default Emerald layout found in the mods/attachment_download_counter/templates/emerald/counter_read.tpl and counter_hook_render_embedded_attachment.tpl files. If you want to edit the way the download counter, counter starting date, or last downloaded date are displayed, you can edit this file, or create a copy of this file in your own template&#039;s folder (eg. mods/attachment_download_counter/templates/my_custom_template/counter_read.tpl).<br />
<br />
<b>Todo:</b><br />
- Add the ability to count the downloads of files uploaded to the &quot;My Files&quot; section.<br />
<br />
- Add features as they are requested.]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sat, 26 Dec 2009 10:54:22 -0600</pubDate>
        </item>
    </channel>
</rss>
