I am using Sugar Pro 6.4.0 and want to display a notification to a user in sugar's notification area present in menu bar as shown in the image below:
How I can add a notification in a way that notification counter gets incremented automatically and when user click on the sugar cube icon, the notification gets displayed as shown in the above image.
I want to display my own created message in notification window show above eg message like "CRON is in process..." in Notifications window shown above.
I have accomplished this task in a non upgrade safe way by updating the file:
modules/Administration/DisplayWarnings.php
I have added the following code near the end of file
// Display Notification
displayAdminError("My notification message goes here...");
and it displays the message in notification area perfectly.
If anyone knows an upgrade safe way of accomplishing this task kindly let me know about it.
First you have to set the Email settings, configure the Smtp server , username , password and you can use scheduler for this to send the email notification or you can use logic hooks
Related
To create your own link with a pre-filled message that will automatically appear in the text field of a chat, use https://wa.me/whatsappphonenumber/?text=urlencodedtext where whatsappphonenumber is a full phone number in international format and URL-encodedtext is the URL-encoded pre-filled message.
Example:https://wa.me/15551234567?text=I'm%20interested%20in%20your%20car%20for%20sale
https://faq.whatsapp.com/en/android/26000030/
or
Click to WhatsApp Chat
The message in the url shows in the input field of whatsapp message box is there a way so that the message gets posted or sent automatically ?
Reason behind it-
There will be a icon on the website for whatsap chat anyone who clicks on that icon his message should be automatically send to the website's contact number which is in the url.
I was looking at this sometime back and sadly still there is no way to automatically send messages through the client app. It makes sense in a way to prevent spam & misuse. The closest thing is to pre-fill the content and let the user send the message to the desired phone number.
If you are a business you could try the Whatsapp for Business API - https://www.whatsapp.com/business/api to implement chatbot like features and that might fit whatever use case you are looking to build. Anyways it a request only feature for now but you can try the same.
Or if you would want to get wild and try app overlay to auto send the message but Whatsapp prevents app overlay and never lets users proceed to use the app.
Context: I work at a small MSP and I've created a bot that direct messages employees when one of their tickets goes overdue. The message has a few buttons that allow the user to request an extension on the ticket. Once a button is clicked, our ticketing system's API is used to update the ticket and the chat message updates to reflect the selected update.
What I'd like to do after one of the request extension buttons is clicked is to ask the user if they would like to add a note to the ticket. If Yes button is clicked, the bot would prompt the user to respond with a note to add.
Here's my question. Is there any way to read the next message from the user after they click yes? As in, should the user click 'Yes' to add a note, can I trigger a script to run when the next user message is posted?
For what it's worth, I'm writing this in PHP. I'm using chat.postMessage to post the message when a ticket goes overdue, and simply "replacing" the message with a new one using that message's responseURL when a button is clicked.
Any Slack API gurus out there with any ideas?
Well.. if I understand your problem correctly, there is a much easier approach:
The buttons automatically call your script and tell you what the user clicked. So you can respond appropriately. Its all part of the Interactive Message feature in the Slack api. And you can configure which url Slack should call in the Slack App config window. Check out the offical documentation for Interactive Buttons more info.
However, I guess what you really want is the ability for the user to enter some free text, like in a html form input field. That is currently not possible in Slack, but that very feature is promised on the current Slack API roadmap to be delivered in the near future. Its called "Interactive message Stage 3".
Hi i am working on a Joomla Project in which i have to send notification to the super admin in the back end.
Whenever a user in the multiples of 1,00,000 registers with the website a notification should be automatically sent to the super admin in the back end of Joomla.
The notification should mention the total number of users in the website and the information of the user which has achieved the milestone of being 1,00,000 user.
i am able to find out the number of users by using MySQL COUNT but how to send notification?
is there any way to send notification in Joomla from front end to back end or should i save the results in database and then show the result to the super admin only when the 1,00,000 users are registered?
You could write a Joomla plug-in that catches a relevant Event and then sends an email to members of the Administrator/Super User groups. They are not that complicated and the development process is documented.
As there isn't a specific event for user registration, I would probably suggest you start with the onUserBeforeSave or onUserAfterSave events.
I have created a dashboard using PHP and Wordpress, the problem i'm facing now is that I need to create an alert or a message when ever a new data has arrived in any users dashboard. So, I need to send the users that are currently online in the dashboard, a notification that a new data has arrived for them.
Whenever a data has been added by me for a particular user, an automatic notification should be shown on the that users screen if he is online. I have created the dashboard, but I don't know how to implement this notification.
In short, I want to create something like a push notification inside my website.
Use Atmosphere framework for braodcasting any messages. This essentially uses Websockets in the implementation. But its very easy to do.
I have implemented ray wenderlich's tutorials on Apple push notification, now i want to display the date and time on push notification alert, the time that notification has been sent, i know that there is no child property of alert which can hold date and time, so plz. guide me that is there any way to do it (we are sending notification from server side through a php written cms), i want to display date and time at the top right of the notification alert against the sender name, plz. guide thanx and Regards Saad.
The time when you receive notification may be used to be shown at the right side.
But it is not reliable way, as user can skip any notification. iPhone framework adds icon badge based on value sent in notification.
What you can do is, you can check that value and if it is greater than 0, you can connect to your server by yourself and download the pending notification against that specific user.