Dont worry.. Place the codes as said and it does not ask you to edit any existing function. These codes in birthday block are separete code chunks and you need to place them after
1. Place the function at the end of class-user.php .. bot before the last closing bracket
YOUR FUNCTION HERE
}
and put it before the last closing bracket.
SIMILARLY - 2. Paste the code in tpl file as a include line .. the view code would be inside widgets/ folder so no disruption
3. In index.php Place the smarty controller code, before any code lines
Like THIS
// get ads campaigns
$ads_campaigns = $user->ads_campaigns();
/* assign variables */
$smarty->assign('ads_campaigns', $ads_campaigns);
}
// 01. Friends Birthday Plugin
$friends_birthday = $user->get_friends_birthday($user->_data['user_id']);
$smarty->assign('friends_birthday', $friends_birthday);
$current_date_birthday = (!empty($friends_birthday)) ? $friends_birthday[0] : null;
if ($current_date_birthday) {
$smarty->assign('current_date_birthday', $current_date_birthday);
// Pre-calculate birth day and month for the Smarty template
$birth_day = date('d', strtotime($current_date_birthday['user_birthdate']));
$birth_month = date('F', strtotime($current_date_birthday['user_birthdate']));
$smarty->assign('birth_day', $birth_day);
$smarty->assign('birth_month', $birth_month);
}
// get trending hashtags
if (!(!$user->_logged_in && !$system['newsfeed_public']) && $system['trending_hashtags_enabled']) {
$trending_hashtags = $user->get_trending_hashtags();
/* assign variables */
$smarty->assign('trending_hashtags', $trending_hashtags);
}
so wont be an issue.