- Edited
Last users posts widget
If you have no permission to the discussion with the last posts the widget shows this:
- Edited
m4v3rick I will work on a fix for that. Thx
actually is strange because i can hit the api url even if im a guest
0.1.2
- fixed the error for guests visitors
composer update justoverclock/last-users-posts:"*"
php flarum cache:clear
Works now. Thx.
0.1.4
- Link to post added
0.1.5
- Link component used instead of <a>
- Edited
How do you change the style?
.lastposts-widget .AfruxWidgets-Widget-content {
background: #ededed important!;
}
Just doesn't work.
Tried, but didn't work either.
m4v3rick this is what I’m using so maybe is a cache problem?
Interesting. I cleared browser cache. Tried it in four different browser and cleared the flarum cache. What am I missing?
I also tried a clean "Custom CSS" only with your code. Still green.
- Edited
m4v3rick lol...my code IS green XD, is just an example, u need to put your value
try
.lastposts-widget .AfruxWidgets-Widget-content {
background: #e8ecf3 !important;
}
and then php flarum cache:clear
- Edited
Justoverclock my code IS green
I know...that wasn't the problem.
m4v3rick .lastposts-widget .AfruxWidgets-Widget-content {
background: #ededed important!;
}Justoverclock .lastposts-widget .AfruxWidgets-Widget-content {
background: #e8ecf3 !important;
}
This was it...your code is like mine...except the "!" (wrong side - well it's late).
So if you could add the avatar instead of the icon next to the text, it would be absolutely great .
- Edited
Any way to show latest post as a title, like Hot discussions only Latest Discussions?
Anonymous43 but post have no title
- Edited
First one does. The thing is my first posts are always just a picture or a video. Any way to show a little picture that is inside the post?
- Edited
Anonymous43 this can be tricky, i think with a regex maybe is possible btw, can be a great idea for a feauture.
0.1.6
m4v3rick request to show avatar instead of fontawesome icon. so if anyone want to try this feauture simply do:
composer update justoverclock/last-users-posts:"*"
php flarum cache:clear
Revert to the old one
composer update justoverclock/last-users-posts:"0.1.5"
php flarum cache:clear
0.1.7
i forgot to implement a new idea that has coming after the 0.1.6....
- display usename on hover tooltip
composer update justoverclock/last-users-posts:"*"
php flarum cache:clear
- Edited
0.1.8
Replace image url with icon @Anonymous43
composer update justoverclock/last-users-posts:"*"
php flarum cache:clear
i have a working version also for the youtube url, but i can do something for ALL urls (like link icon), just to use only one regex