Documentation index
- ReadMe
- Things To Know
-
- Thumbs CMS
- Admin Area
- Traffic Rules
- New Style Rotation
- Custom Galleries
- Tube Sites
- Old Style Rotation
-
Rotation parameter
Default URLs like like http://domain/gallery/cool/index.html?12x34x567, where 12x34x567 is so called rotation parameter ie that's a way for the script to understand where a click happens (you can think of it as google's tracking parameters)
You have 3 options to work with it.
1. You can use old style link like http://domain/gallery/cool/index.html?12x34x567 and that's a 100% guarantee that the rotation parameter will be passed to the script
2. Pass it via AJAX call The parameter will be passed only if you have JS on. Which is good in some way.
Base template
<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>
3. No rotation parameter at all - that's a new one.
Rotation - Settings - Use Magic Rotation Parameter
SmartCJ will try to guess where each click has been clicked and the script does it extremely good. Give it a try.
So let's see what link options we have for “magic rotation”:
The rule of the thumb : a click can be counted if