Support » Developing with WordPress » Easy alert message process a user can login to invoke on the fly?

  • Hello, I have a need to create a simple alert message on a website that a user could login to create and deploy? It basically would either show only when needed or could be a bar that is white in background color when no message available or shows message when deployed. I have seen plugins but none i found where i could have a select user have the ability to change them on the fly?
    Thanks in advance
    Jeff

    • This topic was modified 6 days, 12 hours ago by jswalker4.
    • This topic was modified 6 days, 12 hours ago by jswalker4.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    Normally users would alter messages through some sort of back end setting. It’s feasible to do so dynamically on the front end through some JavaScript. The message could be in the manner of a form input field, which unless it’s the right user, displays as a read only field. For the right user, it’s an editable field, and when it’s changed, an Ajax request saves it to the DB.

    There could be a control to optionally disable the message, but then how can the user access the form again if it’s disabled? There’d have to remain something the user could click on to re-open the form. It could me made to only be visible to certain users.

    The form can be integrated into the page as you wish, it’s a matter of applying the right CSS styling.

    Thread Starter jswalker4

    (@jswalker4)

    thanks for the reply. i have actually had this working for about 15 years on the site using classic ASP but was looking to do something newer as well as not having the user have to click something to show the message. It basically toggles back and forth from:Renegades Alert Message is: There are no messages at this time. — 2/20/2021 1:30:51 PM.
    to:Renegades Alert Message is: The GYM is closed today due to weather — 2/20/2021 1:40:51

    Moderator bcworkz

    (@bcworkz)

    Were you planning on coding something yourself, or are you looking for a plugin? How plugins handle something can be good guidance in your own coding effort, so I guess the answer is yes either way.
    https://wordpress.org/plugins/search/notification+bar/

    IDK if any offer front end updating though. Some of the GDPR cookie notice plugins might be adaptable to your needs. Same functionality, different message.
    https://wordpress.org/plugins/search/cookie+notice/

    Even less likely to offer front end updating though.

    Thread Starter jswalker4

    (@jswalker4)

    Thank You! I believe at first glance that the plugin you showed above – MyStickyMenu might cover my bases! At least get something available until i have more time to research more in depth!
    Jeff

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.