1. REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Implemented Category Options: Automatically post new review|update notice in thread

Discussion in 'Showcase Closed Suggestions' started by Bob, Dec 11, 2021.

  1. Bob

    Bob Developer Staff Member

    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.

    Selection_373.png


    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.

    Selection_375.png

    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.

    Selection_376.png

    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).

    Selection_380.png


    Same thing applies to the new item update auto posts...

    Selection_378.png

    Selection_379.png
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.