Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Tareq Hasan

    (@tareq1988)

    Sorry, the free version hasn’t the redirect customizing option the way you want.

    Where can I get the “PRO” version?

    Hi DancingPeppers,

    you can use following filter to redirect.

    add_filter(‘wpuf_after_post_redirect’, ‘some_callback’);
    function some_callback(){
    wp_redirect(get_permalink($page_id));
    }

    Hi pankajagrawal,

    Sorry, Im a dummy with WP… where do I need to add that filter?

    Thank you in advance

    Hi justanewguy,

    please add this code to yours themes functions.php file

    @ functions.php

    add_filter(‘wpuf_after_post_redirect’, ‘some_callback’);
    function some_callback(){
    wp_redirect(get_permalink($page_id));
    }

    some_callback can be
    your_theme_name_wpuf_after_post_redirect_func

    Hello pankajagrawal

    It is not working for me..

    Do I have to edit the code? how does it know which page I want to show?

    Thanks broo.

    Hi imagenparaweb,

    @ Do I have to edit the code?

    you have to add following code to functions.php of current theme

    add_filter(‘wpuf_after_post_redirect’, ‘some_callback’);
    function some_callback(){
    wp_redirect(get_permalink($page_id));
    }

    @ how does it know which page I want to show?

    $page_id in above code is for page which you want to show

    let me know if you have any issue

    thanks

    Good!

    I’ve already added that piece of code into my functions.php

    Now, do I have to edit that $page_id parameter? Maybe replace the actual page id I want to show?

    Is this piece of code ok? Look:

    add_filter(‘wpuf_after_post_redirect’, ‘some_callback’);
    function some_callback(){
    wp_redirect(get_permalink(43));
    }

    Thanks.

    please try this one

    add_filter( ‘wpuf_after_post_redirect’, ‘some_callback’, 10, 2 );

    function some_callback( $post_url, $post_id ) {
    $new_url=get_permalink(43);
    return $new_url;
    }

    and let me know result

    thanks

    That worked perfect!

    Thanks so so much pankajagrawal!

    It is solved for me now ??

    You are welcome, I’m glad I was able to help.

    another way is to put a thank you message directly in the same page
    i put a button on my home page called ‘post your video”

    <form method='post' action='http:yoursite/a-video-page/'  class='postvideo' onclick="javascript:void window.open('http:yoursite/a-video-page/','1402582569248','width=500,height=500,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=1,left=0,top=0');return false;">
            <button class='videopost'><blink>your Video</blink></button>
        </form>

    this display on click a pop up with ma page “your video” inside of it.
    I created the page in the back office and putted the shortcode: [wpuf_addpost]

    and when user click on send button thanks to the following code, they see a ‘”thank youmessage in the same popup screen’

    add_filter(‘wpuf_after_post_redirect’, ‘some_callback’);
    function some_callback(){

    echo '<div class="success">' . __('thanks!!', 'wpuf') . '</div>';
    }

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Redirect / Success Message’ is closed to new replies.