As per title, I've added 2 new Category options designed to auto post notices in the associated thread when a new review or new item update is added to the item that the thread is associated with. Those of you that use CAS, IMS and RMS are already familiar with how this works.
Note: The upgrade will preset these to ENABLED for any Category that allows automatic thread creation.
The POST is generated via the ThreadReplier Service (a core XF service) using the setIsAutomated() function (which bypasses validation). The message is created in the service using a Phrase, rendering that phrase as RAW and then setting that as the post message.
Note: Once the post is created, the only way to change the post is to edit the post. Editing the phrase isn't going to magically change a post that has already been posted.
Here is/are the 2 phrases that are used by the services to generate the Post content.
Note: I've added some extra phrase data (eg, snippet) for those of you that like to customize the look/feel of the auto posted notices.
This is what the service passes into the phrase to generate the POST for the new review notice.
As you can see, the phrase included with the addon only uses SOME of the available data being passed in, however, one can edit the phrase and use other data that is being passed in (such as snippet).
Same thing applies to the new item update auto posts...
Note: The upgrade will preset these to ENABLED for any Category that allows automatic thread creation.
The POST is generated via the ThreadReplier Service (a core XF service) using the setIsAutomated() function (which bypasses validation). The message is created in the service using a Phrase, rendering that phrase as RAW and then setting that as the post message.
Note: Once the post is created, the only way to change the post is to edit the post. Editing the phrase isn't going to magically change a post that has already been posted.
Here is/are the 2 phrases that are used by the services to generate the Post content.
Note: I've added some extra phrase data (eg, snippet) for those of you that like to customize the look/feel of the auto posted notices.
This is what the service passes into the phrase to generate the POST for the new review notice.
As you can see, the phrase included with the addon only uses SOME of the available data being passed in, however, one can edit the phrase and use other data that is being passed in (such as snippet).
Same thing applies to the new item update auto posts...
Upvote
0