River data-timestamp

Hi there,

I'm trying to make a modification on river, and i need to know on which file the data-timestamp is set.

Ive been trying to find it for hours, and i couldn't find it. Any help?

Thanks,

Ramuf

  • Why exactly do you want to add an update time to the river? This does not make sense.

    River is like a history log. Log entries are not supposed to be updated.

  • Well what i'm trying to do is to bump the logs when someone make comments on them.

    If someone comment on one old post, i want it to appear in first position on river. I'm trying a new approach now with Ajax. I will get the timestamp of the comments rather than the timestamp from the original post, and bring the whole post to the first position.

  • kk.... -> wrong solution ;) u shud do yr data-analysis 1st b4 zapping all over the db strucs ! undo ;-) al those code changes related to the db table, restore the table struc and.. study (thoroughly) how the current strucs & logic cater for river/comments fetches & displays - *then find another better easier way to achieve this.

  • If someone comment on one old post, i want it to appear in first position on river.

    Ok, now I see the logic. I suppose this could be useful.

    But still, creating a new column to the database table is a bad idea. You already have an entry in the database for each comment that the users have made. There is no need to add or update any data.

    So instead of moving the commented river object to the top of the river, just try to change the way how the new comments are displayed.

Feedback and Planning

Feedback and Planning

Discussions about the past, present, and future of Elgg and this community site.