I include one comment funtion in File/all page
$comment = elgg_view_comments($file);
with the help of this function I can able to get and posting comments ,but it has no limitation if we added comments it comming next...., but i want latest 3 comments in that page and we click "More" i want to show all the comments.
[sorry 4 my english]
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Sharon@sharon
Sharon - 0 likes
- Shouvik Mukherjee@shouvik
Shouvik Mukherjee - 0 likes
You must log in to post replies.where should i include this code
(@include($CONFIG->actions[$action]['file']))
1. Set pagination to true and set the max number of entries to 3. This will be the easiest. If you want the former twitter like 'Load more' functionality, you would need to do that via custom AJAX calls.
2. What are you trying to do? To define a new action, you should register the action on start.php of the plugin.
Please avoid double posting.