- Edited
Among other things. It's also less flexible, you can't ever add/remove/reorder the variables or make any of them optional, it makes it impossible to use markup in the text values, makes it harder to set default values, etc...
Among other things. It's also less flexible, you can't ever add/remove/reorder the variables or make any of them optional, it makes it impossible to use markup in the text values, makes it harder to set default values, etc...
Version 0.1.6
-This extension has been updated to support mobile devices (flexbox).
composer update oe800/flarum-ext-bbcode-alerts
php flarum cache:clear
How the titles can be translated to other locales? this extension doesn't creates yml file for titles.
(for the basic bbcode titles)
The way I implemented it in phpBB is they already had tokens in the form {L_WHATEVER}
in their custom BBCodes to be replaced by the localized string. Unknown tokens are interpreted as template parameters. At rendering time, the values of those template parameters are set. It's a good idea to keep the L_
prefix in order to differentiate template parameters used as localized string placeholders from other kind of template parameters.
$configurator = new s9e\TextFormatter\Configurator;
$configurator->BBCodes->addCustom('[foo]', '{L_FOO}');
extract($configurator->finalize());
foreach ($renderer->getParameters() as $name => $value)
{
if (substr($name, 0, 2) === 'L_')
{
$renderer->setParameter($name, "$name's value");
}
}
$text = '[foo]';
$xml = $parser->parse($text);
$html = $renderer->render($xml);
die("$html\n");
L_FOO's value
@0E800 with almost 1k downloads, this deserves some Beta 8.(1) TLC
I worked countless hours on this PR and if you do manage to merge it, please feel free to tag this release as 0.2.0.
with the following as the GitHub release description.
https://github.com/0E800/flarum-ext-bbcode-alerts/pull/1
fa();
which I got after reviewing extensions that make use of FA5 icons through LESS (aka Tags P.S. There's more to come after I take care of ReFlar's current extension issues
Ralkage
My apologies , I fumble with github and may have merged it wrong ? There was 3 options . I also couldn't figure out how to tag using the github site.
You have done such a fantastic job to revive the extensiin , please feel free to rebrand it and I'll post a link to your updated version .
Either way, its very awesome of you to do that. I will use your commit as a reference for updating the other bbcode extensions.
Ive been kind of burnt out lately and have been purposely distracting myself against my own better judgment .
0E800 no worries man, the merger looks great and correctly executed!
Now, go here:
https://github.com/0E800/flarum-ext-bbcode-alerts/releases/new
And fill the form out as so:
- Beta 8.(1) compatibility.
- MAJOR refactoring/restructuring of code.
- Friendlier way of updating FA4 icons to FA5 through our LESS savior/function `fa();` which I got after reviewing extensions that make use of FA5 icons through LESS (aka Tags ;);))
- Made use of those new extenders
(Formatter is
)
- composer.json updated.
- README makeover.
- Added LICENSE file cause why not?
- Added .editorconfig
- Added .gitignore
No need for me to takeover or re-brand, but, if you feel like it, you can add me as an outside contributor to your current BBCode extensions so that I do the rest of the release related work for ya?
What if I told you that ReFlar was planning on creating a not-so-secret-anymore BBcode Manager extension in the near future? ;)
You should update the initial post!
Following the GitHub link, it is already on 0.2.0:
https://github.com/0E800/flarum-ext-bbcode-alerts
when using the following tags, how can I switch to next line. It seems I can only write one single and not multiple next lines ?
[cerror]
[csuccess]
[cwarning]
[cnotice]
Not working anymore in beta 15
Is there an alternative to this plugin? for v.1.0.
@0E800 Any plans to upgrade this for v1.0