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

Changeset 9042


Ignore:
Timestamp:
Nov 8, 2008, 8:56:01 AM (14 years ago)
Author:
ebihara
Message:

#3116:added support for inviting yor friends to the SNS

Location:
OpenPNE3/trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_frontend/modules/member/actions/actions.class.php

    r9031 r9042  
    7676    return sfView::SUCCESS;
    7777  }
     78
     79 /**
     80  * Executes invite action
     81  *
     82  * @param sfRequest $request A request object
     83  */
     84  public function executeInvite($request)
     85  {
     86    $this->form = new InviteForm();
     87    if ($request->isMethod('post'))
     88    {
     89      $this->form->bind($request->getParameter('pc_address'));
     90      if ($this->form->isValid())
     91      {
     92        $token = $this->form->register();
     93        $subject = OpenPNEConfig::get('sns_name').'の招待状が届いています';
     94        $body = $this->getPartial('global/requestRegisterURLMail', array('token' => $token->getValue()));
     95        sfOpenPNEMailSend::execute($subject, $this->form->getValue('pc_address'), OpenPNEConfig::get('admin_mail_address'), $body);
     96
     97        return sfView::SUCCESS;
     98      }
     99    }
     100
     101    return sfView::INPUT;
     102  }
    78103}
  • OpenPNE3/trunk/apps/pc_frontend/templates/_partsBox.php

    r8929 r9042  
    3030<ul class="moreInfo button">
    3131<li>
    32 <input class="input_submit" type="submit" value="変更" />
     32<input class="input_submit" type="submit" value="<?php echo $option['button'] ?>" />
    3333</li>
    3434</ul>
  • OpenPNE3/trunk/data/fixtures/004_import_navi_menu.yml

    r8138 r9042  
    1515    type: "secure_global"
    1616    uri: "member/config"
     17
     18  secure_global_navi_invite:
     19    type: "secure_global"
     20    uri: "member/invite"
    1721
    1822  secure_global_navi_logout:
     
    8589    culture: "ja_JP"
    8690
     91  secure_global_navi_invite_i18n:
     92    id: secure_global_navi_invite
     93    caption: "友人を招待する"
     94    culture: "ja_JP"
     95
    8796  secure_global_navi_logout_i18n:
    8897    id: secure_global_navi_logout
  • OpenPNE3/trunk/lib/helper/PartsHelper.php

    r8929 r9042  
    5858function include_box($id, $title = '', $body = '', $option = array())
    5959{
     60  if (!empty($option['form']) && !isset($option['button'])) {
     61    $option['button'] = '変更';
     62  }
     63
    6064  $params = array(
    6165    'id' => $id,
Note: See TracChangeset for help on using the changeset viewer.