Forums

Countdown counter? (20 posts)

  1. KhajjaMeezer
    Member
    Posted 7 years ago #

    Hey y'all... it's that pesky Meezer again. ^^
    Anywho, my sweetie is being shipped off to Iraq soon, and I kinda wanted to put a little countdown thingie on my blog as something special for him and me. Where would I put that code?
    *the perpetually code-clueless....*
    ~K =^..^=

  2. KhajjaMeezer
    Member
    Posted 7 years ago #

    Yeah.... something along the lines of "XXX days until he comes home"

  3. Mark (podz)
    Support Maven
    Posted 7 years ago #

  4. spdyvkng
    Member
    Posted 7 years ago #

    Ah, the date_diff function was stolen here (search for "gustav at monoseven" in the page to find the comment with the code) and modified to take timestamps as arguments.

  5. spdyvkng
    Member
    Posted 7 years ago #

    And I don't use kernigham ritchie codestyle....sorry for that, for you guys who like to throw yourselves back to the seventies...

  6. Root
    Member
    Posted 7 years ago #

    // Released under the GPL (Gnu Public Lisence), meaning, keep all the comments
    // and copyright info with this in the future.
    To my knowledge this is a breach of the GPL. Until it is clarified I would not advise anyone to use similar words in their hacks.

  7. hanni

    Posted 7 years ago #

    Why would this be a GPL breach?

  8. spdyvkng
    Member
    Posted 7 years ago #

    Sorry bout that, I think you keep the copyright even though released under GPL, and usually the GPL text should be put in as well.
    The point was that people don't remove my name from the copyright.

  9. spdyvkng
    Member
    Posted 7 years ago #

    And my last post wasn't meant to be argumentative. I'd be pleased to have a guideline for future reference, I'll do my best to make the code available for people as well as derived work.

  10. Root
    Member
    Posted 7 years ago #

    Well on the GPL my concern is that if we add words explaining what the GPL*means* we are adding, or altering the terms of the licence itself which we are not allowed to do. Furthermore if what we think it means is wrong the confusion gets worse. Furthermore the very essence of open source is the ability of users to alter withouit restriction works which the themselves have acquired.
    We may not qualify that in any way by saying *do not remove my comments*.
    Once it is released under the GPL anything can be removed.


  11. Moderator
    Posted 7 years ago #

    Hi Podz,

    http://wiki.wordpress.org/SimpleDayCounter
    Just the job :)

    Pardon my ignorance but how do you implement this ?
    Thanks

  12. hanni

    Posted 7 years ago #

    Root: aaaaah I understand now, thanks :)


  13. Moderator
    Posted 7 years ago #

    Thanks Podz,
    Gave it a try but for some reason as soon as I add my-hacks.php to the site it has a conflict with AK's last visit plugin. If I take the my-hacks.php out - it all works again.
    I was going to use this counter in much the same manner as you do - except mine was to count my nicotine-free days...but I guess I can do it manually on a weekly basis :)
    Thanks anyway .

  14. Mark (podz)
    Support Maven
    Posted 7 years ago #

    Odd.....I have that plugin too..... I'll check my filenames / plugin name

  15. Mark (podz)
    Support Maven
    Posted 7 years ago #

    what I named 'counter.php' above, I have as 'days_since.php' inside /hacks
    That help ?


  16. Moderator
    Posted 7 years ago #

    @Podz
    I tried with a different name 'givingup.php' but still no go. As soon as I drop my-hacks.php in there it goes nuts.
    Don't stress too much about it - it's not a big issue :) Thanks for trying.

  17. KhajjaMeezer
    Member
    Posted 7 years ago #

    *boggle*
    Wow... I had a bit of code that I found... I just wanted to know where to put it, is all. ^^
    I guess I'll try the index.php and play around with it.

  18. carthik
    Member
    Posted 7 years ago #

    LoL!

  19. KhajjaMeezer
    Member
    Posted 7 years ago #

    Ok, tested the code snippet I have in the index.php. It works. Yay! Thx you guys. ^^ *hugs*

  20. spdyvkng
    Member
    Posted 7 years ago #

    OK, I've made it to a plug-in, tested it and also made a homepage for my code. (Needed some bugfixing.)
    Let me know if you use the plug-in.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.