MyBB.de Forum

Normale Version: Umfrage beendet
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
ich nehme bezug auf hier

code in showthread.php

PHP-Code:
        // Decide what poll status to show depending on the status of the poll and whether or not the user voted already.
        if(isset($alreadyvoted) || isset($showresults))
        {
            if($alreadyvoted)
            {
                $pollstatus $lang->already_voted;

                if($mybb->usergroup['canundovotes'] == 1)
                {
                    eval("\$pollstatus .= \"".$templates->get("showthread_poll_undovote")."\";");
                }
            }
            else
            {
                $pollstatus $lang->poll_closed;
            }
            $lang->total_votes $lang->sprintf($lang->total_votes$totalvotes);
            eval("\$pollbox = \"".$templates->get("showthread_poll_results")."\";");
            $plugins->run_hooks("showthread_poll_results");
        }
        else
        {
            $closeon ' ';
            if($poll['timeout'] != 0)
            {
                $closeon $lang->sprintf($lang->poll_closesmy_date($mybb->settings['dateformat'], $expiretime));
            }

            $publicnote ' ';
            if($poll['public'] == 1)
            {
                $publicnote $lang->public_note;
            }

            eval("\$pollbox = \"".$templates->get("showthread_poll")."\";");
            $plugins->run_hooks("showthread_poll");
        }

    }
    else
    {
        $pollbox "";
    

was müßte man jetzt machen?