WordPress.org

Forums

WP-Filebase Download Manager
Counter doesn't work. (1 post)

  1. Kjow
    Member
    Posted 2 years ago #

    Hi,

    download counter (Hits) doesn't work for me. I do not want to show to users how many download are made, so I modified the template removing %file_hits%

    So, now, default template is:

    <div class="wpfilebase-attachment">
     <div class="wpfilebase-fileicon"><a href="%file_url%" title="Download %file_display_name%"><img align="middle" src="%file_icon_url%" alt="%file_display_name%" /></a></div>
     <div class="wpfilebase-rightcol">
      <div class="wpfilebase-filetitle">
       <a href="%file_url%" title="Download %file_display_name%">%file_display_name%</a><br />
       %file_name%<br />
       <!-- IF %file_version% -->%'Version:'% %file_version%<br /><!-- ENDIF -->
       <!-- IF %file_post_id% AND %post_id% != %file_post_id% --><a href="%file_post_url%" class="wpfilebase-postlink">%'View post'%</a><!-- ENDIF -->
      </div>
      <div class="wpfilebase-filedetails" id="wpfilebase-filedetails%uid%" style="display: none;">
      <p>%file_description%</p>
      <table border="0">
       <!-- IF %file_languages% --><tr><td><strong>%'Languages'%:</strong></td><td>%file_languages%</td></tr><!-- ENDIF -->
       <!-- IF %file_author% --><tr><td><strong>%'Author'%:</strong></td><td>%file_author%</td></tr><!-- ENDIF -->
       <!-- IF %file_platforms% --><tr><td><strong>%'Platforms'%:</strong></td><td>%file_platforms%</td></tr><!-- ENDIF -->
       <!-- IF %file_requirements% --><tr><td><strong>%'Requirements'%:</strong></td><td>%file_requirements%</td></tr><!-- ENDIF -->
       <!-- IF %file_category% --><tr><td><strong>%'Category:'%</strong></td><td>%file_category%</td></tr><!-- ENDIF -->
       <!-- IF %file_license% --><tr><td><strong>%'License'%:</strong></td><td>%file_license%</td></tr><!-- ENDIF -->
       <tr><td><strong>%'Date'%:</strong></td><td>%file_date%</td></tr>
       <!-- <tr><td><strong>%'MD5 Hash'%:</strong></td><td><small>%file_hash%</small></td></tr> -->
      </table>
      </div>
     </div>
     <div class="wpfilebase-fileinfo">
      %file_size%<br />
      <a href="#" onclick="return wpfilebase_filedetails(%uid%);">%'Details'%...</a>
     </div>
     <div style="clear: both;"></div>
    </div>

    Hits never change.

    Thank you,
    Kjow

    http://wordpress.org/extend/plugins/wp-filebase/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Filebase Download Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.