1
chefry
Download Counter in block
  • 2013/3/28 14:04

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


I have a download available in a custom block that appears on every page.

Is there a way I can add a download counter?

Or should I add it to my downloads section and then link it to there in order to get a count?

I want to see how many people are downloading my android apps

2
irmtfan
Re: Download Counter in block
  • 2013/3/30 3:07

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


use a download module is always better than a hardcode link.

but if you want to have a counter for a single link hits, the only module can help you is userlog:
https://xoops.org/modules/newbb/viewtopic.php?topic_id=75865

3
chefry
Re: Download Counter in block
  • 2013/3/30 12:59

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


I couldn't find any good scripts that would do it, so i ended up adding the mimetype to tdmdownloads and putting them there with a direct link in the block to the download page.

seems to be working

4
chefry
Re: Download Counter in block
  • 2013/3/30 13:04

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


but i'm going to try userlog too, sounds interesting ;)

5
chefry
Re: Download Counter in block
  • 2013/3/30 14:43

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


I get

This page cannot be displayed due to an internal error.

You can provide the following information to the administrators of this site to help them solve the problem:

Error: Smarty error: [in db:userlog_admin_sets.html line 22]: syntax error: unrecognized tag 'xoModuleIcons16' (Smarty_Compiler.class.php, line 590)

when i try to install

6
Mamba
Re: Download Counter in block
  • 2013/3/30 15:26

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
Error: Smarty error: [in db:userlog_admin_sets.html line 22]: syntax error: unrecognized tag 'xoModuleIcons16' (Smarty_Compiler.class.php, line 590)

It's time for you to upgrade to XOOPS 2.5.5 (soon 2.5.6)

This module won't work on your version, because it requires several features that are only in XOOPS 2.5.5
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

7
irmtfan
Re: Download Counter in block
  • 2013/3/31 0:36

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Yes.
Always read the readme.txt before install any module.
Quote:

userlog guide

Requirements:
=========================
XOOPS 2.5.5 php 5.3 mysql 5.0


Xoops 2.5.5 has been stabled for more than 1 year. So the time was enough for all people to upgrade.

8
chefry
Re: Download Counter in block
  • 2013/3/31 2:14

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


i tried 2.5.5 and couldn't get it to install on xampp

9
irmtfan
Re: Download Counter in block
  • 2013/4/3 1:56

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Xoops 2.5.5 is stabled from more than one year ago so you must be able to install/upgrade.

maybe your xampp use php 5.4 then it is better to try xoops 2.5.6
but anyway xoops 2.5.5 could be installed in php 5.4 with some warnings and notices.

Login

Who's Online

293 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 293


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits