As title.

Comments

lolandese’s picture

Use something like:

    if(arg(0) == 'node' && is_numeric(arg(1))){
            $node = node_load(arg(1));
            $user = user_load_multiple(array(),array('uid' => $node->uid));
        };

as an additional OR condition on line 509 of flickr_block.module.

  • Commit 30bac11 on 7.x-1.x by lolandese:
    Issue #2235019 by lolandese: Extend the profile blocks to node pages for...
lolandese’s picture

Status: Active » Fixed
StatusFileSize
new6.83 KB

Attached patch extends the profile blocks to the posts written by the user. To avoid that, change the block settings to exclude 'node/*' pages or show them only on 'user/*' pages.

Of course you can do it also the other way around to show a block only on a node page. You can fine-grain it even more by selecting only a certain content type you want to show them on, for example blog posts.

http://drupalcode.org/project/flickr.git/commitdiff/30bac11

lolandese’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Fixed » Patch (to be ported)
lolandese’s picture

Status: Patch (to be ported) » Closed (won't fix)
lolandese’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Closed (won't fix) » Closed (fixed)

Setting this back to D7 and being 'fixed (closed)'.

Main reason is the fact that links to this issue show the status on hover without revealing the version (6 or 7). This might give the impression that the mentioned issue will not be solved, while in fact it is already fixed for the D7 version. 'Fixed (closed)' reflects the current status correctly for D7. 'Closed (won't fix)' is only valid for the minimally maintained D6 version of the module.