help with downcnt module
Posted: Mon Jan 20, 2014 4:17 pm
I hope someone can help.... I can not make this module work.
I am using cmsms 1.11.9
using this tag: {DownCnt name='the_file' link='/downloads/the_file.zip' assign='smarty_var1'}
produces a smarty error, changing '/downloads/the_file.zip' to "/downloads/the_file.zip" clears the error.
But it still will not show a link on the page, I have tried many combinations without success.
Can someone help with this or point me in the right direction?
It says Compatible CmsMadeSimple 1.11
module location: http://dev.cmsmadesimple.org/projects/downcnt
This is what the how to say:
If your link looks like
<a href='downloads/the_file.zip'>download this file</a>
<a href='http://somesite.com'>go to the site</a>
<a href='www.somesite.com/sub/contact.html'>go to the site</a>
<a href='ftp://sub.somesite.com'>see my ftp file</a>
to make the link counting clicks, you will have to write :
{DownCnt name='the_file' link='/downloads/the_file.zip' assign='smarty_var1'}
{DownCnt name='site_1' link='http://somesite.com' assign='smarty_var2'}
{DownCnt name='site_2' link='www.somesite.com/sub/contact.html' assign='smarty_var3'}
{DownCnt name='site_3' link='ftp://sub.somesite.com' assign='smarty_var4'}
<a href='{$smarty_var1}'>download this file</a>
<a href='{$smarty_var2}'>go to the site</a>
<a href='{$smarty_var3}'>go to the site</a>
<a href='{$smarty_var4}'>see my ftp file</a>
I am using cmsms 1.11.9
using this tag: {DownCnt name='the_file' link='/downloads/the_file.zip' assign='smarty_var1'}
produces a smarty error, changing '/downloads/the_file.zip' to "/downloads/the_file.zip" clears the error.
But it still will not show a link on the page, I have tried many combinations without success.
Can someone help with this or point me in the right direction?
It says Compatible CmsMadeSimple 1.11
module location: http://dev.cmsmadesimple.org/projects/downcnt
This is what the how to say:
If your link looks like
<a href='downloads/the_file.zip'>download this file</a>
<a href='http://somesite.com'>go to the site</a>
<a href='www.somesite.com/sub/contact.html'>go to the site</a>
<a href='ftp://sub.somesite.com'>see my ftp file</a>
to make the link counting clicks, you will have to write :
{DownCnt name='the_file' link='/downloads/the_file.zip' assign='smarty_var1'}
{DownCnt name='site_1' link='http://somesite.com' assign='smarty_var2'}
{DownCnt name='site_2' link='www.somesite.com/sub/contact.html' assign='smarty_var3'}
{DownCnt name='site_3' link='ftp://sub.somesite.com' assign='smarty_var4'}
<a href='{$smarty_var1}'>download this file</a>
<a href='{$smarty_var2}'>go to the site</a>
<a href='{$smarty_var3}'>go to the site</a>
<a href='{$smarty_var4}'>see my ftp file</a>