DFC005
Forum Replies Created
-
Forum: Plugins
In reply to: [NextScripts: Social Networks Auto-Poster] SQL errors in SNAP PluginOh excellent work. I was coming here to look for a solution to why our autoposting had stopped but your fix also fixed that. Thanks mate!
Forum: Plugins
In reply to: [OneSignal - Web Push Notifications] Updated posts get pushed// Remove OneSignal action for post updates
function prevent_onesignal_notifications_on_update($new_status, $old_status, $post) {
error_log("OneSignal Action Check: post_id={$post->ID}, new_status=$new_status, old_status=$old_status");
if ($new_status === 'publish' && $old_status === 'publish') {
remove_action('transition_post_status', 'onesignal_schedule_notification', 10, 3);
error_log("OneSignal Action Removed: Blocked notification for post update (post_id={$post->ID})");
}
}
add_action('transition_post_status', 'prevent_onesignal_notifications_on_update', 5, 3);
// Set os_update meta for new publications and block for updates
function override_onesignal_update_flag($new_status, $old_status, $post) {
error_log("OneSignal Status Transition: post_id={$post->ID}, new_status=$new_status, old_status=$old_status");
if ($new_status === 'publish' && $old_status === 'publish') {
update_post_meta($post->ID, 'os_update', 0); // Disable notifications for updates
error_log("OneSignal: Disabled os_update meta for post update (post_id={$post->ID})");
} elseif ($new_status === 'publish' && $old_status !== 'publish') {
update_post_meta($post->ID, 'os_update', 1); // Enable notifications for new publications
error_log("OneSignal: Enabled os_update meta for new publication (post_id={$post->ID})");
}
}
add_action('transition_post_status', 'override_onesignal_update_flag', 10, 3);Got sick of waiting for an update so added the above to my
functions.phpto stop sending notifications on update.
I then have the checkbox for “Send notification when post is published or updated” checked and it only sends on publish.Is there any update to this?
It seems like it would be such a trivial change to seperate it out into two fields:
* Automatically send notifications when a post is published
* Automatically send notifications when a post is updatedOh right. Sorry, I see one does so Post and one does say Page!
Still, I only want to notifiy on publish. Might revert the plugin for now to the older version.
Forum: Plugins
In reply to: [Ad Inserter - Ad Manager & AdSense Ads] Ad Block Detection not workingYup, that seems to work! Thanks heaps for the quick service.
Forum: Plugins
In reply to: [Ad Inserter - Ad Manager & AdSense Ads] Ad Block Detection not workingI’ve enabled remote debugging.
This doesn’t seem to have happened again in recent times. So might have been an intermittent issue with our site.
Forum: Plugins
In reply to: [OneSignal - Web Push Notifications] New Plugin UpdatePerfect. That works!
Yes, that’s 100% what we are after!
Forum: Plugins
In reply to: [OneSignal - Web Push Notifications] New Plugin UpdateThe notification title is now the post title and the body is the first few characters of the post.
This use to be post title and post excerpt.
We quite often have quizzes which are simple shortcodes as the first few characters of the post. The shortcodes are now being added to the push notification. Is it possible to add an option somewhere we can select an option for the text. Ideally, this is the post excerpt again.
Forum: Plugins
In reply to: [URL Shortify - Simple and Easy URL Shortener] API usageSo the whole section in the plugin for Rest API and creating key/secrets etc is just pointless?
Forum: Plugins
In reply to: [URL Shortify - Simple and Easy URL Shortener] API usageYes, I’m trying to work out how to use the API as well.
I’ve setup some new key/secret via the Tools -> Rest API section but cannot find any documention or examples on how to use this?
I assume it should be quite straight forward. Little help?
Forum: Plugins
In reply to: [NextScripts: Social Networks Auto-Poster] autopost stop from updateI believe it’s related to this error: https://wordpress.org/support/topic/badly-formulated-sql-command-in-cron-job/
We have the same issue and are awaiting a fix.
Yup, I’m getting the same.
Any update on this?