You need to log in to create posts and topics.

Push Notifications one signal

i install onesignal plugin on my website wordpress, and when i create a topic or post, the notification not show, in the onesignal setting, i have checked "Automatically send a push notification when I publish a post from 3rd party plugins" but show notif that  "

Automatic Push outside WordPress Editor

If checked, when a post is created outside of WordPress's editor, a push notification will automatically be sent. Must be the built-in WordPress post type 'post' and the post must be published."

how to fix it?
Uploaded files:
  • post-type.png

Hello @suryoes

Asgaros Forum is not using custom-post-types for its contents because of the lack of performant API-functions dealing with a complex content-structure provided by a forum. This means that a custom implementation would be necessary for this kind of functionality by using one of the actions provided by the forum:

  • asgarosforum_after_add_post_submit
  • asgarosforum_after_add_topic_submit
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!
i already tried entering
  • asgarosforum_after_add_post_submit
  • asgarosforum_after_add_topic_submit
into oneignal settings but notifications still don't work, what should I do?
please help so notifications can work
Uploaded files:
  • coba.png

Hello @suryoes

The mentioned hooks can be used to add your custom-code programmatically which sends the data to your message-provider. Its not enough to just add them to this plugin. Actually you need to write PHP-code which uses some API-functions of the service you are using to send this data. I dont know the system you are using so I cant give you more details about it.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Bonjour, j'ai le même problème sur mon site wordpress, a quel endroit dans wordpress je dois rajouter [asgarosforum_after_add_post_submit,asgarosforum_after_add_topic_submit] merci pour votre aide

Hello @ph

You have to use this hooks so you can write your custom PHP-code which adds your custom functionality. Its not enough to just post them somewhere.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

oui mais ou dois je les installer dans worpress??? merci

Hello @ph

Custom PHP-code can be added to your themes functions.php file.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Bonjour,

Pouvez vous me donner la phrase complète à insérer et ou dans le fichier fonction php ?

merci

Hello @ph

The code depends on what you want to do and has to be created by yourself or a developer. There is currently no snippet available for using.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!