MyBB.de Forum
Umfrage beendet - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Anpassungen (https://www.mybb.de/forum/forum-47.html)
+--- Forum: Plugin-Diskussionen (https://www.mybb.de/forum/forum-38.html)
+--- Thema: Umfrage beendet (/thread-32643.html)



Umfrage beendet - hkkp - 17.09.2015

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?