Message Parser

Message Parser 1.0

No permission to download
Compatible XF 1.x 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.
Likes: Nomy
Author
AndyB
Downloads
35
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from AndyB

  • Shopping cart
    Shopping cart
    A fully integrated shopping cart system based on thread information.
  • Auto prefix by last post
    Auto prefix by last post
    Auto change thread prefix based on last post user.
  • Quick search
    Quick search
    Quickly find threads in a forum.
  • Calendar
    Calendar
    A fully integrated Calendar system based on thread information.
  • Border
    Border
    Easily add a border to any attached image in a post or conversation.

Latest reviews

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