×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Keeping the message box at the bottom

Keeping the message box at the bottom 15 years 9 months ago #4951

  • Owen
  • Owen's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Hi! I hope you could help me with an issue I have yet to find a solution to:

I have allowed nested comments, and even when I'm using one of the templates that by default places the message box at the bottom, below the messages (currently I'm using the modern template), whenever a user would write a reply to a previous message, the message box will change it's position and will be nested itself at the middle between the old messages.

It does looks kind of weird... I mean I don't think I have ever seen that in websites were comments are enabled. Usually the message box stays at the bottom (or top).
I know the user (who has just written his reply) can somehow spot the box at the middle between all the messages when he would now wish to write a new message, or can try hard and notice that he can hit "Add new", but still... it would be much better I think if the box will simply always stay at it's original location at the bottom even if someone writes a reply to a previous message.

Any way to define that? Am I missing something?

I would highly appreciate any help on this issue. Thanks! :cheer:

Keeping the message box at the bottom 15 years 9 months ago #4955

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
I'm having a little trouble visualizing your problem, but i'll try and help :P

Owen wrote:

whenever a user would write a reply to a previous message, the message box will change it's position and will be nested itself at the middle between the old messages.


This is by design. The New Comment box will jump-up below the comment you press reply to, to signify where the comment will go when Sent. This is what true 'Nested' comments are.

It does looks kind of weird... I mean I don't think I have ever seen that in websites were comments are enabled.

www.youtube.com

I know the user (who has just written his reply) can somehow spot the box at the middle between all the messages when he would now wish to write a new message, or can try hard and notice that he can hit "Add new", but still... it would be much better I think if the box will simply always stay at it's original location at the bottom even if someone writes a reply to a previous message.


The idea there is that the user does NOT have to scroll alllll the way down the bottom to reply to a comment that's near the top. When they click reply, instead of the screen scrolling pages down to the Message Box for their reply, the Message Box will jump up in-line (nested) so they can refer to the original comment that they are replying to as they type.

Any way to define that? Am I missing something?


You're not missing anything, this is obviously just a personal preference kind of thing :) I'm sure turning off nested comments will solve your problem.

I hope that answers your questions. If not, of course you are very welcome to further explain your objective :cheer:

Keeping the message box at the bottom 15 years 9 months ago #4960

  • Owen
  • Owen's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Thank you, JonusC. I think I might have not explained my point in a clear manner.

I do need the messages to be nested, and I do understand why when posting a reply the message box would appear at the middle, right below the message for which one replys.

But the problem is that when that same user who has just replied to a message, now wishes to post a whole NEW message of his own, if he won't refresh the page, he will now have to scroll in between the old messages to find the box... because the box is no longer at the bottom.

You gave YouTube as an example for a website that does present it this way.
Well, I stand for what I have said: I have never seen a website that desplays it in such a way, INCLUDING YOUTUBE.

You can check YouTube again. The replys you post there are opening a new box at the middle of the page right below the original message for which you reply, BUT if you now wish to post a new message you will still see the message box at the bottom of the page - it never left its place.

That is really the way I see it in almost every website that enables messages.

And that's why I asked maybe I'm missing something here or something went wrong with my settings, because as much as I really like this component, I will not be able to use it without nested comments that display a message box at the bottom for those wishing to post NEW messages.

So I hope I could somehow get a direction to a template or a tweak that enables that...

:cheer:

Keeping the message box at the bottom 15 years 9 months ago #4964

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Oh... now I see.

Well I would consider that a bug. There is no AJAX-esque code to "reset" the Message Box position to it's original location after the user has submitted the comment. That actually has nothing to do with the nested option being on or off :laugh: it's a completely different thing altogether.

I'm not sure if it could be fixed with just a template change, maybe it can. We will have to investigate this further :dry:

Thanks for your report Owen; Daniel has many things to work on right now but I believe it's the little things like this that count in making JoomlaComment "just feel good" in general :P i'll take a look soon and let you know if its easily fixable.

Keeping the message box at the bottom 15 years 9 months ago #4969

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey there! I'm not sure if this is the best solution right now, but please try it.
open the client.js file in components/com_comment/joscomment/jscripts

go to line 161 in the JOSC_ajaxReady() function
document.joomlacommentform.bsend.disabled = false;
and add
JOSC_addNew();

immediately after it.

Keeping the message box at the bottom 15 years 9 months ago #4978

  • Owen
  • Owen's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Hi Daniel!

Great stuff! I think it looks and works really great this way.

Why you're not sure if it's the best solution?
Did I yet to notice an issue it might cause...?

Anyhow, from what I briefly saw I thought this addition would fit perfectly.


Thank you ever so much for all your help!


Owen

Keeping the message box at the bottom 15 years 9 months ago #4981

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I have the feeling that my screen is blinking(when I click send) with this solution. That is why I don't know if it is the best solution.
If it is working for you, then this is only my laptop's screen.
  • Page:
  • 1
Time to create page: 0.211 seconds