Jump to content

MarcP

Members
  • Posts

    40
  • Joined

  • Last visited

Posts posted by MarcP

  1. I would like some code to countdown 10 days. At the end of 10 days the user would be redirected to a webpage. I would prefer a server side language. Can't I utilize the following code to determine the countdown starting point??

     

    <?php
    $d=strtotime("+10 Days");
    echo date("M-d-Y h:i:sa", $d) . "<br>";
    ?>
    The following code works but I would prefer not to set a specific date.
    HERE'S THE CODE THAT I HAVE SO FAR
    <?php
    date_default_timezone_set("America/New_York");
    $days = 11; // Day of the countdown
    $month = 2; // Month of the countdown
    $year = 2016; // Year of the countdown
    $hours = 20; // Hour of the day (east coast time)
    $event = "Your Trial period expires."; //event
    $calculation = ((mktime ($hours,0,0,$month,$days,$year) - time())/3600);
    $hours = (int)$calculation;
    $days = (int)($hours/24);
    if ($hours <= ("0")) { echo '<script>window.location.href = "TRIALPAGE_B.html";</script>';
    }
    ?>
    <ul>
    <li>The date is <?=(date ("l, jS \of F Y g:i:s A"));?>.</li>
    <li>It is <?=$days?> days until <?=$event?>.</li>
    <li>It is <?=$hours?> hours until <?=$event?>.</li>
    </ul>

     

  2. I could use some help here.....I currently am using a compiler to create some simple software. This compiler utilizes a "recipe". This "recipe" contains tags which look like this...[#tags#]. When you run your created software it will ask you for a question pertaining to that specific tag. At the end you may "Preview" your result and this will open up in a browser window. Pretty much any computer language can be used with this compiler but I prefer html and javascript. My dilemma, how can I create a 30 day demo of the software that I create?? I've tried numerous countdowns but was unsucessful.
    Below is a sample "recipe" for a piece of software that helps you create a press release.
    Contact Information:

    [#Company/Individual#]
    [#Email Address#]
    [#Street Address Only#]
    [#City and State#]
    [#Zip Code#]
    [#Phone w/ Area Code#]

     

    [#Company/Individual#] Announces the Launch of
    [#Product#]

     

    FOR IMMEDIATE RELEASE
    [#City and State#] - [#Company/Individual#] is excited to announce the launch of [#Product#]. [#Description and Basics#].

    The official launch date for [#Product#] is [#Launch Date#].

    [#Company/Individual#] believes [#Product#] will will appeal to the newbie, the novice and the experienced. [#More Details#]

    [#Product Launch Types of Marketing#]

    [#Quote someone related to this launch#]

    [#Boilerplate#]

     

     

     

    ###

     

  3. is this Javascript? you might have the wrong section.Do you have some code that you have tried, or can you give a link to the page where the questions are asked?how I would approach this situation is write the expiration into the application.
    Thanks Lg, the link was mentioned in my original post and I've been tryin to figure out how to write the expiration in the app. any suggestions???
  4. I'm guessing you're using Visual Basic or equivalent to write the software? Why not just write the date of install into an .ini file and check that every time the exe loads? If it's after the 30 day period, redirect them somewhere else.Obviously that's a simple idea - you'd want to maybe encrypt the date so it's not easy to find and tamper with
    I'm using a compiler to write this and how do I write an .ini file??
  5. I have an applicatio that I would like to make into a 30 day trial version. This software asks a series of questions, you answer the questions and the results page pops up on your browser. I have tried various date functions, countDown, setTimeout and a host of other functions but still no luck.It's time to back up and start over so I'm asking everybody in this forum; How would YOU approach this situation??Ideally, I would like to be able have the software be totally functional for a period of 30 days from the date that the user downloaded it, then after day 30 redirected to a different page.I'm not asking anyone to write the code for me I would just like to know how any of you would approach this.I have posted several items here, some have been answered (thank you) and some have not.If it would be helpful to see the application then here's the link http://igorrecommends.com/ColorFormulator/Control.exe You don't need to answer the questions to get to the results page.I have become so confused about this that I think that a fresh approach is now the answer.Thank you for all of your anticipated helpM~

  6. I'm having a problem with a countdown function starting with "onload".i woul like to begin a 30 day countdown when someone loads my software onto their computer.at the end of 30 days they would be directed to a different location.i have tried many things but with no luckcan i get some ideas???M~

  7. I'm having a problem with a countdown function starting with "onload".i woul like to begin a 30 day countdown when someone loads my software onto their computer.at the end of 30 days they would be directed to a different location.i have tried many things but with no luckcan i get some ideas???M~

  8. sweet - glad you all like it. I was pretty happy when I found all the elements to make that script - took a few google hours but it's proven quite worth the time since its been running since June of 2005 on a site that sees 21,000 uniques users a week.
    Can you use the countdown function to countdown days?? I would like to have a countdown of 30 days or 15 days at which point at the end of the countdown period the person wouldbe directed to a separate siteI have tried date comparison and many other things but with no luckI really need help on this one.Thanks in advanceM~
  9. Thanks Vchris, Using js would be fine since the software is utilizing js anyway. If someone disables js in their browserthey won't be able to use the software. As far as protecting the sourcecode I have this little program that allows me to encrypt certain segmentsof my sourcecode. If anyone is interested let me know and I'll put it up on a website so you can download itand try it.Thanks again Vchris

  10. Good MorningI'm new to this forum and I'm hoping that I can get some help.I'm trying to add either a countDown function or a setTimeout function to make somesoftware that I made into a 30 day trial. At the end of the 30 day period the software will direct you to awebpageI'm a hairstylist and I've developed software that will calculate a hair color formula.I've tried some of the examples located here but with no luck. I'm new to JS and HTML so pleaseexcuse my ignorance on some of these issues.Any ideas?Marc huh.gif

  11. Good Morning I'm new to this forum and I'm hoping that I can get some help.I'm trying to add either a countDown function or a setTimeout function to make some software that I made into a 30 day trial. At the end of the 30 day period the software will direct you to awebpageI'm a hairstylist and I've developed software that will calculate a hair color formula.I've tried some of the examples located here but with no luck. I'm new to JS and HTML so please excuse my ignorance on some of these issues.Any ideas?Marc :)

  12. Good morning everyone :) I'm new to this forum and new to js and from what i've seen you people are wonderful.I've created some software and I'm trying to have it so that it will be fully functional for 30 days and then after that an alert box will pop up explaining that their time has expired. After the user clicks the "ok" button they will be redirected toa web page.I've tried the myDate function with no luckAny ideas??

×
×
  • Create New...