Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    May 2010
    Posts
    140
    Thanks
    7
    Thanked 0 Times in 0 Posts

    php script notify user of content update

    I searched google to find a php script to use when a user logs in that it displays a box telling them that the site as been updated since their last login ie: new content, new downloads, updated content etc.

    Is there a php script that can do this or is javascript the best way. I am just concerned that if i use javascript, some people may have it disabled.

  • #2
    Regular Coder
    Join Date
    Dec 2009
    Location
    UK
    Posts
    495
    Thanks
    0
    Thanked 58 Times in 58 Posts
    PHP would be the way to go with this, you would need to keep track of the last time the user was active (You can update this as they move from page to page if it's routed through an MVC structure of some sort)
    Then when you update the content, you simply record the time and date to the db for that particular change, and if the user logs in and the last active time was before the change then display the change
    My site: JayGilford.com
    Resources:
    PHP Pagination Class | Getting all page links | Handling PHP Errors properly
    If you like a users help, show your appreciation with the rep and thanks buttons :)

  • #3
    Regular Coder
    Join Date
    May 2010
    Posts
    140
    Thanks
    7
    Thanked 0 Times in 0 Posts
    How would you go about coding this. Where would i start.

    Is there a script already available that I can purchase and modify.

  • #4
    Regular Coder
    Join Date
    Dec 2009
    Location
    UK
    Posts
    495
    Thanks
    0
    Thanked 58 Times in 58 Posts
    Not sure if there's a script already out there but I'm sure you can pay someone to do this custom script for you for a nominal fee
    My site: JayGilford.com
    Resources:
    PHP Pagination Class | Getting all page links | Handling PHP Errors properly
    If you like a users help, show your appreciation with the rep and thanks buttons :)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •