1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Message Parser 1.0

Provides ability to change final message content when message is saved.

  1. AndyB
    Compatible XF Versions:
    • 1.2
    • 1.3
    • 1.4
    • 1.5
    Description:

    Provides ability to change final message content when message is saved.

    Note this add-on changes the message data, so it only effects new or edited posts.

    Installation:
    1. Download messageparser_v1.0.zip and unzip it.
    2. Upload the Andy folder to your server. The correct location is library/Andy.
    3. From your Admin Control Panel, go to the "Install Add-on" page.
    4. Upload the addon-MessageParser_v1.0.xml file
    5. Click the Install Add-on button.
    Editing th DataWriter.php file:
    1. Edit the following file:

      library/Andy/MessageParser/DataWriter.php

    2. By default you will see the following line:

      PHP:
      $messageParsed preg_replace('/test123456789/i'''$messageParsed);
    3. This will remove the word "test123456789" from the message as soon as it's saved. You will want to change this line of code as needed for your needs. See Discussion for examples.
    Sending a donation:

    If you like this add-on, please consider sending a small donation.

    https://www.paypal.me/andybajka

    Thank you.
    Nomy likes this.

Recent Reviews

  1. Jens1986
    Jens1986
    5/5,
    Version: 1.0
    Very nice addon, I use it for editing posts from a RSS-feed. Works just as described.