►Follow the steps◄ i ) Just copy the below code and paste it in the next block of the image <!--parser:xtscript-->
# settings
var $path=/my_images
var $filter=*.*
var $user=YOUR XTCAT USERNAME
var $key=YOUR XTCAT KEY
var $stars = 5
var $interval=Day
var $text1=Total Average Rating
var $text2=Not Yet Rated. Be The First.
var $text3=Your Rating
var $text4=Out Of
var $text5=Total Votes
var $button1= Rate It!
var $cookie_name = rndimg
var $cookie_expire = 2419200
# script
var $list=<xt:filelist sort_type="name" sort_dir="asc" folder="$path" template="|.file_name." per_page="" filter="$filter"/>|
var $number=<xt:filelist sort_type="name" sort_dir="asc" folder="$path" template="*" per_page="" filter="$filter"/>
var $number=call strlen $val=$number
var $cookie=call cookie::get $name=$cookie_name;$default=0
if $cookie
goto @loop3
endif
@loop1
var $cookie=call mt_rand $min=1;$max=$number
var $cookie=.$cookie.
var $count=1
@loop2
var $rand=call mt_rand $min=1;$max=$number
var $used=call strpos $haystack=.$cookie;$needle=.$rand.
if $used
goto @loop2
endif
var $cookie=$cookie$rand.
var $count=($count+1)
if $count < $number
goto @loop2
endif
var $cookie=$cookie$number
call cookie::set $name=$cookie_name; $val=$cookie;$expire=$cookie_expire;$force_current=1
@loop3
var $check_start=call strrpos $haystack=$cookie;$needle=.;
var $check=call substr $val=$cookie;$start=($check_start+1);
if not $check==$number
call cookie::set $name=$cookie_name; $val=0;$expire=-1;$force_current=1
goto @loop1
endif
var $num_end= call strpos $haystack=$cookie;$needle=.;$offset=1
var $num=call substr $val=$cookie;$start=1;$length=($num_end-1)
var $length= call strrpos $haystack=$cookie;$needle=.;
var $cookie=call substr $val=$cookie;$start=$num_end;$length=($length-$num_end+1)
var $cookie=$cookie$num.$number
call cookie::set $name=$cookie_name; $val=$cookie;$expire=$cookie_expire;$force_current=1
var $offset=1
var $entry_count=1
@loop4
var $entry_end= call strpos $haystack=$list;$needle=|;$offset=$offset
if $entry_count < $num
var $entry_count=($entry_count+1)
var $offset=($entry_end+1)
goto @loop4
endif
var $entry=call substr $val=$list;$start=$offset;$length=($entry_end-$offset)
var $call=call crc32 $val=$key$entry