Comments (6)
How is it difficult to add filters or hooks? It's pretty straight forward.
As for messages or config in general, just overwrite the files in the config folder.
from decoda.
What happens to me is that I am using composer, so if I add a file or modify something in your library composer.phar will not update it, it breaks the update process, I need to override it by inheritance somehow.
Here is the example:
alpha:symfony daniel$ php composer.phar update
Updating dependencies
- Updating mjohnson/decoda (3.4)
[RuntimeException]
Source directory /Users/daniel/Sites/sevenboom/Src/symfony/vendor/mjohnson/decoda has uncommitted changes
update [--prefer-source] [--dry-run] [--dev] [--no-scripts] [packages1] ... [packagesN]
So it wouldn't be a bad idea if you could add an addPath()
method, so far I managed to add custom filters, hooks and messages from external folders by using this symfony2 bundle https://github.com/helios-ag/FMBbCodeBundle as wrapper, i modified it and added certain features so i can pass those external parameters, but the path for the templates is more complicated as it only has one possibility.
from decoda.
I see.
I'm actually working on v4 of this which ports it to PHP 5.3 and utilizes namespaces and allows for more customization. It should solve all these problems.
from decoda.
Did you published something laready, or do you know when might be available?
from decoda.
No I only started on it this weekend. I'm hoping to have it available within the next few weeks.
from decoda.
This has been fixed in v4. You can use addPath() to specify custom locations.
https://github.com/milesj/php-decoda/blob/master/Decoda.php#L228
from decoda.
Related Issues (20)
- Emoticons not parsed when having the next to it HOT 3
- Uppercase Tags don't set defaults HOT 1
- Two bugs HOT 3
- Links and ClickableHook HOT 8
- Support for BBCode standalone tags? HOT 4
- caching HOT 2
- Problem with ulr tag which contain "_" HOT 2
- Force img tag to be https on https site HOT 3
- Support for [noparse] tag HOT 2
- Library Broken with PHP 7.3 HOT 2
- removeFilter('Video') Broken
- PHP5.6+? HOT 3
- Did not parse color if the color parameter is not enclosed with " HOT 1
- PHP7.2+ HOT 6
- Pass string as method argument HOT 3
- Use MediaEmbed for video filter HOT 1
- Normal "quotes" are not escaped HOT 4
- Url filter problems HOT 1
- Is there any way to use this without composer? HOT 1
- 6 UU
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from decoda.