YOP Poll
[resolved] how do i link to a php file in the template after voting (2 posts)

  1. agent14
    Posted 1 year ago #

    on the after vote page i would like to have a mini poll of my own, it's been designed already, but i cant get it sorted. how do i call the php file? i've tried putting it in different locations and it isnt working...help. thanks

    an example of what i mean is below

    <form name="web_form" id="web_form" method="post" action= "call.php">


  2. YOP
    Plugin Author

    Posted 1 year ago #

    Hi agent14,

    If can add a poll of your own in the inc/yop-poll-model.php file, specifically at the end of return_poll_html function.

    In this function, before return $template; add
    if( $this->is_voted() ) { } and between the braces add

    $template .= function_that_returns_custom_poll(); so in the end you'll have

    if( $this->is_voted() ) {
    $template .= function_that_returns_custom_poll(); }
    return $template;


    YOP Team

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.