Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Updated content notifications?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36826
    Kahil
    Member

    Ok, on my WordPress site I use custom fields a lot. I am using a plugin called Magic Fields 2 which basically just lets you create custom admin panels in the post/page write sections using custom fields. I have been looking for a way to show things that are new or updated using css. Like a little notification bubble, or color border or something. Anything I can do to make new items since a user’s last visit stand out so they can readily see what is new.

    I have tried a lot of things and can’t seem to find an existing plugin or documentation in the wordpress codex. There are plugins that will email you when a post or page is updated, but they don’t notify you if any custom field is added or changed or updated, only the actual page or post content.

    Hope that makes sense…would appreciate any help in figuring this out. Would be great to have something that not only shows what is new or updated, but would allow for such items to be marked as read. If it helps, the pages where I am doing this is only accessible by logged in users.

    Thanks in advance!!

    ~ Kahil

    #97409
    Kahil
    Member

    Some kind of code that would get the custom field’s timestamp and then if that custom field was added/edited/modified on today’s date, it would output the word “today” rather than the date format would be helpful. I could then do some custom css for anything with a class of “today”.

    been googling all day trying to find a workable solution with no luck…

    #97452
    Kahil
    Member

    Ummm… Ok… I don’t know how to do that…sorry, just learning some things. I’m pretty good at understanding javascript when analyzing completed script and then figuring out what does what, but I don’t know how to do so from scratch.

    I don’t need a script that checks the page itself, WordPress already has a php code that does that. I’m looking for something more specific that pulls the timestamp for different custom fields on the page.

    I’m trying to keep it real simple here. Just looking for a way to pull the timestamp for custom fields. If the custom field was added, edited or modified on today’s date, then instead of outputting date format it would output and display as “today”. That way can I use that outputted text as a css class. If the div has the class of “today” then it would display something a little different to signify that it is new.

    #97477
    Kahil
    Member

    well… as with javascript, I do not know jquery either.

    another thing, with WordPress, custom fields don’t have IDs attached to them. That isn’t how it works. for this to work i’m probably going to have to find a way to pull the info from the database the custom fields are stored in. honestly if it were just as simple as using an ID and the time php code I could have and would have done that…tried that too.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.