🌍
English
hello,
i am trying to setup a download counter for my images so that i can monitor what is downloaded and how many time.
i am using a custom script for this.
the download link is mentioned as per following code
<a href="{$current.U_DOWNLOAD}" title="{'download_hint'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/save.png" class="button" alt="{'download'|@translate}"> Download </a> {$INFO_FILE} {if isset($INFO_FILESIZE)}{$INFO_FILESIZE}{else}{'N/A'|@translate}{/if}
the above code actually displayed as
http://www.mysite.com/action.php?id=6&part=e
now i change the above url and add my counter link......
<a href="{$ROOT_URL}/clickmontor.php?{$current.U_DOWNLOAD}" title="{'download_hint'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/save.png" class="button" alt="{'download'|@translate}"> Download </a> {$INFO_FILE} {if isset($INFO_FILESIZE)}{$INFO_FILESIZE}{else}{'N/A'|@translate}{/if}
but this actually converts the link as....
http://www.mysite.com/clickmontor.php?../../action.php?id=6&part=e
the actual link should have been
http://www.mysite.com/clickmontor.php?http://www.mysite.com/action.php?id=6&part=e
what can be done
thanks
Last edited by saqwild (2010-02-24 13:40:00)
Offline