Skip to content
Permalink
Browse files

do not count safaris in user's rgional found starts; updates #959

  • Loading branch information...
following5 committed May 3, 2016
1 parent b6f0e86 commit 96f7ddb186e16a065a737f3ed3a1f682d3059cd6
Showing with 6 additions and 2 deletions.
  1. +2 −2 htdocs/templates2/ocstyle/res_userstats.tpl
  2. +4 −0 htdocs/viewprofile.php
@@ -64,8 +64,8 @@
{$region.count}  
</td>
<td class="default" style="padding:0">
{if !$region.state}<a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=0&amp;output=HTML&amp;sort=byname&amp;finderid={$userid}&amp;searchbyfinder=&amp;logtype=1,7&amp;country={$region.countrycode}&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}">{$region.country}</a>{else}{$region.country}{/if}
{if $region.state}&gt; <a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=0&amp;output=HTML&amp;sort=byname&amp;finderid={$userid}&amp;searchbyfinder=&amp;logtype=1,7&amp;adm2={$region.adm2code}&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}">{$region.state}</a>{/if}
{if !$region.state}<a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=0&amp;output=HTML&amp;sort=byname&amp;finderid={$userid}&amp;searchbyfinder=&amp;logtype=1,7&amp;country={$region.countrycode}&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}&amp;cache_attribs_not=61">{$region.country}</a>{else}{$region.country}{/if}
{if $region.state}&gt; <a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=0&amp;output=HTML&amp;sort=byname&amp;finderid={$userid}&amp;searchbyfinder=&amp;logtype=1,7&amp;adm2={$region.adm2code}&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}&amp;cache_attribs_not=61">{$region.state}</a>{/if}
&nbsp;<img src="images/flags/{$region.countrycode|lower}.gif" />
</td>
</tr>
@@ -128,7 +128,9 @@
INNER JOIN `cache_location` ON `cache_location`.`cache_id`=`cache_logs`.`cache_id`
LEFT JOIN `countries` ON `countries`.`short`=`caches`.`country`
LEFT JOIN `sys_trans_text` `stt` ON `stt`.`lang`='&2' AND `stt`.`trans_id`=`countries`.`trans_id`
LEFT JOIN `caches_attributes` `ca` ON `ca`.`cache_id`=`caches`.`cache_id` AND `ca`.`attrib_id`=61
WHERE `cache_logs`.`user_id`='&1' AND `cache_logs`.`type` IN (1,7)
AND `ca`.`attrib_id` IS NULL
GROUP BY `country`, `state`
ORDER BY `count` DESC, `country`, `state`",
$userid, $opt['template']['locale'], $login->getUserCountry());
@@ -173,7 +175,9 @@
INNER JOIN `cache_location` ON `cache_location`.`cache_id`=`cache_logs`.`cache_id`
LEFT JOIN `countries` ON `countries`.`short`=`caches`.`country`
LEFT JOIN `sys_trans_text` `stt` ON `stt`.`lang`='&2' AND `stt`.`trans_id`=`countries`.`trans_id`
LEFT JOIN `caches_attributes` `ca` ON `ca`.`cache_id`=`caches`.`cache_id` AND `ca`.`attrib_id`=61
WHERE `cache_logs`.`user_id`='&1' AND `cache_logs`.`type` IN (1,7)
AND `ca`.`attrib_id` IS NULL
GROUP BY `country`, `state`
ORDER BY `count` DESC, `country`, `state`",
$userid, $opt['template']['locale'], $login->getUserCountry());

0 comments on commit 96f7ddb

Please sign in to comment.
You can’t perform that action at this time.