Sales Page Date Code

Discussion in 'ClickBank' started by imikedesigns, Nov 30, 2009.

  1. #1
    Does anyone know where I can find the code for the sales page date minus 4 days. I came across it the other day but cant find it now. Thanks.
     
    imikedesigns, Nov 30, 2009 IP
  2. imikedesigns

    imikedesigns Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Anyone know this? A lot of sales pages say something like "Updated Nov 26." It usually shows a date 4 days before the current date. Its done through javascript. I came across the code a few days ago on a clickbank vendor site in the affiliate section but I cant remember the product I was looking at.
     
    imikedesigns, Dec 1, 2009 IP
  3. webtester01

    webtester01 Peon

    Messages:
    284
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If your server uses PHP, you can do it with one line of code.

    
    <?php echo "Updated " . date("F j, Y", strtotime("-4 days")); ?>
    
    Code (markup):
    That way, if JavaScript disabled (client-side), the server side code would still work. Or, you can use JavaScript and create a <noscript><?php echo "Updated " . date("F j, Y", strtotime("-4 days")); ?></noscript>
     
    webtester01, Dec 1, 2009 IP
  4. imikedesigns

    imikedesigns Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks man. That's exactly what I was looking for.
     
    imikedesigns, Dec 1, 2009 IP
  5. evelinawilliams007

    evelinawilliams007 Notable Member

    Messages:
    3,120
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    210
    Articles:
    6
    #5
    There's certain other ways to do it ..

    Cool if this works out for you.

    Al.
     
    evelinawilliams007, Dec 1, 2009 IP