Hello,

at first:
all things are tested with an new clean Drupal installation.
- Drupal core 7.12
- Heartbeat 7.x-1.0+90-dev
- flag 7.x-2.0-beta6
- Entity 7.x-1.0-rc1
- Rules 7.x-2.1
- Token 7.x-1.0-rc1
- Ctools 7.x-1.0-rc2+1-dev

The two Webserver I tested with:

Ubuntu 11.04
Apache 2.2.17-1ubuntu1.5: libapache2-mod-php5,apache2,apache2-mpm-prefork,apache2-utils,apache2.2-bin,apache2.2-common
Php5.3.5-1ubuntu7.7: php-apc,php-file,php-net-socket,php-pear,php5,php5-adodb,php5-cgi,php5-cli,php5-common,php5-curl,php5-dbg,php5-dev,php5-gd,php5-imagick,php5-mcrypt,php5-memcache,php5-mysql,php5-radius,php5-suhosin

Debian 6.0
Apache2 2.2.16-6+squeeze6 same (ubuntu) modules
Php5.3.10-1~dotdeb1, same (ubuntu) modules

So now I will explain my problem with the software. When I click on the "user like button" there will be a link with "one person like". When I click here I see a screen with no names (see picture one). If the user have a user-picture the picture is shown. The log is clean and there are no error messages. I tested with severeal browsers firefox, opera, chrome at linux and internet explorer and firefox at Windows.

Has anyone the same issue?
Best regards
Frank

CommentFileSizeAuthor
#7 Bildschirmfoto.png3.18 KBfraweg
#1 Picture1.png5.22 KBfraweg
#1 Picture2.png6.97 KBfraweg
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fraweg’s picture

FileSize
6.97 KB
5.22 KB

ups... I did not attach the pictures...

fraweg’s picture

Please... can anyone make a screen shot for me to see how it looks normally?

Best regards
Frank

Stalski’s picture

The users are shown in the modal as on some other social things, with an avatar image (parsed through the heartbeat activity avatar image style). So if the user in question has no avatar and there is no site default avatar defined, this will be empty as your screenshot.

A site default avatar can be put in your files folder and link to it in the User > user settings tab in the drupal configuration.

It is certainly a problem we can't change how the output of these users look like, but I am working on some configuration to be able to run the user by a view mode. Heartbeat could then ship with an extra view mode specific for the user (With display suite enabled, that is).

Stalski’s picture

Category: bug » feature

so it's a feature request to have the user styles in another way than the picture only, no?
(meantime the default avatar solution)

fraweg’s picture

Hello Stalski,

thanks for your answer! When you explain it in this way... yes it seems to be a feature request. So I had misunderstood something. That is the reason why I have asked for a screenshot from somebody. For me it makes sense that user see the username too. So user without userpicture in their avatar are shown with the username.

Thanks so much for your hard work in this module!

Best regards,
Frank

Stalski’s picture

Status: Active » Fixed

I changed this feature.

If Display Suite is enabled , then the user account will be rendered with a newly added view mode (ships with heartbeat). Here you can configure your account as you wish.

If not, then a theme function will be used. Currently the theme function will now show the username and the user avatar (if configured to use user pictures).

fraweg’s picture

FileSize
3.18 KB

Hello Stalski,

thanks a lot for your work! I test the module and have this error:

Notice: Undefined property: stdClass::$created in user_user_view() (line 986 of /.../modules/user/user.module).
Notice: Undefined property: stdClass::$rdf_mapping in rdf_preprocess_user_profile() (line 603 of /.../modules/rdf/rdf.module).

the second thing is that this kind to realise this feature does not really work with all combination of p
profile2. When you activate the display suite to display the account and you have not a separate page for the Profile witch come with the profile2 module DS will show the profile2 fields.
Is is a problem to display this information in the same way you do it in the stream (like in the picture)?

Many thanks for the effort and your work in this module!
Frank

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

fraweg’s picture

Status: Closed (fixed) » Active

Hello,

this problem is still alive...

Best regards
Frank

fraweg’s picture

Hello Stalski,

Please... can you explain this a little bit.

If Display Suite is enabled , then the user account will be rendered with a newly added view mode (ships with heartbeat). Here you can configure your account as you wish.

Does it mean, that the content of the complete account will be displayed with display suite? I really do not understand this.

Best regards
Frank

fraweg’s picture

There is no documentation, so I do not understand this feature. I really need a little bit more explanation.

Best regards
Frank

Stalski’s picture

Status: Active » Closed (works as designed)

Hi, this issue is about the username being shown.
Currently, when you visit the display UI for your heartbeat template, you can see all fields in a visible and hidden section. You'll need to disable the "username" field from display if you have it embedded in your message template itself.
The only thing I could add is the url on one of those templates: "/admin/structure/heartbeat/templates/list/heartbeat_add_comment/display". There you go

regards

fraweg’s picture

Hello Stalski,

thanks for your help.Did we talk about the "user like" button? What I want to know how to set up the user picture and name for the user who listed when I click this button. When I click on this button I want that all user who like that are listed with name and picture. And my question is "How can I do that!".In #6 you talk about a new method to do that.

If Display Suite is enabled , then the user account will be rendered with a newly added view mode (ships with heartbeat). Here you can configure your account as you wish.

And this is what I do not understand. I hope my question is not stupid an you can find a minute to explain that.

Best regards
Frank

Stalski’s picture

Hi, yes the url is wrong, it's the display screen for accounts at "/admin/config/people/accounts/display/heartbeat_user" . If you configure that one, it will be used.
It works as all other things.
However, it is a theme function as well. If you overrride theme_heartbeat_flagging you will be able to customize it as well.

You'll understand it with the code itself:


  $use_ds = module_exists('ds');
  foreach ($result as $account) {
  	if ($use_ds) {
  	  $list[] = drupal_render(user_view($account, 'heartbeat_user'));
  	}
  	else {
  	  $list[] = theme('heartbeat_flagging', array('heartbeatactivity' => $heartbeatActivity, 'uri' => $account->uri, 'name' => $account->name, 'uid' => $account->uid));
  	}
  }