Plugin Directory

Changeset 2180653


Ignore:
Timestamp:
10/26/2019 02:38:57 PM (6 years ago)
Author:
magent
Message:

Character submit/approval emails converted to HTML

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vampire-character/trunk/inc/adminpages/characters.php

    r1706266 r2180653  
    21492149    if ($showform) {
    21502150    ?>
    2151     <form id="new-<?php print $type; ?>" method="post" action='<?php print htmlentities($current_url); ?>'>
     2151    <form id="new-approve-form" method="post" action='<?php print htmlentities($current_url); ?>'>
    21522152        <input type="hidden" name="characterID" value="<?php print $characterID; ?>" />
    21532153        <table style='width:500px'>
     
    24472447                //print_r($userdata);
    24482448            }
     2449        print "23/";
    24492450           
    24502451        }
     
    26682669    $url = add_query_arg('reference', $ref, vtm_get_stlink_url('viewCharGen', true));   
    26692670   
    2670     $userbody = "Hello $player,
    2671    
    2672 The Storytellers have provided feedback on $name. Please review the comments and resubmit your character once any issues have been resolved.
    2673    
    2674 '" . stripslashes($denyMessage) . "'
    2675    
    2676 You can return to character generation by following this link: $url";
     2671    $userbody = "<p>Hello $player,</p>
     2672    <p>The Storytellers have provided feedback on $name. Please review the comments and resubmit your character once any issues have been resolved.</p>
     2673    <p>'" . stripslashes($denyMessage) . "'</p>
     2674    <p>You can return to character generation by following this link: <a href='$url'>$url</a></p>";
    26772675   
    26782676    $result = vtm_send_email($email, "Review Character Generation: $name", $userbody);
     
    27082706    $url4 = vtm_get_stlink_url('viewXPSpend', true);
    27092707   
    2710     $userbody = "Hello $player,\n\nThe Storytellers have approved your character.  ";
     2708    $userbody = "<p>Hello $player,</p><p>The Storytellers have approved your character.  ";
    27112709   
    27122710    if ($wpid == 0) {
    27132711        // New Wordpress Account
    2714         $userbody .= "Please log into the website with the below details:\n\n";
    2715         $userbody .= "\tLogin name: $username\n";
    2716         $userbody .= "\tPassword:   $password\n";
    2717         $userbody .= "\tWebsite:    $website\n\n";
     2712        $userbody .= "Please log into the website with the below details:</p><p><table>";
     2713        $userbody .= "<tr><th>Login name:</th><td>$username</td></tr>";
     2714        $userbody .= "<tr><th>Password:</th><td>$password</td></tr>";
     2715        $userbody .= "<tr><th>Website:</th><td><a href='$website'>$website</a></td></tr></table></p>";
    27182716    }
    27192717    else {
    27202718        // Already existing WP account
    2721         $userbody .= "Please log into the website with login details already created:\n\n";
    2722         $userbody .= "\tLogin name: $username\n";
    2723         $userbody .= "\tWebsite:    $website\n\n";
    2724     }
    2725    
    2726     $userbody .= "Here are some useful direct links:\n\n";
    2727     $userbody .= "\tChange your password:  $url1\n";
    2728     $userbody .= "\tView your character:   $url2\n";
    2729     $userbody .= "\tPrint your character:  $url3\n";
    2730     $userbody .= "\tSpend Experience:      $url4\n";
     2719        $userbody .= "Please log into the website with login details already created:</p><p><table>";
     2720        $userbody .= "<tr><th>Login name:</th><td>$username</td></tr>";
     2721        $userbody .= "<tr><th>Website:</th><td><a href='$website'>$website</a></td></tr></table></p>";
     2722    }
     2723   
     2724    $userbody .= "<p>Here are some useful links:<ul>";
     2725    $userbody .= "<li>Change your password:  <a href='$url1'>$url1</a></li>";
     2726    $userbody .= "<li>View your character:   <a href='$url2'>$url2</a></li>";
     2727    $userbody .= "<li>Print your character:  <a href='$url3'>$url3</a></li>";
     2728    $userbody .= "<li>Spend Experience:      <a href='$url4'>$url4</a></li></ul></p>";
    27312729   
    27322730    $result = vtm_send_email($email, "Character Approved: $name", $userbody);
Note: See TracChangeset for help on using the changeset viewer.