So I have changed this to now work with AJAX and it will no longer refresh the page. Instead a small popup message will show to indicate that the like has been accepted:-
Hopefully it should work in all themes etc. but let me know if there are any issues etc as this is my first attempt at writing a phpBB extension. @Nanook you can disable it under customise ;o)
Limitations are:-
- Un-liking still refreshes the page due to the confirmation requirement. Not many people will decide to unlike so I don't think changing this is worth the effort.
- Liked text (under the post) is not updated until the page is actually refreshed. Again no biggy and not really worth the effort to fix? Unless it is really required??