xoops forums

chefry

Home away from home
Posted on: 2013/3/28 14:04
chefry
chefry (Show more)
Home away from home
Posts: 1005
Since: 2006/10/14
#1

Download Counter in block

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

irmtfan

Module Developer
Posted on: 2013/3/30 3:07
irmtfan
irmtfan (Show more)
Module Developer
Posts: 3419
Since: 2003/12/7
#2

Re: Download Counter in block

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

chefry

Home away from home
Posted on: 2013/3/30 12:59
chefry
chefry (Show more)
Home away from home
Posts: 1005
Since: 2006/10/14
#3

Re: Download Counter in block

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

chefry

Home away from home
Posted on: 2013/3/30 13:04
chefry
chefry (Show more)
Home away from home
Posts: 1005
Since: 2006/10/14
#4

Re: Download Counter in block

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

chefry

Home away from home
Posted on: 2013/3/30 14:43
chefry
chefry (Show more)
Home away from home
Posts: 1005
Since: 2006/10/14
#5

Re: Download Counter in block

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

Mamba

Moderator
Posted on: 2013/3/30 15:26
Mamba
Mamba (Show more)
Moderator
Posts: 10799
Since: 2004/4/23
#6

Re: Download Counter in block

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.10 | Docs | Modules | Bugs

irmtfan

Module Developer
Posted on: 2013/3/31 0:36
irmtfan
irmtfan (Show more)
Module Developer
Posts: 3419
Since: 2003/12/7
#7

Re: Download Counter in block

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.

chefry

Home away from home
Posted on: 2013/3/31 2:14
chefry
chefry (Show more)
Home away from home
Posts: 1005
Since: 2006/10/14
#8

Re: Download Counter in block

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

irmtfan

Module Developer
Posted on: 2013/4/3 1:56
irmtfan
irmtfan (Show more)
Module Developer
Posts: 3419
Since: 2003/12/7
#9

Re: Download Counter in block

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.