ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 6422


Ignore:
Timestamp:
Apr 8, 2008, 5:42:11 PM (13 years ago)
Author:
ogawa
Message:

#2059:merged:誕生日を非表示に設定したときに、f_homeの誕生日のお知らせの表示、カレンダーの誕生日アイコンの表示、誕生日お知らせメールの配信をしないように修正

Location:
OpenPNE/branches/work/ogawa/2059_profile/webapp
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/work/ogawa/2059_profile/webapp/lib/util/mail_send.php

    r5389 r6422  
    387387
    388388    foreach ($birth_list as $birth_member) {
    389         $friend_list = do_common_c_friend_list4c_member_id($birth_member['c_member_id']);
    390 
    391         foreach ($friend_list as $friend) {
    392             if ($friend['is_receive_mail']) {
    393 
    394                 $c_member_secure = db_common_c_member_secure4c_member_id($friend['c_member_id']);
    395                 $pc_address = $c_member_secure['pc_address'];
    396 
    397                 $params = array(
    398                     "birth_member" => $birth_member,
    399                     "friend" => $friend,
    400                 );
    401                 fetch_send_mail($pc_address, 'm_pc_birthday_mail', $params);
     389        if ($birth_member['public_flag_birth_month_day'] != "private") {
     390            $friend_list = do_common_c_friend_list4c_member_id($birth_member['c_member_id']);
     391
     392            foreach ($friend_list as $friend) {
     393                if ($friend['is_receive_mail']) {
     394                    $c_member_secure = db_common_c_member_secure4c_member_id($friend['c_member_id']);
     395                    $pc_address = $c_member_secure['pc_address'];
     396
     397                    $params = array(
     398                        "birth_member" => $birth_member,
     399                        "friend" => $friend,
     400                    );
     401                    fetch_send_mail($pc_address, 'm_pc_birthday_mail', $params);
     402                }
    402403            }
    403404        }
  • OpenPNE/branches/work/ogawa/2059_profile/webapp/modules/ktai/templates/inc_f_home_h_prof.tpl

    r6418 r6422  
    3434</td></tr>
    3535({/if})
     36({if $target_c_member.birth_month && $target_c_member.birth_day && ($target_c_member.public_flag_birth_month_day == 'public' || ($target_c_member.public_flag_birth_month_day == 'friend' && $is_friend))})
    3637({if $days_birthday == 0})({* 誕生日当日 *})
    3738<tr><td colspan="2" align="center">
     
    4445お誕生日にはメッセージを送りましょう</a><br>
    4546</td></tr>
     47({/if})
    4648({/if})
    4749({/if})
  • OpenPNE/branches/work/ogawa/2059_profile/webapp/modules/pc/templates/h_calendar.tpl

    r4274 r6422  
    9797({* 誕生日 *})
    9898({foreach from=$item.birth item=item_birth})
     99({if $item_birth.public_flag_birth_month_day != "private" || $c_member.c_member_id == $item_birth.c_member_id})
    99100<img src="({t_img_url_skin filename=icon_birthday})" class="icon"><a href="({t_url m=pc a=page_f_home})&amp;target_c_member_id=({$item_birth.c_member_id})">({$item_birth.nickname})さん</a><br>
     101({/if})
    100102({/foreach})
    101103
  • OpenPNE/branches/work/ogawa/2059_profile/webapp/modules/pc/templates/h_home.tpl

    r4419 r6422  
    964964({* 誕生日 *})
    965965({foreach from=$item.birth item=item_birth})
     966({if $item_birth.public_flag_birth_month_day != "private" || $c_member.c_member_id == $item_birth.c_member_id })
    966967<img src="({t_img_url_skin filename=icon_birthday})" class="icon"><a href="({t_url m=pc a=page_f_home})&amp;target_c_member_id=({$item_birth.c_member_id})">({$item_birth.nickname})さん</a><br>
     968({/if})
    967969({/foreach})
    968970
  • OpenPNE/branches/work/ogawa/2059_profile/webapp/modules/pc/templates/inc_f_home_h_prof.tpl

    r6418 r6422  
    7474({else})({* -------- 他メンバーのプロフィール:ここから -------- *})
    7575
     76({if $target_c_member.birth_month && $target_c_member.birth_day && ($target_c_member.public_flag_birth_month_day == 'public' || ($target_c_member.public_flag_birth_month_day == 'friend' && $is_friend))})
    7677
    7778({if $days_birthday == 0})({* 誕生日当日 *})
     
    110111<!-- ******ここまで:もうすぐ誕生日****** -->
    111112<!-- ********************************** -->
     113({/if})
    112114({/if})
    113115
Note: See TracChangeset for help on using the changeset viewer.