Forums

"NEW" script (2 posts)

  1. homicidalape
    Member
    Posted 4 years ago #

    I'm trying to make a script that will check if there's been a new post in a category in the current day or last day, and if so, do something like display a "new" icon, or bold a link.

    All I could find to work with was get_lastpostdate() and unfortunately I'm not a php guru. I figure I'll need to compare the last post date with the current date, and if they're the same or close to same (to the day) then do the action (icon or bolding).

    So things I need to know:
    -How to find the last post date of a specific category or group of categories.
    -How to get the current date.
    -How to chop the last post date and current date to just the YMD format, NOT including time.

    Thanks.

  2. h4x3d
    Member
    Posted 4 years ago #

    there are scripts around for that,
    look on alex king's site, just as a pointer.

    good luck

Topic Closed

This topic has been closed to new replies.

About this Topic