It looks like you're new here. If you want to get involved, click one of these buttons!
i want to add refresh button. only to renew the last post. please help me.
Thanks for trying my addon!
The module in the panel should refresh itself on a set interval. Is this not happening?
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight i want button, click and refresh
There is one included, but it looks different on each platform to fit in with the native look and feel. On my platform it looks like this:
If you really want a button on the panel, add your markup and then add a handler to call the GetLatestPosts function in JS.
// Replaces lines 74-79 of `/plugins/LatestPostList/modules/class.latestpostlistmodule.php`
echo Wrap(Anchor(T('Latest Posts'), $this->_Link) . '<a class="RefreshButton Hidden" href="#">↻</a>', 'h4');
echo Wrap(T('Latest Posts') . ' <a class="RefreshButton Hidden" href="#">↻</a>', 'h4');
// Placed right before the last `});` in `/plugins/LatestPostList/js/latestpostlist.js`
Feel free to style .RefreshButton how ever you would like with your custom.css sheet.
@hgtonight thank you soo muchh