Loading


Advertisement:

Author Topic: I need some one to add a "new item" notification on categories on main.php  (Read 277 times)

trapeezy

  • Newbie
  • *
  • Posts: 16
  • Sometimes I think I need to go back to school
Hey everyone,

My visitors and users come back several times daily and I need to provide them a way of knowing that new jobs have been posted in a category...
I am looking to display a "new item" notification on main.php for the categories and sub categories, that looks like the attachment (see attachment)

I have searched and searched and searched and cannot come up to any conclusion.
I know it has something to do with DAO, I can do the styling I just basically need the number to appear showing the number of new items posted in any category in the last 12 hours.

So, for example:

Category Main
- Category Sub (+3 new) **shows if 3 new jobs (listing) have been posted in the last 12 hours, based on server time
- Category Sub
Category Sun (+1 new) **shows if 1 new job (listing) has been posted in the last 12 hours, based on server time

I need to be able to insert the code in main.php so that it pulls the number of new listings and displays them for each category, and if there are no new listings then doesn't display anything at all. The notification should disappear after 12 hours of being displayed to the user, meaning if it displays 1 at 1PM, and another at 3PM, and yet another at 9PM (total showing +3) - they should all get reset or something to make them disappear by the same time the following day or something I don't know how to manage this part of it...but I know I would like to serve the results based on server time, not the browsers'/users time I don't wish to use cookies.

Can someone please help me?

Thanks
Nick

MkRahamath

  • Jr. Member
  • **
  • Posts: 67
Is this paid job ?

trapeezy

  • Newbie
  • *
  • Posts: 16
  • Sometimes I think I need to go back to school
Well I guess that all depends if I'm allowed to put that up here, from what I see no.
..but yeah, anything to get this to move forward, but no I didn't just post that...:)

Thanigaivel

  • Newbie
  • *
  • Posts: 30
  • I am 3+ years experienced in osclass scripts
if this is a paid job, i can help you out, thanks...

trapeezy

  • Newbie
  • *
  • Posts: 16
  • Sometimes I think I need to go back to school
Okay give me a shout - vinylhut@hotmail.com

Thanks
Nick