Send private message

You must be logged in to send a private message.

Activity

  • Ramuf replied on the discussion topic River data-timestamp
    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... view reply
  • Ramuf replied on the discussion topic River data-timestamp
    I can change the data-timestamp, after the river has been displayed, with Ajax, but I can't find the place to change it when the river is first called. view reply
  • Ramuf replied on the discussion topic River data-timestamp
    Hmm. From your comment, I guess that's a bad thing. I'm not doing it on a production site. This is on my localhost.  Any ideas where to change the data-timestamp value? view reply
  • Ramuf replied on the discussion topic River data-timestamp
    Exactly but in a friendly way like this "2 hours ago". That's not what i'm looking for. view reply
  • Ramuf replied on the discussion topic River data-timestamp
    Thanks for the your answer @costakisc but that's not what i'm looking for. What that code does is to show you the posted time on the item. It doesn't set the data-timestamp. view reply
  • Ramuf replied on the discussion topic River data-timestamp
    On river, this is the code for the first item.  <li id="item-river-7" class="elgg-item" data-timestamp="1345501490"> I know that the data-timestamp is from the field "posted" from river table. I'm trying a modification. I added a new... view reply
  • Ramuf added a new discussion topic River data-timestamp in the group Feedback and Planning
    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
    • 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.

  • Ramuf joined the group Feedback and Planning

Friends

No friends yet.

Group membership

No groups