Page Last Updated Custom Script

Discussion in 'Black Hat SEO Tools' started by joelcommisafag, Nov 23, 2008.

  1. joelcommisafag

    joelcommisafag Newbie

    Joined:
    Nov 25, 2007
    Messages:
    32
    Likes Received:
    22
    Occupation:
    Ninja Marketer
    Location:
    SFO
    Need help since I know shit about javascript. There are plenty of free scripts that show when a page was last modified. Thats not what im looking for.

    I need a script that will allow me to dynamically insert a date minus a custom number of days.

    The idea is that it'll say "page last updated: some date" If i always show todays date that'll look kinda obvious. I'd rather show some random date within a short interval, say no more than 5-10 days. so it'll look more natural if the visitor returns, but will also show that its been recently updated.

    anyone have a script like this they can share? Thanks a ton!
     
  2. Sweetfunny

    Sweetfunny Jr. VIP Jr. VIP

    Joined:
    Jul 13, 2008
    Messages:
    1,816
    Likes Received:
    5,102
    Location:
    ScrapeBox v2.0
    Home Page:
    In PHP you can just do it like this:

    PHP:
    <?php echo date('l, m/d/Y',strtotime("-5 days"));
    ?>
    Just change the 5 to how many days prior you want. You can also change the - to a + to do days in advance.

    Thats good for doing things like "Sale Ends XXXX" and always having tomorrows date to create a sense of urgency because they always think the sale ends tomorrow.