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

Opened 14 years ago

Closed 13 years ago

#2341 closed task (fixed)

MyNewsの2.12用テンプレートをつくる

Reported by: imamura623 Owned by: kiwa
Priority: critical Milestone:
Component: pne-document Version:
Keywords: Cc:

Description (last modified by kiwa)

!MyNewsのテンプレートも2.12用のものを作成する。

■タスク

!MyNewsのパーツを作るために必要なCSSと、必要なテンプレートをチケットに提示

■前提

  • xhtml_style.phpは使用せず、管理画面からカスタムCSSでCSSを変更する
  • テンプレートファイルの変更は行わず、テンプレート挿入からテンプレートを変更する

■パーツ

h_home

サンプル画像h_home

サンプルHTML→20080528_mynews_h.html

f_home

サンプル画像f_home

サンプルHTML→20080527_mynews_f.html

Attachments (4)

20080527_mynews_h.png (2.7 KB) - added by kiwa 14 years ago.
サンプル画像h_home
20080527_mynews_f.png (1.9 KB) - added by kiwa 14 years ago.
サンプル画像f_home
20080528_mynews_h.html (55.0 KB) - added by kiwa 14 years ago.
サンプルHTML(h_home)
20080527_mynews_f.html (34.0 KB) - added by kiwa 14 years ago.
サンプルHTML(f_home)

Download all attachments as: .zip

Change History (25)

comment:1 Changed 14 years ago by imamura623

Milestone: OpenPNE2.12beta2

comment:2 Changed 14 years ago by ogawa

Milestone: OpenPNE2.12beta2OpenPNE2.12beta3

comment:3 Changed 14 years ago by kiwa

Milestone: OpenPNE2.12beta3OpenPNE2.12RC1

comment:4 Changed 14 years ago by kiwa

Milestone: OpenPNE2.12RC1OpenPNE2.12RC2

comment:5 Changed 14 years ago by kiwa

Milestone: OpenPNE2.12RC2OpenPNE2.12.0
Owner: changed from nobody to kiwa
Status: newassigned

comment:6 Changed 14 years ago by ebihara

Description: modified (diff)
Priority: minortrivial

Changed 14 years ago by kiwa

Attachment: 20080527_mynews_h.png added

サンプル画像h_home

Changed 14 years ago by kiwa

Attachment: 20080527_mynews_f.png added

サンプル画像f_home

Changed 14 years ago by kiwa

Attachment: 20080528_mynews_h.html added

サンプルHTML(h_home)

Changed 14 years ago by kiwa

Attachment: 20080527_mynews_f.html added

サンプルHTML(f_home)

comment:7 Changed 14 years ago by kiwa

Description: modified (diff)

Descriptionに情報をまとめました。あとは誰かに頼んだ。

comment:8 Changed 14 years ago by kiwa

Description: modified (diff)
Owner: changed from kiwa to nobody
Status: assignednew

comment:9 Changed 14 years ago by kiwa

Component: その他pne-xhtmlcss

comment:10 Changed 14 years ago by kiwa

Description: modified (diff)

comment:11 Changed 14 years ago by kiwa

Milestone: OpenPNE2.12.0OpenPNE2.12.1

comment:12 Changed 14 years ago by kiwa

Component: pne-xhtmlcsspne-document
Milestone: OpenPNE2.12.1

comment:13 Changed 14 years ago by kiwa

Keywords: trac.openpne.jp added

comment:14 Changed 14 years ago by kiwa

Keywords: trac.openpne.jp removed
Priority: trivialmajor

comment:15 Changed 14 years ago by kiwa

Priority: majorcritical

comment:16 Changed 13 years ago by nakasone

Owner: changed from nobody to nakasone
Status: newassigned

やります。

comment:17 Changed 13 years ago by nakasone

Keywords: 確認中 added

カスタムCSS

.myNews div.block { padding: 5px; }

.myNews div.block textarea { 
width: 320px;
height: 50px;
vertical-align: middle;
}

.myNews div.block input { 
height: 50px; 
vertical-align: middle; 
}

.myNews div.block p {
text-align:left; 
padding:0px 5px 0px 5px;"
}

入力フォームのテンプレート(h_home)

