Hello, dear tdbusinessc.
Thank you for contacting us and for reporting your problem.
To solve your problem, edit our Totaol-Soft-Poll-Widget.php file. Find code in line 183
echo $before_widget;
Please edit the code and write like this.
function newarray($val) {
$a=0;
foreach ($val as $key => $value)
{
if ($key != $a)
{
$val[$a]=$val[$key];
unset($val[$key]);
}
$a++;
}
return $val;
}
$arr = array();
$count = count($Total_Soft_Poll_Ans);
for ($i = 0; $i < $count; $i++) {
$NUM=rand(0, count($Total_Soft_Poll_Ans)-1);
array_push($arr,$Total_Soft_Poll_Ans[$NUM]);
$Total_Soft_Poll_Ans = array_filter($Total_Soft_Poll_Ans, function($elem) use($NUM){
return $elem != $NUM;
}, ARRAY_FILTER_USE_KEY);
$Total_Soft_Poll_Ans=newarray($Total_Soft_Poll_Ans);
}
$Total_Soft_Poll_Ans=$arr;
echo $before_widget;
Thank You.
Hi,
thank you for your anwser, but I don’t find
echo $before_widget;
in line 187 in Total-Soft-Poll-Widget.php file
I just have it in line 365.
Could you tell me what I have to do ?
Thierry
`<strike>answer</strike> response
Hello, dear tdbusinessc.
The code that we said, please put it after this code:
$ fonts_google = ‘https: //fonts.googleapis.com/css? family =’. $ this-> $ name ($ ts_family). ‘|’. $ this-> $ name ($ Total_Soft_Poll_Set [0] -> TotalSoft_Poll_Set_09 ). ‘|’. $ this -> $ name ($ Total_Soft_Poll_Theme [0] -> TotalSoft_Poll_5_Q_FF). ‘|’. $ this -> $ name ($ Total_Soft_Poll_Theme [0] -> TotalSoft_Poll_5_VB_FF). ‘|’. $ this -> $ name ($ Total_Soft_Poll_Theme_1 [0] -> TotalSoft_Poll_5_RB_FF). ”;
}
}
Thank You.