Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Forum: Plugins
    In reply to: Mailer.php
    Thread Starter odaku128

    (@odaku128)

    Do Mailer.php’s work inside of wordpress?

    Is There a special way to write them?

    This is mine:

    <?php
    $to = "to";
    $subject = "subject";
    $headers = "From: header";
    $forward = 1;
    $location = "https://www.site.com";
    $date = date ("l, F jS, Y");
    $time = date ("h:i A"); 
    
    $msg = "Below is the result of your feedback form. It was submitted on $date at $time.\n\n"; 
    
    if ($_SERVER['REQUEST_METHOD'] == "POST") {
        foreach ($_POST as $key => $value) {
            $msg .= ucfirst ($key) ." : ". $value . "\n";
        }
    }
    else {
        foreach ($_GET as $key => $value) {
            $msg .= ucfirst ($key) ." : ". $value . "\n";
        }
    }
    
    mail($to, $subject, $msg, $headers, -f$headers);
    if ($forward == 1) {
        header ("Location:$location");
    }
    else {
        echo "Thank you for submitting our form. We will get back to you as soon as possible.";
    } 
    
    ?>

    Did you create this theme yourself?

    If not, do you know how to edit the php/html that builds up the page?

    The tables used to create your layout have made the first picture before the gallery lap over the edge of your content div and in to your sidebar, giving the illusion that your gallery is not centered, when in fact it is centered to your content div. In order to make it appear centered you would have to edit the width of your content div and sidebar. A little css editing will give you the result that you want.

    I had a similar problem.

    Check your custom permalink structure to see if any extra spaces have found there way in.

    I had an extra space at the end of /topics/%postname%

    It caused all the permalinks to default to my latest post.

    Removed it – Problem solved.

Viewing 4 replies - 1 through 4 (of 4 total)