Support » Plugin: YOP Poll » how do i link to a php file in the template after voting

  • Resolved agent14

    (@agent14)


    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”>

    https://wordpress.org/plugins/yop-poll/

Viewing 1 replies (of 1 total)
  • Plugin Author YOP

    (@yourownprogrammer)

    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;

    Regards,

    YOP Team

Viewing 1 replies (of 1 total)
  • The topic ‘how do i link to a php file in the template after voting’ is closed to new replies.