Add "back" button on messages Download 1.1

German Dominik L 3 months ago

When you open a chat on mobile devices for example, you have no possibility to go back to your messages overview

With this component, you get a "back" button beside the username inside the chat.

This button takes you directly back to your messages overview, so you can easily see your other (maybe unread) chats.

Version 1.0: inital release

Version 1.1: calling ossn_print directly in JS, thanks to @Michael for this info

enter image description here

Comments
German Dominik L Replied 3 months ago

Ahhh, that's what you meant.

Thanks for the hint, I'll change.

German Michael Zülsdorff Replied 3 months ago

i was addressing the hard-coded link associated with your button, not the button.

Proceed through the following workflow...
Step 1 starting at the newsfeed page:
enter image description here


Step 2 being forwarded to the message box of Botox:
enter image description here


That is, your "Back" button won't take you back where you've been before in this case, but to a different page. Thus 'Back' is irritating here and 'Close' a better label to my opinion,

German Dominik L Replied 3 months ago

What do you mean?

The name is not hard-coded, it's translatable?

I'm confused what do you mean?

German Michael Zülsdorff Replied 3 months ago

No doubt, this feature makes sense. I'm just a little unhappy with naming the button 'Back' and hard-coding it to messages/all. Because that's not necessarily the location where you've been before. That why my idea would be to use a 'Close' icon instead next to the trash can.

German Dominik L Replied 3 months ago

I mean, when you get a message and you click on it then you get directly to the chat, but if you want to go back to your message overview (where you can see all your chats) then you have to click on the message icon and then on "see all"

With this component you can go directly to the overview without a second more click

German Michael Zülsdorff Replied 3 months ago

You wrote 'there's no way back', thus you must have been there before, so how did you get there?

German Dominik L Replied 3 months ago

What do you mean with ?

Just wondering which way you were able to initially enter Test123?

And thanks

German Michael Zülsdorff Replied 3 months ago

Ah yes. ;)
Just wondering which way you were able to initially enter Test123?

And: Inside of javascripts you may simply use
Ossn.Print('some:key:to:translate', [arg1, arg2, argn]);
no need to call PHP
see system/plugins/default/javascripts/libraries/ossn.lib.languages.php

Component

Developer: Dominik
License GPL v2
Type: Communication
Requires Ossn Version : 7.6
Latest Version: 1.1
Last Updated 3 months ago
Repository Url View Repository

Versions