James_43 15 Junior Poster

You created a dupicate post. I posted a reponse on the first one asking for more evidence of your requirements. In case you missed it:

What solutions have you looked at so far? What's your knowledge / experience with PHP? Have you thought about where your client data will be stored, and do you know how to access that through PHP?

We would love to help you, but without a little more information and some evidence that you've already attempted something, it's very difficult for anyone to give you ideas or working code.

James_43 15 Junior Poster

The Wordpress templating engine allows full use of PHP, so you have the power (and responsability) of adding code like this.

There are effectively two ways to add this code to a page. You either edit or create a general template such as index.php or page.php. May themes use these to render the page content from the database.

Alternatively, you can define a template to use with only certain pages, which must be manually selected.

Either way, it sounds like your understanding of how Wordpress renders pages is a bit lacking. I really recommend you look at some of the developer material out there (there is a lot). Here's a good templating start point: https://developer.wordpress.org/themes/template-files-section/

Best of luck!

James_43 15 Junior Poster

Found out you can specify a format when creating the object :)

DateTime::createFromFormat('d/m/Y', $date);

James_43 15 Junior Poster

Wow. I really didn't expect a response like that, it's amazing!

The only problem now is I don't actually understand the code! A bit more advanced than I'm used to, but the math is sound and it does indeed yield the correct result.

I'll spend a bit of time studying this. You've annoted it nicely so I should get through it alright. However, could you explain further the $scale variable and how that works with the PHP math functions to alter precisions?

Thanks again for this amazing contribution!!

James_43 15 Junior Poster

Actually.. Ignore this. I was adding the ORDER BY to the wrong $query!

James_43 15 Junior Poster

Hi guys,

Weird (maybe silly) isse with a CSS fade property using the following classes:

/** CSS3 Animations **/

/* Key Frames
---------------------------------------------------- */
@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@-moz-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@-o-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
/** ------------------------------------------------ */

.fadeIn {

    opacity:0;
        -webkit-animation:fadeIn ease-in 1;
        -moz-animation:fadeIn ease-in 1;
        -o-animation:fadeIn ease-in 1;
        animation:fadeIn ease-in 1;
        -webkit-animation-fill-mode:forwards;
        -moz-animation-fill-mode:forwards;
        -o-animation-fill-mode:forwards;
        animation-fill-mode:forwards;
}

.fadeIn-500ms {

        -webkit-animation-duration:500ms;
        -moz-animation-duration:500ms;
        -o-animation-duration:500ms;
        animation-duration:500ms;

}

.fadeIn-1s {

    -webkit-animation-duration:1s;
        -moz-animation-duration:1s;
        -o-animation-duration:1s;
        animation-duration:1s;

}

.fadeIn-1500ms {

        -webkit-animation-duration:150ms;
        -moz-animation-duration:150ms;
        -o-animation-duration:150ms;
        animation-duration:150ms;

}

.fadeIn-2s {

        -webkit-animation-duration:2s;
        -moz-animation-duration:2s;
        -o-animation-duration:2s;
        animation-duration:2s;

}

.fadeIn-2500ms {

        -webkit-animation-duration:250ms;
        -moz-animation-duration:250ms;
        -o-animation-duration:250ms;
        animation-duration:250ms;

}

.fadeIn-3s {

        -webkit-animation-duration:3s;
        -moz-animation-duration:3s;
        -o-animation-duration:3s;
        animation-duration:3s;

}

.fadeIn-delay-1s {

        -webkit-animation-delay:1s;
        -moz-animation-delay:1s;
        -o-animation-delay:1s;
        animation-delay:1s;
}

.fadeIn-delay-1500ms {

        -webkit-animation-delay:150ms;
        -moz-animation-delay:150ms;
        -o-animation-delay:150ms;
        animation-delay:150ms;
}

.fadeIn-delay-2s {

        -webkit-animation-delay:2s;
        -moz-animation-delay:2s;
        -o-animation-delay:2s;
        animation-delay:2s;
}

.fadeIn-delay-2500ms {

        -webkit-animation-delay:250ms;
        -moz-animation-delay:250ms;
        -o-animation-delay:250ms;
        animation-delay:250ms;
}

.fadeIn-delay-3s {

        -webkit-animation-delay:3s;
        -moz-animation-delay:3s;
        -o-animation-delay:3s;
        animation-delay:3s;
}

And those are used within my HTML as below:

<div id="img-menu" class="menu-practioner-container fadeIn fadeIn-1s" >
        <ul class="menu header-links">
            <li class="header-autism fadeIn fadeIn-1s fadeIn-delay-1500ms"><a data-toggle="modal" data-target="#whatwedo">What we do<span ><img src="http://englishcraftsman.strong-links.org/images/about.png" /></span></a></li>
            <li class="header-autism fadeIn fadeIn-1s fadeIn-delay-1500ms"><a data-toggle="modal" data-target="#email">Facebook<span><img src="http://englishcraftsman.strong-links.org/images/facebook.png" /></span></a></li>
            <li class="header-email-us fadeIn fadeIn-1s fadeIn-delay-1500ms"><a data-toggle="modal" data-target="#email">Free Quotation</a></li>
        </ul>
</div>

The problem is that my code is not recognising the values of split seconds, in this case, the 1500ms value. instead, …

James_43 15 Junior Poster

Okay so I've done some more research, and what I am trying to do is send mail through an external SMTP (which in this case is Gmail).

My understanding is that this is impossible for PHP, unless you have a localised email server, which I think will be too complicated.

Is there any other way? I really just want a contact form on our website.

Kyle Wiering commented: Good information. That does change the context of the original question. +2