• Hi

    I’m using a simple form for registered used to submit without moderation.

    The default sequence is:

    fill out the form -> submit -> “Your submission “test8″ has been automatically published. You can see it here. Thank you for using this service.” -> view post

    I would like to make two changes: (1)skip the acknowledgement and (2)go directly to the blog rather than the post (which would show my new post as the first post)

    ie

    submit -> Blog.

    I have a static home page and the blog is accessed from a tab.

    So far I have tried this:

    change line 168 of tdomf-form-post.php

    // $redirect_url = $_POST[‘redirect’];
    $redirect_url = ‘/?page_id=35’;

    This works fine as regards my objectives 1&2, but the next time I access the form I somehow see the “Your submission xxx has been automatically published….” instead of the form.

    Is there a better solution? / what have I done wrong?

    Many thanks for a fantastic plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • On the options for the form, you can set it to see the acknowledgement or get redirect to the post. Look for the option “Redirect to Published Post” under “Turn On/Off Moderation”. If you select this, and with you’re hack, it should do what you want.

    mmmhhhh – it does not work for me…
    $redirect_url = ‘whatever.com’;
    i am always getting redirected to the post…but i want redirectet to my blog-index.
    i have turnt on: »redirect to published post«
    when i turn off redirect to published post: i got the some prob like erintech »This works fine as regards my objectives (…), but the next time I access the form I somehow see the “Your submission xxx has been automatically published….” instead of the form.«
    Any idea?

    that kills me.

    Before applying the hack, try to turn on redirect to published post and make sure it redirects to a submitted post. Once thats up, try applying the hack. Please be aware though that what erintech was doing, only works on non-AJAX forms. If you use AJAX, you’ll need to modify tdomf-ajax-form.php.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: TDO Mini Forms] Redirect to blog after submit?’ is closed to new replies.