<div class="dparts myNews"><div class="parts">
<div class="partsHeading"><h3>My News!</h3></div>
<div class="partsInfo">
<p>({if $c_member.profile.PNE_MY_NEWS_DATETIME.value})({$c_member.profile.PNE_MY_NEWS_DATETIME.value|date_format:"%m/%d %H:%M"}) 更新({/if})</p>
</div>
<form action="./" method="post">
<input type="hidden" name="m" value="pc" />
<input type="hidden" name="a" value="do_h_home_update_my_news" />
<input type="hidden" name="sessid" value="({$PHPSESSID})" />
<div class="block">
<textarea name="prof_my_news">({$c_member.profile.PNE_MY_NEWS.value})</textarea>
<input type="submit" value=" 変 更 " />
</div>
</form>
</div></div>

表示部分のテンプレート(f_home)

({if $target_c_member.profile.PNE_MY_NEWS_DATETIME.value})

<div class="dparts myNews"><div class="parts">
<div class="partsHeading"><h3>My News!</h3></div>
<div class="partsInfo">
<p>({$target_c_member.profile.PNE_MY_NEWS_DATETIME.value|date_format:"%m/%d %H:%M"}) 更新</p>
</div>
<div class="block">
<p>
({$target_c_member.profile.PNE_MY_NEWS.value|nl2br|t_url2a})
</p>
</div>
</div></div>

comment:18 Changed 13 years ago by kiwa

Keywords: 差し戻し added; 確認中 removed

以下の対応をお願いします。

カスタムCSS

padding:0px 5px 0px 5px;"

の末尾の「"」は余計ではないでしょうか

h_home

HTMLの文法エラーがあります。

<textarea name="prof_my_news"></textarea>

にcolsとrowsが指定されていません。

f_home

最後の({/if})が抜けています。

comment:19 Changed 13 years ago by kiwa

Owner: changed from nakasone to kiwa
Status: assignednew

なおします

comment:20 Changed 13 years ago by kiwa

Keywords: 確認中 added; 差し戻し removed

修正しました

css

.myNews div.block { padding: 5px; }

.myNews div.block textarea { 
width: 320px;
height: 50px;
vertical-align: middle;
}

.myNews div.block input { 
height: 50px; 
vertical-align: middle; 
}

.myNews div.block p {
text-align:left; 
padding:0px 5px 0px 5px;
}

h_home(【PC版】 h_home 9)

<div class="dparts myNews"><div class="parts">
<div class="partsHeading"><h3>My News!</h3></div>
<div class="partsInfo">
<p>({if $c_member.profile.PNE_MY_NEWS_DATETIME.value})({$c_member.profile.PNE_MY_NEWS_DATETIME.value|date_format:"%m/%d %H:%M"}) 更新({/if})</p>
</div>
<form action="./" method="post">
<input type="hidden" name="m" value="pc" />
<input type="hidden" name="a" value="do_h_home_update_my_news" />
<input type="hidden" name="sessid" value="({$PHPSESSID})" />
<div class="block">
<textarea name="prof_my_news" cols="50" rows="2">({$c_member.profile.PNE_MY_NEWS.value})</textarea>
<input type="submit" value=" 変 更 " />
</div>
</form>
</div></div>

f_home(【PC版】 f_home (h_prof) 7)

({if $target_c_member.profile.PNE_MY_NEWS_DATETIME.value})
<div class="dparts myNews"><div class="parts">
<div class="partsHeading"><h3>My News!</h3></div>
<div class="partsInfo">
<p>({$target_c_member.profile.PNE_MY_NEWS_DATETIME.value|date_format:"%m/%d %H:%M"}) 更新</p>
</div>
<div class="block">
<p>
({$target_c_member.profile.PNE_MY_NEWS.value|nl2br|t_url2a})
</p>
</div>
</div></div>
({/if})

表示確認ブラウザ

  • !FireFox1.5
  • !FireFox2.0
  • !FireFox3.0
  • !InternetExplorer6
  • !InternetExplorer7
  • Safari3.1
  • Opera9.5

comment:21 Changed 13 years ago by ogawa

Keywords: 確認中 removed
Resolution: fixed
Status: newclosed

wiki:pne-customize に記載しています。

Note: See TracTickets for help on using tickets.