@The CEA
I'm assuming you're using the custom_index plugin. If you can read/code in PHP, then open this file:
mod/custom_index/views/default/canvas/layouts/new_index.php
... and see how widgets are placed there. That will show you how widgets are coded into that page. Once you choose a spot on that page to place your widget, use this code to show the 'recentdiscussions' widget on that page:
<!-- recent discussions -->
<?php
if(is_plugin_enabled('recentdiscussions')){
?>
<div class="index_box">
<?php
//include a view that plugins can extend
echo elgg_view("index/recentdiscussions");
?>
</div>
<?php
}
?>
Oh, one more thing: the code formatting on new_index.php is not very neat, which makes it hard to make out block boundaries, which in turn makes it easy to misplace closing brackets if you're not careful. Pay close attention to that!
seems not to work anymore in 1.78
Ok, I see.
In fact, i get the last 10 annotations, ie the last 10 comments and then show the related topics.
if all the comments are in the same topic, you will get only one topic on the widget. I'll make a quick fix for this. The problem is that I cannot get all annotations and then take juste the first 10 related topics. It would consume too much ressources...
Ok. Fixed, you have 10 topics now.
thx :)
Does this work with elgg 1.6.1 ???
Also listing the most active members month by month and for teh year would be usefull. Or a way to reset this module on teh 1st of the month back to zero or something like that.
Hello,
I've got a problem with a SQL query.
Actually, when i put the widget on my dashboard, I get a "DataBaseException" caused by an alias which is not present.
Do you have any solution ?
I do not sure if this is the right place to ask this. My site is not displaying last registered members in the widget in the front page.
It only shows 3 of them in the widget. If you want to have a look. www.enlaceslatinos.net
Thank you
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.