Posted: 08/15/2005 9:30:19 AM
Reply Quoted
tariq wrote: | 08/13/2005 7:26:01 PM |
Hello Dmitry,
Yes, please do http://almirkaz.com/index.php
The front-end is in arabic and I made some custom tpls, I want to count inlink/detail.tpl & inlink/print.tpl
Thanks
[Edited By tariq on 08/13/05 7:49:24 PM] |
Hello,
Open in-link/parser.php and find the following function
l_link_detail. This is how it should look like:
function l_link_detail($attribs = array())
{
global $objLinkList;
$t = $attribs["_itemtemplate"
if(strlen($t))
{
$LinkId = int)$attribs["_linkid"
if($LinkId)
{
$link = $objLinkList->GetItem($LinkId);
}
else
$link = $objLinkList->GetCurrentItem();
if(is_object($link))
{
$o = $link->ParseTemplate($t);
$link->Increment("Hits", true);
}
}
return $o;
}
Now any time you call for
<inp:l_link_detail _ItemTemplate="..." /> it will increase that link counter.
Thanks.
[Edited By Dmitry on 08/15/05 9:32:35 AM]