- Edited
Deprecated
Consider using Spoiler Alert or Details instead
Consider using Spoiler Alert or Details instead
Great contribution sijad !
Some recommendations:
sijad/flarum-spoiler
although optional to do so, should actually be sijad/flarum-ext-spoiler
in order to match the Flarum convention."flarum-ext-bbcode": "^0.1.0-beta.3"
Useful extension, but I think more css styles should be added
AlexanderRusov I agree please let me your ideas
sijad I think adding color to text is a big one that's missing - ex. [color="blue]Blue text[/color]. Seems like s9e\TextFormatter supports that but it's not enabled in Flarum currently.
Of course getting some of these as formatting controls into the composer window without cluttering it up too much would be nice as well. Something lite like http://summernote.org/. The emoji suggestions by typing colon+letter there are really nice.
This is one of those wickedly awesome extensions. Thank you for it! ? ?
what's new in the update? Last version looked better.
AlexanderRusov sorry for delay to answer, the style has been changed to look better (let me know why you don't like it please)
also some improvements in styles and javascript
chirag composer update
santiagobiali after going in extension directory?
chirag no, at the root, where config.php and composer.json are.
santiagobiali If you don't mind, can u have a look here?
https://discuss.flarum.org/d/2184-where-to-edit-new-post-file
santiagobiali won't that update whole core?
I want to update only this extension
chirag composer update
will update everything. Then use composer update sijad/flarum-spoiler
Davis it will also update dependencies and libraries that Flarum relies on.
jordanjay29 if you're going to be picky about updating you better be testing it on a non production machine first then upload the composer.lock and do composer install.
If not, composer update is fine in most cases. Worst case senerio, you just figure out what's causing the issue and downgrade it.
Davis Well, non-production is the recommended usage right now.
jordanjay29 when I say non-production, I mean a machine that isn't hosting the instance.
sijad It is not clear that it is spoiler. For example there is no arrow near with spoiler in new version
AlexanderRusov It's possible the CSS didn't get updated properly. You may try clearing the .js and .css files in your assets
directory (leave the other files), and then hard refresh (CTRL+F5) your browser page.
On a clean install, I can see the arrows just fine, fyi.
CTRL+F5 was not working. May be reinstall can help
AlexanderRusov
please let me know your browser and its version
Hey sijad, when I tried to install the extension I got an error:
Problem 1
- Installation request for sijad/flarum-spoiler ^0.1.1 -> satisfiable by sijad/flarum-spoiler[0.1.1].
- sijad/flarum-spoiler 0.1.1 requires flarum/core ^0.1.0-beta.3 -> no matching package found.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, deleting ./composer.json.
I used the following code:
php composer.phar require sijad/flarum-spoiler
DonaldLouch use php composer.phar require sijad/flarum-ext-spoiler
That didn't work santiagobiali.
I got a new error
[InvalidArgumentException]
Could not find package sijad/flarum-ext-spoiler at any version for your minimum-stability (stable). Che
ck the package spelling or your minimum-stability
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...
DonaldLouch looks like @sijad updated the repository but not the package on packagist.
Okay thanks santiagobiali!
DonaldLouch that's wired, I did a clean install and the extension installed successfully with composer require sijad/flarum-spoiler
santiagobiali the Github hook is enabled, but I think I missed something here, I'll fix that, thanks for heads up
So I think I found the problem, sijad!
I am having problems accessing the root folder of where I have installed Flarum with composer.
I fixed it! My composer files were out of date!!!
DonaldLouch thanks for reporting back
Yeah, no problem sijad!!!
When i open spoiler i get second arrow at bottom.
Is irt updated for beta 5?