How do you do this? (for example on user-page.php.tpl


php print flag_create_link('follow', $node->uid); 

but this is not working, i see it must be something more custom like bellow, (but not working, variable not exposed where i need it). Probably there is other way to create it in template file?

php flag_create_link('follow', $heartbeatActivity->uaid); 


fraweg’s picture

Hello, maybe you can activate the PHP Module in the Drupal Code and create a block with this code and place it on the userpage. Best regards

CliveCleaves’s picture

This might be what you're looking for

  $account = menu_get_object('user');
  print flag_create_link('follow', $account->uid);