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
408
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from AndyB

  • Showcase
    Showcase
    Shows first attachment of member's threads from selected forums.
  • Access log
    Access log
    Shows a list of bots, guests and members accessing your forum.
  • Thread view count
    Thread view count
    Shows number of thread views by visitor type.
  • Find member
    Find member
    Removes the 'Autofill' and 'View Saved Login' functions in Firefox when using the Find member search
  • Admin notes
    Admin notes
    Adds a note area in the Admin Control Panel

Latest reviews

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