Hi Gang


I give you the fix of the error show_error_msg which is for all the errors on the BD of TT, but this error works well for the frames but is much too big for the block polls_block.
Error on your polls_block.php file is dead when you have made a vote and update yourself later and this error is the one to tell you that you have already voted.


[color=rgb(226, 80, 65)]* Before correcting always make a backup ![/color]


In[color=rgb(251, 160, 38)] functions.php[/color] search :

function show_error_msg($title, $message, $wrapper = "1") {
   if ($wrapper) {
       ob_start();
       ob_clean();
       stdhead($title);
   }
   begin_frame("<font class='error'>". htmlspecialchars($title) ."</font>");
   print("<center><b>" . $message . "</b></center>\n");
   end_frame();

   if ($wrapper){
       stdfoot();
       die();
   }
}



Replace for :

// Erreur Block by spiritblue
function block_error_msg($title, $message, $wrapper = "1") {
   if ($wrapper) {
       ob_start();
       ob_clean();
       stdhead($title);
   }
   begin_error_block("<font class='error'>". htmlspecialchars($title) ."</font>");
   print("<center><b>" . $message . "</b></center>\n");
   end_error_block();

   if ($wrapper){
       stdfoot();
       die();
   }
}

// Erreur frame
function show_error_msg($title, $message, $wrapper = "1") {
   if ($wrapper) {
       ob_start();
       ob_clean();
       stdhead($title);
   }
   begin_error("<font class='error'>". htmlspecialchars($title) ."</font>");
   print("<center><b>" . $message . "</b></center>\n");
   end_error();

   if ($wrapper){
       stdfoot();
       die();
   }
}


[color=rgb(209, 72, 65)]WARNING :[/color] this part is not the same for various themes of NIKKBU or me

(here I give you the correction done with the default name theme)

Open [color=rgb(250, 197, 28)]block[/color][color=rgb(251, 160, 38)] / polls block.php[/color] and search 4 times :
show_error_msg


Change by :
block_error_msg


There are some themes you need to edit on your block.php file
...if need help I'm here to help you ;)