Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time an date set incorrectly in messages #6

Open
GnaXi opened this issue Jun 16, 2013 · 1 comment
Open

Time an date set incorrectly in messages #6

GnaXi opened this issue Jun 16, 2013 · 1 comment

Comments

@GnaXi
Copy link

GnaXi commented Jun 16, 2013

Hi,

I've been playing around with the app for a bit now and discovered that the time and date is incorrect for all messages. It is showing like this:
time and date

Has something been set incorrectly or am I missing something?

@TwoPhased
Copy link

I have a similar issue with the internal messages app, the date often says 01/01/1970, but after logging out and in again, the date changes to the current date and time. HoW to fix that?

By the way GnaXi, I see that your message doesn't show the user photo either.

Here's how to fix that:

  1. open terminal as root
  2. type & enter: nano /path_to_server/www/owncloud/apps/internal_messages/templates/part.messages.php
  3. copy this line:

    echo "<td><img id=message_photo src=". OC::$WEBROOT . '/index.php/apps/user_photo/ajax/showphoto.php?user=' . $message['message_owner']."></td>" ;
  4. scroll to line 25 of part.messages.php
  5. replace the (old) string with the one you've copied (new)
  6. save & exit nano

    Done!

Examples (replace "old" line on rule # 25 with "new" line)

old:
echo "<td><img id=message_photo src=". OC_App::getAppWebPath('user_gravatar') . '/ajax/showphoto.php?user=' . $message['message_owner']."></td>" ;

new:
echo "<td><img id=message_photo src=". OC::$WEBROOT . '/index.php/apps/user_photo/ajax/showphoto.php?user=' . $message['message_owner']."></td>" ;

As it seems, internal messages (in fact owncloud/apps/internal_messages/templates/part.messages.php) was set for gravatar, not for user_photo app.

Peace!
TwoPhased

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants