Page 1 of 1

Не считаются клики по тумбам

Posted: Tue Dec 29, 2015 4:39 pm
by alientraf
здравствуйте, что не так?

index.php, rot_in.php, out.php, common.php - эти файлы в корне домена.
вид ссылок сабтамплейта индекса:

<a href="/gallery/<!--GALLERY_SLUG-->/index.html" rot_id='<!--THUMB_LINK-->' title="<!--ALT-->"><img src="<!--THUMB_URL-->" class="t_img" /></a>

код

Code: Select all

<script type="text/javascript" src="/scj/includes/js/jquery.js"></script> 
 <script type="text/javascript"> 
 $(document).ready(function(){ 
    $('a[rot_id]').each(function(){ 
          $(this).bind('click', function(){ 
              if ($(this).attr('href').indexOf('?') == -1) $(this).attr('href', $(this).attr('href')+ '?' + $(this).attr('rot_id')); 
          }); 
    }); 
 }); 

 </script>
присутствует

на дефолтной странице админки есть пару сообщений:
You are behind proxy. This is not an error if you really use proxy. In other case check your SERVER settings. If you use nginx - check WIKI article 'nginx'
You do not use any modern cache engine - This is not an error. Everything will work, but default cache engine is filecache and it's a bit slow compared to Couchbase or Redis. It's a good idea to use them to improve your server's performance.
Mysql Table Engine: looks like mysql DB tables (rot_galleries, rot_gallery_stats) are not of InnoDB format. it's good idea to tune mysql and use innodb table format for rot_* tables. Please, read wiki for mysql tuning hints.

контент - custom_flv, сграбленный со своего туба
_____
Беда - не считаются клики по тумбам. Со всем остальным все ок.
Где рыться?

спасибо

Re: Не считаются клики по тумбам

Posted: Tue Dec 29, 2015 10:38 pm
by alientraf
alientraf wrote:You are behind proxy. This is not an error if you really use proxy. In other case check your SERVER settings. If you use nginx - check WIKI article 'nginx'
админ ответил поправить это.
теперь все работает.
спасибо, вопрос решен)

[offtopic] админ - имел ввиду - админ смартсижа, спасибо за помощь [/offtopic]

Re: Не считаются клики по тумбам

Posted: Wed Dec 30, 2015 6:48 am
by admin
Там при неправильной настройке все клики получают один и тот же ИП и его перестает считать.