Support » Plugin: Dexs PM System » Frontend Success Message

  • Resolved Divyansh Kumar Singh

    (@divyansh2492)



    After clicking on the the Send button it’s not showing any message neither it redirects back to inbox. It simply reloads the page with same message i wrote in the text area but message is actually sent to the respective user…

    Backend works fine…though.
    I’m using 3.4.2 wordpress…

    Btw very nice plugin though! Waiting for your response.

    http://wordpress.org/plugins/dexs-pm-system/

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

    (@sambrishes)

    Hello.

    I’m sorry to have kept you waiting so long.

    The Bugfix:
    Bugfix (Download)
    Download this ZIP Archive and unpack it in the plugins directory.

    OR

    Here are the lines you must change, if you want to do this manually:

    dexs-pm-system.php:327

    # OLD LINE:
    header("Location: $success_url");
    # NEW LINE:
    header("Location: $success_url"); die();

    I also change the line above, but that’s not really important.

    dexs-pm-system.php:326

    # OLD LINE:
    if(!isset($GLOBALS['pm_error'])){
    # NEW LINE:
    if(!isset($GLOBALS['pm_error']) || empty($GLOBALS['pm_error'])){

    If you have write the shortcode [pmsystem] on a Post and not on a page, so you must add the following lines (don’t change anything):

    /include/class.dexs_pmsystem.php:568

    # ADD
    $pages = get_posts(array('sort_order' => 'ASC',	'sort_column' => 'post_content', 'post_status' => 'publish'));
    if(empty($page_id)){
    	foreach($pages AS $page){
    		if(preg_match("#(.*)\[pm_system\](.*)#", $page->post_content)){
    			$page_id[] = $page->ID;
    		}
    	}
    }

    That’s all 🙂
    Thank you for using my plugin and thanks for the bug report.

    Have a nice day.

    Sincerely,
    Sam.

Viewing 1 replies (of 1 total)
  • The topic ‘Frontend Success Message’ is closed to new replies.