Jump to content

Poll custom url


Go to solution Solved by bfarber,

Recommended Posts

Hello,

\system\Poll\Poll.php

    /**
     * @brief    URL to use instead of \IPS\Request::i()->url()
     */
    public $url;

 

            $output        = $template( $this, ( $this->url ?: \IPS\Request::i()->url() ) );


\applications\core\dev\html\global\global\poll.phtml

\applications\core\dev\html\global\global\pollForm.phtml

You're use the $url variable for all buttons but not for form action.

<form accept-charset='utf-8' class="ipsForm {$class}" action="{$action}"


It causes issues


E.g. in the Forum Poll Widget you are use the $url.

\applications\forums\dev\html\front\widgets\pollFormWidget.phtml

<form accept-charset='utf-8' class="ipsForm {$class}" action="{$url->setQueryString( 'do', 'widgetPoll' )}"


 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...