Message Parser

Message Parser 1.0

No permission to download
Compatible XF 1.x versions
  1. 1.2
  2. 1.3
  3. 1.4
  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.
  • Like
Reactions: Nomy
Author
AndyB
Downloads
39
Views
509
First release
Last update

Ratings

5.00 star(s) 1 ratings

More resources from AndyB

  • Featured images
    Featured images
    Displays a block containing featured images.
  • View map
    View map
    Creates a button called View map for use in messages.
  • Remove signature
    Remove signature
    Removes signature below post messages and direct messages.
  • Image browser
    Image browser
    Allows viewing latest image attachments.
  • Weekly newsletter
    Weekly newsletter
    Sends an email to your members every week showing most popular topics.

Latest reviews

Very nice addon, I use it for editing posts from a RSS-feed. Works just as described.
Back
Top Bottom