Install D7.22. Install Adaptive Theme (7.x-3.1) & Pixture Reloaded (7.x-3.0-rc1).

Enable blog module. Make sure ,"Display author and date information." is set on blog content type. Enable pictures in user profiles. Create image style for user profiles.

Make some blog posts and promote to front page. These appear as expected with "Submitted by..." information. Pictures for the user who made the post is shown here, prior to this text and using the "node-with-picture" class, etc. as added by Adaptive Theme.

If one does not want to show these users pictures, one is supposed to visit appearance/global settings page where this is a checkbox: "User pictures in posts", disable this check box, and that should be it.

However, this is not working on my installation. Pictures are shown on the "Submitted by..." information no matter what the state of the above checkbox.

I check the Adaptive theme code and see the below:

    // User picture?
    if (at_get_setting('toggle_node_user_picture', $theme_name) === 1) {
      if ($vars['display_submitted'] && !empty($vars['picture'])) {
        $vars['classes_array'][] = 'node-with-picture';
      }
    }

If I force this 'if' to fail (by adding 'FALSE && ' to the condition), notice this removes the class, but not the image itself.

The 'toggle_node_user_picture' setting is certainly being saved because refreshing that configuration page shows the desired state. I do not have comments module turned on so 'User pictures in comments' is greyed out, but checked by default. Possible interaction?

I have temporarily hidden the pictures with CSS (using CSS injector), but clearly this is not an ideal solution.

Comments

Jeff Burnz’s picture

Category: bug » support

...one is supposed to visit appearance/global settings page where this is a checkbox: "User pictures in posts", disable this check box, and that should be it.

Yeah, maybe, it depends how you want to look at it, you can turn it off by visiting the Toggle Settings in your sub-theme and uncheck it there. I suspect you are right though, global being global and all. Will look more closely at how I have done this.

adam_b’s picture

I've turned off the checkbox in the global settings and in my sub-theme and I'm still seeing the default picture.
- Drupal 7.25
- Drupal Commons 3 distribution
- subtheme of Adaptive Theme 7.x-3.1+68-dev

Any further news on this?

Jeff Burnz’s picture

Not sure adam_b, I can't seem to reproduce this on a standard install, do you have some module altering user pictures?

adam_b’s picture

Not that I'm aware of - but it's my first time trying out Commons, so maybe there's something in that which affects user pictures? Apart from that it's an out-of-the-box build.