1.open engine/lib/navigation.php
in the line 381 replace:
if ($object->canComment()) {
for
if ($object) {
2.open actions/comments/save.php
and delete this line: 83
add_to_river('river/annotation/generic_comment/create', 'comment', $user->guid, $entity->guid, "", 0, $annotation);
enjoy :)
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.
I am using elgg 1.11.1 an can't find this line
add_to_river('river/annotation/generic_comment/create', 'comment', $user->guid, $entity->guid, "", 0, $annotation);
instead i find
// Add to river
elgg_create_river_item(array(
'view' => 'river/object/comment/create',
'action_type' => 'comment',
'subject_guid' => $user->guid,
'object_guid' => $guid,
'target_guid' => $entity_guid,
));
Shall I delete this one?
add_to_river() was deprecated by elgg_create_river_item(). So, deletion of the elgg_create_river_item() call seems the correct way. But I don't know if this will be the only step you have to do to reach your goal as there might be other changes in newer Elgg version not considered in the (outdated) instructions you are referring to.
I was able to achieve comment functionality just by following step 1.
Hi guys, now I've installed Elgg 1.11.2 and i try to add the comments for every object with your methods but i can't do it. Do you have a solution for this version?
Thank :)
extremely desperate for this in 1.12.17
the above methods do not function...
Does anyone have some type of insight???
The reply system is absurd also... need real comments for wire in the river... any suggestions?
Is there some way of making wire posts objects in the River???
@VSR Elgg version 1.12 is no longer supported. Nobody will make changes to it.
it's asking for insight why 1.12 will not function correctly with this old code modification & what exactly was depreciated from 1.10/1,11 plus why does upgrading for anything 2+ give fatal server errors... this prevented me from using 2.3 because already had user DB... in worst case scenario will just shut off the wire input box on activity page yet would prefer not since the user base has used such for years... (hmm almost a decade???) If you can point the way for any documents regarding the relevant changes between 1.10 & 1.12 it would be appreciated...
http://learn.elgg.org/en/3.x/appendix/upgrade-notes/1.10-to-1.11.html
http://learn.elgg.org/en/3.x/appendix/upgrade-notes/1.x-to-2.0.html
This is for specific community and potentially we can hire someone for the required solution... Let me attempt digging through old dev docs for 1.12 when have some of that "Mythical" extra time... there are also multiple other things that are ultimate required feature for this Elgg 1.12 install... send me message for making email contact.
Hello every boddy come back, sorry for my inglish.
Thank you RvR for the 1.11 & 1-2 upgrade notes docs! Let me read through them today. On it now.
added Comment highlighting
Welcome back Mariano!
Was using you River Comments Mod... yet the delete entire message on click was driving me nuts(loco) and was not going to put users through that... plus couldn't get images videos functional in generic comments... attempting getting comments for all river items... that can be commented on with HyperInteractions... since it is handling comments on my site now...
It's HypeInteraction3.5.0 not commenting on wire posts in the river for some unknown reason.... stripped that plugin... now it is operational with the OP modification method and subsequent notes... so now have basic comments at least functioning for all Elgg objects...
@vsr
Was using you River Comments Mod... yet the delete entire message on click was driving me nuts(loco) and was not going to put users through that... plus couldn't get images videos functional in generic comments... attempting getting comments for all river items... that can be commented on with HyperInteractions... since it is handling comments on my site now...
I do not understand what you mean by deleting, you would have to pass me your website where it is installed or where you do the tests, stop using elgg since the v 2.0 came out and always hate your comment system, it is pathetic.
Resolved the Comment System issues on my Server... thanks for offering... working through long list of current issues... getting ready for big influx of users starting on Feb1st...
On v2.3 the files are now located in vendor/elgg/elgg/engine/lib & vendor/elgg/elgg/actions.
Replaced:
if ($object->canComment()) {
for
if ($object) {
deleted:
// Add to river
elgg_create_river_item(array(
'view' => 'river/object/comment/create',
'action_type' => 'comment',
'subject_guid' => $user->guid,
'object_guid' => $guid,
'target_guid' => $entity_guid,
));
Now yet the comment bubble on all river items...
yet when click the comment bubble nothing happens...
Any insights what is missing in this process for v2.3?