2017 © Pedro Peláez
 

library phpbb-tool-trimmessage

This tool contains a class, that is able to trim a message from the phpbb message_parser to a maximum length without breaking the bbcodes/smilies and links.

image

nickvergessen/phpbb-tool-trimmessage

This tool contains a class, that is able to trim a message from the phpbb message_parser to a maximum length without breaking the bbcodes/smilies and links.

  • Friday, April 17, 2015
  • by nickvergessen
  • Repository
  • 1 Watchers
  • 1 Stars
  • 8,593 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

phpBB Trim Message Tool

This tool contains a class, that is able to trim a message from the phpbb message_parser to a maximum length without breaking the bbcodes/smilies and links., (*1)

How to use

  1. Add nickvergessen/phpbb-tool-trimmessage as a composer dependency to your extension
  2. Use the code:, (*2)

    $object = new \Nickvergessen\TrimMessage\TrimMessage($message, $bbcode_uid, $length);
    // Ready to get parsed:
    echo $object->message();

How to run tests

We use Travis-CI as a continous intergtation server and phpunit for our unit testing. See more information on the phpBB development wiki., (*3)

Build Status, (*4)

  1. php composer.phar install --dev
  2. vendor/bin/phpunit

Requirements

  • This tool requires php 5.3.3 or above. When you include this tool in your MOD, put a note about the php-version in the author notes.
  • This tool does not require a specific database.

License

GNU Public License, (*5)

The Versions

17/04 2015

1.3.1

1.3.1.0 https://github.com/nickvergessen/phpbb-tool-trimmessage

This tool contains a class, that is able to trim a message from the phpbb message_parser to a maximum length without breaking the bbcodes/smilies and links.

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.3

 

The Development Requires

06/04 2015

dev-master

9999999-dev https://github.com/nickvergessen/phpbb-tool-trimmessage

This tool contains a class, that is able to trim a message from the phpbb message_parser to a maximum length without breaking the bbcodes/smilies and links.

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.3

 

The Development Requires

06/07 2014

1.3.0

1.3.0.0 https://github.com/nickvergessen/phpbb-tool-trimmessage

This tool contains a class, that is able to trim a message from the phpbb message_parser to a maximum length without breaking the bbcodes/smilies and links.

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.3

 

The Development Requires