Yeah that's your problem,voting should be used on the client.My voting is set to make it so when you go to url/index it makes you vote.
<?php
require_once 'findretros_config.php';
require_once 'findretros.php';
$FindRetros = new FindRetros();
if($FindRetros->hasClientVoted()) {
echo 'You have voted!';
}else{
// echo 'You have yet to vote!';
$FindRetros->redirectClientToVote();
}
Easier then this though is make your Enter Client -> Retroslist -> site/client.phpNot sure never used this new API, but im guessing you only need to add this code to your client.php
Code:<?php require_once 'findretros_config.php'; require_once 'findretros.php'; $FindRetros = new FindRetros(); if($FindRetros->hasClientVoted()) { echo 'You have voted!'; }else{ // echo 'You have yet to vote!'; $FindRetros->redirectClientToVote(); }