Page 1 of 1
Hide rotation parameter
Posted: Fri Sep 04, 2015 6:30 am
by DanS2
I know it is somewhere, since I got it from the forum or the wiki before, but I can not find the javascript code for the rotation parameter.
Is the javascript code from the tcms version working with 1.51?
Can I use this code on 1.51?
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(){
$.get('/scj/cgi/out.php',
{
'link': 'images/' + $(this).attr('rot_id'),
'url': 'counter',
'click_count': 'rotation_only'
},
function(data) {
}
);
});
});
});
</script>
<thumb num=1-10>
<a href="/gallery/<!--GALLERY_SLUG-->/index.html" target=_blank rot_id='<!--THUMB_LINK-->'> text </a>
<br>
</thumb>
Re: Hide rotation parameter
Posted: Fri Sep 04, 2015 6:36 am
by DanS2
Ups, now I found it
Code: Select all
<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>
Anyway, can I use the tcms script with 1.51?
Re: Hide rotation parameter
Posted: Sat Sep 05, 2015 3:05 am
by DanS2
I think both codes work, but if I am using the first one from the tcms wiki I get counted every click 2x in my external trade script (TE3). I will post the headers:
Code: Select all
http://www.assbetty.com/porn/cgi/out.php?link=images%2F5x5x32182&url=counter&click_count=rotation_only
GET /porn/cgi/out.php?link=images%2F5x5x32182&url=counter&click_count=rotation_only HTTP/1.1
Host: www.assbetty.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:40.0) Gecko/20100101 Firefox/40.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
X-Requested-With: XMLHttpRequest
Referer: http://www.assbetty.com/category/Anal/?4x1x32749
Cookie: cbd1c87a1c1fd8fcb6a2e29d51022085=noref; e1eebefeed714fda5278dcf4af99a7f4=noref; 90eb237f8838f7b0da009f6cf3c6f62a=1441422062; 3e7abc3c700cf09e549b68a4cb1098bf=noref%7C; 50b4c0c348e79c95729a5b03dc126e68=1; a505c8b41d8599b99892da16de5d8dce=1; a6f12=bm9yZWZ8fDEwMHwyfDB8MHxub25lfDA6; a6f12b=1441422080; _ga=GA1.2.239137235.1441422065; _gat=1
Connection: keep-alive
HTTP/1.1 302 Found
Server: nginx/1.8.0
Date: Sat, 05 Sep 2015 03:01:53 GMT
Content-Type: text/html
Content-Length: 0
Connection: keep-alive
X-Powered-By: PHP/5.4.43
Location: /xxx/out.php?l=video&u=counter
----------------------------------------------------------
http://www.assbetty.com/video/40x-anal-compilation/index.html?5x5x32182
GET /video/40x-anal-compilation/index.html?5x5x32182 HTTP/1.1
Host: www.assbetty.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:40.0) Gecko/20100101 Firefox/40.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Referer: http://www.assbetty.com/category/Anal/?4x1x32749
Cookie: cbd1c87a1c1fd8fcb6a2e29d51022085=noref; e1eebefeed714fda5278dcf4af99a7f4=noref; 90eb237f8838f7b0da009f6cf3c6f62a=1441422062; 3e7abc3c700cf09e549b68a4cb1098bf=noref%7C; 50b4c0c348e79c95729a5b03dc126e68=1; a505c8b41d8599b99892da16de5d8dce=1; a6f12=bm9yZWZ8fDEwMHwyfDB8MHxub25lfDA6; a6f12b=1441422080; _ga=GA1.2.239137235.1441422065; _gat=1
Connection: keep-alive
HTTP/1.1 302 Found
Server: nginx/1.8.0
Date: Sat, 05 Sep 2015 03:01:54 GMT
Content-Type: text/html
Content-Length: 0
Connection: keep-alive
X-Powered-By: PHP/5.4.43
Location: /xxx/out.php?l=video&u=%2Fvideo%2F40x-anal-compilation%2Findex.html
----------------------------------------------------------
http://www.assbetty.com/xxx/out.php?l=video&u=counter
GET /xxx/out.php?l=video&u=counter HTTP/1.1
Host: www.assbetty.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:40.0) Gecko/20100101 Firefox/40.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Referer: http://www.assbetty.com/category/Anal/?4x1x32749
X-Requested-With: XMLHttpRequest
Cookie: cbd1c87a1c1fd8fcb6a2e29d51022085=noref; e1eebefeed714fda5278dcf4af99a7f4=noref; 90eb237f8838f7b0da009f6cf3c6f62a=1441422062; 3e7abc3c700cf09e549b68a4cb1098bf=noref%7C; 50b4c0c348e79c95729a5b03dc126e68=1; a505c8b41d8599b99892da16de5d8dce=1; a6f12=bm9yZWZ8fDEwMHwyfDB8MHxub25lfDA6; a6f12b=1441422080; _ga=GA1.2.239137235.1441422065; _gat=1
Connection: keep-alive
HTTP/1.1 302 Found
Server: nginx/1.8.0
Date: Sat, 05 Sep 2015 03:01:54 GMT
Content-Type: text/html
Content-Length: 0
Connection: keep-alive
X-Powered-By: PHP/5.4.43
Set-Cookie: a6f12=bm9yZWZ8fDEwMHwyfDF8MXxub25lfDA6; expires=Sun, 06-Sep-2015 03:01:54 GMT; path=/
Location: counter
----------------------------------------------------------
http://www.assbetty.com/xxx/out.php?l=video&u=%2Fvideo%2F40x-anal-compilation%2Findex.html
GET /xxx/out.php?l=video&u=%2Fvideo%2F40x-anal-compilation%2Findex.html HTTP/1.1
Host: www.assbetty.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:40.0) Gecko/20100101 Firefox/40.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Referer: http://www.assbetty.com/category/Anal/?4x1x32749
Cookie: cbd1c87a1c1fd8fcb6a2e29d51022085=noref; e1eebefeed714fda5278dcf4af99a7f4=noref; 90eb237f8838f7b0da009f6cf3c6f62a=1441422062; 3e7abc3c700cf09e549b68a4cb1098bf=noref%7C; 50b4c0c348e79c95729a5b03dc126e68=1; a505c8b41d8599b99892da16de5d8dce=1; a6f12=bm9yZWZ8fDEwMHwyfDB8MHxub25lfDA6; a6f12b=1441422080; _ga=GA1.2.239137235.1441422065; _gat=1
Connection: keep-alive
HTTP/1.1 302 Found
Server: nginx/1.8.0
Date: Sat, 05 Sep 2015 03:01:54 GMT
Content-Type: text/html
Content-Length: 0
Connection: keep-alive
X-Powered-By: PHP/5.4.43
Set-Cookie: a6f12=bm9yZWZ8fDEwMHwyfDF8MXxub25lfDA6; expires=Sun, 06-Sep-2015 03:01:54 GMT; path=/
Location: /video/40x-anal-compilation/index.html
----------------------------------------------------------
http://www.assbetty.com/xxx/counter
GET /xxx/counter HTTP/1.1
Host: www.assbetty.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:40.0) Gecko/20100101 Firefox/40.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Referer: http://www.assbetty.com/category/Anal/?4x1x32749
X-Requested-With: XMLHttpRequest
Cookie: cbd1c87a1c1fd8fcb6a2e29d51022085=noref; e1eebefeed714fda5278dcf4af99a7f4=noref; 90eb237f8838f7b0da009f6cf3c6f62a=1441422062; 3e7abc3c700cf09e549b68a4cb1098bf=noref%7C; 50b4c0c348e79c95729a5b03dc126e68=1; a505c8b41d8599b99892da16de5d8dce=1; a6f12=bm9yZWZ8fDEwMHwyfDF8MXxub25lfDA6; a6f12b=1441422080; _ga=GA1.2.239137235.1441422065; _gat=1
Connection: keep-alive
HTTP/1.1 404 Not Found
Server: nginx/1.8.0
Date: Sat, 05 Sep 2015 03:01:54 GMT
Content-Type: text/html; charset=iso-8859-1
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
Content-Encoding: gzip
----------------------------------------------------------
http://www.assbetty.com/video/40x-anal-compilation/index.html