Like IT Module
Jamroom Help
ba9801:
Doesn't work in Nova skin on the profile_header.tpl
Thats all I have found so far.
There were a couple of issues in play in profile_header.tpl
The first is that the required $item is not there, the second is that a profile does not have an $_item_id which the module is looking for.
Here is some code that seams to work to allow you to like profiles:
{capture name="the_tpl" assign="like_button"}
{literal}
{$item = $_items.0}
{$item['_item_id'] = $item['_profile_id']}
{jrLike_button action="like" module="jrProfile" item=$item}
{/literal}
{/capture}
{jrCore_list module="jrProfile" profile_id=$_profile_id template=$like_button}
What its doing is using the jrCore_list function to get the $_items array structure for a single profile, then using the _profile_id as the _item_id that the like it module needs to determine unique items.
The capture structure is used to avoid having to make another file in the file system for such a simple thing.