Closed (fixed)
Project:
Advanced Profile Kit
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2008 at 15:57 UTC
Updated:
21 Mar 2008 at 22:43 UTC
Hi, I'm using a custom nodeprofile type for my profile. Since I didn't auto create the uprofile with advanced profile I'm not sure how to modify the user-info in the mini-panel "All about user". I followed the instructions for nodeprofile but still can't figure this out.
I want to add the age of the user using the code from your previous profile version 2 to the user-basics section:
<?php
$birthdate = $node->field_birthdate[0]['value'];
$now = time();
$then = strtotime($birthdate);
$diff = date('Y', $now) - date('Y', $then);
print $diff;
?>
But I don't know where I'm supposed to insert this. I tried inserting into panel-user-info.tpl.php but it didn't show up. I also want to change the joined date format and add last login but am confused. Where is user-info coming from?
Comments
Comment #1
drupalbrax commentedHi, i have the same problem. I want to customize the panel-user-info.tpl.php, but nothing change. Even if I delete this file - nothing change.
Comment #2
michelleThis might be a bug. I'm about to do a code clean up that will affect this area so it should be fixed soon.
Michelle
Comment #3
michelleComment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.