ELGG Discussion change

One thing after years of using ELGG that has made me frustrated is that when you post/edit/delete comments from a dicussion in an elgg group that it doesn't stay on the page that the chagne happened. Example if I have 4 pages of comments and I edit a comment and hit save, ElGG jumps back to the start of the topic.

Simply changing the existing forwards at the end of the files here groups/actions/forums to be replaced by

  forward($_SERVER['HTTP_REFERER']);

Fixed this and makes dealing with large dicussions much nicer.

  • Doing that could present the opposite problem - assume your pagination is such that the last comment is the only one displayed, if you delete that comment you get forwarded to a page with an invalid offset.

  • I didn't say it was a great fix:) but i have never had that happen but it is really frustrating to not having ELGG keep you where you were and it is across elgg not just this example.  Many other sites and forums have the ablity to stay where you are or go directly to a comment etc.. 

     

Brad Clark

Consultant and Animator /Character TD/Motion Editor