Affiliate Marketing Tutorial 37 | Clickbank | Date Scripts
What better way to get your visitors to act now than to give them a deadline? “Act now! This offer expires tomorrow!” In this lesson we look at Date Scripts, the Internet Marketer’s best friend.
How can they be used?
You can use a date script to generate a date automatically, without having to go into your HTML every day and change the date yourself. With a few easy tweaks you can make the script generate today’s date, yesterday’s date, tomorrow’s date, or any number of days into the past or future.
This means that no matter when your visitor is looking at your site, the psychological effect of the date is the same. “Oh gosh, that’s tomorrow!” or “Wow, this was updated today…”
Try pasting this snippet of code into your web page (make sure you’re in “code” view if you’re using a WYSIWYG editor):
<?php echo "Order by ".date("jS F Y", mktime(0, 0, 0, date("m"), date("d");+3, date("y")); ?>
Save this as a .php file (or in an existing PHP file). Because it’s a PHP file it’s very likely that you won’t be able to preview the page on your computer, so you might need to upload it to your website to see it in action.
What you should see is this:
<?php echo "Order by ".date("jS F Y", mktime(0, 0, 0, date("m"), date("d")+3, date("y"))); ?>
This date is three days into the future. That’s because of the +3 in that line of code above. If you wanted your date to be just one day into the future (and get a more immediate response out of your visitors) then change that little number to a 1 instead of a 3.
<?php echo "Order by ".date("jS F Y", mktime(0, 0, 0, date("m"), date("d")+1, date("y"))); ?>
To get today’s date, simply drop that little number altogether.
<?php echo "Order by ".date("jS F Y", mktime(0, 0, 0, date("m"), date("d"), date("y"))); ?>
Changing the date format
In the above snippet of code, the letters jS F Y determine how the date displays.
- Lower-case “j” means “Day of the month without leading zeros”
- Upper-case “S” means “st” “nd” “rd” “th” etc… goes on the end of a number to make “1st” “2nd” “3rd” etc.
- Upper-case “F” means “A full textual representation of a month, such as January or March”
- Upper-case “Y” means “A full numeric representation of a year, 4 digits, such as 2008”
To change how the date displays, you just need to change or re-arrange these letters. For a full list of different date format options, there is a useful chart at http://de3.php.net/date.
For PHP to work on your page, you have to save the page as a .php document.
In this lesson we looked at how you can use a bit of PHP to dynamically and automatically update relevant dates on your webpage, either to show a page was recently updated, or to give a sense of urgency (e.g. for a purchase). We took a look at:
- What a date script is useful for
- The relevant code
- Changing the format of the date
Learn something new? Share it with your friends!
Affiliate Marketing For Beginners Guide- Make $121.71 Per Day With FREE Traffic, Plus FREE Software
How To Make Money Online With Facebook – Youtube | Software For Affiliate Marketing | Work From Home Jobs
How To Make Money On Facebook- OCTOSUITE | Facebook Tool Software- Best Way To Make Money From Home
How To Increase Website Traffic- Free Traffic Source Up to 16,364 Targeted Visitors Per Day
Make Money Online With Affiliate Marketing | Clickbank- Just Follow These 3 Simple Steps, I Have Make $200 In 20 Minutes Daily
The Legal Loophole That Can Kill Your Business + How To Solve It In Just 1 Click | WordPress Plugin
How To Make Money Online With Affiliate Marketing | Clickbank | $1k/day With Free Traffic Keywords
Make Money Online Affiliate Marketing- Set Your Instagram and Bring In Traffic, Leads & Sales Today
Learn How To Make Money With JVZoo | JVZoo Academy | Make Money Online With Affiliate Marketing
Complete ConvertKit Tutorial 2017 | Build Email List Fast | Best Email Marketing Services
Affiliate Marketing For Beginners | Clickbank Tutorial | Make $2,293.26 Per Day From My Laptop
Make Money Online Affiliate Marketing For Beginners |Clickbank |$2,228 Weekly By These 4 Simple Step
How To Start A Local Facebook Ad Agency | Run Facebook Ads For Local Businesses | Work From Home
Make Money Online From Home | FREE DotComSecrets Book | Underground For Growing Your Company Online
Give FREE Book DotCom Secrets | Improve Your Traffic, Conversion n Sales Online | Make Money Online
Ship Your FREE Book DotCom Secrets Now | Growing Your Business Online | Make Money Online From Home