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

Post Reply
alientraf
Posts: 346
Joined: Sat Jan 25, 2014 3:48 am

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

Post 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, сграбленный со своего туба
_____
Беда - не считаются клики по тумбам. Со всем остальным все ок.
Где рыться?

спасибо
alientraf
Posts: 346
Joined: Sat Jan 25, 2014 3:48 am

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

Post 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]
Last edited by alientraf on Thu Dec 31, 2015 12:26 am, edited 2 times in total.
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

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

Post by admin »

Там при неправильной настройке все клики получают один и тот же ИП и его перестает считать.
Don't forget to run script update
Post Reply