WordPress.org

Ready to get started?Download WordPress

Forums

Dexs PM System
[resolved] Frontend Success Message (2 posts)

  1. Divyansh Kumar Singh
    Member
    Posted 11 months ago #

    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/

  2. SamBrishes
    Member
    Plugin Author

    Posted 11 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.