Hello,
I have category page https://www.domain.com/fr/category/Wife/ with thumbs outgoing to xhamster gallery urls, for example: https://xh.video/x/xheatsv
I clicked on some thumbs. After waiting few minutes, when I check Admin - List Thumbs stats, I see Thumbs Shows, but not Thumbs Clicks.
I put this code in <head>:
<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>
And this is a thumb link:
<a title="<!--ALT-->" href="<!--URL-->" rot_id='<!--THUMB_LINK-->' rel="nofollow" target="_blank"><img class="lazy" src="<!--THUMB_URL-->" alt="<!--ALT-->"></a>
I sent you an example of category page in pm.
Thanks for your help.
Gallery Thumb Clicks not counted
Re: Gallery Thumb Clicks not counted
Don't forget to run script update
Re: Gallery Thumb Clicks not counted
It track views but still doesn't track clicks.
- I just updated script to latest version.
- I enabled SSI support on nginx conf.
- <!--#include virtual=”/scj/cgi/include.php”--> is working correctly ( it doesn't show this code, it shows referers code )
- Cronjob is running correctly
- I enabled out.php debut comments and created headers.log ( chmod 666 ) but the file remain empty.
In common.php, I setup lang redirect. So when I go to domain.com/out.php it goes redirect to domain.com/fr/out.php ( which doesn't exist ). Here is the code in common.php:
<?php
if (!defined('BASE_DIR')) define('BASE_DIR', '/data/domain.com/html/scj/');
$path_to_data = BASE_DIR . "/data/";
if (!isset($_SERVER['HTTP_REFERER'])) $_SERVER['HTTP_REFERER'] = '';
if (!isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) $_SERVER['HTTP_ACCEPT_LANGUAGE'] = '';
if (!isset($_GET['force_lng'])) $_GET['force_lng'] = '';
if (!strstr($_SERVER['HTTP_REFERER'], 'domain.com') and !$_GET['force_lng']) {
$str = $_SERVER['REQUEST_URI']; $str2 = substr($str, 3);
if (strstr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 'fr')) {
header("Location: http://www.domain.com/fr".$str."");
exit;
} elseif (strstr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 'de')) {
header("Location: http://www.domain.com/de".$str."");
exit;
} elseif (strstr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 'en')) {
header("Location: http://www.domain.com/en".$str."");
exit;
etc....
} else {
header("Location: http://www.domain.com/en".$str."");
exit;
}
}
How can i redirect except on domain.com/out.php and domain.com/scj/cgi/out.php?
Thank you.
- I just updated script to latest version.
- I enabled SSI support on nginx conf.
- <!--#include virtual=”/scj/cgi/include.php”--> is working correctly ( it doesn't show this code, it shows referers code )
- Cronjob is running correctly
- I enabled out.php debut comments and created headers.log ( chmod 666 ) but the file remain empty.
In common.php, I setup lang redirect. So when I go to domain.com/out.php it goes redirect to domain.com/fr/out.php ( which doesn't exist ). Here is the code in common.php:
<?php
if (!defined('BASE_DIR')) define('BASE_DIR', '/data/domain.com/html/scj/');
$path_to_data = BASE_DIR . "/data/";
if (!isset($_SERVER['HTTP_REFERER'])) $_SERVER['HTTP_REFERER'] = '';
if (!isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) $_SERVER['HTTP_ACCEPT_LANGUAGE'] = '';
if (!isset($_GET['force_lng'])) $_GET['force_lng'] = '';
if (!strstr($_SERVER['HTTP_REFERER'], 'domain.com') and !$_GET['force_lng']) {
$str = $_SERVER['REQUEST_URI']; $str2 = substr($str, 3);
if (strstr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 'fr')) {
header("Location: http://www.domain.com/fr".$str."");
exit;
} elseif (strstr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 'de')) {
header("Location: http://www.domain.com/de".$str."");
exit;
} elseif (strstr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 'en')) {
header("Location: http://www.domain.com/en".$str."");
exit;
etc....
} else {
header("Location: http://www.domain.com/en".$str."");
exit;
}
}
How can i redirect except on domain.com/out.php and domain.com/scj/cgi/out.php?
Thank you.
Re: Gallery Thumb Clicks not counted
Also here are my nginx rewrites:
location / {
if (!-e $request_filename) {
rewrite "^/([^/]{2})/(.*)$" /$2?force_lng=$1&$query_string ;
}
}
location = /best.html {
rewrite ^(.*)$ /scj/tube/?force_template=content_list&order=ctr break;
}
location = /recent.html {
rewrite ^(.*)$ /scj/tube/?force_template=content_list&order=date break;
}
location /gallery {
rewrite ^/gallery/([^/]+)/index.html$ /scj/tube/index.php?force_template=content_page&slug=$1 ;
rewrite "^/gallery/([^/]+)/([0-9]{1,2}).html$" /scj/tube/index.php?force_template=content_page&slug=$1&item_id=$2 ;
}
location /category {
rewrite ^/category/([^/]+)/$ /scj/tube/index.php?force_template=content_list&group_name=$1&order=ctr ;
rewrite ^/category/([^/]+)/([^/]+)/([^/]+)/$ /scj/tube/index.php?force_template=content_list&group_name=$1&order=$2&page=$3 ;
}
location /tag {
rewrite ^/tag/([^/]+)/([^/]+)/([^/]+)/$ /scj/tube/index.php?tag=$1&page=$3&order=$2 ;
rewrite ^/tag/([^/]+)/([^/]+)/$ /scj/tube/index.php?tag=$1&page=$2 ;
rewrite ^/tag/([^/]+)/$ /scj/tube/index.php?tag=$1 ;
}
location /models {
rewrite ^/models/$ /scj/tube/index.php?force_template=model_list ;
}
location /model {
rewrite ^/model/([^/]+)/$ /scj/tube/index.php?model_slug=$1&force_template=model_galleries ;
rewrite ^/model/([^/]+)/([^/]+)/([^/]+)/$ /scj/tube/index.php?model_slug=$1&force_template=model_galleries&order=$2&page=$3 ;
}
location /search {
rewrite ^/search/([^/]+)/([^/]+)/$ /scj/tube/index.php?search=$1&force_template=content_search&page=$2 ;
rewrite ^/search/([^/]+)/([^/]+)/([^/]+)/$ /scj/tube/index.php?search=$1&force_template=content_search&order=$2&page=$3 ;
rewrite ^/search/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ /scj/tube/index.php?search_type=$1&search=$2&force_template=content_search&order=$3&page=$4 ;
rewrite ^/search/([^/]+)/$ /scj/tube/index.php?search=$1&force_template=content_search ;
}
location /site {
rewrite ^/site/([^/]+)/$ /scj/tube/index.php?force_template=sponsor_page&sponsor_slug=$1&order=ctr ;
rewrite ^/site/([^/]+)/([^/]+)/([^/]+)/$ /scj/tube/index.php?force_template=sponsor_page&sponsor_slug=$1&order=$2&page=$3 ;
}
location / {
if (!-e $request_filename) {
rewrite "^/([^/]{2})/(.*)$" /$2?force_lng=$1&$query_string ;
}
}
location = /best.html {
rewrite ^(.*)$ /scj/tube/?force_template=content_list&order=ctr break;
}
location = /recent.html {
rewrite ^(.*)$ /scj/tube/?force_template=content_list&order=date break;
}
location /gallery {
rewrite ^/gallery/([^/]+)/index.html$ /scj/tube/index.php?force_template=content_page&slug=$1 ;
rewrite "^/gallery/([^/]+)/([0-9]{1,2}).html$" /scj/tube/index.php?force_template=content_page&slug=$1&item_id=$2 ;
}
location /category {
rewrite ^/category/([^/]+)/$ /scj/tube/index.php?force_template=content_list&group_name=$1&order=ctr ;
rewrite ^/category/([^/]+)/([^/]+)/([^/]+)/$ /scj/tube/index.php?force_template=content_list&group_name=$1&order=$2&page=$3 ;
}
location /tag {
rewrite ^/tag/([^/]+)/([^/]+)/([^/]+)/$ /scj/tube/index.php?tag=$1&page=$3&order=$2 ;
rewrite ^/tag/([^/]+)/([^/]+)/$ /scj/tube/index.php?tag=$1&page=$2 ;
rewrite ^/tag/([^/]+)/$ /scj/tube/index.php?tag=$1 ;
}
location /models {
rewrite ^/models/$ /scj/tube/index.php?force_template=model_list ;
}
location /model {
rewrite ^/model/([^/]+)/$ /scj/tube/index.php?model_slug=$1&force_template=model_galleries ;
rewrite ^/model/([^/]+)/([^/]+)/([^/]+)/$ /scj/tube/index.php?model_slug=$1&force_template=model_galleries&order=$2&page=$3 ;
}
location /search {
rewrite ^/search/([^/]+)/([^/]+)/$ /scj/tube/index.php?search=$1&force_template=content_search&page=$2 ;
rewrite ^/search/([^/]+)/([^/]+)/([^/]+)/$ /scj/tube/index.php?search=$1&force_template=content_search&order=$2&page=$3 ;
rewrite ^/search/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ /scj/tube/index.php?search_type=$1&search=$2&force_template=content_search&order=$3&page=$4 ;
rewrite ^/search/([^/]+)/$ /scj/tube/index.php?search=$1&force_template=content_search ;
}
location /site {
rewrite ^/site/([^/]+)/$ /scj/tube/index.php?force_template=sponsor_page&sponsor_slug=$1&order=ctr ;
rewrite ^/site/([^/]+)/([^/]+)/([^/]+)/$ /scj/tube/index.php?force_template=sponsor_page&sponsor_slug=$1&order=$2&page=$3 ;
}
Re: Gallery Thumb Clicks not counted
I went to https://www.domain.com/fr/category/Wife/ and clicked on https://xh.video/x/xh0q5Au?54x2x102xl1
The header txt file is here: https://filebin.net/85wx9n6h41ng2xci
You know the domain from pm.
Thank you.
The header txt file is here: https://filebin.net/85wx9n6h41ng2xci
You know the domain from pm.
Thank you.
Re: Gallery Thumb Clicks not counted
i see, you have direct links to hr.video
how do you expect script to count clicks in this case?
how do you expect script to count clicks in this case?
Don't forget to run script update
Re: Gallery Thumb Clicks not counted
The only solution i guess is a link to out.php?url=<!--URL-->
The problem is domain.com/out.php is redirected to to domain.com/fr/out.php which goes to 404 not found.
Please check my url rewrite above.
Thank you.
The problem is domain.com/out.php is redirected to to domain.com/fr/out.php which goes to 404 not found.
Please check my url rewrite above.
Thank you.
Re: Gallery Thumb Clicks not counted
why dont you use regulaк links like /gallery/slug/index.htm and so on?
Don't forget to run script update
Re: Gallery Thumb Clicks not counted
Because it would go to the content_page template with the embed instead of the xhamster url.
Thank you.
Thank you.