I cannot seem to find the php snippet for favorite nodes to be called in the user_profile.tpl.php. This seems like the logical use for the favorite nodes module, so I feel that I may just be missing it. Can someone help? Thanks in advance!

Comments

ezichko’s picture

i am looking for the exact same thing.
i also see some patches but dont know which one to use.

which is the most up to date way of doing this?

thanks

akaifi’s picture

This worked for me...

	$info = favorite_nodes_user($op = "view", $edit, $user); 
	foreach($info as $value){
		foreach($value as $stuff){
			foreach($stuff as $moreStuff){
				if($moreStuff){
					print($moreStuff);
				}				
			}
		}
	}	
bfbryan’s picture

What is the best way to show the favorites list with more detail including remove/add links?