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

Like:

<?php
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
php flag_create_link
('follow', $heartbeatActivity->uaid);
?>

Comments

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
Frank

This might be what you're looking for

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