I built a new plugin, and integrated it with rainlab.user. Theme it based on Vanilla.
Check it out, and let me know what you think.
kind regards Niels
I built a new plugin, and integrated it with rainlab.user. Theme it based on Vanilla.
Check it out, and let me know what you think.
kind regards Niels
I have a challenge and I don’t know how to solve it. Do you happen to have an idea??
Right now when someone likes a rant, the page refreshes and it goes to the top.
I actually want the number of likes in the button to be updated on the fly, without refreshing the page.
Current code:
Hi @codeskullz ,
Remove return Redirect::refresh();
from the onLikeRant()
method and instead refresh the partial that displays the number of likes.
You can achieve this by using the data-request-update
attribute if you’re using data attributes (refer to OctoberCMS documentation) or by using the update
method if you’re working with JavaScript (refer to the JavaScript API).
@apinard …
Thanks for your help, it was quite a job and required a lot of rebuilding, but I managed it.
if it’s okay, I’ve added you to the credits. Without your response I wouldn’t have been able to do it.