I am trying to add a link so that users can bookmark advanced profile nodes of other users. The question arises, how to get at the user's node, in a template?

A link to reference this:
http://drupal.org/node/280390

What we are looking for is the code that gives you the user's node.

Thanks in advance for any assistance - great module.

Comments

MGParisi’s picture

What you do is include as the first arguement in the view "userid is author", then add it to panels like any other module. However the bookmark module has been depreciated to the flags module. In which case, again you just create your view and ad the userid is author argument and it will pick the ID from panels and will give you the current users flags!

Michelle can I mark this as finished? Ive done this with both applications.

michelle’s picture

Status: Active » Fixed

Looks like this was answered.

Michelle

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

typehost’s picture

Status: Closed (fixed) » Active

Actually, this was originally a question of how to add the ability to bookmark advanced profile pages like any other pages. For example, in advanced_profile_userinfo.tpl.php I am adding:

<div class="user-info">
  <?php print $user_title; ?>
  <?php print $posts; ?>
  <?php print $joined; ?>
  <?php print $points; ?>
  <?php print $user_badges;  ?>
  <?php print $online_status; ?>
  <?php print $contact; ?>
  <?php print $privatemsg; ?>
  <?php print $buddylist; ?> 
<?php print flag_create_link('bookmarks' /* the flag name */, $node->nid); ?>

Ultimately, I want to create a link with small icon that appears in the same list with "Send PM" "Add Buddy" etc.
It should say "(Icon) Bookmark this" in that same section....

But the link isn't appearing.

michelle’s picture

Status: Active » Closed (fixed)

Closing old issues that aren't applicable anymore with the rewrite.

Michelle