Home Forums Plugin Support WP User Frontend Pro How to put confidential information in Forum

This topic is: not resolved

This topic contains 11 replies, has 3 voices, and was last updated by  saku4388 5 years, 6 months ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #8028

    saku4388
    Participant
    Post count: 23

    Hi Tareq.

    I am having an issue with my site and it need to be checked by you.

    But i don't think giving the site credentials and login details on forum is a good idea.

    Could you please tell me how to share something with you.

    Thanks ‘n' Regards,
    Shabir Virk

    #8029

    Mahi
    Member
    Post count: 1555

    Hello Shabir,

    Mark reply as private is totally safe and sound here. If you still dont want to share here please email to – support at wedevs dot com

    #8030

    saku4388
    Participant
    Post count: 23
    This reply has been marked as private.
    #8145

    saku4388
    Participant
    Post count: 23

    i m still waiting for the response

    #8150

    Tareq Hasan
    Keymaster
    Post count: 2831

    Can you paste your dashboard code in pastebin?

    Your own code's delete button will not work because it doesn't have the [wpuf_dashboad] shortcode and so the delete code won't execute. Try to copy the delete link code from the dashboard.

    #8190

    saku4388
    Participant
    Post count: 23

    Hi here it is

    http://pastebin.com/4VyPME8W

    i already copied both the edit and delete button from the “frontend-dashboard.php” and it is not working.

    I think it is because of the class “class WPUF_Frontend_Dashboard”

    Please solve this ASAP bro.

    Thanks ‘n' Regards,
    Shabir Virk

    #8191

    Tareq Hasan
    Keymaster
    Post count: 2831

    I think you didn't added nonce field wpuf_del in this format: wp_nonce_url( $del_url, 'wpuf_del' )

    #8192

    saku4388
    Participant
    Post count: 23

    Nop. i added check the line 101

    I am sure this is definitely the issue of class. because this is working

    http://pastebin.com/zE7ZhRvw

    this one is your frontend-dashboard.php file

    You can see clearly all the code is same the only thing which is different is my code is in the class WPUF_Frontend_Dashboard class

    #8194

    Tareq Hasan
    Keymaster
    Post count: 2831

    [php]if ( isset( $_REQUEST[‘action'] ) && $_REQUEST[‘action'] == "del" ) {
    $this->delete_post();
    }[/php]

    This only works when you use the shortcode, otherwise you've to copy the delete_post() function too to make it work.

    #8195

    saku4388
    Participant
    Post count: 23

    Tareq ๐Ÿ™

    It is not working.

    i tried but still the page refresh and the post wont delete.

    here is my code which i placed above my dashboard code.

    http://pastebin.com/y7E8p5dN

    could you please give me the code which i need to place or the function to work it.

    i can't live my site without this function.. so please help me out man. otherwise my whole project is gonna stuck ๐Ÿ™

    Thanks ‘n' Regards,
    Shabir Virk

    #8198

    Tareq Hasan
    Keymaster
    Post count: 2831

    Putting the delete code should just work fine. But I am not sure what are you doing wrong.

    [php]
    if ( isset( $_REQUEST[‘action'] ) && $_REQUEST[‘action'] == "del" ) {
    $nonce = $_REQUEST[‘_wpnonce'];
    if ( !wp_verify_nonce( $nonce, ‘wpuf_del' ) ) {
    die( "Security check" );
    }

    //check, if the requested user is the post author
    $maybe_delete = get_post( $_REQUEST[‘pid'] );

    if ( ($maybe_delete->post_author == $userdata->ID) || current_user_can( ‘delete_others_pages' ) ) {
    wp_delete_post( $_REQUEST[‘pid'] );

    //redirect
    $redirect = add_query_arg( array(‘msg' => ‘deleted'), get_permalink() );
    wp_redirect( $redirect );
    } else {
    echo ‘<div class="error">' . __( ‘You are not the post author. Cheeting huh!', ‘wpuf' ) . ‘</div>';
    }
    }
    [/php]

    #8210

    saku4388
    Participant
    Post count: 23

    I Solved the problem ๐Ÿ™‚

    Actually the problem was i export the posts from my site to localhost and don't know somehow the Forms are not attached with the post.

    So i manually select the post and give them a proper Form ID. and its work like charm. ๐Ÿ™‚

    The only thing i want to know is, the posts are not going in the wordpress trash.

    May i know why? or this is just happening to me.

    Actually i m providing the deals to the users and i just want when they delete it, the post will go into a category (in my case it is Expired) so search engine can still access it.

    Otherwise there are lots of pages with good SEO which will be deleted when a user delete a post.

    So if there is nothing that can move the post to the Expired Category, all i just need is it goes into the trash so i can then restore it and move into the Expired Category.

    Thanks ‘n' Regards,
    Shabir Virk

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘How to put confidential information in Forum’ is closed to new replies.